List of set identities and relations

From testwiki
Jump to navigation Jump to search

Template:Short description

This article lists mathematical properties and laws of sets, involving the set-theoretic operations of union, intersection, and complementation and the relations of set equality and set inclusion. It also provides systematic procedures for evaluating expressions, and performing calculations, involving these operations and relations.

The binary operations of set union (∪) and intersection (∩) satisfy many identities. Several of these identities or "laws" have well established names.

Notation

Throughout this article, capital letters (such as A,B,C,L,M,R,S, and X) will denote sets. On the left hand side of an identity,

This is to facilitate applying identities to expressions that are complicated or use the same symbols as the identity.[note 1] For example, the identity (L∖M)∖R=(L∖R)∖(M∖R) may be read as: (Left set∖Middle set)∖Right set=(Left set∖Right set)∖(Middle set∖Right set).

Elementary set operations

For sets L and R, define: L∪R=def{x:x∈L or x∈R}L∩R=def{x:x∈L and x∈R}L∖R=def{x:x∈L and x∉R} and L△R=def{x:x belongs to exactly one of L and R} where the Template:Em L△R is sometimes denoted by L⊖R and equals:[1][2] L△R=(L∖R)∪(R∖L)=(L∪R)∖(L∩R).

One set L is said to Template:Em another set R if L∩R≠∅. Sets that do not intersect are said to be Template:Em.

The power set of X is the set of all subsets of X and will be denoted by 𝒫(X)=def{L:L⊆X}.

Universe set and complement notation

The notation L∁=defX∖L. may be used if L is a subset of some set X that is understood (say from context, or because it is clearly stated what the superset X is). It is emphasized that the definition of L∁ depends on context. For instance, had L been declared as a subset of Y, with the sets Y and X not necessarily related to each other in any way, then L∁ would likely mean Y∖L instead of X∖L.

If it is needed then unless indicated otherwise, it should be assumed that X denotes the universe set, which means that all sets that are used in the formula are subsets of X. In particular, the complement of a set L will be denoted by L∁ where unless indicated otherwise, it should be assumed that L∁ denotes the complement of L in (the universe) X.

One subset involved

Assume L⊆X.

Identity:Template:Sfn

Definition: e is called a left identity element of a binary operator ∗ if e∗R=R for all R and it is called a right identity element of ∗ if L∗e=L for all L. A left identity element that is also a right identity element if called an identity element.

The empty set ∅ is an identity element of binary union ∪ and symmetric difference △, and it is also a right identity element of set subtraction ∖:

L∩X=L=X∩L where L⊆XL∪∅=L=∅∪LL△∅=L=∅△LL∖∅=L but ∅ is not a left identity element of ∖ since ∅∖L=∅ so ∅∖L=L if and only if L=∅.

IdempotenceTemplate:Sfn L∗L=L and Nilpotence L∗L=∅:

L∪L=L (Idempotence)L∩L=L (Idempotence)L△L=∅ (Nilpotence of index 2)L∖L=∅ (Nilpotence of index 2)

DominationTemplate:Sfn/Absorbing element:

Definition: z is called a left absorbing element of a binary operator ∗ if z∗R=z for all R and it is called a right absorbing element of ∗ if L∗z=z for all L. A left absorbing element that is also a right absorbing element is called an absorbing element. Absorbing elements are also sometime called annihilating elements or zero elements.

A universe set is an absorbing element of binary union ∪. The empty set ∅ is an absorbing element of binary intersection ∩ and binary Cartesian product ×, and it is also a left absorbing element of set subtraction ∖:

X∪L=X=L∪X where L⊆X∅∩L=∅=L∩∅∅×L=∅=L×∅∅∖L=∅ but ∅ is not a right absorbing element of set subtraction since L∖∅=L where L∖∅=∅ if and only if L=∅.

Double complement or involution law:

X∖(X∖L)=L Also written (L∁)∁=L where L⊆X (Double complement/Involution law)

L∖∅=L ∅=L∖L=∅∖L=L∖X where L⊆XTemplate:Sfn

L∁=X∖L (definition of notation)

L∪(X∖L)=X Also written L∪L∁=X where L⊆XL△(X∖L)=X Also written L△L∁=X where L⊆XL∩(X∖L)=∅ Also written L∩L∁=∅Template:Sfn

X∖∅=X Also written ∅∁=X (Complement laws for the empty set))X∖X=∅ Also written X∁=∅ (Complement laws for the universe set)

Two sets involved

In the left hand sides of the following identities, L is the Template:EmTemplate:Hspeft most set and R is the Template:EmTemplate:Hspight most set. Assume both L and R are subsets of some universe set X.

Formulas for binary set operations Template:Math, and Template:Math

In the left hand sides of the following identities, Template:Mvar is the Template:EmTemplate:Hspeft most set and Template:Mvar is the Template:EmTemplate:Hspight most set. Whenever necessary, both Template:Mvar and Template:Mvar should be assumed to be subsets of some universe set Template:Mvar, so that L∁:=X∖L and R∁:=X∖R.

L∩R=L∖(L∖R)=R∖(R∖L)=L∖(L△R)=L△(L∖R)

L∪R=(L△R)∪L=(L△R)△(L∩R)=(R∖L)∪L (union is disjoint)

L△R=R△L=(L∪R)∖(L∩R)=(L∖R)∪(R∖L) (union is disjoint)=(L△M)△(M△R) where M is an arbitrary set. =(L∁)△(R∁)

L∖R=L∖(L∩R)=L∩(L△R)=L△(L∩R)=R△(L∪R)

De Morgan's laws

De Morgan's laws are the identities:

X∖(L∩R)=(X∖L)∪(X∖R) (De Morgan's law)X∖(L∪R)=(X∖L)∩(X∖R) (De Morgan's law)

where typically L,R⊆X (although this assumption L,R⊆X is unnecessary, as the identities hold for arbitrary sets L,R,X), in which case they can be rewritten

(L∩R)∁=L∁∪R∁ (De Morgan's law)(L∪R)∁=L∁∩R∁ (De Morgan's law)

When an intersection ∩ is on one side then there is a union ∪ on the other. Were there an intersection ∩ on both sides then it would instead be the formula for the left distributivity of set subtraction over intersections, which does not hold in general.

Commutativity

Unions, intersection, and symmetric difference are commutative operations:Template:Sfn

L∪R=R∪L (Commutativity)L∩R=R∩L (Commutativity)L△R=R△L (Commutativity)

Set subtraction is not commutative. However, the commutativity of set subtraction can be characterized: from (L∖R)∩(R∖L)=∅ it follows that: L∖R=R∖L if and only if L=R. Said differently, if distinct symbols always represented distinct sets, then the Template:Em true formulas of the form ⋅∖⋅=⋅∖⋅ that could be written would be those involving a single symbol; that is, those of the form: S∖S=S∖S. But such formulas are necessarily true for Template:Em binary operation ∗ (because x∗x=x∗x must hold by definition of equality), and so in this sense, set subtraction is as diametrically opposite to being commutative as is possible for a binary operation. Set subtraction is also neither left alternative nor right alternative; instead, (L∖L)∖R=L∖(L∖R) if and only if L∩R=∅ if and only if (R∖L)∖L=R∖(L∖L). Set subtraction is quasi-commutative and satisfies the Jordan identity.

Other identities involving two sets

Absorption laws:

L∪(L∩R)=L (Absorption)L∩(L∪R)=L (Absorption)

Other properties

L∖R=L∩(X∖R) Also written L∖R=L∩R∁ where L,R⊆XX∖(L∖R)=(X∖L)∪R Also written (L∖R)∁=L∁∪R where R⊆XL∖R=(X∖R)∖(X∖L) Also written L∖R=R∁∖L∁ where L,R⊆X

Intervals:

(a,b)∩(c,d)=(max⁡{a,c},min⁡{b,d}) [a,b)∩[c,d)=[max⁡{a,c},min⁡{b,d})

Subsets ⊆ and supersets ⊇

The following statements are equivalent for any L,R⊆X:Template:Sfn

  1. L⊆R
  2. L∩R=L
  3. L∪R=R
  4. L△R=R∖L
  5. L△R⊆R∖L
  6. L∖R=∅
  7. L and X∖R are disjoint (that is, L∩(X∖R)=∅)
  8. X∖R⊆X∖L (that is, R∁⊆L∁)

The following statements are equivalent for any L,R⊆X:

  1. L⊈R
  2. There exists some l∈L∖R.

Set equality

Template:See also

The following statements are equivalent:

  1. L=R
  2. L△R=∅
  3. L∖R=R∖L
  • If L∩R=∅ then L=R if and only if L=∅=R.
  • Uniqueness of complements: If L∪R=X and L∩R=∅ then R=X∖L
Empty set

A set L is empty if the sentence ∀x(x∉L) is true, where the notation x∉L is shorthand for ¬(x∈L).

If L is any set then the following are equivalent:

  1. L is not empty, meaning that the sentence ¬[∀x(x∉L)] is true (literally, the logical negation of "L is empty" holds true).
  2. (In classical mathematics) L is inhabited, meaning: ∃x(x∈L)
    • In constructive mathematics, "not empty" and "inhabited" are not equivalent: every inhabited set is not empty but the converse is not always guaranteed; that is, in constructive mathematics, a set L that is not empty (where by definition, "L is empty" means that the statement ∀x(x∉L) is true) might not have an inhabitant (which is an x such that x∈L).
  3. L⊈R for some set R

If L is any set then the following are equivalent:

  1. L is empty (L=∅), meaning: ∀x(x∉L)
  2. L∪R⊆R for every set R
  3. L⊆R for every set R
  4. L⊆R∖L for some/every set R
  5. ∅/L=L

Given any x, the following are equivalent:

  1. x∉L∖R
  2. x∈L∩R or x∉L.
  3. x∈R or x∉L.

Moreover, (L∖R)∩R=∅ always holds.

Meets, Joins, and lattice properties

Inclusion is a partial order: Explicitly, this means that inclusion ⊆, which is a binary operation, has the following three properties:Template:Sfn

The following proposition says that for any set S, the power set of S, ordered by inclusion, is a bounded lattice, and hence together with the distributive and complement laws above, show that it is a Boolean algebra.

Existence of a least element and a greatest element: ∅⊆L⊆X

Joins/supremums exist:Template:Sfn L⊆L∪R

The union L∪R is the join/supremum of L and R with respect to ⊆ because:

  1. L⊆L∪R and R⊆L∪R, and
  2. if Z is a set such that L⊆Z and R⊆Z then L∪R⊆Z.

The intersection L∩R is the join/supremum of L and R with respect to ⊇.

Meets/infimums exist:Template:Sfn L∩R⊆L

The intersection L∩R is the meet/infimum of L and R with respect to ⊆ because:

  1. if L∩R⊆L and L∩R⊆R, and
  2. if Z is a set such that Z⊆L and Z⊆R then Z⊆L∩R.

The union L∪R is the meet/infimum of L and R with respect to ⊇.

Other inclusion properties:

L∖R⊆L (L∖R)∩L=L∖R

  • If L⊆R then L△R=R∖L.
  • If L⊆X and R⊆Y then L×R⊆X×YTemplate:Sfn

Three sets involved

In the left hand sides of the following identities, L is the Template:EmTemplate:Hspeft most set, M is the Template:EmTemplate:Hspiddle set, and R is the Template:EmTemplate:Hspight most set.

Precedence rules

There is no universal agreement on the order of precedence of the basic set operators. Nevertheless, many authors use precedence rules for set operators, although these rules vary with the author.

One common convention is to associate intersection L∩R={x:(x∈L)∧(x∈R)} with logical conjunction (and) L∧R and associate union L∪R={x:(x∈L)∨(x∈R)} with logical disjunction (or) L∨R, and then transfer the precedence of these logical operators (where ∧ has precedence over ∨) to these set operators, thereby giving ∩ precedence over ∪. So for example, L∪M∩R would mean L∪(M∩R) since it would be associated with the logical statement L∨M∧R=L∨(M∧R) and similarly, L∪M∩R∪Z would mean L∪(M∩R)∪Z since it would be associated with L∨M∧R∨Z=L∨(M∧R)∨Z.

Sometimes, set complement (subtraction) ∖ is also associated with logical complement (not) ¬, in which case it will have the highest precedence. More specifically, L∖R={x:(x∈L)∧¬(x∈R)} is rewritten L∧¬R so that for example, L∪M∖R would mean L∪(M∖R) since it would be rewritten as the logical statement L∨M∧¬R which is equal to L∨(M∧¬R). For another example, because L∧¬M∧R means L∧(¬M)∧R, which is equal to both (L∧(¬M))∧R and L∧((¬M)∧R)=L∧(R∧(¬M)) (where (¬M)∧R was rewritten as R∧(¬M)), the formula L∖M∩R would refer to the set (L∖M)∩R=L∩(R∖M); moreover, since L∧(¬M)∧R=(L∧R)∧¬M, this set is also equal to (L∩R)∖M (other set identities can similarly be deduced from propositional calculus identities in this way). However, because set subtraction is not associative (L∖M)∖R≠L∖(M∖R), a formula such as L∖M∖R would be ambiguous; for this reason, among others, set subtraction is often not assigned any precedence at all.

Symmetric difference L△R={x:(x∈L)⊕(x∈R)} is sometimes associated with exclusive or (xor) L⊕R (also sometimes denoted by ⊻), in which case if the order of precedence from highest to lowest is ¬,⊕,∧,∨ then the order of precedence (from highest to lowest) for the set operators would be ∖,△,∩,∪. There is no universal agreement on the precedence of exclusive disjunction ⊕ with respect to the other logical connectives, which is why symmetric difference △ is not often assigned a precedence.

Associativity

Definition: A binary operator ∗ is called associative if (L∗M)∗R=L∗(M∗R) always holds.

The following set operators are associative:Template:Sfn

(L∪M)∪R=L∪(M∪R)(L∩M)∩R=L∩(M∩R)(L△M)△R=L△(M△R)

For set subtraction, instead of associativity, only the following is always guaranteed: (L∖M)∖R⊆L∖(M∖R) where equality holds if and only if L∩R=∅ (this condition does not depend on M). Thus (L∖M)∖R=L∖(M∖R) if and only if (R∖M)∖L=R∖(M∖L), where the only difference between the left and right hand side set equalities is that the locations of L and R have been swapped.

Distributivity

Definition: If ∗ and ∙ are binary operators then Template:Em if L∗(M∙R)=(L∗M)∙(L∗R) for all L,M,R while Template:Em if (L∙M)∗R=(L∗R)∙(M∗R) for all L,M,R. The operator Template:Em if it both left distributes and right distributes over ∙. In the definitions above, to transform one side to the other, the innermost operator (the operator inside the parentheses) becomes the outermost operator and the outermost operator becomes the innermost operator.

Right distributivity:Template:Sfn

(L∩M)∪R=(L∪R)∩(M∪R) (Right-distributivity of ∪ over ∩)(L∪M)∪R=(L∪R)∪(M∪R) (Right-distributivity of ∪ over ∪)(L∪M)∩R=(L∩R)∪(M∩R) (Right-distributivity of ∩ over ∪)(L∩M)∩R=(L∩R)∩(M∩R) (Right-distributivity of ∩ over ∩)(L△M)∩R=(L∩R)△(M∩R) (Right-distributivity of ∩ over △)(L∩M)×R=(L×R)∩(M×R) (Right-distributivity of × over ∩)(L∪M)×R=(L×R)∪(M×R) (Right-distributivity of × over ∪)(L∖M)×R=(L×R)∖(M×R) (Right-distributivity of × over ∖)(L△M)×R=(L×R)△(M×R) (Right-distributivity of × over △)(L∪M)∖R=(L∖R)∪(M∖R) (Right-distributivity of ∖ over ∪)(L∩M)∖R=(L∖R)∩(M∖R) (Right-distributivity of ∖ over ∩)(L△M)∖R=(L∖R)△(M∖R) (Right-distributivity of ∖ over △)(L∖M)∖R=(L∖R)∖(M∖R) (Right-distributivity of ∖ over ∖)=L∖(M∪R)

Left distributivity:Template:Sfn

L∪(M∩R)=(L∪M)∩(L∪R) (Left-distributivity of ∪ over ∩)L∪(M∪R)=(L∪M)∪(L∪R) (Left-distributivity of ∪ over ∪)L∩(M∪R)=(L∩M)∪(L∩R) (Left-distributivity of ∩ over ∪)L∩(M∩R)=(L∩M)∩(L∩R) (Left-distributivity of ∩ over ∩)L∩(M△R)=(L∩M)△(L∩R) (Left-distributivity of ∩ over △)L×(M∩R)=(L×M)∩(L×R) (Left-distributivity of × over ∩)L×(M∪R)=(L×M)∪(L×R) (Left-distributivity of × over ∪)L×(M∖R)=(L×M)∖(L×R) (Left-distributivity of × over ∖)L×(M△R)=(L×M)△(L×R) (Left-distributivity of × over △)

Distributivity and symmetric difference Template:Math

Intersection distributes over symmetric difference: L∩(M△R)=(L∩M)△(L∩R) (L△M)∩R=(L∩R)△(M∩R)

Union does not distribute over symmetric difference because only the following is guaranteed in general: L∪(M△R)⊇(L∪M)△(L∪R)=(M△R)∖L=(M∖L)△(R∖L)

Symmetric difference does not distribute over itself: L△(M△R)≠(L△M)△(L△R)=M△R and in general, for any sets L and A (where A represents M△R), L△A might not be a subset, nor a superset, of L (and the same is true for A).

Distributivity and set subtraction Template:Math

Failure of set subtraction to left distribute:

Set subtraction is Template:Em distributive over itself. However, set subtraction is Template:Em left distributive over itself because only the following is guaranteed in general: L∖(M∖R)⊇(L∖M)∖(L∖R)=L∩R∖M where equality holds if and only if L∖M=L∩R, which happens if and only if L∩M∩R=∅ and L∖M⊆R.

For symmetric difference, the sets L∖(M△R) and (L∖M)△(L∖R)=L∩(M△R) are always disjoint. So these two sets are equal if and only if they are both equal to ∅. Moreover, L∖(M△R)=∅ if and only if L∩M∩R=∅ and L⊆M∪R.

To investigate the left distributivity of set subtraction over unions or intersections, consider how the sets involved in (both of) De Morgan's laws are all related: (L∖M)∩(L∖R)=L∖(M∪R)⊆L∖(M∩R)=(L∖M)∪(L∖R) always holds (the equalities on the left and right are De Morgan's laws) but equality is not guaranteed in general (that is, the containment ⊆ might be strict). Equality holds if and only if L∖(M∩R)⊆L∖(M∪R), which happens if and only if L∩M=L∩R.

This observation about De Morgan's laws shows that ∖ is Template:Em left distributive over ∪ or ∩ because only the following are guaranteed in general: L∖(M∪R)⊆(L∖M)∪(L∖R)=L∖(M∩R) L∖(M∩R)⊇(L∖M)∩(L∖R)=L∖(M∪R) where equality holds for one (or equivalently, for both) of the above two inclusion formulas if and only if L∩M=L∩R.

The following statements are equivalent:

  1. L∩M=L∩R
  2. L∖M=L∖R
  3. L∖(M∩R)=(L∖M)∩(L∖R); that is, ∖ left distributes over ∩ for these three particular sets
  4. L∖(M∪R)=(L∖M)∪(L∖R); that is, ∖ left distributes over ∪ for these three particular sets
  5. L∖(M∩R)=L∖(M∪R)
  6. L∩(M∪R)=L∩M∩R
  7. L∩(M∪R)⊆M∩R
  8. L∩R⊆M and L∩M⊆R
  9. L∖(M∖R)=L∖(R∖M)
  10. L∖(M∖R)=L∖(R∖M)=L

Quasi-commutativity: (L∖M)∖R=(L∖R)∖M (Quasi-commutative) always holds but in general, L∖(M∖R)≠L∖(R∖M). However, L∖(M∖R)⊆L∖(R∖M) if and only if L∩R⊆M if and only if L∖(R∖M)=L.

Set subtraction complexity: To manage the many identities involving set subtraction, this section is divided based on where the set subtraction operation and parentheses are located on the left hand side of the identity. The great variety and (relative) complexity of formulas involving set subtraction (compared to those without it) is in part due to the fact that unlike ∪,∩, and △, set subtraction is neither associative nor commutative and it also is not left distributive over ∪,∩,△, or even over itself.

Two set subtractions

Set subtraction is Template:Em associative in general: (L∖M)∖R≠L∖(M∖R) since only the following is always guaranteed: (L∖M)∖R⊆L∖(M∖R).

(L∖M)∖R=L∖(M∪R)=(L∖R)∖M=(L∖M)∩(L∖R)=(L∖R)∖M=(L∖R)∖(M∖R)

L∖(M∖R)=(L∖M)∪(L∩R)

  • If L⊆M then L∖(M∖R)=L∩R
  • L∖(M∖R)⊆(L∖M)∪R with equality if and only if R⊆L.

One set subtraction

Set subtraction on the left, and parentheses on the Template:Em

(L∖M)∪R=(L∪R)∖(M∖R)=(L∖(M∪R))∪R (the outermost union is disjoint) 

(L∖M)∩R=(L∩R)∖(M∩R) (Distributive law of ∩ over ∖ )=(L∩R)∖M=L∩(R∖M)Template:Sfn

(L∖M)∩(L∖R)=L∖(M∪R)⊆L∖(M∩R)=(L∖M)∪(L∖R) (L∖M)△R=(L∖(M∪R))∪(R∖L)∪(L∩M∩R) (the three outermost sets are pairwise disjoint) 

(L∖M)×R=(L×R)∖(M×R) (Distributivity)

Set subtraction on the left, and parentheses on the Template:Em

L∖(M∪R)=(L∖M)∩(L∖R) (De Morgan's law) =(L∖M)∖R=(L∖R)∖M

L∖(M∩R)=(L∖M)∪(L∖R) (De Morgan's law)  where the above two sets that are the subjects of De Morgan's laws always satisfy L∖(M∪R)⊆L∖(M∩R).

L∖(M△R)=(L∖(M∪R))∪(L∩M∩R) (the outermost union is disjoint) 

Set subtraction on the right, and parentheses on the Template:Em

(L∪M)∖R=(L∖R)∪(M∖R)

(L∩M)∖R=(L∖R)∩(M∖R)=L∩(M∖R)=M∩(L∖R)

(L△M)∖R=(L∖R)△(M∖R)=(L∪R)△(M∪R)

Set subtraction on the right, and parentheses on the Template:Em

L∪(M∖R)=L∪(M∖(R∪L)) (the outermost union is disjoint) =[(L∖M)∪(R∩L)]∪(M∖R) (the outermost union is disjoint) =(L∖(M∪R))∪(R∩L)∪(M∖R) (the three outermost sets are pairwise disjoint) 

L∩(M∖R)=(L∩M)∖(L∩R) (Distributive law of ∩ over ∖ )=(L∩M)∖R=M∩(L∖R)=(L∖R)∩(M∖R)Template:Sfn

L×(M∖R)=(L×M)∖(L×R) (Distributivity)

Three operations on three sets

Operations of the form (L∙M)∗(M∙R):

(L∪M)∪(M∪R)=L∪M∪R(L∪M)∩(M∪R)=M∪(L∩R)(L∪M)∖(M∪R)=L∖(M∪R)(L∪M)△(M∪R)=(L∖(M∪R))∪(R∖(L∪M))=(L△R)∖M(L∩M)∪(M∩R)=M∩(L∪R)(L∩M)∩(M∩R)=L∩M∩R(L∩M)∖(M∩R)=(L∩M)∖R(L∩M)△(M∩R)=[(L∩M)∪(M∩R)]∖(L∩M∩R)(L∖M)∪(M∖R)=(L∪M)∖(M∩R)(L∖M)∩(M∖R)=∅(L∖M)∖(M∖R)=L∖M(L∖M)△(M∖R)=(L∖M)∪(M∖R)=(L∪M)∖(M∩R)(L△M)∪(M△R)=(L∪M∪R)∖(L∩M∩R)(L△M)∩(M△R)=((L∩R)∖M)∪(M∖(L∪R))(L△M)∖(M△R)=(L∖(M∪R))∪((M∩R)∖L)(L△M)△(M△R)=L△R

Operations of the form (L∙M)∗(R∖M):

(L∪M)∪(R∖M)=L∪M∪R(L∪M)∩(R∖M)=(L∩R)∖M(L∪M)∖(R∖M)=M∪(L∖R)(L∪M)△(R∖M)=M∪(L△R)(L∩M)∪(R∖M)=[L∩(M∪R)]∪[R∖(L∪M)] (disjoint union)=(L∩M)△(R∖M)(L∩M)∩(R∖M)=∅(L∩M)∖(R∖M)=L∩M(L∩M)△(R∖M)=(L∩M)∪(R∖M) (disjoint union)(L∖M)∪(R∖M)=L∪R∖M(L∖M)∩(R∖M)=(L∩R)∖M(L∖M)∖(R∖M)=L∖(M∪R)(L∖M)△(R∖M)=(L△R)∖M(L△M)∪(R∖M)=(L∪M∪R)∖(L∩M)(L△M)∩(R∖M)=(L∩R)∖M(L△M)∖(R∖M)=[L∖(M∪R)]∪(M∖L) (disjoint union)=(L△M)∖(L∩R)(L△M)△(R∖M)=L△(M∪R)

Operations of the form (L∖M)∗(L∖R):

(L∖M)∪(L∖R)=L∖(M∩R)(L∖M)∩(L∖R)=L∖(M∪R)(L∖M)∖(L∖R)=(L∩R)∖M(L∖M)△(L∖R)=L∩(M△R)=(L∩M)△(L∩R)

Other simplifications

Other properties:

L∩M=R and L∩R=M if and only if M=R⊆L.

  • If L⊆M then L∖R=L∩(M∖R).Template:Sfn
  • L×(M∖R)=(L×M)∖(L×R)
  • If L⊆R then M∖R⊆M∖L.
  • L∩M∩R=∅ if and only if for any x∈L∪M∪R, x belongs to Template:Em of the sets L,M, and R.

Symmetric difference ∆ of finitely many sets

Given finitely many sets L1,…,Ln, something belongs to their symmetric difference if and only if it belongs to an odd number of these sets. Explicitly, for any x, x∈L1△⋯△Ln if and only if the cardinality |{i:x∈Li}| is odd. (Recall that symmetric difference is associative so parentheses are not needed for the set L1△⋯△Ln).

Consequently, the symmetric difference of three sets satisfies: L△M△R=(L∩M∩R)∪{x:x belongs to exactly one of the sets L,M,R} (the union is disjoint) =[L∩M∩R]∪[L∖(M∪R)]∪[M∖(L∪R)]∪[R∖(L∪M)] (all 4 sets enclosed by [ ] are pairwise disjoint) 

Cartesian products Template:Math of finitely many sets

The binary Cartesian product ⨯ distributes over unions, intersections, set subtraction, and symmetric difference:

(L∩M)×R=(L×R)∩(M×R) (Right-distributivity of × over ∩)(L∪M)×R=(L×R)∪(M×R) (Right-distributivity of × over ∪)(L∖M)×R=(L×R)∖(M×R) (Right-distributivity of × over ∖)(L△M)×R=(L×R)△(M×R) (Right-distributivity of × over △)

L×(M∩R)=(L×M)∩(L×R) (Left-distributivity of × over ∩)L×(M∪R)=(L×M)∪(L×R) (Left-distributivity of × over ∪)L×(M∖R)=(L×M)∖(L×R) (Left-distributivity of × over ∖)L×(M△R)=(L×M)△(L×R) (Left-distributivity of × over △)

But in general, ⨯ does not distribute over itself: L×(M×R)≠(L×M)×(L×R) (L×M)×R≠(L×R)×(M×R).

Binary Template:Math of finite Template:Math

(L×R)∩(L2×R2)=(L∩L2)×(R∩R2) (L×M×R)∩(L2×M2×R2)=(L∩L2)×(M∩M2)×(R∩R2)

Binary Template:Math of finite Template:Math

(L×R)∪(L2×R2)=[(L∖L2)×R]∪[(L2∖L)×R2]∪[(L∩L2)×(R∪R2)]=[L×(R∖R2)]∪[L2×(R2∖R)]∪[(L∪L2)×(R∩R2)]

Difference Template:Math of finite Template:Math

(L×R)∖(L2×R2)=[(L∖L2)×R]∪[L×(R∖R2)] and (L×M×R)∖(L2×M2×R2)=[(L∖L2)×M×R]∪[L×(M∖M2)×R]∪[L×M×(R∖R2)]

Finite Template:Math of differences Template:Math

(L∖L2)×(R∖R2)=(L×R)∖[(L2×R)∪(L×R2)]

(L∖L2)×(M∖M2)×(R∖R2)=(L×M×R)∖[(L2×M×R)∪(L×M2×R)∪(L×M×R2)]

Symmetric difference Template:Math and finite Template:Math

L×(R△R2)=[L×(R∖R2)]∪[L×(R2∖R)] (L△L2)×R=[(L∖L2)×R]∪[(L2∖L)×R]

(L△L2)×(R△R2)=[(L∪L2)×(R∪R2)]∖[((L∩L2)×R)∪(L×(R∩R2))]=[(L∖L2)×(R2∖R)]∪[(L2∖L)×(R2∖R)]∪[(L∖L2)×(R∖R2)]∪[(L2∖L)∪(R∖R2)]

(L△L2)×(M△M2)×(R△R2)=[(L∪L2)×(M∪M2)×(R∪R2)]∖[((L∩L2)×M×R)∪(L×(M∩M2)×R)∪(L×M×(R∩R2))]

In general, (L△L2)×(R△R2) need not be a subset nor a superset of (L×R)△(L2×R2).

(L×R)△(L2×R2)=(L×R)∪(L2×R2)∖[(L∩L2)×(R∩R2)]

(L×M×R)△(L2×M2×R2)=(L×M×R)∪(L2×M2×R2)∖[(L∩L2)×(M∩M2)×(R∩R2)]

Arbitrary families of sets

Let (Li)i∈I, (Rj)j∈J, and (Si,j)(i,j)∈I×J be indexed families of sets. Whenever the assumption is needed, then all indexing sets, such as I and J, are assumed to be non-empty.

Definitions

A Template:Em or (more briefly) a Template:Em refers to a set whose elements are sets.

An Template:Em is a function from some set, called its Template:Em, into some family of sets. An indexed family of sets will be denoted by (Li)i∈I, where this notation assigns the symbol I for the indexing set and for every index i∈I, assigns the symbol Li to the value of the function at i. The function itself may then be denoted by the symbol L∙, which is obtained from the notation (Li)i∈I by replacing the index i with a bullet symbol ∙; explicitly, L∙ is the function: L∙:I→{Li:i∈I}i↦Li which may be summarized by writing L∙=(Li)i∈I.

Any given indexed family of sets L∙=(Li)i∈I (which is a function) can be canonically associated with its image/range Im⁡L∙=def{Li:i∈I} (which is a family of sets). Conversely, any given family of sets ℬ may be associated with the ℬ-indexed family of sets (B)B∈ℬ, which is technically the identity map ℬ→ℬ. However, this is Template:Em a bijective correspondence because an indexed family of sets L∙=(Li)i∈I is Template:Em required to be injective (that is, there may exist distinct indices i≠j such as Li=Lj), which in particular means that it is possible for distinct indexed families of sets (which are functions) to be associated with the same family of sets (by having the same image/range).

Arbitrary unions definedTemplate:Sfn Template:NumBlk

If I=∅ then ⋃i∈∅Li={x: there exists i∈∅ such that x∈Li}=∅, which is somethings called the Template:Em (despite being called a convention, this equality follows from the definition).

If ℬ is a family of sets then ∪ℬ denotes the set: ⋃ℬ=def⋃B∈ℬB=def{x: there exists B∈ℬ such that x∈B}.

Arbitrary intersections defined

If I≠∅ thenTemplate:Sfn Template:NumBlk

If ℬ≠∅ is a Template:Em family of sets then ∩ℬ denotes the set: ⋂ℬ=def⋂B∈BB=def{x:x∈B for every B∈ℬ}={x: for all B, if B∈ℬ then x∈B}.

Nullary intersections

If I=∅ then ⋂i∈∅Li={x: for all i, if i∈∅ then x∈Li} where every possible thing x in the universe vacuously satisfied the condition: "if i∈∅ then x∈Li". Consequently, ⋂i∈∅Li={x: true } consists of Template:Em in the universe.

So if I=∅ and:

  1. if you are working in a model in which there exists some [[Universe set|universe Template:Em]] X then ⋂i∈∅Li={x:x∈Li for every i∈∅}=X.
  2. otherwise, if you are working in a model in which "the class of all things x" is not a set (by far the most common situation) then ⋂i∈∅Li is Template:Em because ⋂i∈∅Li consists of Template:Em, which makes ⋂i∈∅Li a proper class and Template:Em a set.
Assumption: Henceforth, whenever a formula requires some indexing set to be non-empty in order for an arbitrary intersection to be well-defined, then this will automatically be assumed without mention.

A consequence of this is the following assumption/definition:

A Template:Em of sets or an Template:Em refers to the intersection of a finite collection of Template:Em sets.

Some authors adopt the so called Template:Em, which is the convention that an empty intersection of sets is equal to some canonical set. In particular, if all sets are subsets of some set X then some author may declare that the empty intersection of these sets be equal to X. However, the nullary intersection convention is not as commonly accepted as the nullary union convention and this article will not adopt it (this is due to the fact that unlike the empty union, the value of the empty intersection depends on X so if there are multiple sets under consideration, which is commonly the case, then the value of the empty intersection risks becoming ambiguous).

Multiple index sets ⋃j∈Ji∈I,Si,j=def⋃(i,j)∈I×JSi,j ⋂j∈Ji∈I,Si,j=def⋂(i,j)∈I×JSi,j

Distributing unions and intersections

Binary ⋂ of arbitrary ⋃'sTemplate:Anchor

Template:NumBlk andTemplate:Sfn Template:NumBlk

  • If all (Li)i∈I are pairwise disjoint and all (Rj)j∈J are also pairwise disjoint, then so are all (Li∩Rj)(i,j)∈I×J (that is, if (i,j)≠(i2,j2) then (Li∩Rj)∩(Li2∩Rj2)=∅).

Template:Anchor

  • Importantly, if I=J then in general, (⋃i∈ILi)∩(⋃i∈IRi)≠⋃i∈I(Li∩Ri) (an example of this is given below). The single union on the right hand side Template:Em be over all pairs (i,j)∈I×I: (⋃i∈ILi)∩(⋃i∈IRi)=⋃j∈Ii∈I,(Li∩Rj). The same is usually true for other similar non-trivial set equalities and relations that depend on two (potentially unrelated) indexing sets I and J (such as Template:EquationNote or Template:EquationNoteTemplate:Sfn). Two exceptions are Template:EquationNote (unions of unions) and Template:EquationNote (intersections of intersections), but both of these are among the most trivial of set equalities (although even for these equalities there is still something that must be proven[note 2]).
  • Template:Visible anchor: Let X≠∅ and let I={1,2}. Let L1:=R2:=X and let L2:=R1:=∅. Then X=X∩X=(L1∪L2)∩(R2∪R2)=(⋃i∈ILi)∩(⋃i∈IRi)≠⋃i∈I(Li∩Ri)=(L1∩R1)∪(L2∩R2)=∅∪∅=∅. Furthermore, ∅=∅∪∅=(L1∩L2)∪(R2∩R2)=(⋂i∈ILi)∪(⋂i∈IRi)≠⋂i∈I(Li∪Ri)=(L1∪R1)∩(L2∪R2)=X∩X=X.

Binary ⋃ of arbitrary ⋂'sTemplate:Anchor

Template:NumBlk andTemplate:Sfn Template:NumBlk

  • Importantly, if I=J then in general, (⋂i∈ILi)∪(⋂i∈IRi)≠⋂i∈I(Li∪Ri) (an example of this is given above). The single intersection on the right hand side Template:Em be over all pairs (i,j)∈I×I: (⋂i∈ILi)∪(⋂i∈IRi)=⋂j∈Ii∈I,(Li∪Rj).

Arbitrary ⋂'s and arbitrary ⋃'sTemplate:Anchor

Incorrectly distributing by swapping ⋂ and ⋃Template:Anchor

Naively swapping ⋃i∈I and ⋂j∈J may produce a different setTemplate:Anchor

The following inclusion always holds: Template:NumBlk

In general, equality need not hold and moreover, the right hand side depends on how for each fixed i∈I, the sets (Si,j)j∈J are labelled; and analogously, the left hand side depends on how for each fixed j∈J, the sets (Si,j)i∈I are labelled. An example demonstrating this is now given.

  • Example of dependence on labeling and failure of equality: To see why equality need not hold when ∪ and ∩ are swapped, let I:=J:={1,2}, and let S11={1,2},S12={1,3},S21={3,4}, and S22={2,4}. Then {1,4}={1}∪{4}=(S11∩S12)∪(S21∩S22)=⋃i∈I(⋂j∈JSi,j)≠⋂j∈J(⋃i∈ISi,j)=(S11∪S21)∩(S12∪S22)={1,2,3,4}. If S11 and S21 are swapped while S12 and S22 are unchanged, which gives rise to the sets Ŝ11:={3,4},Ŝ12:={1,3},Ŝ21:={1,2}, and Ŝ22:={2,4}, then {2,3}={3}∪{2}=(Ŝ11∩Ŝ12)∪(Ŝ21∩Ŝ22)=⋃i∈I(⋂j∈JŜi,j)≠⋂j∈J(⋃i∈IŜi,j)=(Ŝ11∪Ŝ21)∩(Ŝ12∪Ŝ22)={1,2,3,4}. In particular, the left hand side is no longer {1,4}, which shows that the left hand side ⋃i∈I⋂j∈JSi,j depends on how the sets are labelled. If instead S11 and S12 are swapped while S21 and S22 are unchanged, which gives rise to the sets S‾11:={1,3},S‾12:={1,2},S‾21:={3,4}, and S‾22:={2,4}, then both the left hand side and right hand side are equal to {1,4}, which shows that the right hand side also depends on how the sets are labeled.

Equality in Template:EquationNote can hold under certain circumstances, such as in Template:EquationNote, which is the special case where (Si,j)(i,j)∈I×J is (Li∖Rj)(i,j)∈I×J (that is, Si,j:=Li∖Rj with the same indexing sets I and J), or such as in Template:EquationNote, which is the special case where (Si,j)(i,j)∈I×J is (Li∖Rj)(j,i)∈J×I (that is, Ŝj,i:=Li∖Rj with the indexing sets I and J swapped). For a correct formula that extends the distributive laws, an approach other than just switching ∪ and ∩ is needed.

Correct distributive lawsTemplate:Anchor

Suppose that for each i∈I, Ji is a non-empty index set and for each j∈Ji, let Ti,j be any set (for example, to apply this law to (Si,j)(i,j)∈I×J, use Ji:=J for all i∈I and use Ti,j:=Si,j for all i∈I and all j∈Ji=J). Let ∏J∙=def∏i∈IJi denote the Cartesian product, which can be interpreted as the set of all functions f:I→⋃i∈IJi such that f(i)∈Ji for every i∈I. Such a function may also be denoted using the tuple notation (fi)i∈I where fi=deff(i) for every i∈I and conversely, a tuple (fi)i∈I is just notation for the function with domain I whose value at i∈I is fi; both notations can be used to denote the elements of ∏J∙. Then Template:NumBlk Template:NumBlk

where ∏J∙=def∏i∈IJi.

Applying the distributive lawsTemplate:Anchor

Template:Em: In the particular case where all Ji are equal (that is, Ji=Ji2 for all i,i2∈I, which is the case with the family (Si,j)(i,j)∈I×J, for example), then letting J denote this common set, the Cartesian product will be ∏J∙=def∏i∈IJi=∏i∈IJ=JI, which is the set of all functions of the form f:I→J. The above set equalities Template:EquationNote and Template:EquationNote, respectively become:Template:Sfn ⋂i∈I⋃j∈JSi,j=⋃f∈JI⋂i∈ISi,f(i) ⋃i∈I⋂j∈JSi,j=⋂f∈JI⋃i∈ISi,f(i)

which when combined with Template:EquationNote implies: ⋃i∈I⋂j∈JSi,j=⋂f∈JI⋃i∈ISi,f(i)⊆⋃g∈IJ⋂j∈JSg(j),j=⋂j∈J⋃i∈ISi,j where

  • on the left hand side, the indices f and i range over f∈JI and i∈I (so the subscripts of Si,f(i) range over i∈I and f(i)∈f(I)⊆J)
  • on the right hand side, the indices g and j range over g∈IJ and j∈J (so the subscripts of Sg(j),j range over j∈J and g(j)∈g(J)⊆I).


Template:Em: To apply the general formula to the case of (Ck)k∈K and (Dl)l∈L, use I:={1,2}, J1:=K, J2:=L, and let T1,k:=Ck for all k∈J1 and let T2,l:=Dl for all l∈J2. Every map f∈∏J∙=def∏i∈IJi=J1×J2=K×L can be bijectively identified with the pair (f(1),f(2))∈K×L (the inverse sends (k,l)∈K×L to the map f(k,l)∈∏J∙ defined by 1↦k and 2↦l; this is technically just a change of notation). Recall that Template:EquationNote was ⋂i∈I⋃j∈JiTi,j=⋃f∈∏J∙⋂i∈ITi,f(i). Expanding and simplifying the left hand side gives ⋂i∈I⋃j∈JiTi,j=(⋃j∈J1T1,j)∩(⋃j∈J2T2,j)=(⋃k∈KT1,k)∩(⋃l∈LT2,l)=(⋃k∈KCk)∩(⋃l∈LDl) and doing the same to the right hand side gives: ⋃f∈∏J∙⋂i∈ITi,f(i)=⋃f∈∏J∙(T1,f(1)∩T2,f(2))=⋃f∈∏J∙(Cf(1)∩Df(2))=⋃(k,l)∈K×L(Ck∩Dl)=⋃l∈Lk∈K,(Ck∩Dl).

Thus the general identity Template:EquationNote reduces down to the previously given set equality Template:EquationNote: (⋃k∈KCk)∩⋃l∈LDl=⋃l∈Lk∈K,(Ck∩Dl).

Distributing subtraction over ⋃ and ⋂Template:Anchor

Template:NumBlk Template:NumBlk The next identities are known as De Morgan's laws.Template:Sfn Template:NumBlk Template:NumBlk

The following four set equalities can be deduced from the equalities Template:EquationNote - Template:EquationNote above. Template:NumBlk Template:NumBlk Template:NumBlk Template:NumBlk

In general, naively swapping ∪ and ∩ may produce a different set (see this note for more details). The equalities ⋃i∈I⋂j∈J(Li∖Rj)=⋂j∈J⋃i∈I(Li∖Rj) and ⋃j∈J⋂i∈I(Li∖Rj)=⋂i∈I⋃j∈J(Li∖Rj) found in Template:EquationNote and Template:EquationNote are thus unusual in that they state exactly that swapping ∪ and ∩ will Template:Em change the resulting set.

Commutativity and associativity of ⋃ and ⋂Template:Anchor

Commutativity:Template:Sfn

⋃j∈Ji∈I,Si,j=def⋃(i,j)∈I×JSi,j=⋃i∈I(⋃j∈JSi,j)=⋃j∈J(⋃i∈ISi,j)

⋂j∈Ji∈I,Si,j=def⋂(i,j)∈I×JSi,j=⋂i∈I(⋂j∈JSi,j)=⋂j∈J(⋂i∈ISi,j)

Unions of unions and intersections of intersections:Template:Sfn

(⋃i∈ILi)∪R=⋃i∈I(Li∪R) (⋂i∈ILi)∩R=⋂i∈I(Li∩R) andTemplate:Sfn Template:NumBlk Template:NumBlk

and if I=J then also:[note 2]Template:Sfn Template:NumBlk Template:NumBlk

Cartesian products Template:Math of arbitrarily many sets

Intersections Template:Math of Template:Math

If (Si,j)(i,j)∈I×J is a family of sets then Template:NumBlk

  • Moreover, a tuple (xi)i∈I belongs to the set in Template:EquationNote above if and only if xi∈Si,j for all i∈I and all j∈J.

In particular, if (Li)i∈I and (Ri)i∈I are two families indexed by the same set then (∏i∈ILi)∩∏i∈IRi=∏i∈I(Li∩Ri) So for instance, (L×R)∩(L2×R2)=(L∩L2)×(R∩R2) (L×R)∩(L2×R2)∩(L3×R3)=(L∩L2∩L3)×(R∩R2∩R3) and (L×M×R)∩(L2×M2×R2)=(L∩L2)×(M∩M2)×(R∩R2)

Intersections of products indexed by different sets

Let (Li)i∈I and (Rj)j∈J be two families indexed by different sets.

Technically, I≠J implies (∏i∈ILi)∩∏j∈JRj=∅. However, sometimes these products are somehow identified as the same set through some bijection or one of these products is identified as a subset of the other via some injective map, in which case (by abuse of notation) this intersection may be equal to some other (possibly non-empty) set.

  • For example, if I:={1,2} and J:={1,2,3} with all sets equal to ℝ then ∏i∈ILi=∏i∈{1,2}ℝ=ℝ2 and ∏j∈JRj=∏j∈{1,2,3}ℝ=ℝ3 where ℝ2∩ℝ3=∅ Template:Em, for example, ∏i∈{1,2}ℝ=ℝ2 is identified as a subset of ∏j∈{1,2,3}ℝ=ℝ3 through some injection, such as maybe (x,y)↦(x,y,0) for instance; however, in this particular case the product ∏i∈I={1,2}Li actually represents the J-indexed product ∏j∈J={1,2,3}Li where L3:={0}.
  • For another example, take I:={1,2} and J:={1,2,3} with L1:=ℝ2 and L2,R1,R2, and R3 all equal to ℝ. Then ∏i∈ILi=ℝ2×ℝ and ∏j∈JRj=ℝ×ℝ×ℝ, which can both be identified as the same set via the bijection that sends ((x,y),z)∈ℝ2×ℝ to (x,y,z)∈ℝ×ℝ×ℝ. Under this identification, (∏i∈ILi)∩∏j∈JRj=ℝ3.

Binary Template:Math distributes over arbitrary Template:Math and Template:Math

The binary Cartesian product ⨯ distributes over arbitrary intersections (when the indexing set is not empty) and over arbitrary unions:

L×(⋃i∈IRi)=⋃i∈I(L×Ri) (Left-distributivity of × over ∪)L×(⋂i∈IRi)=⋂i∈I(L×Ri) (Left-distributivity of × over ⋂i∈I when I≠∅)(⋃i∈ILi)×R=⋃i∈I(Li×R) (Right-distributivity of × over ∪)(⋂i∈ILi)×R=⋂i∈I(Li×R) (Right-distributivity of × over ⋂i∈I when I≠∅)

Distributing arbitrary Template:Math over arbitrary Template:MathTemplate:Anchor

Suppose that for each i∈I, Ji is a non-empty index set and for each j∈Ji, let Ti,j be any set (for example, to apply this law to (Si,j)(i,j)∈I×J, use Ji:=J for all i∈I and use Ti,j:=Si,j for all i∈I and all j∈Ji=J). Let ∏J∙=def∏i∈IJi denote the Cartesian product, which (as mentioned above) can be interpreted as the set of all functions f:I→⋃i∈IJi such that f(i)∈Ji for every i∈I. Then Template:NumBlk

where ∏J∙=def∏i∈IJi.

For unions, only the following is guaranteed in general: ⋃j∈J∏i∈ISi,j⊆∏i∈I⋃j∈JSi,j and ⋃i∈I∏j∈JSi,j⊆∏j∈J⋃i∈ISi,j where (Si,j)(i,j)∈I×J is a family of sets.

  • Example where equality fails: Let I=J={1,2}, let S1,1=S2,2=∅, let X≠∅, and let S1,2=S2,1=X. Then ∅=∅∪∅=(∏i∈ISi,1)∪(∏i∈ISi,2)=⋃j∈J∏i∈ISi,j≠∏i∈I⋃j∈JSi,j=(⋃j∈JS1,j)×(⋃j∈JS2,j)=X×X. More generally, ∅=⋃j∈J∏i∈ISi,j if and only if for each j∈J, at least one of the sets in the I-indexed collections of sets S∙,j=(Si,j)i∈I is empty, while ∏i∈I⋃j∈JSi,j≠∅ if and only if for each i∈I, at least one of the sets in the J-indexed collections of sets Si,∙=(Si,j)j∈J is not empty.

However, (L×R)∪(L2×R2)=[(L∖L2)×R]∪[(L2∖L)×R2]∪[(L∩L2)×(R∪R2)]=[L×(R∖R2)]∪[L2×(R2∖R)]∪[(L∪L2)×(R∩R2)]

If (Li)i∈I and (Ri)i∈I are two families of sets then: (∏i∈ILi)∖∏i∈IRi=⋃j∈I∏i∈I{Lj∖Rj if i=jLi if i≠j=⋃j∈I[(Lj∖Rj)×∏j≠ii∈I,Li]=⋃Lj⊈Rjj∈I,[(Lj∖Rj)×∏j≠ii∈I,Li] so for instance, (L×R)∖(L2×R2)=[(L∖L2)×R]∪[L×(R∖R2)] and (L×M×R)∖(L2×M2×R2)=[(L∖L2)×M×R]∪[L×(M∖M2)×R]∪[L×M×(R∖R2)]

Symmetric difference Template:Math of Template:Math

(∏i∈ILi)△(∏i∈IRi)=(∏i∈ILi)∪(∏i∈IRi)∖∏i∈ILi∩Ri

Functions and sets

Template:See also

Let f:X→Y be any function.

Let L and R be completely arbitrary sets. Assume A⊆X and C⊆Y.

Definitions

Let f:X→Y be any function, where we denote its Template:Em X by domain⁡f and denote its Template:Em Y by codomain⁡f.

Many of the identities below do not actually require that the sets be somehow related to f's domain or codomain (that is, to X or Y) so when some kind of relationship is necessary then it will be clearly indicated. Because of this, in this article, if L is declared to be "Template:Em," and it is not indicated that L must be somehow related to X or Y (say for instance, that it be a subset X or Y) then it is meant that L is truly arbitrary.[note 3] This generality is useful in situations where f:X→Y is a map between two subsets X⊆U and Y⊆V of some larger sets U and V, and where the set L might not be entirely contained in X=domain⁡f and/or Y=codomain⁡f (e.g. if all that is known about L is that L⊆U); in such a situation it may be useful to know what can and cannot be said about f(L) and/or f−1(L) without having to introduce a (potentially unnecessary) intersection such as: f(L∩X) and/or f−1(L∩Y).

Images and preimages of sets

If L is Template:Em set then the Template:Em is defined to be the set: f(L)=def{f(l):l∈L∩domain⁡f} while the Template:Em is: f−1(L)=def{x∈domain⁡f:f(x)∈L} where if L={s} is a singleton set then the Template:Em or Template:Em is f−1(s)=deff−1({s})={x∈domain⁡f:f(x)=s}.

Denote by Im⁡f or image⁡f the Template:Em or Template:Em of f:X→Y, which is the set: Im⁡f=deff(X)=deff(domain⁡f)={f(x):x∈domain⁡f}.

Saturated sets

Template:Main

A set A is said to be Template:Em or a Template:Em if any of the following equivalent conditions are satisfied:Template:Sfn

  1. There exists a set R such that A=f−1(R).
    • Any such set R necessarily contains f(A) as a subset.
    • Any set not entirely contained in the domain of f cannot be f-saturated.
  2. A=f−1(f(A)).
  3. A⊇f−1(f(A)) and A⊆domain⁡f.
    • The inclusion L∩domain⁡f⊆f−1(f(L)) always holds, where if A⊆domain⁡f then this becomes A⊆f−1(f(A)).
  4. A⊆domain⁡f and if a∈A and x∈domain⁡f satisfy f(x)=f(a), then x∈A.
  5. Whenever a fiber of f intersects A, then A contains the entire fiber. In other words, A contains every f-fiber that intersects it.
    • Explicitly: whenever y∈Im⁡f is such that A∩f−1(y)≠∅, then f−1(y)⊆A.
    • In both this statement and the next, the set Im⁡f may be replaced with any superset of Im⁡f (such as codomain⁡f) and the resulting statement will still be equivalent to the rest.
  6. The intersection of A with a fiber of f is equal to the empty set or to the fiber itself.
    • Explicitly: for every y∈Im⁡f, the intersection A∩f−1(y) is equal to the empty set ∅ or to f−1(y) (that is, A∩f−1(y)=∅ or A∩f−1(y)=f−1(y)).

For a set A to be f-saturated, it is necessary that A⊆domain⁡f.

Compositions and restrictions of functions

If f and g are maps then g∘f denotes the Template:Em map g∘f:{x∈domain⁡f:f(x)∈domain⁡g}→codomain⁡g with domain and codomain domain⁡(g∘f)={x∈domain⁡f:f(x)∈domain⁡g}codomain⁡(g∘f)=codomain⁡g defined by (g∘f)(x)=defg(f(x)).

The Template:Em denoted by f|L, is the map f|L:L∩domain⁡f→Y with domain⁡f|L=L∩domain⁡f defined by sending x∈L∩domain⁡f to f(x); that is, f|L(x)=deff(x). Alternatively, f|L=f∘In⁡ where In⁡:L∩X→X denotes the inclusion map, which is defined by In⁡(s)=defs.

(Pre)Images of arbitrary unions ⋃'s and intersections ⋂'s

If (Li)i∈I is a family of arbitrary sets indexed by I≠∅ then:Template:Sfn f(⋂i∈ILi)⊆⋂i∈If(Li)f(⋃i∈ILi)=⋃i∈If(Li)f−1(⋃i∈ILi)=⋃i∈If−1(Li)f−1(⋂i∈ILi)=⋂i∈If−1(Li)

So of these four identities, it is Template:Em Template:Em that are not always preserved. Preimages preserve all basic set operations. Unions are preserved by both images and preimages.

If all Li are f-saturated then ⋂i∈ILi be will be f-saturated and equality will hold in the first relation above; explicitly, this means: Template:NumBlk

If (Ai)i∈I is a family of arbitrary subsets of X=domain⁡f, which means that Ai⊆X for all i, then Template:EquationNote becomes: Template:NumBlk

(Pre)Images of binary set operations

Throughout, let L and R be any sets and let f:X→Y be any function.

Summary

As the table below shows, set equality is Template:Em guaranteed Template:Em for Template:Em of: intersections, set subtractions, and symmetric differences.

Image Preimage Template:Nowrap
f(L∪R)=f(L)∪f(R)[3] f−1(L∪R)=f−1(L)∪f−1(R)Template:Sfn None
f(L∩R)⊆f(L)∩f(R) f−1(L∩R)=f−1(L)∩f−1(R)Template:Sfn None
f(L∖R)⊇f(L)∖f(R) f−1(L)∖f−1(R)=f−1(L∖R)=f−1(L∖[R∩Im⁡f])=f−1([L∩Im⁡f]∖R)=f−1([L∩Im⁡f]∖[R∩Im⁡f])Template:SfnTemplate:Sfn None
f(X∖R)⊇f(X)∖f(R) X∖f−1(R)=f−1(Y∖R)=f−1(Y∖[R∩Im⁡f])=f−1(Im⁡f∖R)=f−1(Im⁡f∖[R∩Im⁡f])[note 4] None
f(L△R)⊇f(L)△f(R) f−1(L△R)=f−1(L)△f−1(R) None

Preimages preserve set operations

Preimages of sets are well-behaved with respect to all basic set operations:

f−1(L∪R)=f−1(L)∪f−1(R)f−1(L∩R)=f−1(L)∩f−1(R)f−1(L∖R)=f−1(L)∖f−1(R)f−1(L△R)=f−1(L)△f−1(R)

In words, preimages distribute over unions, intersections, set subtraction, and symmetric difference.

Images Template:Em preserve unions

Images of unions are well-behaved:

f(L∪R)=f(L)∪f(R)

but images of the other basic set operations are Template:Em since only the following are guaranteed in general:

f(L∩R)⊆f(L)∩f(R)f(L∖R)⊇f(L)∖f(R)f(L△R)⊇f(L)△f(R)

In words, images distribute over unions but not necessarily over intersections, set subtraction, or symmetric difference. What these latter three operations have in common is set subtraction: they either Template:Em set subtraction L∖R or else they can naturally Template:Em as the set subtraction of two sets: L∩R=L∖(L∖R) and L△R=(L∪R)∖(L∩R).

If L=X then f(X∖R)⊇f(X)∖f(R) where as in the more general case, equality is not guaranteed. If f is surjective then f(X∖R)⊇Y∖f(R), which can be rewritten as: f(R∁)⊇f(R)∁ if R∁=defX∖R and f(R)∁=defY∖f(R).

Counter-examples: images of operations not distributing

Picture showing f failing to distribute over set intersection:
Template:Center The map f:ℝ→ℝ is defined by x↦x2, where ℝ denotes the real numbers. The sets A1=[−4,2] and A2=[−2,4] are shown in Template:Color immediately below the x-axis while their intersection A3=[−2,2] is shown in Template:Color.

If f:{1,2}→Y is constant, L={1}, and R={2} then all four of the set containments f(L∩R)⊊f(L)∩f(R)f(L∖R)⊋f(L)∖f(R)f(X∖R)⊋f(X)∖f(R)f(L△R)⊋f(L)△f(R) are strict/proper (that is, the sets are not equal) since one side is the empty set while the other is non-empty. Thus equality is not guaranteed for even the simplest of functions. The example above is now generalized to show that these four set equalities can fail for any constant function whose domain contains at least two (distinct) points.

Template:Em:Template:Anchor Let f:X→Y be any constant function with image f(X)={y} and suppose that L,R⊆X are non-empty disjoint subsets; that is, L≠∅,R≠∅, and L∩R=∅, which implies that all of the sets L△R=L∪R, L∖R=L, and X∖R⊇L∖R are not empty and so consequently, their images under f are all equal to {y}.

  1. The containment f(L∖R)⊋f(L)∖f(R) is strict: {y}=f(L∖R)≠f(L)∖f(R)={y}∖{y}=∅ In words: functions might not distribute over set subtraction ∖
  2. The containment f(X∖R)⊋f(X)∖f(R) is strict: {y}=f(X∖R)≠f(X)∖f(R)={y}∖{y}=∅.
  3. The containment f(L△R)⊋f(L)△f(R) is strict: {y}=f(L△R)≠f(L)△f(R)={y}△{y}=∅ In words: functions might not distribute over symmetric difference △ (which can be defined as the set subtraction of two sets: L△R=(L∪R)∖(L∩R)).
  4. The containment f(L∩R)⊊f(L)∩f(R) is strict: ∅=f(∅)=f(L∩R)≠f(L)∩f(R)={y}∩{y}={y} In words: functions might not distribute over set intersection ∩ (which can be defined as the set subtraction of two sets: L∩R=L∖(L∖R)).

What the set operations in these four examples have in common is that they either Template:Em set subtraction ∖ (examples (1) and (2)) or else they can naturally Template:Em as the set subtraction of two sets (examples (3) and (4)).

Mnemonic: In fact, for each of the above four set formulas for which equality is not guaranteed, the direction of the containment (that is, whether to use ⊆ or ⊇) can always be deduced by imagining the function f as being Template:Em and the two sets (L and R) as being non-empty disjoint subsets of its domain. This is because Template:Em equality fails for such a function and sets: one side will be always be ∅ and the other non-empty − from this fact, the correct choice of ⊆ or ⊇ can be deduced by answering: "which side is empty?" For example, to decide if the ? in f(L△R)∖f(R)?f((L△R)∖R) should be ⊆ or ⊇, pretend[note 5] that f is constant and that L△R and R are non-empty disjoint subsets of f's domain; then the Template:Em hand side would be empty (since f(L△R)∖f(R)={f's single value}∖{f's single value}=∅), which indicates that ? should be ⊆ (the resulting statement is always guaranteed to be true) because this is the choice that will make ∅=left hand side?right hand side true. Alternatively, the correct direction of containment can also be deduced by consideration of any constant f:{1,2}→Y with L={1} and R={2}.

Furthermore, this mnemonic can also be used to correctly deduce whether or not a set operation always distribute over images or preimages; for example, to determine whether or not f(L∩R) always equals f(L)∩f(R), or alternatively, whether or not f−1(L∩R) always equals f−1(L)∩f−1(R) (although ∩ was used here, it can replaced by ∪,∖, or △). The answer to such a question can, as before, be deduced by consideration of this constant function: the answer for the general case (that is, for arbitrary f,L, and R) is always the same as the answer for this choice of (constant) function and disjoint non-empty sets.

Conditions guaranteeing that images distribute over set operations

Characterizations of when equality holds for Template:Em sets:

For any function f:X→Y, the following statements are equivalent:

  1. f:X→Y is injective.
    • This means: f(x)≠f(y) for all distinct x,y∈X.
  2. f(L∩R)=f(L)∩f(R) for all L,R⊆X. (The equals sign = can be replaced with ⊇).
  3. f(L∖R)=f(L)∖f(R) for all L,R⊆X. (The equals sign = can be replaced with ⊆).
  4. f(X∖R)=f(X)∖f(R) for all R⊆X. (The equals sign = can be replaced with ⊆).
  5. f(L△R)=f(L)△f(R) for all L,R⊆X. (The equals sign = can be replaced with ⊆).
  6. Any one of the four statements (b) - (e) but with the words "for all" replaced with any one of the following:
    1. "for all singleton subsets"
      • In particular, the statement that results from (d) gives a characterization of injectivity that explicitly involves only one point (rather than two): f is injective if and only if f(x)∉f(X∖{x}) for every x∈X.
    2. "for all disjoint singleton subsets"
      • For statement (d), this is the same as: "for all singleton subsets" (because the definition of "pairwise disjoint" is satisfies vacuously by any family that consists of exactly 1 set).
    3. "for all disjoint subsets"

In particular, if a map is not known to be injective then barring additional information, there is no guarantee that any of the equalities in statements (b) - (e) hold.

An example above can be used to help prove this characterization. Indeed, comparison of that example with such a proof suggests that the example is representative of the fundamental reason why one of these four equalities in statements (b) - (e) might not hold (that is, representative of "what goes wrong" when a set equality does not hold).

Conditions for f(L⋂R) = f(L)⋂f(R)Template:Anchor

f(L∩R)⊆f(L)∩f(R) always holds

Characterizations of equality: The following statements are equivalent:

  1. f(L∩R)=f(L)∩f(R)
  2. f(L∩R)⊇f(L)∩f(R)
  3. L∩f−1(f(R))⊆f−1(f(L∩R))
    • The left hand side L∩f−1(f(R)) is always equal to L∩f−1(f(L)∩f(R)) (because L∩f−1(f(R))⊆f−1(f(L)) always holds).
  4. R∩f−1(f(L))⊆f−1(f(L∩R))
  5. L∩f−1(f(R))=f−1(f(L∩R))∩L
  6. R∩f−1(f(L))=f−1(f(L∩R))∩R
  7. If l∈L satisfies f(l)∈f(R) then f(l)∈f(L∩R).
  8. If y∈f(L) but y∉f(L∩R) then y∉f(R).
  9. f(L)∖f(L∩R)⊆f(L)∖f(R)
  10. f(R)∖f(L∩R)⊆f(R)∖f(L)
  11. f(L∪R)∖f(L∩R)⊆f(L)△f(R)
  12. Any of the above three conditions (i) - (k) but with the subset symbol ⊆ replaced with an equals sign =.

Sufficient conditions for equality: Equality holds if any of the following are true:

  1. f is injective.[4]
  2. The restriction f|L∪R is injective.
  3. f−1(f(R))⊆R[note 6]
  4. f−1(f(L))⊆L
  5. R is f-saturated; that is, f−1(f(R))=R[note 6]
  6. L is f-saturated; that is, f−1(f(L))=L
  7. f(L)⊆f(L∩R)
  8. f(R)⊆f(L∩R)
  9. f(L∖R)⊆f(L)∖f(R) or equivalently, f(L∖R)=f(L)∖f(R)
  10. f(R∖L)⊆f(R)∖f(L) or equivalently, f(R∖L)=f(R)∖f(L)
  11. f(L△R)⊆f(L)△f(R) or equivalently, f(L△R)=f(L)△f(R)
  12. R∩domain⁡f⊆L
  13. L∩domain⁡f⊆R
  14. R⊆L
  15. L⊆R

In addition, the following always hold: f(f−1(L)∩R)=L∩f(R) f(f−1(L)∪R)=(L∩Im⁡f)∪f(R)

Conditions for f(L\R) = f(L)\f(R)Template:Anchor

f(L∖R)⊇f(L)∖f(R) always holds

Characterizations of equality: The following statements are equivalent:[proof 1]

  1. f(L∖R)=f(L)∖f(R)
  2. f(L∖R)⊆f(L)∖f(R)
  3. L∩f−1(f(R))⊆R
  4. L∩f−1(f(R))=L∩R∩domain⁡f
  5. Whenever y∈f(L)∩f(R) then L∩f−1(y)⊆R.
  6. f(L)∩f(R)⊆{y∈f(L):L∩f−1(y)⊆R}
    • The set on the right hand side is always equal to {y∈f(L∩R):L∩f−1(y)⊆R}.
  7. f(L)∩f(R)={y∈f(L):L∩f−1(y)⊆R}
    • This is the above condition (f) but with the subset symbol ⊆ replaced with an equals sign =.

Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:

  1. f(L∩R)=f(L)∩f(R), or equivalently f(L∩R)⊇f(L)∩f(R).
  2. L∩f−1(f(R))=L∩f−1(f(L∩R)) or equivalently, L∩f−1(f(R))⊆f−1(f(L∩R))
  3. R∩f−1(f(L))=R∩f−1(f(L∩R))

Sufficient conditions for equality: Equality holds if any of the following are true:

  1. f is injective.
  2. The restriction f|L∪R is injective.
  3. f−1(f(R))⊆R[note 6] or equivalently, R∩domain⁡f=f−1(f(R))
  4. R is f-saturated; that is, R=f−1(f(R)).[note 6]
  5. f(L△R)⊆f(L)△f(R) or equivalently, f(L△R)=f(L)△f(R)
Conditions for f(X\R) = f(X)\f(R)Template:Anchor

f(X∖R)⊇f(X)∖f(R) always holds, where f:X→Y

Characterizations of equality: The following statements are equivalent:[proof 1]

  1. f(X∖R)=f(X)∖f(R)
  2. f(X∖R)⊆f(X)∖f(R)
  3. f−1(f(R))⊆R
  4. f−1(f(R))=R∩domain⁡f
  5. R∩domain⁡f is f-saturated.
  6. Whenever y∈f(R) then f−1(y)⊆R.
  7. f(R)⊆{y∈f(R):f−1(y)⊆R}
  8. f(R)={y∈f(R):f−1(y)⊆R}

   where if R⊆domain⁡f then this list can be extended to include:

  1. R is f-saturated; that is, R=f−1(f(R)).

Sufficient conditions for equality: Equality holds if any of the following are true:

  1. f is injective.
  2. R is f-saturated; that is, R=f−1(f(R)).
Conditions for f(L∆R) = f(L)∆f(R)Template:Anchor

f(L△R)⊇f(L)△f(R) always holds

Characterizations of equality: The following statements are equivalent:

  1. f(L△R)=f(L)△f(R)
  2. f(L△R)⊆f(L)△f(R)
  3. f(L∖R)=f(L)∖f(R)  and  f(R∖L)=f(R)∖f(L)
  4. f(L∖R)⊆f(L)∖f(R)  and  f(R∖L)⊆f(R)∖f(L)
  5. L∩f−1(f(R))⊆R  and  R∩f−1(f(L))⊆L
    • The inclusions L∩f−1(f(R))⊆f−1(f(L)) and R∩f−1(f(L))⊆f−1(f(R)) always hold.
  6. L∩f−1(f(R))=R∩f−1(f(L))
    • If this above set equality holds, then this set will also be equal to both L∩R∩domain⁡f and L∩R∩f−1(f(L∩R)).
  7. L∩f−1(f(L∩R))=R∩f−1(f(L∩R))  and  f(L∩R)⊇f(L)∩f(R).

Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:

  1. f(L∩R)=f(L)∩f(R), or equivalently f(L∩R)⊇f(L)∩f(R).
  2. L∩f−1(f(L∩R))=R∩f−1(f(L∩R))

Sufficient conditions for equality: Equality holds if any of the following are true:

  1. f is injective.
  2. The restriction f|L∪R is injective.

Exact formulas/equalities for images of set operations

Formulas for f(L\R) =Template:Anchor

For any function f:X→Y and any sets L and R,[proof 2] f(L∖R)=Y∖{y∈Y:L∩f−1(y)⊆R}=f(L)∖{y∈f(L):L∩f−1(y)⊆R}=f(L)∖{y∈f(L∩R):L∩f−1(y)⊆R}=f(L)∖{y∈V:L∩f−1(y)⊆R} for any superset V⊇f(L∩R)=f(S)∖{y∈f(S):L∩f−1(y)⊆R} for any superset S⊇L∩X.

Formulas for f(X\R) =Template:Anchor

Taking L:=X=domain⁡f in the above formulas gives: f(X∖R)=Y∖{y∈Y:f−1(y)⊆R}=f(X)∖{y∈f(X):f−1(y)⊆R}=f(X)∖{y∈f(R):f−1(y)⊆R}=f(X)∖{y∈W:f−1(y)⊆R} for any superset W⊇f(R) where the set {y∈f(R):f−1(y)⊆R} is equal to the image under f of the largest f-saturated subset of R.

  • In general, only f(X∖R)⊇f(X)∖f(R) always holds and equality is not guaranteed; but replacing "f(R)" with its subset "{y∈f(R):f−1(y)⊆R}" results in a formula in which equality is Template:Em guaranteed: f(X∖R)=f(X)∖{y∈f(R):f−1(y)⊆R}. From this it follows that:[proof 1] f(X∖R)=f(X)∖f(R) if and only if f(R)={y∈f(R):f−1(y)⊆R} if and only if f−1(f(R))⊆R.
  • If fR:={y∈f(X):f−1(y)⊆R} then f(X∖R)=f(X)∖fR, which can be written more symmetrically as f(X∖R)=fX∖fR (since fX=f(X)).
Formulas for f(L∆R) =Template:Anchor

It follows from L△R=(L∪R)∖(L∩R) and the above formulas for the image of a set subtraction that for any function f:X→Y and any sets L and R, f(L△R)=Y∖{y∈Y:L∩f−1(y)=R∩f−1(y)}=f(L∪R)∖{y∈f(L∪R):L∩f−1(y)=R∩f−1(y)}=f(L∪R)∖{y∈f(L∩R):L∩f−1(y)=R∩f−1(y)}=f(L∪R)∖{y∈V:L∩f−1(y)=R∩f−1(y)} for any superset V⊇f(L∩R)=f(S)∖{y∈f(S):L∩f−1(y)=R∩f−1(y)} for any superset S⊇(L∪R)∩X.

Formulas for f(L) =Template:Anchor

It follows from the above formulas for the image of a set subtraction that for any function f:X→Y and any set L,f(L)=Y∖{y∈Y:f−1(y)∩L=∅}=Im⁡f∖{y∈Im⁡f:f−1(y)∩L=∅}=W∖{y∈W:f−1(y)∩L=∅} for any superset W⊇f(L)

This is more easily seen as being a consequence of the fact that for any y∈Y, f−1(y)∩L=∅ if and only if y∉f(L).

Formulas for f(L⋂R) =Template:Anchor

It follows from the above formulas for the image of a set that for any function f:X→Y and any sets L and R, f(L∩R)=Y∖{y∈Y:L∩R∩f−1(y)=∅}=f(L)∖{y∈f(L):L∩R∩f−1(y)=∅}=f(L)∖{y∈U:L∩R∩f−1(y)=∅} for any superset U⊇f(L)=f(R)∖{y∈f(R):L∩R∩f−1(y)=∅}=f(R)∖{y∈V:L∩R∩f−1(y)=∅} for any superset V⊇f(R)=f(L)∩f(R)∖{y∈f(L)∩f(R):L∩R∩f−1(y)=∅} where moreover, for any y∈Y,

L∩f−1(y)⊆L∖R if and only if L∩R∩f−1(y)=∅ if and only if R∩f−1(y)⊆R∖L if and only if y∉f(L∩R).

The sets U and V mentioned above could, in particular, be any of the sets f(L∪R),Im⁡f, or Y, for example.

(Pre)Images of set operations on (pre)imagesTemplate:Anchor

Let L and R be arbitrary sets, f:X→Y be any map, and let A⊆X and C⊆Y.

Image of preimage Preimage of image Additional assumptions on sets
f(f−1(L)∩R)=L∩f(R)Template:Sfn f−1(f(L)∩R)⊇L∩f−1(R) None
f(f−1(L)∪R)=(L∩Im⁡f)∪f(R)⊆L∪f(R) f−1(f(A)∪R)⊇A∪f−1(R)[5]

Equality holds if any of the following are true:

  1. f(A)⊆R.
  2. A⊆f−1(R).
A⊆X

(Pre)Images of operations on images

Since f(L)∖f(L∖R)={y∈f(L∩R):L∩f−1(y)⊆R},

f−1(f(L)∖f(L∖R))=f−1({y∈f(L∩R):L∩f−1(y)⊆R})={x∈f−1(f(L∩R)):L∩f−1(f(x))⊆R}

Since f(X)∖f(L∖R)={y∈f(X):L∩f−1(y)⊆R}, f−1(Y∖f(L∖R))=f−1(f(X)∖f(L∖R))=f−1({y∈f(X):L∩f−1(y)⊆R})={x∈X:L∩f−1(f(x))⊆R}=X∖f−1(f(L∖R))

Using L:=X, this becomes f(X)∖f(X∖R)={y∈f(R):f−1(y)⊆R} and f−1(Y∖f(X∖R))=f−1(f(X)∖f(X∖R))=f−1({y∈f(R):f−1(y)⊆R})={r∈R∩X:f−1(f(r))⊆R}⊆R and so f−1(Y∖f(L))=f−1(f(X)∖f(L))=f−1({y∈f(X∖L):f−1(y)∩L=∅})={x∈X∖L:f(x)∉f(L)}=X∖f−1(f(L))⊆X∖L

(Pre)Images and Cartesian products Π

Let ∏Y∙=def∏j∈JYj and for every k∈J, let πk:∏j∈JYj→Yk denote the canonical projection onto Yk.

Definitions

Given a collection of maps Fj:X→Yj indexed by j∈J, define the map (Fj)j∈J:X→∏j∈JYjx↦(Fj(xj))j∈J, which is also denoted by F∙=(Fj)j∈J. This is the unique map satisfying πj∘F∙=Fj for all j∈J.

Conversely, if given a map F:X→∏j∈JYj then F=(πj∘F)j∈J. Explicitly, what this means is that if Fk=defπk∘F:X→Yk is defined for every k∈J, then F the unique map satisfying: πj∘F=Fj for all j∈J; or said more briefly, F=(Fj)j∈J.

The map F∙=(Fj)j∈J:X→∏j∈JYj should not be confused with the Cartesian product ∏j∈JFj of these maps, which is by definition is the map ∏j∈JFj:∏j∈JX→∏j∈JYj(xj)j∈J↦(Fj(xj))j∈J with domain ∏j∈JX=XJ rather than X.

Preimage and images of a Cartesian product

Suppose F∙=(Fj)j∈J:X→∏j∈JYj.

If A⊆X then F∙(A)⊆∏j∈JFj(A).

If B⊆∏j∈JYj then F∙−1(B)⊆⋂j∈JFj−1(πj(B)) where equality will hold if B=∏j∈Jπj(B), in which case F∙−1(B)=⋂j∈JFj−1(πj(B)) and Template:NumBlk

For equality to hold, it suffices for there to exist a family (Bj)j∈J of subsets Bj⊆Yj such that B=∏j∈JBj, in which case: Template:NumBlk and πj(B)=Bj for all j∈J.

(Pre)Image of a single set

Image Preimage Additional assumptions
f(L)=f(L∩domain⁡f)=f(L∩X)=Y∖{y∈Y:f−1(y)⊆X∖L}=Im⁡f∖{y∈Im⁡f:f−1(y)⊆X∖L} f−1(L)=f−1(L∩Im⁡f)=f−1(L∩Y) None
f(X)=Im⁡f⊆Y f−1(Y)=Xf−1(Im⁡f)=X None
f(L)=f(L∩R∪(L∖R))=f(L∩R)∪f(L∖R) f−1(L)=f−1(L∩R∪(L∖R))=f−1(L∩R)∪f−1(L∖R)=f−1(L∩R)∪f−1(L∖[R∩Im⁡f])=f−1(L∩R)∪f−1([L∩Im⁡f]∖R)=f−1(L∩R)∪f−1([L∩Im⁡f]∖[R∩Im⁡f]) None
Im⁡f=f(X)=f(L)∪f(X∖L) X=f−1(L)∪f−1(Y∖L)=f−1(L)∪f−1(Im⁡f∖L) None
f|L(R)=f(L∩R) (f|L)−1(R)=L∩f−1(R) None
(g∘f)(L)=g(f(L)) (g∘f)−1(L)=f−1(g−1(L)) None (f and g are arbitrary functions).
f(f−1(L))=L∩Im⁡f
f−1(f(L))⊇L∩f−1(Im⁡f)=L∩f−1(Y)Template:Sfn None
f(f−1(Y))=f(f−1(Im⁡f))=f(X) f−1(f(X))=f−1(Im⁡f)=X None
f(f−1(f(L)))=f(L) f−1(f(f−1(L)))=f−1(L) None

Containments ⊆ and intersections ⋂ of images and preimages

Equivalences and implications of images and preimages

Image Preimage Additional assumptions on sets
f(L)⊆Im⁡f⊆Y f−1(L)=X if and only if Im⁡f⊆L None
f(L)=∅ if and only if L∩domain⁡f=∅ f−1(L)=∅ if and only if L∩Im⁡f=∅ None
f(A)=∅ if and only if A=∅ f−1(C)=∅ if and only if C⊆Y∖Im⁡f A⊆X and C⊆Y
L⊆R implies f(L)⊆f(R)Template:Sfn L⊆R implies f−1(L)⊆f−1(R)Template:Sfn None
The following are equivalent:
  1. f(L)⊆f(R)
  2. f(L∪R)=f(R)
  3. L∩domain⁡f⊆f−1(f(R))
The following are equivalent:
  1. f−1(L)⊆f−1(R)
  2. f−1(L∪R)=f−1(R)
  3. L∩Im⁡f⊆R

If C⊆Im⁡f then f−1(C)⊆f−1(R) if and only if C⊆R.

C⊆Im⁡f
The following are equivalent when C⊆Y:
  1. C⊆f(R)
  2. f(B)=C for some B⊆R
  3. Template:Nowrap
The following are equivalent:
  1. L⊆f−1(R)
  2. f(L)⊆R and L⊆domain⁡f

The following are equivalent when A⊆X:

  1. A⊆f−1(R)
  2. f(A)⊆R
A⊆X and C⊆Y
The following are equivalent:
  1. f(A)⊇f(X∖A)
  2. f(A)=Im⁡f
The following are equivalent:
  1. f−1(C)⊇f−1(Y∖C)
  2. f−1(C)=X
A⊆X and C⊆Y
f(f−1(L))⊆LTemplate:Sfn

Equality holds if Template:Em the following is true:

  1. L⊆Im⁡f.[6][7]

Equality holds if any of the following are true:

  1. L⊆Y and f:X→Y is surjective.
f−1(f(A))⊇A

Equality holds if Template:Em the following is true:

  1. A is f-saturated.

Equality holds if any of the following are true:

  1. f is injective.[6][7]
A⊆X

Intersection of a set and a (pre)image

The following statements are equivalent:

  1. ∅=f(L)∩R
  2. ∅=L∩f−1(R)Template:Sfn
  3. ∅=f−1(f(L))∩f−1(R)
  4. ∅=f−1(f(L)∩R)

Thus for any t,Template:Sfn t∉f(L) if and only if L∩f−1(t)=∅.

Sequences and collections of families of sets

Definitions

A Template:Em or simply a Template:Em is a set whose elements are sets. A Template:Em is a family of subsets of X.

The Template:Em of a set X is the set of all subsets of X: 𝒫(X):={S:S⊆X}.

Notation for sequences of sets

Throughout, S and T will be arbitrary sets and S∙ and will denote a net or a sequence of sets where if it is a sequence then this will be indicated by either of the notations S∙=(Si)i=1∞ or S∙=(Si)i∈ℕ where ℕ denotes the natural numbers. A notation S∙=(Si)i∈I indicates that S∙ is a net directed by (I,≤), which (by definition) is a sequence if the set I, which is called the net's indexing set, is the natural numbers (that is, if I=ℕ) and ≤ is the natural order on ℕ.

Disjoint and monotone sequences of sets

If Si∩Sj=∅ for all distinct indices i≠j then S∙ is called a Template:Em or simply a Template:Em. A sequence or net S∙ of set is called Template:Em or Template:Em if (resp. Template:Em or Template:Em) if for all indices i≤j, Si⊆Sj (resp. Si⊇Sj). A sequence or net S∙ of set is called Template:Em (resp. Template:Em) if it is non-decreasing (resp. is non-increasing) and also Si≠Sj for all Template:Em indices i and j. It is called Template:Em if it is non-decreasing or non-increasing and it is called Template:Em if it is strictly increasing or strictly decreasing.

A sequences or net S∙ is said to Template:Em denoted by S∙↑STemplate:Sfn or S∙↗S, if S∙ is increasing and the union of all Si is S; that is, if ⋃nSn=S and Si⊆Sj whenever i≤j. It is said to Template:Em denoted by S∙↓STemplate:Sfn or S∙↘S, if S∙ is increasing and the intersection of all Si is S that is, if ⋂nSn=S and Si⊇Sj whenever i≤j.

Definitions of elementwise operations on families

If ℒ and ℛ are families of sets and if S is any set then define:Template:Sfn ℒ(∪)ℛ:={L∪R:L∈ℒ and R∈ℛ} ℒ(∩)ℛ:={L∩R:L∈ℒ and R∈ℛ} ℒ(∖)ℛ:={L∖R:L∈ℒ and R∈ℛ} ℒ(△)ℛ:={L△R:L∈ℒ and R∈ℛ} ℒ|S:={L∩S:L∈ℒ}=ℒ(∩){S} which are respectively called Template:Em Template:Em, Template:Em Template:Em, Template:Em (Template:Em) Template:Em, Template:Em Template:Em, and the Template:Em/Template:Em The regular union, intersection, and set difference are all defined as usual and are denoted with their usual notation: ℒ∪ℛ,ℒ∩ℛ,ℒ△ℛ, and ℒ∖ℛ, respectively. These elementwise operations on families of sets play an important role in, among other subjects, the theory of filters and prefilters on sets.

The Template:Em of a family ℒ⊆𝒫(X) is the family: ℒ↑X:=⋃L∈ℒ{S:L⊆S⊆X}={S⊆X: there exists L∈ℒ such that L⊆S} and the Template:Em is the family: ℒ↓:=⋃L∈ℒ𝒫(L)={S: there exists L∈ℒ such that S⊆L}.

Definitions of categories of families of sets

The following table lists some well-known categories of families of sets having applications in general topology and measure theory.

Template:Large Template:Navbar
Template:Nowrap
Template:Nowrap
Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small
Template:Nowrap Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na
Template:Nowrap Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Ya Never
Template:Nowrap Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Ya Never
[[Monotone class|Template:Nowrap]] Template:Na Template:Na Template:Na Template:Na Template:Na Template:Ya Template:Ya Template:Na Template:Na Template:Na
[[Dynkin system|Template:Nowrap Template:Nowrap]] Template:Ya Template:Na Template:Na Template:Ya Template:Ya Template:Na Template:Ya Template:Ya Template:Ya Never
[[Ring of sets|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na
[[Ring of sets|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Na Template:Ya Never
[[Delta-ring|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Ya Template:Na Template:Ya Template:Na Template:Na Template:Ya Never
[[Sigma-ring|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Ya Template:Na Template:Ya Template:Ya Template:Na Template:Ya Never
[[Field of sets|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Ya Template:Ya Template:Na Template:Na Template:Ya Template:Ya Never
[[σ-algebra|Template:Nowrap Template:Small]] Template:Ya Template:Ya Template:Ya Template:Ya Template:Ya Template:Ya Template:Ya Template:Ya Template:Ya Never
Filter Template:Ya Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Ya Template:Ya Template:Na Template:Na
[[Proper filter on a set|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Never Never Template:Na Template:Ya Template:Ya Never Template:Ya
[[Prefilter|Template:Nowrap Template:Small]] Template:Ya Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Ya
[[Filter subbase|Template:Nowrap]] Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Na Template:Ya
[[Topology (structure)|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Na Template:Na Template:Na Template:Ya Template:Ya Template:Ya Never
[[Topology (structure)|Template:Nowrap]] Template:Ya Template:Ya Template:Ya Template:Na Template:Na Template:Ya Template:Na Template:Ya Template:Ya Never
Template:Nowrap
Template:Nowrap
Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small Template:Small

Additionally, a Template:Em is a [[pi-system|Template:Pi-system]] where every complement B∖A is equal to a finite disjoint union of sets in ℱ.
A Template:Em is a semiring where every complement Ω∖A is equal to a finite disjoint union of sets in ℱ.
A,B,A1,A2,… are arbitrary elements of ℱ and it is assumed that ℱ≠∅.

A family ℒ is called Template:Em, Template:Em, or Template:Em in X if ℒ⊆𝒫(X) and ℒ=ℒ↑X.Template:Sfn A family ℒ is called Template:Em if ℒ=ℒ↓.

A family ℒ is said to be:

A family ℒ of sets is called a/an:

  • Template:Em if ℒ≠∅ and ℒ is closed under finite-intersections.
    • Every non-empty family ℒ is contained in a unique smallest (with respect to ⊆) Template:Pi−system that is denoted by π(ℒ) and called Template:Em
  • Template:Em and is said to have Template:Em if ℒ≠∅ and ∅∉π(ℒ).
  • Template:Em if ℒ≠∅ is a family of subsets of X that is a Template:Pi−system, is upward closed in X, and is also Template:Em, which by definition means that it does not contain the empty set as an element.
  • Template:Em or Template:Em if it is a non-empty family of subsets of some set X whose upward closure in X is a filter on X.
  • Template:Em is a non-empty family of subsets of X that contains the empty set, forms a Template:Pi−system, and is also closed under complementation with respect to X.
  • Template:Em is an algebra on X that is closed under countable unions (or equivalently, closed under countable intersections).

Sequences of sets often arise in measure theory.

Algebra of sets

Template:See also

A family Φ of subsets of a set X is said to be Template:Em if ∅∈Φ and for all L,R∈Φ, all three of the sets X∖R,L∩R, and L∪R are elements of Φ.[8] The article on this topic lists set identities and other relationships these three operations.

Every algebra of sets is also a ring of sets[8] and a π-system.

Algebra generated by a family of sets

Given any family 𝒮 of subsets of X, there is a unique smallest[note 7] algebra of sets in X containing 𝒮.[8] It is called Template:Em and it will be denote it by Φ𝒮. This algebra can be constructed as follows:[8]

  1. If 𝒮=∅ then Φ𝒮={∅,X} and we are done. Alternatively, if 𝒮 is empty then 𝒮 may be replaced with {∅},{X}, or {∅,X} and continue with the construction.
  2. Let 𝒮0 be the family of all sets in 𝒮 together with their complements (taken in X).
  3. Let 𝒮1 be the family of all possible finite intersections of sets in 𝒮0.[note 8]
  4. Then the algebra generated by 𝒮 is the set Φ𝒮 consisting of all possible finite unions of sets in 𝒮1.

Elementwise operations on families

Let ℒ,ℳ, and ℛ be families of sets over X. On the left hand sides of the following identities, ℒ is the Template:EmTemplate:Hspeft most family, ℳ is in the Template:EmTemplate:Hspiddle, and ℛ is the Template:EmTemplate:Hspight most set.

Commutativity:Template:Sfn ℒ(∪)ℛ=ℛ(∪)ℒ ℒ(∩)ℛ=ℛ(∩)ℒ

Associativity:Template:Sfn [ℒ(∪)ℳ](∪)ℛ=ℒ(∪)[ℳ(∪)ℛ] [ℒ(∩)ℳ](∩)ℛ=ℒ(∩)[ℳ(∩)ℛ]

Identity: ℒ(∪){∅}=ℒ ℒ(∩){X}=ℒ ℒ(∖){∅}=ℒ

Domination: ℒ(∪){X}={X} if ℒ≠∅ ℒ(∩){∅}={∅} if ℒ≠∅ ℒ(∪)∅=∅ ℒ(∩)∅=∅ ℒ(∖)∅=∅ ∅(∖)ℛ=∅

Power set

𝒫(L∩R)=𝒫(L)∩𝒫(R) 𝒫(L∪R)=𝒫(L) (∪) 𝒫(R)⊇𝒫(L)∪𝒫(R).

If L and R are subsets of a vector space X and if s is a scalar then 𝒫(sL)=s𝒫(L) 𝒫(L+R)⊇𝒫(L)+𝒫(R).

Sequences of sets

Suppose that L is any set such that L⊇Ri for every index i. If R∙ decreases to R then L∖R∙:=(L∖Ri)i increases to L∖RTemplate:Sfn whereas if instead R∙ increases to R then L∖R∙ decreases to L∖R.

If L and R are arbitrary sets and if L∙=(Li)i increases (resp. decreases) to L then (Li∖R)i increase (resp. decreases) to L∖R.

Partitions

Suppose that S∙=(Si)i=1∞ is any sequence of sets, that S⊆⋃iSi is any subset, and for every index i, let Di=(Si∩S)∖⋃m=1i(Sm∩S). Then S=⋃iDi and D∙:=(Di)i=1∞ is a sequence of pairwise disjoint sets.Template:Sfn

Suppose that S∙=(Si)i=1∞ is non-decreasing, let S0=∅, and let Di=Si∖Si−1 for every i=1,2,…. Then ⋃iSi=⋃iDi and D∙=(Di)i=1∞ is a sequence of pairwise disjoint sets.Template:Sfn

See also

Notes

Notes

Template:Reflist

Proofs

Template:Reflist

Citations

Template:Reflist

References

Template:Sfn whitelist

Template:Mathematical logic Template:Set theory


Cite error: <ref> tags exist for a group named "note", but no corresponding <references group="note"/> tag was found.

  1. ↑ Template:Cite web
  2. ↑ Template:Cite web
  3. ↑ Template:Harvnb
  4. ↑ See Template:Harvnb
  5. ↑ Lee p.388 of Lee, John M. (2010). Introduction to Topological Manifolds, 2nd Ed.
  6. ↑ 6.0 6.1 Lee Template:Harvnb
  7. ↑ 7.0 7.1 Lee Template:Harvnb
  8. ↑ 8.0 8.1 8.2 8.3 Template:Cite web


Cite error: <ref> tags exist for a group named "proof", but no corresponding <references group="proof"/> tag was found.