List of set identities and relations
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 ([math]\displaystyle{ \cup }[/math]) and intersection ([math]\displaystyle{ \cap }[/math]) satisfy many identities. Several of these identities or "laws" have well established names.
Notation
Throughout this article, capital letters (such as [math]\displaystyle{ A, B, C, L, M, R, S, }[/math] and [math]\displaystyle{ X }[/math]) will denote sets. On the left hand side of an identity, typically,
- [math]\displaystyle{ L }[/math] will be the L eft most set,
- [math]\displaystyle{ M }[/math] will be the M iddle set, and
- [math]\displaystyle{ R }[/math] will be the R ight most set.
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 [math]\displaystyle{ (L \,\setminus\, M) \,\setminus\, R ~=~ (L \,\setminus\, R) \,\setminus\, (M \,\setminus\, R) }[/math] may be read as: [math]\displaystyle{ (\text{Left set} \,\setminus\, \text{Middle set}) \,\setminus\, \text{Right set} ~=~ (\text{Left set} \,\setminus\, \text{Right set}) \,\setminus\, (\text{Middle set} \,\setminus\, \text{Right set}). }[/math]
Elementary set operations
For sets [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R, }[/math] define: [math]\displaystyle{ \begin{alignat}{4} L \cup R &&~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{~ x ~:~ x \in L \;&&\text{ or }\;\, &&\; x \in R ~\} \\ L \cap R &&~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{~ x ~:~ x \in L \;&&\text{ and } &&\; x \in R ~\} \\ L \setminus R &&~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{~ x ~:~ x \in L \;&&\text{ and } &&\; x \notin R ~\} \\ \end{alignat} }[/math] and [math]\displaystyle{ L \triangle R ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{~ x ~:~ x \text{ belongs to exactly one of } L \text{ and } R ~\} }[/math] where the symmetric difference [math]\displaystyle{ L \triangle R }[/math] is sometimes denoted by [math]\displaystyle{ L \ominus R }[/math] and equals:[1][2] [math]\displaystyle{ \begin{alignat}{4} L \;\triangle\; R ~&=~ (L ~\setminus~ &&R) ~\cup~ &&(R ~\setminus~ &&L) \\ ~&=~ (L ~\cup~ &&R) ~\setminus~ &&(L ~\cap~ &&R). \end{alignat} }[/math]
One set [math]\displaystyle{ L }[/math] is said to intersect another set [math]\displaystyle{ R }[/math] if [math]\displaystyle{ L \cap R \neq \varnothing. }[/math] Sets that do not intersect are said to be disjoint.
The power set of [math]\displaystyle{ X }[/math] is the set of all subsets of [math]\displaystyle{ X }[/math] and will be denoted by [math]\displaystyle{ \wp(X) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{~ L ~:~ L \subseteq X ~\}. }[/math]
Universe set and complement notation
The notation [math]\displaystyle{ L^\complement ~\stackrel{\scriptscriptstyle\text{def}}{=}~ X \setminus L. }[/math] may be used if [math]\displaystyle{ L }[/math] is a subset of some set [math]\displaystyle{ X }[/math] that is understood (say from context, or because it is clearly stated what the superset [math]\displaystyle{ X }[/math] is). It is emphasized that the definition of [math]\displaystyle{ L^\complement }[/math] depends on context. For instance, had [math]\displaystyle{ L }[/math] been declared as a subset of [math]\displaystyle{ Y, }[/math] with the sets [math]\displaystyle{ Y }[/math] and [math]\displaystyle{ X }[/math] not necessarily related to each other in any way, then [math]\displaystyle{ L^\complement }[/math] would likely mean [math]\displaystyle{ Y \setminus L }[/math] instead of [math]\displaystyle{ X \setminus L. }[/math]
If it is needed then unless indicated otherwise, it should be assumed that [math]\displaystyle{ X }[/math] denotes the universe set, which means that all sets that are used in the formula are subsets of [math]\displaystyle{ X. }[/math] In particular, the complement of a set [math]\displaystyle{ L }[/math] will be denoted by [math]\displaystyle{ L^\complement }[/math] where unless indicated otherwise, it should be assumed that [math]\displaystyle{ L^\complement }[/math] denotes the complement of [math]\displaystyle{ L }[/math] in (the universe) [math]\displaystyle{ X. }[/math]
One subset involved
Assume [math]\displaystyle{ L \subseteq X. }[/math]
Definition: [math]\displaystyle{ e }[/math] is called a left identity element of a binary operator [math]\displaystyle{ \,\ast\, }[/math] if [math]\displaystyle{ e \,\ast\, R = R }[/math] for all [math]\displaystyle{ R }[/math] and it is called a right identity element of [math]\displaystyle{ \,\ast\, }[/math] if [math]\displaystyle{ L \,\ast\, e = L }[/math] for all [math]\displaystyle{ L. }[/math] A left identity element that is also a right identity element if called an identity element.
The empty set [math]\displaystyle{ \varnothing }[/math] is an identity element of binary union [math]\displaystyle{ \cup }[/math] and symmetric difference [math]\displaystyle{ \triangle, }[/math] and it is also a right identity element of set subtraction [math]\displaystyle{ \, \setminus: }[/math]
[math]\displaystyle{ \begin{alignat}{10} L \cap X &\;=\;&& L &\;=\;& X \cap L ~~~~\text{ where } L \subseteq X \\[1.4ex] L \cup \varnothing &\;=\;&& L &\;=\;& \varnothing \cup L \\[1.4ex] L \,\triangle \varnothing &\;=\;&& L &\;=\;& \varnothing \,\triangle L \\[1.4ex] L \setminus \varnothing &\;=\;&& L \\[1.4ex] \end{alignat} }[/math] but [math]\displaystyle{ \varnothing }[/math] is not a left identity element of [math]\displaystyle{ \, \setminus \, }[/math] since [math]\displaystyle{ \varnothing \setminus L = \varnothing }[/math] so [math]\displaystyle{ \varnothing \setminus L = L }[/math] if and only if [math]\displaystyle{ L = \varnothing. }[/math]
Idempotence[3] [math]\displaystyle{ L \ast L = L }[/math] and Nilpotence [math]\displaystyle{ L \ast L = \varnothing }[/math]:
[math]\displaystyle{ \begin{alignat}{10} L \cup L &\;=\;&& L && \quad \text{ (Idempotence)} \\[1.4ex] L \cap L &\;=\;&& L && \quad \text{ (Idempotence)} \\[1.4ex] L \,\triangle\, L &\;=\;&& \varnothing && \quad \text{ (Nilpotence of index 2)} \\[1.4ex] L \setminus L &\;=\;&& \varnothing && \quad \text{ (Nilpotence of index 2)} \\[1.4ex] \end{alignat} }[/math]
Domination[3]/Zero element:
[math]\displaystyle{ \begin{alignat}{10} X \cup L &\;=\;&& X &\;=\;& L \cup X ~~~~\text{ where } L \subseteq X \\[1.4ex] \varnothing \cap L &\;=\;&& \varnothing &\;=\;& L \cap \varnothing \\[1.4ex] \varnothing \times L &\;=\;&& \varnothing &\;=\;& L \times \varnothing \\[1.4ex] \varnothing \setminus L &\;=\;&& \varnothing &\;\;& \\[1.4ex] \end{alignat} }[/math] but [math]\displaystyle{ L \setminus \varnothing = L }[/math] so [math]\displaystyle{ L \setminus \varnothing = \varnothing \text{ if and only if } L = \varnothing. }[/math]
Double complement or involution law:
[math]\displaystyle{ \begin{alignat}{10} X \setminus (X \setminus L) &= L &&\qquad\text{ Also written }\quad &&\left(L^\complement\right)^\complement = L &&\quad&&\text{ where } L \subseteq X \quad \text{ (Double complement/Involution law)} \\[1.4ex] \end{alignat} }[/math]
[math]\displaystyle{ L \setminus \varnothing = L }[/math] [math]\displaystyle{ \begin{alignat}{4} \varnothing &= L &&\setminus L \\ &= \varnothing &&\setminus L \\ &= L &&\setminus X ~~~~\text{ where } L \subseteq X \\ \end{alignat} }[/math][3]
[math]\displaystyle{ L^\complement = X \setminus L \quad \text{ (definition of notation)} }[/math]
[math]\displaystyle{ \begin{alignat}{10} L \,\cup (X \setminus L) &= X &&\qquad\text{ Also written }\quad &&L \cup L^\complement = X &&\quad&&\text{ where } L \subseteq X \\[1.4ex] L \,\triangle (X \setminus L) &= X &&\qquad\text{ Also written }\quad &&L \,\triangle L^\complement = X &&\quad&&\text{ where } L \subseteq X \\[1.4ex] L \,\cap (X \setminus L) &= \varnothing &&\qquad\text{ Also written }\quad &&L \cap L^\complement = \varnothing &&\quad&& \\[1.4ex] \end{alignat} }[/math][3]
[math]\displaystyle{ \begin{alignat}{10} X \setminus \varnothing &= X &&\qquad\text{ Also written }\quad &&\varnothing^\complement = X &&\quad&&\text{ (Complement laws for the empty set))} \\[1.4ex] X \setminus X &= \varnothing &&\qquad\text{ Also written }\quad &&X^\complement = \varnothing &&\quad&&\text{ (Complement laws for the universe set)} \\[1.4ex] \end{alignat} }[/math]
Two sets involved
In the left hand sides of the following identities, [math]\displaystyle{ L }[/math] is the L eft most set and [math]\displaystyle{ R }[/math] is the R ight most set. Assume both [math]\displaystyle{ L \text{ and } R }[/math] are subsets of some universe set [math]\displaystyle{ X. }[/math]
Formulas for binary set operations ⋂, ⋃, \, and ∆
In the left hand sides of the following identities, [math]\displaystyle{ L }[/math] is the L eft most set and [math]\displaystyle{ R }[/math] is the R ight most set. Whenever necessary, both [math]\displaystyle{ L \text{ and } R }[/math] should be assumed to be subsets of some universe set [math]\displaystyle{ X, }[/math] so that [math]\displaystyle{ L^\complement := X \setminus L \text{ and } R^\complement := X \setminus R. }[/math]
[math]\displaystyle{ \begin{alignat}{9} L \cap R &= L &&\,\,\setminus\, &&(L &&\,\,\setminus &&R) \\ &= R &&\,\,\setminus\, &&(R &&\,\,\setminus &&L) \\ &= L &&\,\,\setminus\, &&(L &&\,\triangle\, &&R) \\ &= L &&\,\triangle\, &&(L &&\,\,\setminus &&R) \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{9} L \cup R &= (&&L \,\triangle\, R) &&\,\,\cup && &&L && && \\ &= (&&L \,\triangle\, R) &&\,\triangle\, &&(&&L &&\cap\, &&R) \\ &= (&&R \,\setminus\, L) &&\,\,\cup && &&L && && ~~~~~\text{ (union is disjoint)} \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{9} L \,\triangle\, R &= &&R \,\triangle\, L && && && && \\ &= (&&L \,\cup\, R) &&\,\setminus\, &&(&&L \,\,\cap\, R) && \\ &= (&&L \,\setminus\, R) &&\cup\, &&(&&R \,\,\setminus\, L) && ~~~~~\text{ (union is disjoint)} \\ &= (&&L \,\triangle\, M) &&\,\triangle\, &&(&&M \,\triangle\, R) && ~~~~~\text{ where } M \text{ is an arbitrary set. } \\ &= (&&L^\complement) &&\,\triangle\, &&(&&R^\complement) && \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{9} L \setminus R &= &&L &&\,\,\setminus &&(L &&\,\,\cap &&R) \\ &= &&L &&\,\,\cap &&(L &&\,\triangle\, &&R) \\ &= &&L &&\,\triangle\, &&(L &&\,\,\cap &&R) \\ &= &&R &&\,\triangle\, &&(L &&\,\,\cup &&R) \\ \end{alignat} }[/math]
De Morgan's laws
De Morgan's laws state that for [math]\displaystyle{ L, R \subseteq X: }[/math]
[math]\displaystyle{ \begin{alignat}{10} X \setminus (L \cap R) &= (X \setminus L) \cup (X \setminus R) &&\qquad\text{ Also written }\quad &&(L \cap R)^\complement = L^\complement \cup R^\complement &&\quad&&\text{ (De Morgan's law)} \\[1.4ex] X \setminus (L \cup R) &= (X \setminus L) \cap (X \setminus R) &&\qquad\text{ Also written }\quad &&(L \cup R)^\complement = L^\complement \cap R^\complement &&\quad&&\text{ (De Morgan's law)} \\[1.4ex] \end{alignat} }[/math]
Commutativity
Unions, intersection, and symmetric difference are commutative operations:[3]
[math]\displaystyle{ \begin{alignat}{10} L \cup R &\;=\;&& R \cup L && \quad \text{ (Commutativity)} \\[1.4ex] L \cap R &\;=\;&& R \cap L && \quad \text{ (Commutativity)} \\[1.4ex] L \,\triangle R &\;=\;&& R \,\triangle L && \quad \text{ (Commutativity)} \\[1.4ex] \end{alignat} }[/math]
Set subtraction is not commutative. However, the commutativity of set subtraction can be characterized: from [math]\displaystyle{ (L \,\setminus\, R) \cap (R \,\setminus\, L) = \varnothing }[/math] it follows that: [math]\displaystyle{ L \,\setminus\, R = R \,\setminus\, L \quad \text{ if and only if } \quad L = R. }[/math] Said differently, if distinct symbols always represented distinct sets, then the only true formulas of the form [math]\displaystyle{ \,\cdot\, \,\setminus\, \,\cdot\, = \,\cdot\, \,\setminus\, \,\cdot\, }[/math] that could be written would be those involving a single symbol; that is, those of the form: [math]\displaystyle{ S \,\setminus\, S = S \,\setminus\, S. }[/math] But such formulas are necessarily true for every binary operation [math]\displaystyle{ \,\ast\, }[/math] (because [math]\displaystyle{ x \,\ast\, x = x \,\ast\, x }[/math] 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, [math]\displaystyle{ (L \setminus L) \setminus R = L \setminus (L \setminus R) }[/math] if and only if [math]\displaystyle{ L \cap R = \varnothing }[/math] if and only if [math]\displaystyle{ (R \setminus L) \setminus L = R \setminus (L \setminus L). }[/math] Set subtraction is quasi-commutative and satisfies the Jordan identity.
Other identities involving two sets
[math]\displaystyle{ \begin{alignat}{4} L \cup (L \cap R) &\;=\;&& L && \quad \text{ (Absorption)} \\[1.4ex] L \cap (L \cup R) &\;=\;&& L && \quad \text{ (Absorption)} \\[1.4ex] \end{alignat} }[/math]
Other properties
[math]\displaystyle{ \begin{alignat}{10} L \setminus R &= L \cap (X \setminus R) &&\qquad\text{ Also written }\quad &&L \setminus R = L \cap R^\complement &&\quad&&\text{ where } L, R \subseteq X \\[1.4ex] X \setminus (L \setminus R) &= (X \setminus L) \cup R &&\qquad\text{ Also written }\quad &&(L \setminus R)^\complement = L^\complement \cup R &&\quad&&\text{ where } R \subseteq X \\[1.4ex] L \setminus R &= (X \setminus R) \setminus (X \setminus L) &&\qquad\text{ Also written }\quad &&L \setminus R = R^\complement \setminus L^\complement &&\quad&&\text{ where } L, R \subseteq X \\[1.4ex] \end{alignat} }[/math]
Intervals:
[math]\displaystyle{ (a, b) \cap (c, d) = (\max\{a,c\}, \min\{b,d\}) }[/math] [math]\displaystyle{ [a, b) \cap [c, d) = [\max\{a,c\}, \min\{b,d\}) }[/math]
Subsets ⊆ and supersets ⊇
The following statements are equivalent for any [math]\displaystyle{ L, R \subseteq X: }[/math][3]
- [math]\displaystyle{ L \subseteq R }[/math]
- Definition of subset: if [math]\displaystyle{ l \in L }[/math] then [math]\displaystyle{ l \in R }[/math]
- [math]\displaystyle{ L \cap R = L }[/math]
- [math]\displaystyle{ L \cup R = R }[/math]
- [math]\displaystyle{ L \,\triangle\, R = R \setminus L }[/math]
- [math]\displaystyle{ L \,\triangle\, R \subseteq R \setminus L }[/math]
- [math]\displaystyle{ L \setminus R = \varnothing }[/math]
- [math]\displaystyle{ L }[/math] and [math]\displaystyle{ X \setminus R }[/math] are disjoint (that is, [math]\displaystyle{ L \cap (X \setminus R) = \varnothing }[/math])
- [math]\displaystyle{ X \setminus R \subseteq X \setminus L \qquad }[/math] (that is, [math]\displaystyle{ R^\complement \subseteq L^\complement }[/math])
The following statements are equivalent for any [math]\displaystyle{ L, R \subseteq X: }[/math]
- [math]\displaystyle{ L \not\subseteq R }[/math]
- There exists some [math]\displaystyle{ l \in L \setminus R. }[/math]
Set equality
The following statements are equivalent:
- [math]\displaystyle{ L = R }[/math]
- [math]\displaystyle{ L \,\triangle\, R = \varnothing }[/math]
- [math]\displaystyle{ L \,\setminus\, R = R \,\setminus\, L }[/math]
- If [math]\displaystyle{ L \cap R = \varnothing }[/math] then [math]\displaystyle{ L = R }[/math] if and only if [math]\displaystyle{ L = \varnothing = R. }[/math]
- Uniqueness of complements: If [math]\displaystyle{ L \cup R = X \text{ and } L \cap R = \varnothing }[/math] then [math]\displaystyle{ R = X \setminus L }[/math]
Empty set
A set [math]\displaystyle{ L }[/math] is empty if the sentence [math]\displaystyle{ \forall x (x \not\in L) }[/math] is true, where the notation [math]\displaystyle{ x \not\in L }[/math] is shorthand for [math]\displaystyle{ \lnot (x \in L). }[/math]
If [math]\displaystyle{ L }[/math] is any set then the following are equivalent:
- [math]\displaystyle{ L }[/math] is not empty, meaning that the sentence [math]\displaystyle{ \lnot [\forall x (x \not\in L)] }[/math] is true (literally, the logical negation of "[math]\displaystyle{ L }[/math] is empty" holds true).
- (In classical mathematics) [math]\displaystyle{ L }[/math] is inhabited, meaning: [math]\displaystyle{ \exists x (x \in L) }[/math]
- 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 [math]\displaystyle{ L }[/math] that is not empty (where by definition, "[math]\displaystyle{ L }[/math] is empty" means that the statement [math]\displaystyle{ \forall x (x \not\in L) }[/math] is true) might not have an inhabitant (which is an [math]\displaystyle{ x }[/math] such that [math]\displaystyle{ x \in L }[/math]).
- [math]\displaystyle{ L \not\subseteq R }[/math] for some set [math]\displaystyle{ R }[/math]
If [math]\displaystyle{ L }[/math] is any set then the following are equivalent:
- [math]\displaystyle{ L }[/math] is empty ([math]\displaystyle{ L = \varnothing }[/math]), meaning: [math]\displaystyle{ \forall x (x \not\in L) }[/math]
- [math]\displaystyle{ L \cup R \subseteq R }[/math] for every set [math]\displaystyle{ R }[/math]
- [math]\displaystyle{ L \subseteq R }[/math] for every set [math]\displaystyle{ R }[/math]
- [math]\displaystyle{ L \subseteq R \setminus L }[/math] for some/every set [math]\displaystyle{ R }[/math]
- [math]\displaystyle{ \varnothing / L = L }[/math]
Given any [math]\displaystyle{ x, }[/math] [math]\displaystyle{ x \not\in L \setminus R \quad \text{ if and only if }\quad x \in L \cap R \; \text{ or } \; x \not\in L. }[/math]
Moreover, [math]\displaystyle{ (L \setminus R) \cap R = \varnothing \qquad \text{ always holds}. }[/math]
Meets, Joins, and lattice properties
Inclusion is a partial order: Explicitly, this means that inclusion [math]\displaystyle{ \,\subseteq,\, }[/math] which is a binary operation, has the following three properties:[3]
- Reflexivity: [math]\displaystyle{ L \subseteq L }[/math]
- Antisymmetry: [math]\displaystyle{ (L \subseteq R \text{ and } R \subseteq L) \text{ if and only if } L = R }[/math]
- Transitivity: [math]\displaystyle{ \text{If }L \subseteq M \text{ and } M \subseteq R \text{ then } L \subseteq R }[/math]
The following proposition says that for any set [math]\displaystyle{ S, }[/math] the power set of [math]\displaystyle{ S, }[/math] 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: [math]\displaystyle{ \varnothing \subseteq L \subseteq X }[/math]
Joins/supremums exist:[3] [math]\displaystyle{ L \subseteq L \cup R }[/math]
The union [math]\displaystyle{ L \cup R }[/math] is the join/supremum of [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] with respect to [math]\displaystyle{ \,\subseteq\, }[/math] because:
- [math]\displaystyle{ L \subseteq L \cup R }[/math] and [math]\displaystyle{ R \subseteq L \cup R, }[/math] and
- if [math]\displaystyle{ Z }[/math] is a set such that [math]\displaystyle{ L \subseteq Z }[/math] and [math]\displaystyle{ R \subseteq Z }[/math] then [math]\displaystyle{ L \cup R \subseteq Z. }[/math]
The intersection [math]\displaystyle{ L \cap R }[/math] is the join/supremum of [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] with respect to [math]\displaystyle{ \,\supseteq.\, }[/math]
Meets/infimums exist:[3] [math]\displaystyle{ L \cap R \subseteq L }[/math]
The intersection [math]\displaystyle{ L \cap R }[/math] is the meet/infimum of [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] with respect to [math]\displaystyle{ \,\subseteq\, }[/math] because:
- if [math]\displaystyle{ L \cap R \subseteq L }[/math] and [math]\displaystyle{ L \cap R \subseteq R, }[/math] and
- if [math]\displaystyle{ Z }[/math] is a set such that [math]\displaystyle{ Z \subseteq L }[/math] and [math]\displaystyle{ Z \subseteq R }[/math] then [math]\displaystyle{ Z \subseteq L \cap R. }[/math]
The union [math]\displaystyle{ L \cup R }[/math] is the meet/infimum of [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] with respect to [math]\displaystyle{ \,\supseteq.\, }[/math]
Other inclusion properties:
[math]\displaystyle{ L \setminus R \subseteq L }[/math] [math]\displaystyle{ (L \setminus R) \cap L = L \setminus R }[/math]
- If [math]\displaystyle{ L \subseteq R }[/math] then [math]\displaystyle{ L \,\triangle\, R = R \setminus L. }[/math]
- If [math]\displaystyle{ L \subseteq X }[/math] and [math]\displaystyle{ R \subseteq Y }[/math] then [math]\displaystyle{ L \times R \subseteq X \times Y }[/math][3]
Three sets involved
In the left hand sides of the following identities, [math]\displaystyle{ L }[/math] is the L eft most set, [math]\displaystyle{ M }[/math] is the M iddle set, and [math]\displaystyle{ R }[/math] is the R ight 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 [math]\displaystyle{ L \cap R = \{x : (x \in L) \land (x \in R)\} }[/math] with logical conjunction (and) [math]\displaystyle{ L \land R }[/math] and associate union [math]\displaystyle{ L \cup R = \{x : (x \in L) \lor (x \in R)\} }[/math] with logical disjunction (or) [math]\displaystyle{ L \lor R, }[/math] and then transfer the precedence of these logical operators (where [math]\displaystyle{ \,\land\, }[/math] has precedence over [math]\displaystyle{ \,\lor\, }[/math]) to these set operators, thereby giving [math]\displaystyle{ \,\cap\, }[/math] precedence over [math]\displaystyle{ \,\cup.\, }[/math] So for example, [math]\displaystyle{ L \cup M \cap R }[/math] would mean [math]\displaystyle{ L \cup (M \cap R) }[/math] since it would be associated with the logical statement [math]\displaystyle{ L \lor M \land R ~=~ L \lor (M \land R) }[/math] and similarly, [math]\displaystyle{ L \cup M \cap R \cup Z }[/math] would mean [math]\displaystyle{ L \cup (M \cap R) \cup Z }[/math] since it would be associated with [math]\displaystyle{ L \lor M \land R \lor Z ~=~ L \lor (M \land R) \lor Z. }[/math]
Sometimes, set complement (subtraction) [math]\displaystyle{ \,\setminus\, }[/math] is also associated with logical complement (not) [math]\displaystyle{ \,\lnot,\, }[/math] in which case it will have the highest precedence. More specifically, [math]\displaystyle{ L \setminus R = \{x : (x \in L) \land \lnot (x \in R)\} }[/math] is rewritten [math]\displaystyle{ L \land \lnot R }[/math] so that for example, [math]\displaystyle{ L \cup M \setminus R }[/math] would mean [math]\displaystyle{ L \cup (M \setminus R) }[/math] since it would be rewritten as the logical statement [math]\displaystyle{ L \lor M \land \lnot R }[/math] which is equal to [math]\displaystyle{ L \lor (M \land \lnot R). }[/math] For another example, because [math]\displaystyle{ L \land \lnot M \land R }[/math] means [math]\displaystyle{ L \land (\lnot M) \land R, }[/math] which is equal to both [math]\displaystyle{ (L \land (\lnot M)) \land R }[/math] and [math]\displaystyle{ L \land ((\lnot M) \land R) ~=~ L \land (R \land (\lnot M)) }[/math] (where [math]\displaystyle{ (\lnot M) \land R }[/math] was rewritten as [math]\displaystyle{ R \land (\lnot M) }[/math]), the formula [math]\displaystyle{ L \setminus M \cap R }[/math] would refer to the set [math]\displaystyle{ (L \setminus M) \cap R = L \cap (R \setminus M); }[/math] moreover, since [math]\displaystyle{ L \land (\lnot M) \land R = (L \land R) \land \lnot M, }[/math] this set is also equal to [math]\displaystyle{ (L \cap R) \setminus M }[/math] (other set identities can similarly be deduced from propositional calculus identities in this way). However, because set subtraction is not associative [math]\displaystyle{ (L \setminus M) \setminus R \neq L \setminus (M \setminus R), }[/math] a formula such as [math]\displaystyle{ L \setminus M \setminus R }[/math] would be ambiguous; for this reason, among others, set subtraction is often not assigned any precedence at all.
Symmetric difference [math]\displaystyle{ L \triangle R = \{x : (x \in L) \oplus (x \in R)\} }[/math] is sometimes associated with exclusive or (xor) [math]\displaystyle{ L \oplus R }[/math] (also sometimes denoted by [math]\displaystyle{ \,\veebar }[/math]), in which case if the order of precedence from highest to lowest is [math]\displaystyle{ \,\lnot, \,\oplus, \,\land, \,\lor\, }[/math] then the order of precedence (from highest to lowest) for the set operators would be [math]\displaystyle{ \,\setminus,\, \triangle,\, \cap,\, \cup. }[/math] There is no universal agreement on the precedence of exclusive disjunction [math]\displaystyle{ \,\oplus\, }[/math] with respect to the other logical connectives, which is why symmetric difference [math]\displaystyle{ \,\triangle\, }[/math] is not often assigned a precedence.
Associativity
Definition: A binary operator [math]\displaystyle{ \,\ast\, }[/math] is called associative if [math]\displaystyle{ (L \,\ast\, M) \,\ast\, R = L \,\ast\, (M \,\ast\, R) }[/math] always holds.
The following set operators are associative:[3]
[math]\displaystyle{ \begin{alignat}{5} (L \cup M) \cup R &\;=\;\;&& L \cup (M \cup R) \\[1.4ex] (L \cap M) \cap R &\;=\;\;&& L \cap (M \cap R) \\[1.4ex] (L \,\triangle M) \,\triangle R &\;=\;\;&& L \,\triangle (M \,\triangle R) \\[1.4ex] \end{alignat} }[/math]
For set subtraction, instead of associativity, only the following is always guaranteed: [math]\displaystyle{ (L \,\setminus\, M) \,\setminus\, R \;~~{\color{red}{\subseteq}}~~\; L \,\setminus\, (M \,\setminus\, R) }[/math] where equality holds if and only if [math]\displaystyle{ L \cap R = \varnothing }[/math] (this condition does not depend on [math]\displaystyle{ M }[/math]). Thus [math]\displaystyle{ \; (L \setminus M) \setminus R = L \setminus (M \setminus R) \; }[/math] if and only if [math]\displaystyle{ \; (R \setminus M) \setminus L = R \setminus (M \setminus L), \; }[/math] where the only difference between the left and right hand side set equalities is that the locations of [math]\displaystyle{ L \text{ and } R }[/math] have been swapped.
Distributivity
Definition: If [math]\displaystyle{ \ast \text{ and } \bullet }[/math] are binary operators then [math]\displaystyle{ \,\ast\, }[/math] left distributes over [math]\displaystyle{ \,\bullet\, }[/math] if [math]\displaystyle{ L \,\ast\, (M \,\bullet\, R) ~=~ (L \,\ast\, M) \,\bullet\, (L \,\ast\,R) \qquad\qquad \text{ for all } L, M, R }[/math] while [math]\displaystyle{ \,\ast\, }[/math] right distributes over [math]\displaystyle{ \,\bullet\, }[/math] if [math]\displaystyle{ (L \,\bullet\, M) \,\ast\, R ~=~ (L \,\ast\, R) \,\bullet\, (M \,\ast\,R) \qquad\qquad \text{ for all } L, M, R. }[/math] The operator [math]\displaystyle{ \,\ast\, }[/math] distributes over [math]\displaystyle{ \,\bullet\, }[/math] if it both left distributes and right distributes over [math]\displaystyle{ \,\bullet\,.\, }[/math] 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:[3]
[math]\displaystyle{ \begin{alignat}{9} (L \,\cap\, M) \,\cup\, R ~&~~=~~&& (L \,\cup\, R) \,&&\cap\, &&(M \,\cup\, R) \qquad &&\text{ (Right-distributivity of } \,\cup\, \text{ over } \,\cap\, \text{)} \\[1.4ex] (L \,\cup\, M) \,\cup\, R ~&~~=~~&& (L \,\cup\, R) \,&&\cup\, &&(M \,\cup\, R) \qquad &&\text{ (Right-distributivity of } \,\cup\, \text{ over } \,\cup\, \text{)} \\[1.4ex] (L \,\cup\, M) \,\cap\, R ~&~~=~~&& (L \,\cap\, R) \,&&\cup\, &&(M \,\cap\, R) \qquad &&\text{ (Right-distributivity of } \,\cap\, \text{ over } \,\cup\, \text{)} \\[1.4ex] (L \,\cap\, M) \,\cap\, R ~&~~=~~&& (L \,\cap\, R) \,&&\cap\, &&(M \,\cap\, R) \qquad &&\text{ (Right-distributivity of } \,\cap\, \text{ over } \,\cap\, \text{)} \\[1.4ex] (L \,\triangle\, M) \,\cap\, R ~&~~=~~&& (L \,\cap\, R) \,&&\triangle\, &&(M \,\cap\, R) \qquad &&\text{ (Right-distributivity of } \,\cap\, \text{ over } \,\triangle\, \text{)} \\[1.4ex] (L \,\cap\, M) \,\times\, R ~&~~=~~&& (L \,\times\, R) \,&&\cap\, &&(M \,\times\, R) \qquad &&\text{ (Right-distributivity of } \,\times\, \text{ over } \,\cap\, \text{)} \\[1.4ex] (L \,\cup\, M) \,\times\, R ~&~~=~~&& (L \,\times\, R) \,&&\cup\, &&(M \,\times\, R) \qquad &&\text{ (Right-distributivity of } \,\times\, \text{ over } \,\cup\, \text{)} \\[1.4ex] (L \,\setminus\, M) \,\times\, R ~&~~=~~&& (L \,\times\, R) \,&&\setminus\, &&(M \,\times\, R) \qquad &&\text{ (Right-distributivity of } \,\times\, \text{ over } \,\setminus\, \text{)} \\[1.4ex] (L \,\cup\, M) \,\setminus\, R ~&~~=~~&& (L \,\setminus\, R) \,&&\cup\, &&(M \,\setminus\, R) \qquad &&\text{ (Right-distributivity of } \,\setminus\, \text{ over } \,\cup\, \text{)} \\[1.4ex] (L \,\cap\, M) \,\setminus\, R ~&~~=~~&& (L \,\setminus\, R) \,&&\cap\, &&(M \,\setminus\, R) \qquad &&\text{ (Right-distributivity of } \,\setminus\, \text{ over } \,\cap\, \text{)} \\[1.4ex] (L \,\triangle\, M) \,\setminus\, R ~&~~=~~&& (L \,\setminus\, R) &&\,\triangle\, &&(M \,\setminus\, R) \qquad &&\text{ (Right-distributivity of } \,\setminus\, \text{ over } \,\triangle\, \text{)} \\[1.4ex] (L \,\setminus\, M) \,\setminus\, R ~&~~=~~&& (L \,\setminus\, R) &&\,\setminus\, &&(M \,\setminus\, R) \qquad &&\text{ (Right-distributivity of } \,\setminus\, \text{ over } \,\setminus\, \text{)} \\[1.4ex] ~&~~=~~&&~~\;~~\;~~\;~ L &&\,\setminus\, &&(M \cup R) \\[1.4ex] \end{alignat} }[/math]
Left distributivity:[3]
[math]\displaystyle{ \begin{alignat}{5} L \cup (M \cap R) &\;=\;\;&& (L \cup M) \cap (L \cup R) \qquad &&\text{ (Left-distributivity of } \,\cup\, \text{ over } \,\cap\, \text{)} \\[1.4ex] L \cup (M \cup R) &\;=\;\;&& (L \cup M) \cup (L \cup R) &&\text{ (Left-distributivity of } \,\cup\, \text{ over } \,\cup\, \text{)} \\[1.4ex] L \cap (M \cup R) &\;=\;\;&& (L \cap M) \cup (L \cap R) &&\text{ (Left-distributivity of } \,\cap\, \text{ over } \,\cup\, \text{)} \\[1.4ex] L \cap (M \cap R) &\;=\;\;&& (L \cap M) \cap (L \cap R) &&\text{ (Left-distributivity of } \,\cap\, \text{ over } \,\cap\, \text{)} \\[1.4ex] L \cap (M \,\triangle\, R) &\;=\;\;&& (L \cap M) \,\triangle\, (L \cap R) &&\text{ (Left-distributivity of } \,\cap\, \text{ over } \,\triangle\, \text{)} \\[1.4ex] L \times (M \cap R) &\;=\;\;&& (L \times M) \cap (L \times R) &&\text{ (Left-distributivity of } \,\times\, \text{ over } \,\cap\, \text{)} \\[1.4ex] L \times (M \cup R) &\;=\;\;&& (L \times M) \cup (L \times R) &&\text{ (Left-distributivity of } \,\times\, \text{ over } \,\cup\, \text{)} \\[1.4ex] L \times (M \,\setminus R) &\;=\;\;&& (L \times M) \,\setminus (L \times R) &&\text{ (Left-distributivity of } \,\times\, \text{ over } \,\setminus\, \text{)} \\[1.4ex] \end{alignat} }[/math]
Distributivity and symmetric difference ∆
Intersection distributes over symmetric difference: [math]\displaystyle{ \begin{alignat}{5} L \,\cap\, (M \,\triangle\, R) ~&~~=~~&& (L \,\cap\, M) \,\triangle\, (L \,\cap\, R) ~&&~ \\[1.4ex] \end{alignat} }[/math] [math]\displaystyle{ \begin{alignat}{5} (L \,\triangle\, M) \,\cap\, R~&~~=~~&& (L \,\cap\, R) \,\triangle\, (M \,\cap\, R) ~&&~ \\[1.4ex] \end{alignat} }[/math]
Union does not distribute over symmetric difference because only the following is guaranteed in general: [math]\displaystyle{ \begin{alignat}{5} L \cup (M \,\triangle\, R) ~~{\color{red}{\supseteq}}~~ \color{black}{\,} (L \cup M) \,\triangle\, (L \cup R) ~ &~=~&& (M \,\triangle\, R) \,\setminus\, L &~=~&& (M \,\setminus\, L) \,\triangle\, (R \,\setminus\, L) \\[1.4ex] \end{alignat} }[/math]
Symmetric difference does not distribute over itself: [math]\displaystyle{ L \,\triangle\, (M \,\triangle\, R) ~~{\color{red}{\neq}}~~ \color{black}{\,} (L \,\triangle\, M) \,\triangle\, (L \,\triangle\, R) ~=~ M \,\triangle\, R }[/math] and in general, for any sets [math]\displaystyle{ L \text{ and } A }[/math] (where [math]\displaystyle{ A }[/math] represents [math]\displaystyle{ M \,\triangle\, R }[/math]), [math]\displaystyle{ L \,\triangle\, A }[/math] might not be a subset, nor a superset, of [math]\displaystyle{ L }[/math] (and the same is true for [math]\displaystyle{ A }[/math]).
Distributivity and set subtraction \
Failure of set subtraction to left distribute:
Set subtraction is right distributive over itself. However, set subtraction is not left distributive over itself because only the following is guaranteed in general: [math]\displaystyle{ \begin{alignat}{5} L \,\setminus\, (M \,\setminus\, R) &~~{\color{red}{\supseteq}}~~&& \color{black}{\,} (L \,\setminus\, M) \,\setminus\, (L \,\setminus\, R) ~~=~~ L \cap R \,\setminus\, M \\[1.4ex] \end{alignat} }[/math] where equality holds if and only if [math]\displaystyle{ L \,\setminus\, M = L \,\cap\, R, }[/math] which happens if and only if [math]\displaystyle{ L \cap M \cap R = \varnothing \text{ and } L \setminus M \subseteq R. }[/math]
For symmetric difference, the sets [math]\displaystyle{ L \,\setminus\, (M \,\triangle\, R) }[/math] and [math]\displaystyle{ (L \,\setminus\, M) \,\triangle\, (L \,\setminus\, R) = L \,\cap\, (M \,\triangle\, R) }[/math] are always disjoint. So these two sets are equal if and only if they are both equal to [math]\displaystyle{ \varnothing. }[/math] Moreover, [math]\displaystyle{ L \,\setminus\, (M \,\triangle\, R) = \varnothing }[/math] if and only if [math]\displaystyle{ L \cap M \cap R = \varnothing \text{ and } L \subseteq M \cup R. }[/math]
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: [math]\displaystyle{ \begin{alignat}{5} (L \,\setminus\, M) \,\cap\, (L \,\setminus\, R) ~~=~~ L \,\setminus\, (M \,\cup\, R) ~&~~{\color{red}{\subseteq}}~~&& \color{black}{\,} L \,\setminus\, (M \,\cap\, R) ~~=~~ (L \,\setminus\, M) \,\cup\, (L \,\setminus\, R) \\[1.4ex] \end{alignat} }[/math] 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 [math]\displaystyle{ {\color{red}{\subseteq}} }[/math] might be strict). Equality holds if and only if [math]\displaystyle{ L \,\setminus\, (M \,\cap\, R) \;\subseteq\; L \,\setminus\, (M \,\cup\, R), }[/math] which happens if and only if [math]\displaystyle{ L \,\cap\, M = L \,\cap\, R. }[/math]
This observation about De Morgan's laws shows that [math]\displaystyle{ \,\setminus\, }[/math] is not left distributive over [math]\displaystyle{ \,\cup\, }[/math] or [math]\displaystyle{ \,\cap\, }[/math] because only the following are guaranteed in general: [math]\displaystyle{ \begin{alignat}{5} L \,\setminus\, (M \,\cup\, R) ~&~~{\color{red}{\subseteq}}~~&& \color{black}{\,} (L \,\setminus\, M) \,\cup\, (L \,\setminus\, R) ~~=~~ L \,\setminus\, (M \,\cap\, R) \\[1.4ex] \end{alignat} }[/math] [math]\displaystyle{ \begin{alignat}{5} L \,\setminus\, (M \,\cap\, R) ~&~~{\color{red}{\supseteq}}~~&& \color{black}{\,} (L \,\setminus\, M) \,\cap\, (L \,\setminus\, R) ~~=~~ L \,\setminus\, (M \,\cup\, R) \\[1.4ex] \end{alignat} }[/math] where equality holds for one (or equivalently, for both) of the above two inclusion formulas if and only if [math]\displaystyle{ L \,\cap\, M = L \,\cap\, R. }[/math]
The following statements are equivalent:
- [math]\displaystyle{ L \cap M \,=\, L \cap R }[/math]
- [math]\displaystyle{ L \,\setminus\, M \,=\, L \,\setminus\, R }[/math]
- [math]\displaystyle{ L \,\setminus\, (M \,\cap\, R) = (L \,\setminus\, M) \,\cap\, (L \,\setminus\, R); }[/math] that is, [math]\displaystyle{ \,\setminus\, }[/math] left distributes over [math]\displaystyle{ \,\cap\, }[/math] for these three particular sets
- [math]\displaystyle{ L \,\setminus\, (M \,\cup\, R) = (L \,\setminus\, M) \,\cup\, (L \,\setminus\, R); }[/math] that is, [math]\displaystyle{ \,\setminus\, }[/math] left distributes over [math]\displaystyle{ \,\cup\, }[/math] for these three particular sets
- [math]\displaystyle{ L \,\setminus\, (M \,\cap\, R) \,=\, L \,\setminus\, (M \,\cup\, R) }[/math]
- [math]\displaystyle{ L \cap (M \cup R) \,=\, L \cap M \cap R }[/math]
- [math]\displaystyle{ L \cap (M \cup R) ~\subseteq~ M \cap R }[/math]
- [math]\displaystyle{ L \cap R ~\subseteq~ M \; }[/math] and [math]\displaystyle{ \; L \cap M ~\subseteq~ R }[/math]
- [math]\displaystyle{ L \setminus (M \setminus R) \,=\, L \setminus (R \setminus M) }[/math]
- [math]\displaystyle{ L \setminus (M \setminus R) \,=\, L \setminus (R \setminus M) \,=\, L }[/math]
Quasi-commutativity: [math]\displaystyle{ (L \setminus M) \setminus R ~=~ (L \setminus R) \setminus M \qquad \text{ (Quasi-commutative)} }[/math] always holds but in general, [math]\displaystyle{ L \setminus (M \setminus R) ~~{\color{red}{\neq}}~~ L \setminus (R \setminus M). }[/math] However, [math]\displaystyle{ L \setminus (M \setminus R) ~\subseteq~ L \setminus (R \setminus M) }[/math] if and only if [math]\displaystyle{ L \cap R ~\subseteq~ M }[/math] if and only if [math]\displaystyle{ L \setminus (R \setminus M) ~=~ L. }[/math]
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 [math]\displaystyle{ \,\cup, \,\cap, }[/math] and [math]\displaystyle{ \triangle,\, }[/math] set subtraction is neither associative nor commutative and it also is not left distributive over [math]\displaystyle{ \,\cup, \,\cap, \,\triangle, }[/math] or even over itself.
Two set subtractions
Set subtraction is not associative in general: [math]\displaystyle{ (L \,\setminus\, M) \,\setminus\, R \;~~{\color{red}{\neq}}~~\; L \,\setminus\, (M \,\setminus\, R) }[/math] since only the following is always guaranteed: [math]\displaystyle{ (L \,\setminus\, M) \,\setminus\, R \;~~{\color{red}{\subseteq}}~~\; L \,\setminus\, (M \,\setminus\, R). }[/math]
(L\M)\R
[math]\displaystyle{ \begin{alignat}{4} (L \setminus M) \setminus R &= &&L \setminus (M \cup R) \\[0.6ex] &= (&&L \setminus R) \setminus M \\[0.6ex] &= (&&L \setminus M) \cap (L \setminus R) \\[0.6ex] &= (&&L \setminus R) \setminus M \\[0.6ex] &= (&&L \,\setminus\, R) \,\setminus\, (M \,\setminus\, R) \\[1.4ex] \end{alignat} }[/math]
L\(M\R)
[math]\displaystyle{ \begin{alignat}{4} L \setminus (M \setminus R) &= (L \setminus M) \cup (L \cap R) \\[1.4ex] \end{alignat} }[/math]
- If [math]\displaystyle{ L \subseteq M \text{ then } L \setminus (M \setminus R) = L \cap R }[/math]
- [math]\displaystyle{ L \setminus (M \setminus R) \subseteq (L \setminus M) \cup R }[/math] with equality if and only if [math]\displaystyle{ R \subseteq L. }[/math]
One set subtraction
(L\M) ⁎ R
Set subtraction on the left, and parentheses on the left
[math]\displaystyle{ \begin{alignat}{4} \left(L \setminus M\right) \cup R &= (L \cup R) \setminus (M \setminus R) \\ &= (L \setminus (M \cup R)) \cup R ~~~~~ \text{ (the outermost union is disjoint) } \\ \end{alignat} }[/math]
- [math]\displaystyle{ \begin{alignat}{4} (L \setminus M) \cap R &= (&&L \cap R) \setminus (M \cap R) ~~~\text{ (Distributive law of } \cap \text{ over } \setminus \text{ )} \\ &= (&&L \cap R) \setminus M \\ &= &&L \cap (R \setminus M) \\ \end{alignat} }[/math][4]
[math]\displaystyle{ \begin{alignat}{5} (L \,\setminus\, M) \,\cap\, (L \,\setminus\, R) ~~=~~ L \,\setminus\, (M \,\cup\, R) ~&~~{\color{red}{\subseteq}}~~&& \color{black}{\,} L \,\setminus\, (M \,\cap\, R) ~~=~~ (L \,\setminus\, M) \,\cup\, (L \,\setminus\, R) \\[1.4ex] \end{alignat} }[/math] [math]\displaystyle{ \begin{alignat}{4} (L \setminus M) ~\triangle~ R &= (L \setminus (M \cup R)) \cup (R \setminus L) \cup (L \cap M \cap R) ~~~\text{ (the three outermost sets are pairwise disjoint) } \\ \end{alignat} }[/math]
[math]\displaystyle{ (L \,\setminus M) \times R = (L \times R) \,\setminus (M \times R) ~~~~~\text{ (Distributivity)} }[/math]
L\(M ⁎ R)
Set subtraction on the left, and parentheses on the right
[math]\displaystyle{ \begin{alignat}{3} L \setminus (M \cup R) &= (L \setminus M) &&\,\cap\, (&&L \setminus R) ~~~~\text{ (De Morgan's law) } \\ &= (L \setminus M) &&\,\,\setminus &&R \\ &= (L \setminus R) &&\,\,\setminus &&M \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{4} L \setminus (M \cap R) &= (L \setminus M) \cup (L \setminus R) ~~~~\text{ (De Morgan's law) } \\ \end{alignat} }[/math] where the above two sets that are the subjects of De Morgan's laws always satisfy [math]\displaystyle{ L \,\setminus\, (M \,\cup\, R) ~~{\color{red}{\subseteq}}~~ \color{black}{\,} L \,\setminus\, (M \,\cap\, R). }[/math]
[math]\displaystyle{ \begin{alignat}{4} L \setminus (M ~\triangle~ R) &= (L \setminus (M \cup R)) \cup (L \cap M \cap R) ~~~\text{ (the outermost union is disjoint) } \\ \end{alignat} }[/math]
(L ⁎ M)\R
Set subtraction on the right, and parentheses on the left
[math]\displaystyle{ \begin{alignat}{4} (L \cup M) \setminus R &= (L \setminus R) \cup (M \setminus R) \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{4} (L \cap M) \setminus R &= (&&L \setminus R) &&\cap (M \setminus R) \\ &= &&L &&\cap (M \setminus R) \\ &= &&M &&\cap (L \setminus R) \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{4} (L \,\triangle\, M) \setminus R &= (L \setminus R) ~&&\triangle~ (M \setminus R) \\ &= (L \cup R) ~&&\triangle~ (M \cup R) \\ \end{alignat} }[/math]
L ⁎ (M\R)
Set subtraction on the right, and parentheses on the right
[math]\displaystyle{ \begin{alignat}{3} L \cup (M \setminus R) &= && &&L &&\cup\; &&(M \setminus (R \cup L)) &&~~~\text{ (the outermost union is disjoint) } \\ &= [&&(&&L \setminus M) &&\cup\; &&(R \cap L)] \cup (M \setminus R) &&~~~\text{ (the outermost union is disjoint) } \\ &= &&(&&L \setminus (M \cup R)) \;&&\;\cup &&(R \cap L)\,\, \cup (M \setminus R) &&~~~\text{ (the three outermost sets are pairwise disjoint) } \\ \end{alignat} }[/math]
- [math]\displaystyle{ \begin{alignat}{4} L \cap (M \setminus R) &= (&&L \cap M) &&\setminus (L \cap R) ~~~\text{ (Distributive law of } \cap \text{ over } \setminus \text{ )} \\ &= (&&L \cap M) &&\setminus R \\ &= &&M &&\cap (L \setminus R) \\ &= (&&L \setminus R) &&\cap (M \setminus R) \\ \end{alignat} }[/math][4]
[math]\displaystyle{ L \times (M \,\setminus R) = (L \times M) \,\setminus (L \times R) ~~~~~\text{ (Distributivity)} }[/math]
Three operations on three sets
(L • M) ⁎ (M • R)
Operations of the form [math]\displaystyle{ (L \bullet M) \ast (M \bullet R) }[/math]:
[math]\displaystyle{ \begin{alignat}{9} (L \cup M) &\,\cup\,&& (&&M \cup R) && &&\;=\;\;&& L \cup M \cup R \\[1.4ex] (L \cup M) &\,\cap\,&& (&&M \cup R) && &&\;=\;\;&& M \cup (L \cap R) \\[1.4ex] (L \cup M) &\,\setminus\,&& (&&M \cup R) && &&\;=\;\;&& L \,\setminus\, (M \cup R) \\[1.4ex] (L \cup M) &\,\triangle\,&& (&&M \cup R) && &&\;=\;\;&& (L \,\setminus\, (M \cup R)) \,\cup\, (R \,\setminus\, (L \cup M)) \\[1.4ex] &\,&&\,&&\,&& &&\;=\;\;&& (L \,\triangle\, R) \,\setminus\, M \\[1.4ex] (L \cap M) &\,\cup\,&& (&&M \cap R) && &&\;=\;\;&& M \cup (L \cap R) \\[1.4ex] (L \cap M) &\,\cap\,&& (&&M \cap R) && &&\;=\;\;&& L \cap M \cap R \\[1.4ex] (L \cap M) &\,\setminus\,&& (&&M \cap R) && &&\;=\;\;&& (L \cap M) \,\setminus\, R \\[1.4ex] (L \cap M) &\,\triangle\,&& (&&M \cap R) && &&\;=\;\;&& [(L \,\cap M) \cup (M \,\cap R)] \,\setminus\, (L \,\cap M \,\cap R) \\[1.4ex] (L \,\setminus M) &\,\cup\,&& (&&M \,\setminus R) && &&\;=\;\;&& (L \,\cup M) \,\setminus (M \,\cap\, R) \\[1.4ex] (L \,\setminus M) &\,\cap\,&& (&&M \,\setminus R) && &&\;=\;\;&& \varnothing \\[1.4ex] (L \,\setminus M) &\,\setminus\,&& (&&M \,\setminus R) && &&\;=\;\;&& L \,\setminus M \\[1.4ex] (L \,\setminus M) &\,\triangle\,&& (&&M \,\setminus R) && &&\;=\;\;&& (L \,\setminus M) \cup (M \,\setminus R) \\[1.4ex] &\,&&\,&&\,&& &&\;=\;\;&& (L \,\cup M) \setminus (M \,\cap R) \\[1.4ex] (L \,\triangle\, M) &\,\cup\,&& (&&M \,\triangle\, R) && &&\;=\;\;&& (L \,\cup\, M \,\cup\, R) \,\setminus\, (L \,\cap\, M \,\cap\, R) \\[1.4ex] (L \,\triangle\, M) &\,\cap\,&& (&&M \,\triangle\, R) && &&\;=\;\;&& ((L \,\cap\, R) \,\setminus\, M) \,\cup\, (M \,\setminus\, (L \,\cup\, R)) \\[1.4ex] (L \,\triangle\, M) &\,\setminus\,&& (&&M \,\triangle\, R) && &&\;=\;\;&& (L \,\setminus\, (M \,\cup\, R)) \,\cup\, ((M \,\cap\, R) \,\setminus\, L) \\[1.4ex] (L \,\triangle\, M) &\,\triangle\,&& (&&M \,\triangle\, R) && &&\;=\;\;&& L \,\triangle\, R \\[1.7ex] \end{alignat} }[/math]
(L • M) ⁎ (R\M)
Operations of the form [math]\displaystyle{ (L \bullet M) \ast (R \,\setminus\, M) }[/math]:
[math]\displaystyle{ \begin{alignat}{9} (L \cup M) &\,\cup\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& L \cup M \cup R \\[1.4ex] (L \cup M) &\,\cap\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& (L \cap R) \,\setminus\, M \\[1.4ex] (L \cup M) &\,\setminus\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& M \cup (L \,\setminus\, R) \\[1.4ex] (L \cup M) &\,\triangle\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& M \cup (L \,\triangle\, R) \\[1.4ex] (L \cap M) &\,\cup\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& [L \cap (M \cup R)] \cup [R \,\setminus\, (L \cup M)] \qquad \text{ (disjoint union)} \\[1.4ex] &\,&&\,&&\,&& &&\;=\;\;&& (L \cap M) \,\triangle\, (R \,\setminus\, M) \\[1.4ex] (L \cap M) &\,\cap\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& \varnothing \\[1.4ex] (L \cap M) &\,\setminus\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& L \cap M \\[1.4ex] (L \cap M) &\,\triangle\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& (L \cap M) \cup (R \,\setminus\, M) \qquad \text{ (disjoint union)} \\[1.4ex] (L \,\setminus\, M) &\,\cup\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& L \cup R \,\setminus\, M \\[1.4ex] (L \,\setminus\, M) &\,\cap\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& (L \cap R) \,\setminus\, M \\[1.4ex] (L \,\setminus\, M) &\,\setminus\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& L \,\setminus\, (M \cup R) \\[1.4ex] (L \,\setminus\, M) &\,\triangle\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& (L \,\triangle\, R) \,\setminus\, M \\[1.4ex] (L \,\triangle\, M) &\,\cup\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& (L \cup M \cup R) \,\setminus\, (L \cap M) \\[1.4ex] (L \,\triangle\, M) &\,\cap\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& (L \cap R) \,\setminus\, M \\[1.4ex] (L \,\triangle\, M) &\,\setminus\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& [L \,\setminus\, (M \cup R)] \cup (M \,\setminus\, L) \qquad \text{ (disjoint union)} \\[1.4ex] &\,&&\,&&\,&& &&\;=\;\;&& (L \,\triangle\, M) \setminus (L \,\cap R) \\[1.4ex] (L \,\triangle\, M) &\,\triangle\,&& (&&R \,\setminus\, M) && &&\;=\;\;&& L \,\triangle\, (M \cup R) \\[1.7ex] \end{alignat} }[/math]
(L\M) ⁎ (L\R)
Operations of the form [math]\displaystyle{ (L \,\setminus\, M) \ast (L \,\setminus\, R) }[/math]:
[math]\displaystyle{ \begin{alignat}{9} (L \,\setminus M) &\,\cup\,&& (&&L \,\setminus R) &&\;=\;&& L \,\setminus\, (M \,\cap\, R) \\[1.4ex] (L \,\setminus M) &\,\cap\,&& (&&L \,\setminus R) &&\;=\;&& L \,\setminus\, (M \,\cup\, R) \\[1.4ex] (L \,\setminus M) &\,\setminus\,&& (&&L \,\setminus R) &&\;=\;&& (L \,\cap\, R) \,\setminus\, M \\[1.4ex] (L \,\setminus M) &\,\triangle\,&& (&&L \,\setminus R) &&\;=\;&& L \,\cap\, (M \,\triangle\, R) \\[1.4ex] &\,&&\,&&\, &&\;=\;&& (L \cap M) \,\triangle\, (L \cap R) \\[1.4ex] \end{alignat} }[/math]
Other simplifications
Other properties:
[math]\displaystyle{ L \cap M = R \;\text{ and }\; L \cap R = M \qquad \text{ if and only if } \qquad M = R \subseteq L. }[/math]
- If [math]\displaystyle{ L \subseteq M }[/math] then [math]\displaystyle{ L \setminus R = L \cap (M \setminus R). }[/math][4]
- [math]\displaystyle{ L \times (M \,\setminus R) = (L \times M) \,\setminus (L \times R) }[/math]
- If [math]\displaystyle{ L \subseteq R }[/math] then [math]\displaystyle{ M \setminus R \subseteq M \setminus L. }[/math]
- [math]\displaystyle{ L \cap M \cap R = \varnothing }[/math] if and only if for any [math]\displaystyle{ x \in L \cup M \cup R, }[/math] [math]\displaystyle{ x }[/math] belongs to at most two of the sets [math]\displaystyle{ L, M, \text{ and } R. }[/math]
Cartesian products ⨯ of finitely many sets
Binary ⋂ of finite ⨯
[math]\displaystyle{ (L \times R) \cap \left(L_2 \times R_2\right) ~=~ \left(L \cap L_2\right) \times \left(R \cap R_2\right) }[/math] [math]\displaystyle{ (L \times M \times R) \cap \left(L_2 \times M_2 \times R_2\right) ~=~ \left(L \cap L_2\right) \times \left(M \cap M_2\right) \times \left(R \cap R_2\right) }[/math]
Binary ⋃ of finite ⨯
[math]\displaystyle{ \begin{alignat}{9} \left(L \times R\right) ~\cup~ \left(L_2 \times R_2\right) ~&=~ \left[\left(L \setminus L_2\right) \times R\right] ~\cup~ \left[\left(L_2 \setminus L\right) \times R_2\right] ~\cup~ \left[\left(L \cap L_2\right) \times \left(R \cup R_2\right)\right] \\[0.5ex] ~&=~ \left[L \times \left(R \setminus R_2\right)\right] ~\cup~ \left[L_2 \times \left(R_2 \setminus R\right)\right] ~\cup~ \left[\left(L \cup L_2\right) \times \left(R \cap R_2\right)\right] \\ \end{alignat} }[/math]
Difference \ of finite ⨯
[math]\displaystyle{ \begin{alignat}{9} \left(L \times R\right) ~\setminus~ \left(L_2 \times R_2\right) ~&=~ \left[\left(L \,\setminus\, L_2\right) \times R\right] ~\cup~ \left[L \times \left(R \,\setminus\, R_2\right)\right] \\ \end{alignat} }[/math] and [math]\displaystyle{ (L \times M \times R) ~\setminus~ \left(L_2 \times M_2 \times R_2\right) ~=~ \left[\left(L \,\setminus\, L_2\right) \times M \times R\right] ~\cup~ \left[L \times \left(M \,\setminus\, M_2\right) \times R\right] ~\cup~ \left[L \times M \times \left(R \,\setminus\, R_2\right)\right] }[/math]
Finite ⨯ of differences \
[math]\displaystyle{ \left(L \,\setminus\, L_2\right) \times \left(R \,\setminus\, R_2\right) ~=~ \left(L \times R\right) \,\setminus\, \left[\left(L_2 \times R\right) \cup \left(L \times R_2\right)\right] }[/math]
[math]\displaystyle{ \left(L \,\setminus\, L_2\right) \times \left(M \,\setminus\, M_2\right) \times \left(R \,\setminus\, R_2\right) ~=~ \left(L \times M \times R\right) \,\setminus\, \left[\left(L_2 \times M \times R\right) \cup \left(L \times M_2 \times R\right) \cup \left(L \times M \times R_2\right)\right] }[/math]
Symmetric difference ∆ and finite ⨯
[math]\displaystyle{ L \times \left(R \,\triangle\, R_2\right) ~=~ \left[L \times \left(R \,\setminus\, R_2\right)\right] \,\cup\, \left[L \times \left(R_2 \,\setminus\, R\right)\right] }[/math] [math]\displaystyle{ \left(L \,\triangle\, L_2\right) \times R ~=~ \left[\left(L \,\setminus\, L_2\right) \times R\right] \,\cup\, \left[\left(L_2 \,\setminus\, L\right) \times R\right] }[/math]
[math]\displaystyle{ \begin{alignat}{4} \left(L \,\triangle\, L_2\right) \times \left(R \,\triangle\, R_2\right) ~&=~ && && \,\left[\left(L \cup L_2\right) \times \left(R \cup R_2\right)\right] \;\setminus\; \left[\left(\left(L \cap L_2\right) \times R\right) \;\cup\; \left(L \times \left(R \cap R_2\right)\right)\right] \\[0.7ex] &=~ & &&& \,\left[\left(L \,\setminus\, L_2\right) \times \left(R_2 \,\setminus\, R\right)\right] \,\cup\, \left[\left(L_2 \,\setminus\, L\right) \times \left(R_2 \,\setminus\, R\right)\right] \,\cup\, \left[\left(L \,\setminus\, L_2\right) \times \left(R \,\setminus\, R_2\right)\right] \,\cup\, \left[\left(L_2 \,\setminus\, L\right) \cup \left(R \,\setminus\, R_2\right)\right] \\ \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{4} \left(L \,\triangle\, L_2\right) \times \left(M \,\triangle\, M_2\right) \times \left(R \,\triangle\, R_2\right) ~&=~ \left[\left(L \cup L_2\right) \times \left(M \cup M_2\right) \times \left(R \cup R_2\right)\right] \;\setminus\; \left[\left(\left(L \cap L_2\right) \times M \times R\right) \;\cup\; \left(L \times \left(M \cap M_2\right) \times R\right) \;\cup\; \left(L \times M \times \left(R \cap R_2\right)\right)\right] \\ \end{alignat} }[/math]
In general, [math]\displaystyle{ \left(L \,\triangle\, L_2\right) \times \left(R \,\triangle\, R_2\right) }[/math] need not be a subset nor a superset of [math]\displaystyle{ \left(L \times R\right) \,\triangle\, \left(L_2 \times R_2\right). }[/math]
[math]\displaystyle{ \begin{alignat}{4} \left(L \times R\right) \,\triangle\, \left(L_2 \times R_2\right) ~&=~ && \left(L \times R\right) \cup \left(L_2 \times R_2\right) \;\setminus\; \left[\left(L \cap L_2\right) \times \left(R \cap R_2\right)\right] \\[0.7ex] \end{alignat} }[/math]
[math]\displaystyle{ \begin{alignat}{4} \left(L \times M \times R\right) \,\triangle\, \left(L_2 \times M_2 \times R_2\right) ~&=~ && \left(L \times M \times R\right) \cup \left(L_2 \times M_2 \times R_2\right) \;\setminus\; \left[\left(L \cap L_2\right) \times \left(M \cap M_2\right) \times \left(R \cap R_2\right)\right] \\[0.7ex] \end{alignat} }[/math]
Arbitrary families of sets
Let [math]\displaystyle{ \left(L_i\right)_{i \in I}, }[/math] [math]\displaystyle{ \left(R_j\right)_{j \in J}, }[/math] and [math]\displaystyle{ \left(S_{i,j}\right)_{(i, j) \in I \times J} }[/math] be indexed families of sets. Whenever the assumption is needed, then all indexing sets, such as [math]\displaystyle{ I }[/math] and [math]\displaystyle{ J, }[/math] are assumed to be non-empty.
Definitions
A family of sets or (more briefly) a family refers to a set whose elements are sets.
An indexed family of sets is a function from some set, called its indexing set, into some family of sets. An indexed family of sets will be denoted by [math]\displaystyle{ \left(L_i\right)_{i \in I}, }[/math] where this notation assigns the symbol [math]\displaystyle{ I }[/math] for the indexing set and for every index [math]\displaystyle{ i \in I, }[/math] assigns the symbol [math]\displaystyle{ L_i }[/math] to the value of the function at [math]\displaystyle{ i. }[/math] The function itself may then be denoted by the symbol [math]\displaystyle{ L_\bull, }[/math] which is obtained from the notation [math]\displaystyle{ \left(L_i\right)_{i \in I} }[/math] by replacing the index [math]\displaystyle{ i }[/math] with a bullet symbol [math]\displaystyle{ \bullet\,; }[/math] explicitly, [math]\displaystyle{ L_\bull }[/math] is the function: [math]\displaystyle{ \begin{alignat}{4} L_\bull :\;&& I &&\;\to \;& \left\{L_i : i \in I\right\} \\[0.3ex] && i &&\;\mapsto\;& L_i \\ \end{alignat} }[/math] which may be summarized by writing [math]\displaystyle{ L_\bull = \left(L_i\right)_{i \in I}. }[/math]
Any given indexed family of sets [math]\displaystyle{ L_\bull = \left(L_i\right)_{i \in I} }[/math] (which is a function) can be canonically associated with its image/range [math]\displaystyle{ \operatorname{Im} L_\bull ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \left\{L_i : i \in I\right\} }[/math] (which is a family of sets). Conversely, any given family of sets [math]\displaystyle{ \mathcal{B} }[/math] may be associated with the [math]\displaystyle{ \mathcal{B} }[/math]-indexed family of sets [math]\displaystyle{ (B)_{B \in \mathcal{B}}, }[/math] which is technically the identity map [math]\displaystyle{ \mathcal{B} \to \mathcal{B}. }[/math] However, this is not a bijective correspondence because an indexed family of sets [math]\displaystyle{ L_\bull = \left(L_i\right)_{i \in I} }[/math] is not required to be injective (that is, there may exist distinct indices [math]\displaystyle{ i \neq j }[/math] such as [math]\displaystyle{ L_i = L_j }[/math]), 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 defined[3]
[math]\displaystyle{ \bigcup_{i \in I} L_i ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{x ~:~ \text{ there exists } i \in I \text{ such that } x \in L_i\} }[/math] |
|
( ) |
If [math]\displaystyle{ I = \varnothing }[/math] then [math]\displaystyle{ \bigcup_{i \in \varnothing} L_i = \{x ~:~ \text{ there exists } i \in \varnothing \text{ such that } x \in L_i\} = \varnothing, }[/math] which is somethings called the nullary union convention (despite being called a convention, this equality follows from the definition).
If [math]\displaystyle{ \mathcal{B} }[/math] is a family of sets then [math]\displaystyle{ \cup \mathcal{B} }[/math] denotes the set: [math]\displaystyle{ \bigcup \mathcal{B} ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \bigcup_{B \in \mathcal{B}} B ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{x ~:~ \text{ there exists } B \in \mathcal{B} \text{ such that } x \in B\}. }[/math]
Arbitrary intersections defined
If [math]\displaystyle{ I \neq \varnothing }[/math] then[3]
[math]\displaystyle{ \bigcap_{i \in I} L_i ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{x ~:~ x \in L_i \text{ for every } i \in I\} ~=~ \{x ~:~ \text{ for all } i, \text{ if } i \in I \text{ then } x \in L_i\}. }[/math] |
|
( ) |
If [math]\displaystyle{ \mathcal{B} \neq \varnothing }[/math] is a non-empty family of sets then [math]\displaystyle{ \cap \mathcal{B} }[/math] denotes the set: [math]\displaystyle{ \bigcap \mathcal{B} ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \bigcap_{B \in B} B ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{x ~:~ x \in B \text{ for every } B \in \mathcal{B}\} ~=~ \{x ~:~ \text{ for all } B, \text{ if } B \in \mathcal{B} \text{ then } x \in B\}. }[/math]
Nullary intersections
If [math]\displaystyle{ I = \varnothing }[/math] then [math]\displaystyle{ \bigcap_{i \in \varnothing} L_i = \{x ~:~ \text{ for all } i, \text{ if } i \in \varnothing \text{ then } x \in L_i\} }[/math] where every possible thing [math]\displaystyle{ x }[/math] in the universe vacuously satisfied the condition: "if [math]\displaystyle{ i \in \varnothing }[/math] then [math]\displaystyle{ x \in L_i }[/math]". Consequently, [math]\displaystyle{ {\textstyle\bigcap\limits_{i \in \varnothing}} L_i = \{x : \text{ true }\} }[/math] consists of everything in the universe.
So if [math]\displaystyle{ I = \varnothing }[/math] and:
- if you are working in a model in which there exists some universe set [math]\displaystyle{ X }[/math] then [math]\displaystyle{ {\textstyle\bigcap\limits_{i \in \varnothing}} L_i = \{x ~:~ x \in L_i \text{ for every } i \in \varnothing\} ~=~ X. }[/math]
- otherwise, if you are working in a model in which "the class of all things [math]\displaystyle{ x }[/math]" is not a set (by far the most common situation) then [math]\displaystyle{ {\textstyle\bigcap\limits_{i \in \varnothing}} L_i }[/math] is undefined because [math]\displaystyle{ {\textstyle\bigcap\limits_{i \in \varnothing}} L_i }[/math] consists of everything, which makes [math]\displaystyle{ {\textstyle\bigcap\limits_{i \in \varnothing}} L_i }[/math] a proper class and not 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 finite intersection of sets or an intersection of finitely many sets refers to the intersection of a finite collection of one or more sets.
Some authors adopt the so called nullary intersection convention, 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 [math]\displaystyle{ X }[/math] then some author may declare that the empty intersection of these sets be equal to [math]\displaystyle{ X. }[/math] 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 [math]\displaystyle{ X }[/math] 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 [math]\displaystyle{ \bigcup_{\stackrel{i \in I,}{j \in J}} S_{i,j} ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \bigcup_{(i, j) \in I \times J} S_{i,j} }[/math] [math]\displaystyle{ \bigcap_{\stackrel{i \in I,}{j \in J}} S_{i,j} ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \bigcap_{(i, j) \in I \times J} S_{i,j} }[/math]
Distributing unions and intersections
Binary ⋂ of arbitrary ⋃'s
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \cap R ~=~ \bigcup_{i \in I} \left(L_i \cap R\right) }[/math] |
|
( ) |
and[4]
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \cap \left(\bigcup_{j \in J} R_j\right) ~=~ \bigcup_{\stackrel{i \in I,}{j \in J}} \left(L_i \cap R_j\right) }[/math] |
|
( ) |
- If all [math]\displaystyle{ \left(L_i\right)_{i \in I} }[/math] are pairwise disjoint and all [math]\displaystyle{ \left(R_j\right)_{j \in J} }[/math] are also pairwise disjoint, then so are all [math]\displaystyle{ \left(L_i \cap R_j\right)_{(i, j) \in I \times J} }[/math] (that is, if [math]\displaystyle{ (i, j) \neq \left(i_2, j_2\right) }[/math] then [math]\displaystyle{ \left(L_i \cap R_j\right) \cap \left(L_{i_2} \cap R_{j_2}\right) = \varnothing }[/math]).
- Importantly, if [math]\displaystyle{ I = J }[/math] then in general, [math]\displaystyle{ ~\left(\bigcup_{i \in I} L_i\right) \cap \left(\bigcup_{i \in I} R_i\right) ~~\color{Red}{\neq}\color{Black}{}~~ \bigcup_{i \in I} \left(L_i \cap R_i\right)~ }[/math] (an example of this is given below). The single union on the right hand side must be over all pairs [math]\displaystyle{ (i, j) \in I \times I: }[/math] [math]\displaystyle{ ~\left(\bigcup_{i \in I} L_i\right) \cap \left(\bigcup_{i \in I} R_i\right) ~~=~~ \bigcup_{\stackrel{i \in I,}{j \in I}} \left(L_i \cap R_j\right).~ }[/math] The same is usually true for other similar non-trivial set equalities and relations that depend on two (potentially unrelated) indexing sets [math]\displaystyle{ I }[/math] and [math]\displaystyle{ J }[/math] (such as Eq. 4b or Eq. 7g[4]). Two exceptions are Eq. 2c (unions of unions) and Eq. 2d (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]).
- Example where equality fails: Let [math]\displaystyle{ X \neq \varnothing }[/math] and let [math]\displaystyle{ I = \{1, 2\}. }[/math] Let [math]\displaystyle{ L_1 \colon= R_2 \colon= X }[/math] and let [math]\displaystyle{ L_2 \colon= R_1 \colon= \varnothing. }[/math] Then [math]\displaystyle{ X = X \cap X = \left(L_1 \cup L_2\right) \cap \left(R_2 \cup R_2\right) = \left(\bigcup_{i \in I} L_i\right) \cap \left(\bigcup_{i \in I} R_i\right) ~\neq~ \bigcup_{i \in I} \left(L_i \cap R_i\right) = \left(L_1 \cap R_1\right) \cup \left(L_2 \cap R_2\right) = \varnothing \cup \varnothing = \varnothing. }[/math] Furthermore, [math]\displaystyle{ \varnothing = \varnothing \cup \varnothing = \left(L_1 \cap L_2\right) \cup \left(R_2 \cap R_2\right) = \left(\bigcap_{i \in I} L_i\right) \cup \left(\bigcap_{i \in I} R_i\right) ~\neq~ \bigcap_{i \in I} \left(L_i \cup R_i\right) = \left(L_1 \cup R_1\right) \cap \left(L_2 \cup R_2\right) = X \cap X = X. }[/math]
Binary ⋃ of arbitrary ⋂'s
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \cup R ~=~ \bigcap_{i \in I} \left(L_i \cup R\right) }[/math] |
|
( ) |
and[4]
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \cup \left(\bigcap_{j \in J} R_j\right) ~=~ \bigcap_{\stackrel{i \in I,}{j \in J}} \left(L_i \cup R_j\right) }[/math] |
|
( ) |
- Importantly, if [math]\displaystyle{ I = J }[/math] then in general, [math]\displaystyle{ ~\left(\bigcap_{i \in I} L_i\right) \cup \left(\bigcap_{i \in I} R_i\right) ~~\color{Red}{\neq}\color{Black}{}~~ \bigcap_{i \in I} \left(L_i \cup R_i\right)~ }[/math] (an example of this is given above). The single intersection on the right hand side must be over all pairs [math]\displaystyle{ (i, j) \in I \times I: }[/math] [math]\displaystyle{ ~\left(\bigcap_{i \in I} L_i\right) \cup \left(\bigcap_{i \in I} R_i\right) ~~=~~ \bigcap_{\stackrel{i \in I,}{j \in I}} \left(L_i \cup R_j\right).~ }[/math]
Arbitrary ⋂'s and arbitrary ⋃'s
Incorrectly distributing by swapping ⋂ and ⋃
Naively swapping [math]\displaystyle{ \;{\textstyle\bigcup\limits_{i \in I}}\; }[/math] and [math]\displaystyle{ \;{\textstyle\bigcap\limits_{j \in J}}\; }[/math] may produce a different set
The following inclusion always holds:
[math]\displaystyle{ \bigcup_{i \in I} \left(\bigcap_{j \in J} S_{i,j}\right) ~~\color{Red}{\subseteq}\color{Black}{}~~ \bigcap_{j \in J} \left(\bigcup_{i \in I} S_{i,j}\right) }[/math] |
|
( ) |
In general, equality need not hold and moreover, the right hand side depends on how for each fixed [math]\displaystyle{ i \in I, }[/math] the sets [math]\displaystyle{ \left(S_{i,j}\right)_{j \in J} }[/math] are labelled; and analogously, the left hand side depends on how for each fixed [math]\displaystyle{ j \in J, }[/math] the sets [math]\displaystyle{ \left(S_{i,j}\right)_{i \in I} }[/math] 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 [math]\displaystyle{ \cup }[/math] and [math]\displaystyle{ \cap }[/math] are swapped, let [math]\displaystyle{ I \colon= J \colon= \{1, 2\}, }[/math] and let [math]\displaystyle{ S_{11} = \{1, 2\},~S_{12} = \{1, 3\},~S_{21} = \{3, 4\}, }[/math] and [math]\displaystyle{ S_{22} = \{2, 4\}. }[/math] Then [math]\displaystyle{ \{1, 4\} = \{1\} \cup \{4\} = \left(S_{11} \cap S_{12}\right) \cup \left(S_{21} \cap S_{22}\right) = \bigcup_{i \in I} \left(\bigcap_{j \in J} S_{i,j}\right) ~\neq~ \bigcap_{j \in J} \left(\bigcup_{i \in I} S_{i,j}\right) = \left(S_{11} \cup S_{21}\right) \cap \left(S_{12} \cup S_{22}\right) = \{1, 2, 3, 4\}. }[/math] If [math]\displaystyle{ S_{11} }[/math] and [math]\displaystyle{ S_{21} }[/math] are swapped while [math]\displaystyle{ S_{12} }[/math] and [math]\displaystyle{ S_{22} }[/math] are unchanged, which gives rise to the sets [math]\displaystyle{ \hat{S}_{11} \colon= \{3, 4\},~\hat{S}_{12} \colon= \{1, 3\},~\hat{S}_{21} \colon= \{1, 2\}, }[/math] and [math]\displaystyle{ \hat{S}_{22} \colon= \{2, 4\}, }[/math] then [math]\displaystyle{ \{2, 3\} = \{3\} \cup \{2\} = \left(\hat{S}_{11} \cap \hat{S}_{12}\right) \cup \left(\hat{S}_{21} \cap \hat{S}_{22}\right) = \bigcup_{i \in I} \left(\bigcap_{j \in J} \hat{S}_{i,j}\right) ~\neq~ \bigcap_{j \in J} \left(\bigcup_{i \in I} \hat{S}_{i,j}\right) = \left(\hat{S}_{11} \cup \hat{S}_{21}\right) \cap \left(\hat{S}_{12} \cup \hat{S}_{22}\right) = \{1, 2, 3, 4\}. }[/math] In particular, the left hand side is no longer [math]\displaystyle{ \{1, 4\}, }[/math] which shows that the left hand side [math]\displaystyle{ {\textstyle\bigcup\limits_{i \in I}} \; {\textstyle\bigcap\limits_{j \in J}} S_{i,j} }[/math] depends on how the sets are labelled. If instead [math]\displaystyle{ S_{11} }[/math] and [math]\displaystyle{ S_{12} }[/math] are swapped while [math]\displaystyle{ S_{21} }[/math] and [math]\displaystyle{ S_{22} }[/math] are unchanged, which gives rise to the sets [math]\displaystyle{ \overline{S}_{11} \colon= \{1, 3\},~ \overline{S}_{12} \colon= \{1, 2\},~ \overline{S}_{21} \colon= \{3, 4\}, }[/math] and [math]\displaystyle{ \overline{S}_{22} \colon= \{2, 4\}, }[/math] then both the left hand side and right hand side are equal to [math]\displaystyle{ \{1, 4\}, }[/math] which shows that the right hand side also depends on how the sets are labeled.
Equality in Inclusion 1 ∪∩ is a subset of ∩∪ can hold under certain circumstances, such as in 7e, which is the special case where [math]\displaystyle{ \left(S_{i,j}\right)_{(i,j) \in I \times J} }[/math] is [math]\displaystyle{ \left(L_i \setminus R_j\right)_{(i,j) \in I \times J} }[/math] (that is, [math]\displaystyle{ S_{i,j} \colon= L_i \setminus R_j }[/math] with the same indexing sets [math]\displaystyle{ I }[/math] and [math]\displaystyle{ J }[/math]), or such as in 7f, which is the special case where [math]\displaystyle{ \left(S_{i,j}\right)_{(i,j) \in I \times J} }[/math] is [math]\displaystyle{ \left(L_i \setminus R_j\right)_{(j, i) \in J \times I} }[/math] (that is, [math]\displaystyle{ \hat{S}_{j,i} \colon= L_i \setminus R_j }[/math] with the indexing sets [math]\displaystyle{ I }[/math] and [math]\displaystyle{ J }[/math] swapped). For a correct formula that extends the distributive laws, an approach other than just switching [math]\displaystyle{ \cup }[/math] and [math]\displaystyle{ \cap }[/math] is needed.
Correct distributive laws
Suppose that for each [math]\displaystyle{ i \in I, }[/math] [math]\displaystyle{ J_i }[/math] is a non-empty index set and for each [math]\displaystyle{ j \in J_i, }[/math] let [math]\displaystyle{ T_{i,j} }[/math] be any set (for example, to apply this law to [math]\displaystyle{ \left(S_{i,j}\right)_{(i, j) \in I \times J}, }[/math] use [math]\displaystyle{ J_i \colon= J }[/math] for all [math]\displaystyle{ i \in I }[/math] and use [math]\displaystyle{ T_{i,j} \colon= S_{i,j} }[/math] for all [math]\displaystyle{ i \in I }[/math] and all [math]\displaystyle{ j \in J_i = J }[/math]). Let [math]\displaystyle{ {\textstyle \prod} J_{\bull} ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \prod_{i \in I} J_i }[/math] denote the Cartesian product, which can be interpreted as the set of all functions [math]\displaystyle{ f ~:~ I ~\to~ {\textstyle\bigcup\limits_{i \in I}} J_i }[/math] such that [math]\displaystyle{ f(i) \in J_i }[/math] for every [math]\displaystyle{ i \in I. }[/math] Such a function may also be denoted using the tuple notation [math]\displaystyle{ \left(f_i\right)_{i \in I} }[/math] where [math]\displaystyle{ f_i ~\stackrel{\scriptscriptstyle\text{def}}{=}~ f(i) }[/math] for every [math]\displaystyle{ i \in I }[/math] and conversely, a tuple [math]\displaystyle{ \left(f_i\right)_{i \in I} }[/math] is just notation for the function with domain [math]\displaystyle{ I }[/math] whose value at [math]\displaystyle{ i \in I }[/math] is [math]\displaystyle{ f_i; }[/math] both notations can be used to denote the elements of [math]\displaystyle{ {\textstyle \prod} J_{\bull}. }[/math] Then
[math]\displaystyle{ \bigcap_{i \in I} \left[\;\bigcup_{j \in J_i} T_{i,j}\right] = \bigcup_{f \in \prod J_{\bull}} \left[\;\bigcap_{i \in I} T_{i,f(i)}\right] }[/math] |
|
( ) |
[math]\displaystyle{ \bigcup_{i \in I} \left[\;\bigcap_{j \in J_i} T_{i,j}\right] = \bigcap_{f \in \prod J_{\bull}} \left[\;\bigcup_{i \in I} T_{i,f(i)}\right] }[/math] |
|
( ) |
where [math]\displaystyle{ {\textstyle \prod} J_{\bull} ~\stackrel{\scriptscriptstyle\text{def}}{=}~ {\textstyle\prod\limits_{i \in I}} J_i. }[/math]
Applying the distributive laws
Example application: In the particular case where all [math]\displaystyle{ J_i }[/math] are equal (that is, [math]\displaystyle{ J_i = J_{i_2} }[/math] for all [math]\displaystyle{ i, i_2 \in I, }[/math] which is the case with the family [math]\displaystyle{ \left(S_{i,j}\right)_{(i, j) \in I \times J}, }[/math] for example), then letting [math]\displaystyle{ J }[/math] denote this common set, the Cartesian product will be [math]\displaystyle{ {\textstyle \prod} J_{\bull} ~\stackrel{\scriptscriptstyle\text{def}}{=}~ {\textstyle\prod\limits_{i \in I}} J_i = {\textstyle\prod\limits_{i \in I}} J = J^I, }[/math] which is the set of all functions of the form [math]\displaystyle{ f ~:~ I ~\to~ J. }[/math] The above set equalities Eq. 5 ∩∪ to ∪∩ and Eq. 6 ∪∩ to ∩∪, respectively become:[3] [math]\displaystyle{ \bigcap_{i \in I} \; \bigcup_{j \in J} S_{i,j} = \bigcup_{f \in J^I} \; \bigcap_{i \in I} S_{i,f(i)} }[/math] [math]\displaystyle{ \bigcup_{i \in I} \; \bigcap_{j \in J} S_{i,j} = \bigcap_{f \in J^I} \; \bigcup_{i \in I} S_{i,f(i)} }[/math]
which when combined with Inclusion 1 ∪∩ is a subset of ∩∪ implies: [math]\displaystyle{ \bigcup_{i \in I} \; \bigcap_{j \in J} S_{i,j} ~=~ \bigcap_{f \in J^I} \; \bigcup_{i \in I} S_{i,f(i)} ~~\color{Red}{\subseteq}\color{Black}{}~~ \bigcup_{g \in I^J} \; \bigcap_{j \in J} S_{g(j),j} ~=~ \bigcap_{j \in J} \; \bigcup_{i \in I} S_{i,j} }[/math] where
- on the left hand side, the indices [math]\displaystyle{ f \text{ and } i }[/math] range over [math]\displaystyle{ f \in J^I \text{ and } i \in I }[/math] (so the subscripts of [math]\displaystyle{ S_{i,f(i)} }[/math] range over [math]\displaystyle{ i \in I \text{ and } f(i) \in f(I) \subseteq J }[/math])
- on the right hand side, the indices [math]\displaystyle{ g \text{ and } j }[/math] range over [math]\displaystyle{ g \in I^J \text{ and } j \in J }[/math] (so the subscripts of [math]\displaystyle{ S_{g(j),j} }[/math] range over [math]\displaystyle{ j \in J \text{ and } g(j) \in g(J) \subseteq I }[/math]).
Example application: To apply the general formula to the case of [math]\displaystyle{ \left(C_k\right)_{k \in K} }[/math] and [math]\displaystyle{ \left(D_{l}\right)_{l \in L}, }[/math] use [math]\displaystyle{ I \colon= \{1, 2\}, }[/math] [math]\displaystyle{ J_1 \colon= K, }[/math] [math]\displaystyle{ J_2 \colon= L, }[/math] and let [math]\displaystyle{ T_{1,k} \colon= C_k }[/math] for all [math]\displaystyle{ k \in J_1 }[/math] and let [math]\displaystyle{ T_{2,l} \colon= D_l }[/math] for all [math]\displaystyle{ l \in J_2. }[/math]
Every map [math]\displaystyle{ f \in {\textstyle \prod} J_{\bull} ~\stackrel{\scriptscriptstyle\text{def}}{=}~ {\textstyle\prod\limits_{i \in I}} J_i = J_1 \times J_2 = K \times L }[/math] can be bijectively identified with the pair [math]\displaystyle{ \left(f(1), f(2)\right) \in K \times L }[/math] (the inverse sends [math]\displaystyle{ (k,l) \in K \times L }[/math] to the map [math]\displaystyle{ f_{(k,l)} \in {\textstyle \prod} J_{\bull} }[/math] defined by [math]\displaystyle{ 1 \mapsto k }[/math] and [math]\displaystyle{ 2 \mapsto l; }[/math] this is technically just a change of notation). Recall that Eq. 5 ∩∪ to ∪∩ was
[math]\displaystyle{ ~\bigcap_{i \in I} \; \bigcup_{j \in J_i} T_{i,j} = \bigcup_{f \in {\textstyle \prod} J_{\bull}} \; \bigcap_{i \in I} T_{i,f(i)}.~ }[/math]
Expanding and simplifying the left hand side gives
[math]\displaystyle{ \bigcap_{i \in I} \; \bigcup_{j \in J_i} T_{i,j}
= \left(\bigcup_{j \in J_1} T_{1,j}\right) \cap \left(\;\bigcup_{j \in J_2} T_{2,j}\right)
= \left(\bigcup_{k \in K} T_{1,k}\right) \cap \left(\;\bigcup_{l \in L} T_{2,l}\right)
= \left(\bigcup_{k \in K} C_k\right) \cap \left(\;\bigcup_{l \in L} D_l\right)
}[/math]
and doing the same to the right hand side gives:
[math]\displaystyle{ \bigcup_{f \in \prod J_{\bull}} \; \bigcap_{i \in I} T_{i,f(i)}
= \bigcup_{f \in \prod J_{\bull}} \left(T_{1,f(1)} \cap T_{2,f(2)}\right)
= \bigcup_{f \in \prod J_{\bull}} \left(C_{f(1)} \cap D_{f(2)}\right)
= \bigcup_{(k,l) \in K \times L} \left(C_k \cap D_l\right)
= \bigcup_{\stackrel{k \in K,}{l \in L}} \left(C_k \cap D_l\right).
}[/math]
Thus the general identity Eq. 5 ∩∪ to ∪∩ reduces down to the previously given set equality Eq. 3b: [math]\displaystyle{ \left(\bigcup_{k \in K} C_k\right) \cap \;\bigcup_{l \in L} D_l = \bigcup_{\stackrel{k \in K,}{l \in L}} \left(C_k \cap D_l\right). }[/math]
Distributing subtraction over ⋃ and ⋂
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \;\setminus\; R ~=~ \bigcup_{i \in I} \left(L_i \;\setminus\; R\right) }[/math] |
|
( ) |
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \;\setminus\; R ~=~ \bigcap_{i \in I} \left(L_i \;\setminus\; R\right) }[/math] |
|
( ) |
The next identities are known as De Morgan's laws.[4]
[math]\displaystyle{ L \;\setminus\; \bigcup_{j \in J} R_j ~=~ \bigcap_{j \in J} \left(L \;\setminus\; R_j\right) ~~\;~~ \text{ De Morgan's law } }[/math] |
|
( ) |
[math]\displaystyle{ L \;\setminus\; \bigcap_{j \in J} R_j ~=~ \bigcup_{j \in J} \left(L \;\setminus\; R_j\right) ~~\;~~ \text{ De Morgan's law } }[/math] |
|
( ) |
The following four set equalities can be deduced from the equalities 7a - 7d above.
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \;\setminus\; \bigcup_{j \in J} R_j ~=~ \bigcup_{i \in I} \left(\bigcap_{j \in J} \left(L_i \;\setminus\; R_j\right)\right) ~=~ \bigcap_{j \in J} \left(\bigcup_{i \in I} \left(L_i \;\setminus\; R_j\right)\right) }[/math] |
|
( ) |
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \;\setminus\; \bigcap_{j \in J} R_j ~=~ \bigcup_{j \in J} \left(\bigcap_{i \in I} \left(L_i \;\setminus\; R_j\right)\right) ~=~ \bigcap_{i \in I} \left(\bigcup_{j \in J} \left(L_i \;\setminus\; R_j\right)\right) }[/math] |
|
( ) |
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \;\setminus\; \bigcap_{j \in J} R_j ~=~ \bigcup_{\stackrel{i \in I,}{j \in J}} \left(L_i \;\setminus\; R_j\right) }[/math] |
|
( ) |
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \;\setminus\; \bigcup_{j \in J} R_j ~=~ \bigcap_{\stackrel{i \in I,}{j \in J}} \left(L_i \;\setminus\; R_j\right) }[/math] |
|
( ) |
In general, naively swapping [math]\displaystyle{ \;\cup\; }[/math] and [math]\displaystyle{ \;\cap\; }[/math] may produce a different set (see this note for more details). The equalities [math]\displaystyle{ \bigcup_{i \in I} \; \bigcap_{j \in J} \left(L_i \setminus R_j\right) ~=~ \bigcap_{j \in J} \; \bigcup_{i \in I} \left(L_i \setminus R_j\right) \quad \text{ and } \quad \bigcup_{j \in J} \; \bigcap_{i \in I} \left(L_i \setminus R_j\right) ~=~ \bigcap_{i \in I} \; \bigcup_{j \in J} \left(L_i \setminus R_j\right) }[/math] found in Eq. 7e and Eq. 7f are thus unusual in that they state exactly that swapping [math]\displaystyle{ \;\cup\; }[/math] and [math]\displaystyle{ \;\cap\; }[/math] will not change the resulting set.
Commutativity and associativity of ⋃ and ⋂
Commutativity:[3]
[math]\displaystyle{ \bigcup_{\stackrel{i \in I,}{j \in J}} S_{i,j} ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \bigcup_{(i, j) \in I \times J} S_{i,j} ~=~ \bigcup_{i \in I} \left(\bigcup_{j \in J} S_{i,j}\right) ~=~ \bigcup_{j \in J} \left(\bigcup_{i \in I} S_{i,j}\right) }[/math]
[math]\displaystyle{ \bigcap_{\stackrel{i \in I,}{j \in J}} S_{i,j} ~~\stackrel{\scriptscriptstyle\text{def}}{=}~ \bigcap_{(i, j) \in I \times J} S_{i,j} ~=~ \bigcap_{i \in I} \left(\bigcap_{j \in J} S_{i,j}\right) ~=~ \bigcap_{j \in J} \left(\bigcap_{i \in I} S_{i,j}\right) }[/math]
Unions of unions and intersections of intersections:[3]
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \cup R ~=~ \bigcup_{i \in I} \left(L_i \cup R\right) }[/math] [math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \cap R ~=~ \bigcap_{i \in I} \left(L_i \cap R\right) }[/math] and[3]
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \cup \left(\bigcup_{j \in J} R_j\right) ~=~ \bigcup_{\stackrel{i \in I,}{j \in J}} \left(L_i \cup R_j\right) }[/math] |
|
( ) |
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \cap \left(\bigcap_{j \in J} R_j\right) ~=~ \bigcap_{\stackrel{i \in I,}{j \in J}} \left(L_i \cap R_j\right) }[/math] |
|
( ) |
and if [math]\displaystyle{ I = J }[/math] then also:[note 2][3]
[math]\displaystyle{ \left(\bigcup_{i \in I} L_i\right) \cup \left(\bigcup_{i \in I} R_i\right) ~=~ \bigcup_{i \in I} \left(L_i \cup R_i\right) }[/math] |
|
( ) |
[math]\displaystyle{ \left(\bigcap_{i \in I} L_i\right) \cap \left(\bigcap_{i \in I} R_i\right) ~=~ \bigcap_{i \in I} \left(L_i \cap R_i\right) }[/math] |
|
( ) |
Cartesian products Π of arbitrarily many sets
Intersections ⋂ of Π
If [math]\displaystyle{ \left(S_{i,j}\right)_{(i,j) \in I \times J} }[/math] is a family of sets then
[math]\displaystyle{ \bigcap_{j \in J} \; \prod_{i \in I} S_{i,j} ~~=~~ \prod_{i \in I} \; \bigcap_{j \in J} S_{i,j} }[/math] |
|
( ) |
- Moreover, a tuple [math]\displaystyle{ \left(x_i\right)_{i \in I} }[/math] belongs to the set in Eq. 8 above if and only if [math]\displaystyle{ x_i \in S_{i,j} }[/math] for all [math]\displaystyle{ i \in I }[/math] and all [math]\displaystyle{ j \in J. }[/math]
In particular, if [math]\displaystyle{ \left(L_i\right)_{i \in I} }[/math] and [math]\displaystyle{ \left(R_i\right)_{i \in I} }[/math] are two families indexed by the same set then [math]\displaystyle{ \left(\prod_{i \in I} L_i\right) \cap \prod_{i \in I} R_i ~=~ \prod_{i \in I} \left(L_i \cap R_i\right) }[/math] So for instance, [math]\displaystyle{ (L \times R) \cap \left(L_2 \times R_2\right) ~=~ \left(L \cap L_2\right) \times \left(R \cap R_2\right) }[/math] [math]\displaystyle{ (L \times R) \cap \left(L_2 \times R_2\right) \cap \left(L_3 \times R_3\right) ~=~ \left(L \cap L_2 \cap L_3\right) \times \left(R \cap R_2 \cap R_3\right) }[/math] and [math]\displaystyle{ (L \times M \times R) \cap \left(L_2 \times M_2 \times R_2\right) ~=~ \left(L \cap L_2\right) \times \left(M \cap M_2\right) \times \left(R \cap R_2\right) }[/math]
Intersections of products indexed by different sets
Let [math]\displaystyle{ \left(L_i\right)_{i \in I} }[/math] and [math]\displaystyle{ \left(R_j\right)_{j \in J} }[/math] be two families indexed by different sets.
Technically, [math]\displaystyle{ I \neq J }[/math] implies [math]\displaystyle{ \left({\textstyle\prod\limits_{i \in I}} L_i\right) \cap {\textstyle\prod\limits_{j \in J}} R_j = \varnothing. }[/math] 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 [math]\displaystyle{ I := \{1, 2\} }[/math] and [math]\displaystyle{ J := \{1, 2, 3\} }[/math] with all sets equal to [math]\displaystyle{ \R }[/math] then [math]\displaystyle{ {\textstyle\prod\limits_{i \in I}} L_i = {\textstyle\prod\limits_{i \in \{1, 2\}}} \R = \R^2 }[/math] and [math]\displaystyle{ {\textstyle\prod\limits_{j \in J}} R_j = {\textstyle\prod\limits_{j \in \{1, 2, 3\}}} \R = \R^3 }[/math] where [math]\displaystyle{ \R^2 \cap \R^3 = \varnothing }[/math] unless, for example, [math]\displaystyle{ {\textstyle\prod\limits_{i \in \{1, 2\}}} \R = \R^2 }[/math] is identified as a subset of [math]\displaystyle{ {\textstyle\prod\limits_{j \in \{1, 2, 3\}}} \R = \R^3 }[/math] through some injection, such as maybe [math]\displaystyle{ (x, y) \mapsto (x, y, 0) }[/math] for instance; however, in this particular case the product [math]\displaystyle{ {\textstyle\prod\limits_{i \in I = \{1, 2\}}} L_i }[/math] actually represents the [math]\displaystyle{ J }[/math]-indexed product [math]\displaystyle{ {\textstyle\prod\limits_{j \in J = \{1, 2, 3\}}} L_i }[/math] where [math]\displaystyle{ L_3 := \{0\}. }[/math]
- For another example, take [math]\displaystyle{ I := \{1, 2\} }[/math] and [math]\displaystyle{ J := \{1, 2, 3\} }[/math] with [math]\displaystyle{ L_1 := \R^2 }[/math] and [math]\displaystyle{ L_2, R_1, R_2, \text{ and } R_3 }[/math] all equal to [math]\displaystyle{ \R. }[/math] Then [math]\displaystyle{ {\textstyle\prod\limits_{i \in I}}L_i = \R^2 \times \R }[/math] and [math]\displaystyle{ {\textstyle\prod\limits_{j \in J}} R_j = \R \times \R \times \R, }[/math] which can both be identified as the same set via the bijection that sends [math]\displaystyle{ ((x, y), z) \in \R^2 \times \R }[/math] to [math]\displaystyle{ (x, y, z) \in \R \times \R \times \R. }[/math] Under this identification, [math]\displaystyle{ \left({\textstyle\prod\limits_{i \in I}} L_i\right) \cap \, {\textstyle\prod\limits_{j \in J}} R_j ~=~ \R^3. }[/math]
Unions ⋃ of Π
For unions, only the following is guaranteed in general: [math]\displaystyle{ \bigcup_{j \in J} \; \prod_{i \in I} S_{i,j} ~~\color{Red}{\subseteq}\color{Black}{}~~ \prod_{i \in I} \; \bigcup_{j \in J} S_{i,j} \qquad \text{ and } \qquad \bigcup_{i \in I} \; \prod_{j \in J} S_{i,j} ~~\color{Red}{\subseteq}\color{Black}{}~~ \prod_{j \in J} \; \bigcup_{i \in I} S_{i,j} }[/math] where [math]\displaystyle{ \left(S_{i,j}\right)_{(i,j) \in I \times J} }[/math] is a family of sets.
However, [math]\displaystyle{ \begin{alignat}{9} \left(L \times R\right) ~\cup~ \left(L_2 \times R_2\right) ~&=~ \left[\left(L \setminus L_2\right) \times R\right] ~\cup~ \left[\left(L_2 \setminus L\right) \times R_2\right] ~\cup~ \left[\left(L \cap L_2\right) \times \left(R \cup R_2\right)\right] \\[0.5ex] ~&=~ \left[L \times \left(R \setminus R_2\right)\right] ~\cup~ \left[L_2 \times \left(R_2 \setminus R\right)\right] ~\cup~ \left[\left(L \cup L_2\right) \times \left(R \cap R_2\right)\right] \\ \end{alignat} }[/math]
Difference \ of Π
If [math]\displaystyle{ \left(L_i\right)_{i \in I} }[/math] and [math]\displaystyle{ \left(R_i\right)_{i \in I} }[/math] are two families of sets then: [math]\displaystyle{ \begin{alignat}{9} \left(\prod_{i \in I} L_i\right) ~\setminus~ \prod_{i \in I}R_i ~&=~ \;~ \bigcup_{j \in I} \; ~ \prod_{i \in I} \begin{cases}L_j \,\setminus\, R_j & \text{ if } i = j \\ L_i & \text{ if } i \neq j \\ \end{cases} \\[0.5ex] ~&=~ \;~ \bigcup_{j \in I} \; ~ \Big[\left(L_j \,\setminus\, R_j\right) ~\times~ \prod_{\stackrel{i \in I,}{j \neq i}} L_i\Big] \\[0.5ex] ~&=~ \bigcup_{\stackrel{j \in I,}{L_j \not\subseteq R_j}} \Big[\left(L_j \,\setminus\, R_j\right) ~\times~ \prod_{\stackrel{i \in I,}{j \neq i}} L_i\Big] \\[0.3ex] \end{alignat} }[/math] so for instance, [math]\displaystyle{ \begin{alignat}{9} \left(L \times R\right) ~\setminus~ \left(L_2 \times R_2\right) ~&=~ \left[\left(L \,\setminus\, L_2\right) \times R\right] ~\cup~ \left[L \times \left(R \,\setminus\, R_2\right)\right] \\ \end{alignat} }[/math] and [math]\displaystyle{ (L \times M \times R) ~\setminus~ \left(L_2 \times M_2 \times R_2\right) ~=~ \left[\left(L \,\setminus\, L_2\right) \times M \times R\right] ~\cup~ \left[L \times \left(M \,\setminus\, M_2\right) \times R\right] ~\cup~ \left[L \times M \times \left(R \,\setminus\, R_2\right)\right] }[/math]
Symmetric difference ∆ of Π
[math]\displaystyle{ \begin{alignat}{9} \left(\prod_{i \in I} L_i\right) ~\triangle~ \left(\prod_{i \in I} R_i\right) ~&=~ \;~ \left(\prod_{i \in I} L_i\right) ~\cup~ \left(\prod_{i \in I} R_i\right) \;\setminus\; \prod_{i \in I} L_i \cap R_i \\[0.5ex] \end{alignat} }[/math]
Functions and sets
Let [math]\displaystyle{ f : X \to Y }[/math] be any function.
Let [math]\displaystyle{ L \text{ and } R }[/math] be completely arbitrary sets. Assume [math]\displaystyle{ A \subseteq X \text{ and } C \subseteq Y. }[/math]
Definitions
Let [math]\displaystyle{ f : X \to Y }[/math] be any function, where we denote its domain [math]\displaystyle{ X }[/math] by [math]\displaystyle{ \operatorname{domain} f }[/math] and denote its codomain [math]\displaystyle{ Y }[/math] by [math]\displaystyle{ \operatorname{codomain} f. }[/math]
Many of the identities below do not actually require that the sets be somehow related to [math]\displaystyle{ f }[/math]'s domain or codomain (that is, to [math]\displaystyle{ X }[/math] or [math]\displaystyle{ Y }[/math]) so when some kind of relationship is necessary then it will be clearly indicated. Because of this, in this article, if [math]\displaystyle{ L }[/math] is declared to be "any set," and it is not indicated that [math]\displaystyle{ L }[/math] must be somehow related to [math]\displaystyle{ X }[/math] or [math]\displaystyle{ Y }[/math] (say for instance, that it be a subset [math]\displaystyle{ X }[/math] or [math]\displaystyle{ Y }[/math]) then it is meant that [math]\displaystyle{ L }[/math] is truly arbitrary.[note 3] This generality is useful in situations where [math]\displaystyle{ f : X \to Y }[/math] is a map between two subsets [math]\displaystyle{ X \subseteq U }[/math] and [math]\displaystyle{ Y \subseteq V }[/math] of some larger sets [math]\displaystyle{ U }[/math] and [math]\displaystyle{ V, }[/math] and where the set [math]\displaystyle{ L }[/math] might not be entirely contained in [math]\displaystyle{ X = \operatorname{domain} f }[/math] and/or [math]\displaystyle{ Y = \operatorname{codomain} f }[/math] (e.g. if all that is known about [math]\displaystyle{ L }[/math] is that [math]\displaystyle{ L \subseteq U }[/math]); in such a situation it may be useful to know what can and cannot be said about [math]\displaystyle{ f(L) }[/math] and/or [math]\displaystyle{ f^{-1}(L) }[/math] without having to introduce a (potentially unnecessary) intersection such as: [math]\displaystyle{ f(L \cap X) }[/math] and/or [math]\displaystyle{ f^{-1}(L \cap Y). }[/math]
Images and preimages of sets
If [math]\displaystyle{ L }[/math] is any set then the image of [math]\displaystyle{ L }[/math] under [math]\displaystyle{ f }[/math] is defined to be the set: [math]\displaystyle{ f(L) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{\,f(l) ~:~ l \in L \cap \operatorname{domain} f\,\} }[/math] while the preimage of [math]\displaystyle{ L }[/math] under [math]\displaystyle{ f }[/math] is: [math]\displaystyle{ f^{-1}(L) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \{\,x \in \operatorname{domain} f ~:~ f(x) \in L\,\} }[/math] where if [math]\displaystyle{ L = \{s\} }[/math] is a singleton set then the filber or preimage of [math]\displaystyle{ s }[/math] under [math]\displaystyle{ f }[/math] is [math]\displaystyle{ f^{-1}(s) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ f^{-1}(\{s\}) ~=~ \{\,x \in \operatorname{domain} f ~:~ f(x) = s\,\}. }[/math]
Denote by [math]\displaystyle{ \operatorname{Im} f }[/math] or [math]\displaystyle{ \operatorname{image} f }[/math] the image or range of [math]\displaystyle{ f : X \to Y, }[/math] which is the set: [math]\displaystyle{ \operatorname{Im} f ~\stackrel{\scriptscriptstyle\text{def}}{=}~ f(X) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ f(\operatorname{domain} f) ~=~ \{f(x) ~:~ x \in \operatorname{domain} f\}. }[/math]
Saturated sets
A set [math]\displaystyle{ A }[/math] is said to be [math]\displaystyle{ f }[/math]-saturated or a saturated set if any of the following equivalent conditions are satisfied:[3]
- There exists a set [math]\displaystyle{ R }[/math] such that [math]\displaystyle{ A = f^{-1}(R). }[/math]
- Any such set [math]\displaystyle{ R }[/math] necessarily contains [math]\displaystyle{ f(A) }[/math] as a subset.
- Any set not entirely contained in the domain of [math]\displaystyle{ f }[/math] cannot be [math]\displaystyle{ f }[/math]-saturated.
- [math]\displaystyle{ A = f^{-1}(f(A)). }[/math]
- [math]\displaystyle{ A \supseteq f^{-1}(f(A)) }[/math] and [math]\displaystyle{ A \subseteq \operatorname{domain} f. }[/math]
- The inclusion [math]\displaystyle{ L \cap \operatorname{domain} f \subseteq f^{-1}(f(L)) }[/math] always holds, where if [math]\displaystyle{ A \subseteq \operatorname{domain} f }[/math] then this becomes [math]\displaystyle{ A \subseteq f^{-1}(f(A)). }[/math]
- [math]\displaystyle{ A \subseteq \operatorname{domain} f }[/math] and if [math]\displaystyle{ a \in A }[/math] and [math]\displaystyle{ x \in \operatorname{domain} f }[/math] satisfy [math]\displaystyle{ f(x) = f(a), }[/math] then [math]\displaystyle{ x \in A. }[/math]
- Whenever a fiber of [math]\displaystyle{ f }[/math] intersects [math]\displaystyle{ A, }[/math] then [math]\displaystyle{ A }[/math] contains the entire fiber. In other words, [math]\displaystyle{ A }[/math] contains every [math]\displaystyle{ f }[/math]-fiber that intersects it.
- Explicitly: whenever [math]\displaystyle{ y \in \operatorname{Im} f }[/math] is such that [math]\displaystyle{ A \cap f^{-1}(y) \neq \varnothing, }[/math] then [math]\displaystyle{ f^{-1}(y) s\subseteq A. }[/math]
- In both this statement and the next, the set [math]\displaystyle{ \operatorname{Im} f }[/math] may be replaced with any superset of [math]\displaystyle{ \operatorname{Im} f }[/math] (such as [math]\displaystyle{ \operatorname{codomain} f }[/math]) and the resulting statement will still be equivalent to the rest.
- The intersection of [math]\displaystyle{ A }[/math] with a fiber of [math]\displaystyle{ f }[/math] is equal to the empty set or to the fiber itself.
- Explicitly: for every [math]\displaystyle{ y \in \operatorname{Im} f, }[/math] the intersection [math]\displaystyle{ A \cap f^{-1}(y) }[/math] is equal to the empty set [math]\displaystyle{ \varnothing }[/math] or to [math]\displaystyle{ f^{-1}(y) }[/math] (that is, [math]\displaystyle{ A \cap f^{-1}(y) = \varnothing }[/math] or [math]\displaystyle{ A \cap f^{-1}(y) = f^{-1}(y) }[/math]).
For a set [math]\displaystyle{ A }[/math] to be [math]\displaystyle{ f }[/math]-saturated, it is necessary that [math]\displaystyle{ A \subseteq \operatorname{domain} f. }[/math]
Compositions and restrictions of functions
If [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] are maps then [math]\displaystyle{ g \circ f }[/math] denotes the composition map [math]\displaystyle{ g \circ f ~:~ \{\,x \in \operatorname{domain} f ~:~ f(x) \in \operatorname{domain} g\,\} ~\to~ \operatorname{codomain} g }[/math] with domain and codomain [math]\displaystyle{ \begin{alignat}{4} \operatorname{domain} (g \circ f) &= \{\,x \in \operatorname{domain} f ~:~ f(x) \in \operatorname{domain} g\,\} \\[0.4ex] \operatorname{codomain} (g \circ f) &= \operatorname{codomain} g \\[0.7ex] \end{alignat} }[/math] defined by [math]\displaystyle{ (g \circ f)(x) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ g(f(x)). }[/math]
The restriction of [math]\displaystyle{ f : X \to Y }[/math] to [math]\displaystyle{ L, }[/math] denoted by [math]\displaystyle{ f\big\vert_L, }[/math] is the map [math]\displaystyle{ f\big\vert_L ~:~ L \cap \operatorname{domain} f ~\to~ Y }[/math] with [math]\displaystyle{ \operatorname{domain} f\big\vert_L ~=~ L \cap \operatorname{domain} f }[/math] defined by sending [math]\displaystyle{ x \in L \cap \operatorname{domain} f }[/math] to [math]\displaystyle{ f(x); }[/math] that is, [math]\displaystyle{ f\big\vert_L(x) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ f (x). }[/math] Alternatively, [math]\displaystyle{ ~f\big\vert_L ~=~ f \circ \operatorname{In}~ }[/math] where [math]\displaystyle{ ~\operatorname{In} ~:~ L \cap X \to X~ }[/math] denotes the inclusion map, which is defined by [math]\displaystyle{ \operatorname{In}(s) ~\stackrel{\scriptscriptstyle\text{def}}{=}~ s. }[/math]
(Pre)Images of arbitrary unions ⋃'s and intersections ⋂'s
If [math]\displaystyle{ \left(L_i\right)_{i \in I} }[/math] is a family of arbitrary sets indexed by [math]\displaystyle{ I \neq \varnothing }[/math] then:[5] [math]\displaystyle{ \begin{alignat}{4} f\left(\bigcap_{i \in I} L_i\right) \;&~\;\color{Red}{\subseteq}\color{Black}{}~ \;\;\;\bigcap_{i \in I} f\left(L_i\right) \\ f\left(\bigcup_{i \in I} L_i\right) \;&~=~ \;\bigcup_{i \in I} f\left(L_i\right) \\ f^{-1}\left(\bigcup_{i \in I} L_i\right) \;&~=~ \;\bigcup_{i \in I} f^{-1}\left(L_i\right) \\ f^{-1}\left(\bigcap_{i \in I} L_i\right) \;&~=~ \;\bigcap_{i \in I} f^{-1}\left(L_i\right) \\ \end{alignat} }[/math]
So of these four identities, it is only images of intersections that are not always preserved. Preimages preserve all basic set operations. Unions are preserved by both images and preimages.
If all [math]\displaystyle{ L_i }[/math] are [math]\displaystyle{ f }[/math]-saturated then [math]\displaystyle{ \bigcap_{i \in I} L_i }[/math] be will be [math]\displaystyle{ f }[/math]-saturated and equality will hold in the first relation above; explicitly, this means:
[math]\displaystyle{ f\left(\bigcap_{i \in I} L_i\right) ~=~ \bigcap_{i \in I} f\left(L_i\right) \qquad \textit{IF} \qquad X \cap L_i = f^{-1}\left(f\left(L_i\right)\right) \quad \text{ for all } \quad i \in I. }[/math] |
|
( ) |
If [math]\displaystyle{ \left(A_i\right)_{i \in I} }[/math] is a family of arbitrary subsets of [math]\displaystyle{ X = \operatorname{domain} f, }[/math] which means that [math]\displaystyle{ A_i \subseteq X }[/math] for all [math]\displaystyle{ i, }[/math] then Conditional Equality 10a becomes:
[math]\displaystyle{ f\left(\bigcap_{i \in I} A_i\right) ~=~ \bigcap_{i \in I} f\left(A_i\right) \qquad \textit{IF} \qquad A_i = f^{-1}\left(f\left(A_i\right)\right) \quad \text{ for all } \quad i \in I. }[/math] |
|
( ) |
(Pre)Images of binary set operations
Throughout, let [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] be any sets and let [math]\displaystyle{ f : X \to Y }[/math] be any function.
Summary
As the table below shows, set equality is not guaranteed only for images of: intersections, set subtractions, and symmetric differences.
Image | Preimage | Additional assumptions on sets |
---|---|---|
[math]\displaystyle{ \,~~~~f(L \cup R) ~=~ f(L) \cup f(R) }[/math][6] | [math]\displaystyle{ f^{-1}(L \cup R) ~=~ f^{-1}(L) \cup f^{-1}(R) }[/math][3] | None |
[math]\displaystyle{ f(L \cap R) ~\subseteq~ f(L) \cap f(R) }[/math] | [math]\displaystyle{ f^{-1}(L \cap R) ~=~ f^{-1}(L) \cap f^{-1}(R) }[/math][3] | None |
[math]\displaystyle{ f(L \setminus R) ~\supseteq~ f(L) \setminus f(R) }[/math] | [math]\displaystyle{ \begin{alignat}{4} f^{-1}(L) \setminus f^{-1}(R) &= f^{-1}&&( &&L &&\setminus &&R) \\ &= f^{-1}&&( &&L &&\setminus [&&R \cap \operatorname{Im} f]) \\ &= f^{-1}&&([&&L \cap \operatorname{Im} f] &&\setminus &&R) \\ &= f^{-1}&&([&&L \cap \operatorname{Im} f] &&\setminus [&&R \cap \operatorname{Im} f]) \end{alignat} }[/math][5][3] | None |
[math]\displaystyle{ f(X \setminus R) ~\supseteq~ f(X) \setminus f(R) }[/math] | [math]\displaystyle{ \begin{alignat}{4} X \setminus f^{-1}(R) &= f^{-1}(&&Y &&\setminus &&R) \\ &= f^{-1}(&&Y &&\setminus [&&R \cap \operatorname{Im} f]) \\ &= f^{-1}(&&\operatorname{Im} f &&\setminus &&R) \\ &= f^{-1}(&&\operatorname{Im} f &&\setminus [&&R \cap \operatorname{Im} f]) \end{alignat} }[/math][note 4] | None |
[math]\displaystyle{ f\left(L ~\triangle~ R\right) ~\supseteq~ f(L) ~\triangle~ f(R) }[/math] | [math]\displaystyle{ f^{-1}\left(L ~\triangle~ R\right) ~=~ f^{-1}(L) ~\triangle~ f^{-1}(R) }[/math] | None |
Preimages preserve set operations
Preimages of sets are well-behaved with respect to all basic set operations:
[math]\displaystyle{ \begin{alignat}{4} f^{-1}(L \cup R) ~&=~ f^{-1}(L) \cup f^{-1}(R) \\ f^{-1}(L \cap R) ~&=~ f^{-1}(L) \cap f^{-1}(R) \\ f^{-1}(L \setminus\, R) ~&=~ f^{-1}(L) \setminus\, f^{-1}(R) \\ f^{-1}(L \,\triangle\, R) ~&=~ f^{-1}(L) \,\triangle\, f^{-1}(R) \\ \end{alignat} }[/math]
In words, preimages distribute over unions, intersections, set subtraction, and symmetric difference.
Images only preserve unions
Images of unions are well-behaved:
[math]\displaystyle{ \begin{alignat}{4} f(L \cup R) ~&=~ f(L) \cup f(R) \\ \end{alignat} }[/math]
but images of the other basic set operations are not since only the following are guaranteed in general:
[math]\displaystyle{ \begin{alignat}{4} f(L \cap R) ~&\subseteq~ f(L) \cap f(R) \\ f(L \setminus R) ~&\supseteq~ f(L) \setminus f(R) \\ f(L \triangle R) ~&\supseteq~ f(L) \,\triangle\, f(R) \\ \end{alignat} }[/math]
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 are set subtraction [math]\displaystyle{ L \setminus R }[/math] or else they can naturally be defined as the set subtraction of two sets: [math]\displaystyle{ L \cap R = L \setminus (L \setminus R) \quad \text{ and } \quad L \triangle R = (L \cup R) \setminus (L \cap R). }[/math]
If [math]\displaystyle{ L = X }[/math] then [math]\displaystyle{ f(X \setminus R) \supseteq f(X) \setminus f(R) }[/math] where as in the more general case, equality is not guaranteed. If [math]\displaystyle{ f }[/math] is surjective then [math]\displaystyle{ f(X \setminus R) ~\supseteq~ Y \setminus f(R), }[/math] which can be rewritten as: [math]\displaystyle{ f\left(R^\complement\right) ~\supseteq~ f(R)^\complement }[/math] if [math]\displaystyle{ R^\complement ~\stackrel{\scriptscriptstyle\text{def}}{=}~ X \setminus R }[/math] and [math]\displaystyle{ f(R)^\complement ~\stackrel{\scriptscriptstyle\text{def}}{=}~ Y \setminus f(R). }[/math]
Counter-examples: images of operations not distributing
If [math]\displaystyle{ f : \{1, 2\} \to Y }[/math] is constant, [math]\displaystyle{ L = \{1\}, }[/math] and [math]\displaystyle{ R = \{2\} }[/math] then all four of the set containments [math]\displaystyle{ \begin{alignat}{4} f(L \cap R) ~&\subsetneq~ f(L) \cap f(R) \\ f(L \setminus R) ~&\supsetneq~ f(L) \setminus f(R) \\ f(X \setminus R) ~&\supsetneq~ f(X) \setminus f(R) \\ f(L \triangle R) ~&\supsetneq~ f(L) \triangle f(R) \\ \end{alignat} }[/math] 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.
Example: Let [math]\displaystyle{ f : X \to Y }[/math] be any constant function with image [math]\displaystyle{ f(X) = \{y\} }[/math] and suppose that [math]\displaystyle{ L, R \subseteq X }[/math] are non-empty disjoint subsets; that is, [math]\displaystyle{ L \neq \varnothing, R \neq \varnothing, }[/math] and [math]\displaystyle{ L \cap R = \varnothing, }[/math] which implies that all of the sets [math]\displaystyle{ L ~\triangle~ R = L \cup R, }[/math] [math]\displaystyle{ \,L \setminus R = L, }[/math] and [math]\displaystyle{ X \setminus R \supseteq L \setminus R }[/math] are not empty and so consequently, their images under [math]\displaystyle{ f }[/math] are all equal to [math]\displaystyle{ \{y\}. }[/math]
- The containment [math]\displaystyle{ ~f(L \setminus R) ~\supsetneq~ f(L) \setminus f(R)~ }[/math] is strict: [math]\displaystyle{ \{y\} ~=~ f(L \setminus R) ~\neq~ f(L) \setminus f(R) ~=~ \{y\} \setminus \{y\} ~=~ \varnothing }[/math] In words: functions might not distribute over set subtraction [math]\displaystyle{ \,\setminus\, }[/math]
- The containment [math]\displaystyle{ ~f(X \setminus R) ~\supsetneq~ f(X) \setminus f(R)~ }[/math] is strict: [math]\displaystyle{ \{y\} ~=~ f(X \setminus R) ~\neq~ f(X) \setminus f(R) ~=~ \{y\} \setminus \{y\} ~=~ \varnothing. }[/math]
- The containment [math]\displaystyle{ ~f(L ~\triangle~ R) ~\supsetneq~ f(L) ~\triangle~ f(R)~ }[/math] is strict: [math]\displaystyle{ \{y\} ~=~ f\left(L ~\triangle~ R\right) ~\neq~ f(L) ~\triangle~ f(R) ~=~ \{y\} \triangle \{y\} ~=~ \varnothing }[/math] In words: functions might not distribute over symmetric difference [math]\displaystyle{ \,\triangle\, }[/math] (which can be defined as the set subtraction of two sets: [math]\displaystyle{ L \triangle R = (L \cup R) \setminus (L \cap R) }[/math]).
- The containment [math]\displaystyle{ ~f(L \cap R) ~\subsetneq~ f(L) \cap f(R)~ }[/math] is strict: [math]\displaystyle{ \varnothing ~=~ f(\varnothing) ~=~ f(L \cap R) ~\neq~ f(L) \cap f(R) ~=~ \{y\} \cap \{y\} ~=~ \{y\} }[/math] In words: functions might not distribute over set intersection [math]\displaystyle{ \,\cap\, }[/math] (which can be defined as the set subtraction of two sets: [math]\displaystyle{ L \cap R = L \setminus (L \setminus R) }[/math]).
What the set operations in these four examples have in common is that they either are set subtraction [math]\displaystyle{ \setminus }[/math] (examples (1) and (2)) or else they can naturally be defined 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 [math]\displaystyle{ \,\subseteq \text{ or } \supseteq\, }[/math]) can always be deduced by imagining the function [math]\displaystyle{ f }[/math] as being constant and the two sets ([math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math]) as being non-empty disjoint subsets of its domain. This is because every equality fails for such a function and sets: one side will be always be [math]\displaystyle{ \varnothing }[/math] and the other non-empty − from this fact, the correct choice of [math]\displaystyle{ \,\subseteq \text{ or } \supseteq\, }[/math] can be deduced by answering: "which side is empty?" For example, to decide if the [math]\displaystyle{ ? }[/math] in [math]\displaystyle{ f(L \triangle R) \setminus f(R) ~\;~?~\;~ f((L \triangle R) \setminus R) }[/math] should be [math]\displaystyle{ \,\subseteq \text{ or } \supseteq,\, }[/math] pretend[note 5] that [math]\displaystyle{ f }[/math] is constant and that [math]\displaystyle{ L \triangle R }[/math] and [math]\displaystyle{ R }[/math] are non-empty disjoint subsets of [math]\displaystyle{ f }[/math]'s domain; then the left hand side would be empty (since [math]\displaystyle{ f(L \triangle R) \setminus f(R) = \{f\text{'s single value}\} \setminus \{f\text{'s single value}\} = \varnothing }[/math]), which indicates that [math]\displaystyle{ \,?\, }[/math] should be [math]\displaystyle{ \,\subseteq\, }[/math] (the resulting statement is always guaranteed to be true) because this is the choice that will make [math]\displaystyle{ \varnothing = \text{left hand side} ~\;~?~\;~ \text{right hand side} }[/math] true. Alternatively, the correct direction of containment can also be deduced by consideration of any constant [math]\displaystyle{ f : \{1, 2\} \to Y }[/math] with [math]\displaystyle{ L = \{1\} }[/math] and [math]\displaystyle{ R = \{2\}. }[/math]
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 [math]\displaystyle{ f(L \cap R) }[/math] always equals [math]\displaystyle{ f(L) \cap f(R), }[/math] or alternatively, whether or not [math]\displaystyle{ f^{-1}(L \cap R) }[/math] always equals [math]\displaystyle{ f^{-1}(L) \cap f^{-1}(R) }[/math] (although [math]\displaystyle{ \,\cap\, }[/math] was used here, it can replaced by [math]\displaystyle{ \,\cup, \,\setminus, \text{ or } \,\triangle }[/math]). 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 [math]\displaystyle{ f, L, }[/math] and [math]\displaystyle{ R }[/math]) 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 all sets:
For any function [math]\displaystyle{ f : X \to Y, }[/math] the following statements are equivalent:
- [math]\displaystyle{ f : X \to Y }[/math] is injective.
- This means: [math]\displaystyle{ f(x) \neq f(y) }[/math] for all distinct [math]\displaystyle{ x, y \in X. }[/math]
- [math]\displaystyle{ f(L \cap R) = f(L) \,\cap\, f(R) \, \text{ for all } \, L, R \subseteq X. }[/math] (The equals sign [math]\displaystyle{ \,=\, }[/math] can be replaced with [math]\displaystyle{ \,\supseteq\, }[/math]).
- [math]\displaystyle{ f(L \,\setminus R) = f(L) \,\setminus\, f(R) \; \text{ for all } \, L, R \subseteq X. }[/math] (The equals sign [math]\displaystyle{ \,=\, }[/math] can be replaced with [math]\displaystyle{ \,\subseteq\, }[/math]).
- [math]\displaystyle{ f(X \setminus R) = f(X) \setminus\, f(R) \; \text{ for all } \, ~~~~~R \subseteq X. }[/math] (The equals sign [math]\displaystyle{ \,=\, }[/math] can be replaced with [math]\displaystyle{ \,\subseteq\, }[/math]).
- [math]\displaystyle{ f(L \,\triangle\, R) = f(L) \,\triangle\, f(R) \; \text{ for all } \, L, R \subseteq X. }[/math] (The equals sign [math]\displaystyle{ \,=\, }[/math] can be replaced with [math]\displaystyle{ \,\subseteq\, }[/math]).
- Any one of the four statements (b) - (e) but with the words "for all" replaced with any one of the following:
- "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): [math]\displaystyle{ f }[/math] is injective if and only if [math]\displaystyle{ f(x) \not\in f(X \setminus \{x\}) \; \text{ for every } \, x \in X. }[/math]
- "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).
- "for all disjoint subsets"
- "for all singleton 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)
[math]\displaystyle{ f(L \cap R) ~\subseteq~ f(L) \cap f(R) \qquad\qquad \text{ always holds} }[/math]
Characterizations of equality: The following statements are equivalent:
- [math]\displaystyle{ f(L \cap R) ~=~ f(L) \cap f(R) }[/math]
- [math]\displaystyle{ f(L \cap R) ~\supseteq~ f(L) \cap f(R) }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~\subseteq~ f^{-1}(f(L \cap R)) }[/math]
- The left hand side [math]\displaystyle{ L \cap f^{-1}(f(R)) }[/math] is always equal to [math]\displaystyle{ L \cap f^{-1}(f(L) \cap f(R)) }[/math] (because [math]\displaystyle{ L \cap f^{-1}(f(R)) ~\subseteq~ f^{-1}(f(L)) }[/math] always holds).
- [math]\displaystyle{ R \cap f^{-1}(f(L)) ~\subseteq~ f^{-1}(f(L \cap R)) }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~=~ f^{-1}(f(L \cap R)) \cap L }[/math]
- [math]\displaystyle{ R \cap f^{-1}(f(L)) ~=~ f^{-1}(f(L \cap R)) \cap R }[/math]
- If [math]\displaystyle{ l \in L }[/math] satisfies [math]\displaystyle{ f(l) \in f(R) }[/math] then [math]\displaystyle{ f(l) \in f(L \cap R). }[/math]
- If [math]\displaystyle{ y \in f(L) }[/math] but [math]\displaystyle{ y \notin f(L \cap R) }[/math] then [math]\displaystyle{ y \notin f(R). }[/math]
- [math]\displaystyle{ f(L) \, \setminus \, f(L \cap R) ~\subseteq~ f(L) \, \setminus \, f(R) }[/math]
- [math]\displaystyle{ f(R) \, \setminus \, f(L \cap R) ~\subseteq~ f(R) \, \setminus \, f(L) }[/math]
- [math]\displaystyle{ f(L \cup R) \setminus f(L \cap R) ~\subseteq~ f(L) \,\triangle\, f(R) }[/math]
- Any of the above three conditions (i) - (k) but with the subset symbol [math]\displaystyle{ \,\subseteq\, }[/math] replaced with an equals sign [math]\displaystyle{ \,=.\, }[/math]
Sufficient conditions for equality: Equality holds if any of the following are true:
- [math]\displaystyle{ f }[/math] is injective.[7]
- The restriction [math]\displaystyle{ f\big\vert_{L \cup R} }[/math] is injective.
- [math]\displaystyle{ f^{-1}(f(R)) ~\subseteq~ R }[/math][note 6]
- [math]\displaystyle{ f^{-1}(f(L)) ~\subseteq~ L }[/math]
- [math]\displaystyle{ R }[/math] is [math]\displaystyle{ f }[/math]-saturated; that is, [math]\displaystyle{ f^{-1}(f(R)) = R }[/math][note 6]
- [math]\displaystyle{ L }[/math] is [math]\displaystyle{ f }[/math]-saturated; that is, [math]\displaystyle{ f^{-1}(f(L)) = L }[/math]
- [math]\displaystyle{ f(L) ~\subseteq~ f(L \cap R) }[/math]
- [math]\displaystyle{ f(R) ~\subseteq~ f(L \cap R) }[/math]
- [math]\displaystyle{ f(L \,\setminus\, R) ~\subseteq~ f(L) \setminus \, f(R) }[/math] or equivalently, [math]\displaystyle{ f(L \,\setminus\, R) ~=~ f(L) \setminus f(R) }[/math]
- [math]\displaystyle{ f(R \,\setminus\, L) ~\subseteq~ f(R) \setminus \, f(L) }[/math] or equivalently, [math]\displaystyle{ f(R \,\setminus\, L) ~=~ f(R) \setminus f(L) }[/math]
- [math]\displaystyle{ f\left(L ~\triangle~ R\right) \subseteq f(L) ~\triangle~ f(R) }[/math] or equivalently, [math]\displaystyle{ f\left(L ~\triangle~ R\right) = f(L) ~\triangle~ f(R) }[/math]
- [math]\displaystyle{ R \cap \operatorname{domain} f \,\subseteq L }[/math]
- [math]\displaystyle{ L \cap \operatorname{domain} f \,\subseteq R }[/math]
- [math]\displaystyle{ R \subseteq L }[/math]
- [math]\displaystyle{ L \subseteq R }[/math]
In addition, the following always hold: [math]\displaystyle{ f\left(f^{-1}(L) \cap R\right) ~=~ L \cap f(R) }[/math] [math]\displaystyle{ f\left(f^{-1}(L) \cup R\right) ~=~ (L \cap \operatorname{Im} f) \cup f(R) }[/math]
Conditions for f(L\R) = f(L)\f(R)
[math]\displaystyle{ f(L \setminus R) ~\supseteq~ f(L) \setminus f(R) \qquad\qquad \text{ always holds} }[/math]
Characterizations of equality: The following statements are equivalent:[proof 1]
- [math]\displaystyle{ f(L \setminus R) ~=~ f(L) \setminus f(R) }[/math]
- [math]\displaystyle{ f(L \setminus R) ~\subseteq~ f(L) \setminus f(R) }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~\subseteq~ R }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~=~ L \cap R \cap \operatorname{domain} f }[/math]
- Whenever [math]\displaystyle{ y \in f(L) \cap f(R) }[/math] then [math]\displaystyle{ L \cap f^{-1}(y) \subseteq R. }[/math]
- [math]\displaystyle{ f(L) \cap f(R) ~\subseteq~ \left\{y \in f(L) : L \cap f^{-1}(y) \subseteq R\right\} }[/math]
- The set on the right hand side is always equal to [math]\displaystyle{ \left\{y \in f(L \cap R) : L \cap f^{-1}(y) \,\subseteq R\right\}. }[/math]
- [math]\displaystyle{ f(L) \cap f(R) ~=~ \left\{y \in f(L) : L \cap f^{-1}(y) \subseteq R\right\} }[/math]
- This is the above condition (f) but with the subset symbol [math]\displaystyle{ \,\subseteq\, }[/math] replaced with an equals sign [math]\displaystyle{ \,=.\, }[/math]
Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:
- [math]\displaystyle{ f(L \cap R) = f(L) \cap f(R), }[/math] or equivalently [math]\displaystyle{ f(L \cap R) \supseteq f(L) \cap f(R). }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~=~ L \cap f^{-1}(f(L \cap R)) }[/math] or equivalently, [math]\displaystyle{ L \cap f^{-1}(f(R)) ~\subseteq~ f^{-1}(f(L \cap R)) }[/math]
- [math]\displaystyle{ R \cap f^{-1}(f(L)) ~=~ R \cap f^{-1}(f(L \cap R)) }[/math]
Sufficient conditions for equality: Equality holds if any of the following are true:
- [math]\displaystyle{ f }[/math] is injective.
- The restriction [math]\displaystyle{ f\big\vert_{L \cup R} }[/math] is injective.
- [math]\displaystyle{ f^{-1}(f(R)) ~\subseteq~ R }[/math][note 6] or equivalently, [math]\displaystyle{ R \cap \operatorname{domain} f ~=~ f^{-1}(f(R)) }[/math]
- [math]\displaystyle{ R }[/math] is [math]\displaystyle{ f }[/math]-saturated; that is, [math]\displaystyle{ R = f^{-1}(f(R)). }[/math][note 6]
- [math]\displaystyle{ f\left(L ~\triangle~ R\right) \subseteq f(L) ~\triangle~ f(R) }[/math] or equivalently, [math]\displaystyle{ f\left(L ~\triangle~ R\right) = f(L) ~\triangle~ f(R) }[/math]
Conditions for f(X\R) = f(X)\f(R)
[math]\displaystyle{ f(X \setminus R) ~\supseteq~ f(X) \setminus f(R) \qquad\qquad \text{ always holds, where } f : X \to Y }[/math]
Characterizations of equality: The following statements are equivalent:[proof 1]
- [math]\displaystyle{ f(X \setminus R) ~=~ f(X) \setminus f(R) }[/math]
- [math]\displaystyle{ f(X \setminus R) ~\subseteq~ f(X) \setminus f(R) }[/math]
- [math]\displaystyle{ f^{-1}(f(R)) \,\subseteq\, R }[/math]
- [math]\displaystyle{ f^{-1}(f(R)) \,=\, R \cap \operatorname{domain} f }[/math]
- [math]\displaystyle{ R \cap \operatorname{domain} f }[/math] is [math]\displaystyle{ f }[/math]-saturated.
- Whenever [math]\displaystyle{ y \in f(R) }[/math] then [math]\displaystyle{ f^{-1}(y) \subseteq R. }[/math]
- [math]\displaystyle{ f(R) ~\subseteq~ \left\{ y \in f(R) : f^{-1}(y) \subseteq R \right\} }[/math]
- [math]\displaystyle{ f(R) ~=~ \left\{ y \in f(R) : f^{-1}(y) \subseteq R \right\} }[/math]
where if [math]\displaystyle{ R \subseteq \operatorname{domain} f }[/math] then this list can be extended to include:
- [math]\displaystyle{ R }[/math] is [math]\displaystyle{ f }[/math]-saturated; that is, [math]\displaystyle{ R = f^{-1}(f(R)). }[/math]
Sufficient conditions for equality: Equality holds if any of the following are true:
- [math]\displaystyle{ f }[/math] is injective.
- [math]\displaystyle{ R }[/math] is [math]\displaystyle{ f }[/math]-saturated; that is, [math]\displaystyle{ R = f^{-1}(f(R)). }[/math]
Conditions for f(L∆R) = f(L)∆f(R)
[math]\displaystyle{ f\left(L ~\triangle~ R\right) ~\supseteq~ f(L) ~\triangle~ f(R) \qquad\qquad \text{ always holds} }[/math]
Characterizations of equality: The following statements are equivalent:
- [math]\displaystyle{ f\left(L ~\triangle~ R\right) = f(L) ~\triangle~ f(R) }[/math]
- [math]\displaystyle{ f\left(L ~\triangle~ R\right) \subseteq f(L) ~\triangle~ f(R) }[/math]
- [math]\displaystyle{ f(L \,\setminus\, R) = f(L) \,\setminus\, f(R) }[/math] and [math]\displaystyle{ f(R \,\setminus\, L) = f(R) \,\setminus\, f(L) }[/math]
- [math]\displaystyle{ f(L \,\setminus\, R) \subseteq f(L) \,\setminus\, f(R) }[/math] and [math]\displaystyle{ f(R \,\setminus\, L) \subseteq f(R) \,\setminus\, f(L) }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~\subseteq~ R }[/math] and [math]\displaystyle{ R \cap f^{-1}(f(L)) ~\subseteq~ L }[/math]
- The inclusions [math]\displaystyle{ L \cap f^{-1}(f(R)) ~\subseteq~ f^{-1}(f(L)) }[/math] and [math]\displaystyle{ R \cap f^{-1}(f(L)) ~\subseteq~ f^{-1}(f(R)) }[/math] always hold.
- [math]\displaystyle{ L \cap f^{-1}(f(R)) ~=~ R \cap f^{-1}(f(L)) }[/math]
- If this above set equality holds, then this set will also be equal to both [math]\displaystyle{ L \cap R \cap \operatorname{domain} f }[/math] and [math]\displaystyle{ L \cap R \cap f^{-1}(f(L \cap R)). }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(L \cap R)) ~=~ R \cap f^{-1}(f(L \cap R)) }[/math] and [math]\displaystyle{ f(L \cap R) ~\supseteq~ f(L) \cap f(R). }[/math]
Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:
- [math]\displaystyle{ f(L \cap R) = f(L) \cap f(R), }[/math] or equivalently [math]\displaystyle{ f(L \cap R) \supseteq f(L) \cap f(R). }[/math]
- [math]\displaystyle{ L \cap f^{-1}(f(L \cap R)) ~=~ R \cap f^{-1}(f(L \cap R)) }[/math]
Sufficient conditions for equality: Equality holds if any of the following are true:
- [math]\displaystyle{ f }[/math] is injective.
- The restriction [math]\displaystyle{ f\big\vert_{L \cup R} }[/math] is injective.
Exact formulas/equalities for images of set operations
Formulas for f(L\R) =
For any function [math]\displaystyle{ f : X \to Y }[/math] and any sets [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R, }[/math][proof 2] [math]\displaystyle{ \begin{alignat}{4} f(L \setminus R) &= Y ~~~\;\,\, \setminus \left\{ y \in Y ~~~~~~~~~~\;\, ~:~ L \cap f^{-1}(y) \subseteq R \right\} \\[0.4ex] &= f(L) \setminus \left\{ y \in f(L)~~~~~~~\, ~:~ L \cap f^{-1}(y) \subseteq R \right\} \\[0.4ex] &= f(L) \setminus \left\{ y \in f(L \cap R) ~:~ L \cap f^{-1}(y) \subseteq R \right\} \\[0.4ex] &= f(L) \setminus \left\{ y \in V~~~~~~~~~~~~\, ~:~ L \cap f^{-1}(y) \subseteq R \right\} \qquad && \text{ for any superset } \quad V \supseteq f(L \cap R) \\[0.4ex] &= f(S) \setminus \left\{ y \in f(S)~~~~~~~\, ~:~ L \cap f^{-1}(y) \subseteq R \right\} \qquad && \text{ for any superset } \quad S \supseteq L \cap X. \\[0.7ex] \end{alignat} }[/math]
Formulas for f(X\R) =
Taking [math]\displaystyle{ L := X = \operatorname{domain} f }[/math] in the above formulas gives: [math]\displaystyle{ \begin{alignat}{4} f(X \setminus R) &= Y ~~~\;\,\, \setminus \left\{ y \in Y ~~~~\;\,\, :~ f^{-1}(y) \subseteq R \right\} \\[0.4ex] &= f(X) \setminus \left\{ y \in f(X) ~ :~ f^{-1}(y) \subseteq R \right\} \\[0.4ex] &= f(X) \setminus \left\{ y \in f(R) ~ :~ f^{-1}(y) \subseteq R \right\} \\[0.4ex] &= f(X) \setminus \left\{ y \in W ~~~\;\,\, :~ f^{-1}(y) \subseteq R \right\} \qquad \text{ for any superset } \quad W \supseteq f(R) \\[0.4ex] \end{alignat} }[/math] where the set [math]\displaystyle{ \left\{ y \in f(R) : f^{-1}(y) \subseteq R \right\} }[/math] is equal to the image under [math]\displaystyle{ f }[/math] of the largest [math]\displaystyle{ f }[/math]-saturated subset of [math]\displaystyle{ R. }[/math]
- In general, only [math]\displaystyle{ f(X \setminus R) \,\supseteq\, f(X) \setminus f(R) }[/math] always holds and equality is not guaranteed; but replacing "[math]\displaystyle{ f(R) }[/math]" with its subset "[math]\displaystyle{ \left\{ y \in f(R) : f^{-1}(y) \subseteq R \right\} }[/math]" results in a formula in which equality is always guaranteed: [math]\displaystyle{ f(X \setminus R) \,=\, f(X) \setminus \left\{ y \in f(R) : f^{-1}(y) \subseteq R \right\}. }[/math] From this it follows that:[proof 1] [math]\displaystyle{ f(X \setminus R) = f(X) \setminus f(R) \quad \text{ if and only if } \quad f(R) = \left\{ y \in f(R) : f^{-1}(y) \subseteq R \right\} \quad \text{ if and only if } \quad f^{-1}(f(R)) \subseteq R. }[/math]
- If [math]\displaystyle{ f_R := \left\{y \in f(X) : f^{-1}(y) \subseteq R\right\} }[/math] then [math]\displaystyle{ f(X \setminus R) = f(X) \setminus f_R, }[/math] which can be written more symmetrically as [math]\displaystyle{ f(X \setminus R) = f_X \setminus f_R }[/math] (since [math]\displaystyle{ f_X = f(X) }[/math]).
Formulas for f(L∆R) =
It follows from [math]\displaystyle{ L \,\triangle\, R = (L \cup R) \setminus (L \cap R) }[/math] and the above formulas for the image of a set subtraction that for any function [math]\displaystyle{ f : X \to Y }[/math] and any sets [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R, }[/math] [math]\displaystyle{ \begin{alignat}{4} f(L \,\triangle\, R) &= Y ~~~\;~~~\;~~~\; \setminus \left\{ y \in Y ~~~\,~~~\;~~~\,~ ~:~ L \cap f^{-1}(y) = R \cap f^{-1}(y)\right\} \\[0.4ex] &= f(L \cup R) \setminus \left\{ y \in f(L \cup R) ~:~ L \cap f^{-1}(y) = R \cap f^{-1}(y)\right\} \\[0.4ex] &= f(L \cup R) \setminus \left\{ y \in f(L \cap R) ~:~ L \cap f^{-1}(y) = R \cap f^{-1}(y)\right\} \\[0.4ex] &= f(L \cup R) \setminus \left\{ y \in V ~~~\,~~~~~~~~~ ~:~ L \cap f^{-1}(y) = R \cap f^{-1}(y)\right\} \qquad && \text{ for any superset } \quad V \supseteq f(L \cap R) \\[0.4ex] &= f(S) ~~\,~~~\,~\, \setminus \left\{ y \in f(S) ~~~\,~~~\; ~:~ L \cap f^{-1}(y) = R \cap f^{-1}(y)\right\} \qquad && \text{ for any superset } \quad S \supseteq (L \cup R) \cap X. \\[0.7ex] \end{alignat} }[/math]
Formulas for f(L) =
It follows from the above formulas for the image of a set subtraction that for any function [math]\displaystyle{ f : X \to Y }[/math] and any set [math]\displaystyle{ L, }[/math][math]\displaystyle{ \begin{alignat}{4} f(L) &= Y ~~~\;\, \setminus \left\{y \in Y ~~~\;\, ~:~ f^{-1}(y) \cap L = \varnothing\right\} \\[0.4ex] &= \operatorname{Im} f \setminus \left\{y \in \operatorname{Im} f ~:~ f^{-1}(y) \cap L = \varnothing\right\} \\[0.4ex] &= W ~~~\, \setminus \left\{y \in W ~~\;\, ~:~ f^{-1}(y) \cap L = \varnothing\right\} \qquad \text{ for any superset } \quad W \supseteq f(L) \\[0.7ex] \end{alignat} }[/math]
This is more easily seen as being a consequence of the fact that for any [math]\displaystyle{ y \in Y, }[/math] [math]\displaystyle{ f^{-1}(y) \cap L = \varnothing }[/math] if and only if [math]\displaystyle{ y \not\in f(L). }[/math]
Formulas for f(L⋂R) =
It follows from the above formulas for the image of a set that for any function [math]\displaystyle{ f : X \to Y }[/math] and any sets [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R, }[/math] [math]\displaystyle{ \begin{alignat}{4} f(L \cap R) &= Y~~~~~ \setminus \left\{y \in Y~~~~~ ~:~ L \cap R \cap f^{-1}(y) = \varnothing\right\} && \\[0.4ex] &= f(L) \setminus \left\{y \in f(L) ~:~ L \cap R \cap f^{-1}(y) = \varnothing\right\} && \\[0.4ex] &= f(L) \setminus \left\{y \in U~~~~~ ~:~ L \cap R \cap f^{-1}(y) = \varnothing\right\} \qquad && \text{ for any superset } \quad U \supseteq f(L) \\[0.4ex] &= f(R) \setminus \left\{y \in f(R) ~:~ L \cap R \cap f^{-1}(y) = \varnothing\right\} && \\[0.4ex] &= f(R) \setminus \left\{y \in V~~~~~ ~:~ L \cap R \cap f^{-1}(y) = \varnothing\right\} \qquad && \text{ for any superset } \quad V \supseteq f(R) \\[0.4ex] &= f(L) \cap f(R) \setminus \left\{y \in f(L) \cap f(R) ~:~ L \cap R \cap f^{-1}(y) = \varnothing\right\} && \\[0.7ex] \end{alignat} }[/math] where moreover, for any [math]\displaystyle{ y \in Y, }[/math]
- [math]\displaystyle{ L \cap f^{-1}(y) \subseteq L \setminus R~ }[/math] if and only if [math]\displaystyle{ ~L \cap R \cap f^{-1}(y) = \varnothing~ }[/math] if and only if [math]\displaystyle{ ~R \cap f^{-1}(y) \subseteq R \setminus L~ }[/math] if and only if [math]\displaystyle{ ~y \not\in f(L \cap R). }[/math]
The sets [math]\displaystyle{ U }[/math] and [math]\displaystyle{ V }[/math] mentioned above could, in particular, be any of the sets [math]\displaystyle{ f(L \cup R), \;\operatorname{Im} f, }[/math] or [math]\displaystyle{ Y, }[/math] for example.
(Pre)Images of set operations on (pre)images
Let [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] be arbitrary sets, [math]\displaystyle{ f : X \to Y }[/math] be any map, and let [math]\displaystyle{ A \subseteq X }[/math] and [math]\displaystyle{ C \subseteq Y. }[/math]
Image of preimage | Preimage of image | Additional assumptions on sets |
---|---|---|
[math]\displaystyle{ f\left(f^{-1}(L) \cap R\right) = L \cap f(R) }[/math][5] | [math]\displaystyle{ f^{-1}(f(L) \cap R) ~\supseteq~ L \cap f^{-1}(R) }[/math] | None |
[math]\displaystyle{ f\left(f^{-1}(L) \cup R\right) ~=~ (L \cap \operatorname{Im} f) \cup f(R) ~\subseteq~ L \cup f(R) }[/math] | [math]\displaystyle{ f^{-1}(f(A) \cup R) ~\supseteq~ A \cup f^{-1}(R) }[/math][8] Equality holds if any of the following are true:
|
[math]\displaystyle{ A \subseteq X }[/math] |
(Pre)Images of operations on images
Since [math]\displaystyle{ f(L) \setminus f(L \setminus R) ~=~ \left\{y \in f(L \cap R) ~:~ L \cap f^{-1}(y) \subseteq R\right\}, }[/math]
[math]\displaystyle{ \begin{alignat}{4} f^{-1}(f(L) \setminus f(L \setminus R)) &=&& f^{-1}\left(\left\{y \in f(L \cap R) ~:~ L \cap f^{-1}(y) \subseteq R\right\}\right) \\ &=&& \left\{x \in f^{-1}(f(L \cap R)) ~:~ L \cap f^{-1}(f(x)) \subseteq R\right\} \\ \end{alignat} }[/math]
Since [math]\displaystyle{ f(X) \setminus f(L \setminus R) ~=~ \left\{y \in f(X) ~:~ L \cap f^{-1}(y) \subseteq R\right\}, }[/math] [math]\displaystyle{ \begin{alignat}{4} f^{-1}(Y \setminus f(L \setminus R)) &~=~&& f^{-1}(f(X) \setminus f(L \setminus R)) \\ &=&& f^{-1}\left(\left\{y \in f(X) ~:~ L \cap f^{-1}(y) \subseteq R\right\}\right) \\ &=&& \left\{x \in X ~:~ L \cap f^{-1}(f(x)) \subseteq R\right\} \\ &~=~&& X \setminus f^{-1}(f(L \setminus R)) \\ \end{alignat} }[/math]
Using [math]\displaystyle{ L := X, }[/math] this becomes [math]\displaystyle{ ~f(X) \setminus f(X \setminus R) ~=~ \left\{y \in f(R) ~:~ f^{-1}(y) \subseteq R\right\}~ }[/math] and [math]\displaystyle{ \begin{alignat}{4} f^{-1}(Y \setminus f(X \setminus R)) &~=~&& f^{-1}(f(X) \setminus f(X \setminus R)) \\ &=&& f^{-1}\left(\left\{y \in f(R) ~:~ f^{-1}(y) \subseteq R\right\}\right) \\ &=&& \left\{r \in R \cap X ~:~ f^{-1}(f(r)) \subseteq R\right\} \\ &\subseteq&& R \\ \end{alignat} }[/math] and so [math]\displaystyle{ \begin{alignat}{4} f^{-1}(Y \setminus f(L)) &~=~&& f^{-1}(f(X) \setminus f(L)) \\ &=&& f^{-1}\left(\left\{y \in f(X \setminus L) ~:~ f^{-1}(y) \cap L = \varnothing\right\}\right) \\ &=&& \{x \in X \setminus L ~:~ f(x) \not\in f(L)\} \\ &=&& X \setminus f^{-1}(f(L)) \\ &\subseteq&& X \setminus L \\ \end{alignat} }[/math]
(Pre)Images and Cartesian products Π
Let [math]\displaystyle{ \prod Y_{\bull} ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \prod_{j \in J} Y_j }[/math] and for every [math]\displaystyle{ k \in J, }[/math] let [math]\displaystyle{ \pi_k ~:~ \prod_{j \in J} Y_j ~\to~ Y_k }[/math] denote the canonical projection onto [math]\displaystyle{ Y_k. }[/math]
Definitions
Given a collection of maps [math]\displaystyle{ F_j : X \to Y_j }[/math] indexed by [math]\displaystyle{ j \in J, }[/math] define the map [math]\displaystyle{ \begin{alignat}{4} \left(F_j\right)_{j \in J} :\;&& X &&\;\to\; & \prod_{j \in J} Y_j \\[0.3ex] && x &&\;\mapsto\;& \left(F_j\left(x_j\right)\right)_{j \in J}, \\ \end{alignat} }[/math] which is also denoted by [math]\displaystyle{ F_{\bull} = \left(F_j\right)_{j \in J}. }[/math] This is the unique map satisfying [math]\displaystyle{ \pi_j \circ F_{\bull} = F_j \quad \text{ for all } j \in J. }[/math]
Conversely, if given a map [math]\displaystyle{ F ~:~ X ~\to~ \prod_{j \in J} Y_j }[/math] then [math]\displaystyle{ F = \left(\pi_j \circ F\right)_{j \in J}. }[/math] Explicitly, what this means is that if [math]\displaystyle{ F_k ~\stackrel{\scriptscriptstyle\text{def}}{=}~ \pi_k \circ F ~:~ X ~\to~ Y_k }[/math] is defined for every [math]\displaystyle{ k \in J, }[/math] then [math]\displaystyle{ F }[/math] the unique map satisfying: [math]\displaystyle{ \pi_j \circ F = F_j }[/math] for all [math]\displaystyle{ j \in J; }[/math] or said more briefly, [math]\displaystyle{ F = \left(F_j\right)_{j \in J}. }[/math]
The map [math]\displaystyle{ F_{\bull} = \left(F_j\right)_{j \in J} ~:~ X ~\to~ \prod_{j \in J} Y_j }[/math] should not be confused with the Cartesian product [math]\displaystyle{ \prod_{j \in J} F_j }[/math] of these maps, which is by definition is the map [math]\displaystyle{ \begin{alignat}{4} \prod_{j \in J} F_j :\;&& \prod_{j \in J} X &&~\;\to\;~ & \prod_{j \in J} Y_j \\[0.3ex] && \left(x_j\right)_{j \in J} &&~\;\mapsto\;~& \left(F_j\left(x_j\right)\right)_{j \in J} \\ \end{alignat} }[/math] with domain [math]\displaystyle{ \prod_{j \in J} X = X^J }[/math] rather than [math]\displaystyle{ X. }[/math]
Preimage and images of a Cartesian product
Suppose [math]\displaystyle{ F_{\bull} = \left(F_j\right)_{j \in J} ~:~ X ~\to~ \prod_{j \in J} Y_j. }[/math]
If [math]\displaystyle{ A ~\subseteq~ X }[/math] then [math]\displaystyle{ F_{\bull}(A) ~~\;\color{Red}{\subseteq}\color{Black}{}\;~~ \prod_{j \in J} F_j(A). }[/math]
If [math]\displaystyle{ B ~\subseteq~ \prod_{j \in J} Y_j }[/math] then [math]\displaystyle{ F_{\bull}^{-1}(B) ~~\;\color{Red}{\subseteq}\color{Black}{}\;~~ \bigcap_{j \in J} F_j^{-1}\left(\pi_j(B)\right) }[/math] where equality will hold if [math]\displaystyle{ B = \prod_{j \in J} \pi_j(B), }[/math] in which case [math]\displaystyle{ F_{\bull}^{-1}(B) = \displaystyle\bigcap_{j \in J} F_j^{-1}\left(\pi_j(B)\right) }[/math] and
[math]\displaystyle{ F_{\bull}^{-1}\left(\prod_{j \in J} \pi_j(B)\right) ~=~ \bigcap_{j \in J} F_j^{-1}\left(\pi_j(B)\right). }[/math] |
|
( ) |
For equality to hold, it suffices for there to exist a family [math]\displaystyle{ \left(B_j\right)_{j \in J} }[/math] of subsets [math]\displaystyle{ B_j \subseteq Y_j }[/math] such that [math]\displaystyle{ B = \prod_{j \in J} B_j, }[/math] in which case:
[math]\displaystyle{ F_{\bull}^{-1}\left(\prod_{j \in J} B_j\right) ~=~ \bigcap_{j \in J} F_j^{-1}\left(B_j\right) }[/math] |
|
( ) |
and [math]\displaystyle{ \pi_j(B) = B_j }[/math] for all [math]\displaystyle{ j \in J. }[/math]
(Pre)Image of a single set
Image | Preimage | Additional assumptions |
---|---|---|
[math]\displaystyle{ \begin{alignat}{4} f(L) &= f(L \cap \operatorname{domain} f) \\ &= f(L \cap X) \\ &= Y ~~~~\, \setminus \left\{ y \in Y ~~~~\, : f^{-1}(y) \subseteq X \setminus L \right\} \\ &= \operatorname{Im} f \setminus \left\{ y \in \operatorname{Im} f : f^{-1}(y) \subseteq X \setminus L \right\} \\ \end{alignat} }[/math] | [math]\displaystyle{ \begin{alignat}{4} f^{-1}(L) &= f^{-1}(L \cap \operatorname{Im} f) \\ &= f^{-1}(L \cap Y) \end{alignat} }[/math] | None |
[math]\displaystyle{ f(X) = \operatorname{Im} f \subseteq Y }[/math] | [math]\displaystyle{ \begin{alignat}{4} f^{-1}(Y) &= X \\ f^{-1}(\operatorname{Im} f) &= X \end{alignat} }[/math] | None |
[math]\displaystyle{ \begin{alignat}{4} f(L) &= f(L \cap R ~&&\cup~ &&(&&L \setminus R)) \\ &= f(L \cap R) ~&&\cup~ f&&(&&L \setminus R) \end{alignat} }[/math] | [math]\displaystyle{ \begin{alignat}{4} f^{-1}(L) &= f^{-1}(L \cap R &&\cup &&( &&L &&\setminus &&R)) \\ &= f^{-1}(L \cap R) &&\cup f^{-1}&&( &&L &&\setminus &&R) \\ &= f^{-1}(L \cap R) &&\cup f^{-1}&&( &&L &&\setminus [&&R \cap \operatorname{Im} f]) \\ &= f^{-1}(L \cap R) &&\cup f^{-1}&&([&&L \cap \operatorname{Im} f] &&\setminus &&R) \\ &= f^{-1}(L \cap R) &&\cup f^{-1}&&([&&L \cap \operatorname{Im} f] &&\setminus [&&R \cap \operatorname{Im} f]) \end{alignat} }[/math] | None |
[math]\displaystyle{ \operatorname{Im} f = f(X) ~=~ f(L) \cup f(X \setminus L) }[/math] | [math]\displaystyle{ \begin{alignat}{4} X &= f^{-1}(L) \cup f^{-1}(Y &&\setminus L) \\ &= f^{-1}(L) \cup f^{-1}(\operatorname{Im} f &&\setminus L) \end{alignat} }[/math] | None |
[math]\displaystyle{ f\big\vert_L(R) = f(L \cap R) }[/math] | [math]\displaystyle{ \left(f\big\vert_L\right)^{-1}(R) = L \cap f^{-1}(R) }[/math] | None |
[math]\displaystyle{ (g \circ f)(L) ~=~ g(f(L)) }[/math] | [math]\displaystyle{ (g \circ f)^{-1}(L) ~=~ f^{-1}\left(g^{-1}(L)\right) }[/math] | None ([math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math] are arbitrary functions). |
[math]\displaystyle{ f\left(f^{-1}(L)\right) = L \cap \operatorname{Im} f }[/math] |
[math]\displaystyle{ f^{-1}(f(L)) ~\supseteq~ L \cap f^{-1}(\operatorname{Im} f) = L \cap f^{-1}(Y) }[/math][5] | None |
[math]\displaystyle{ f\left(f^{-1}(Y)\right) = f\left(f^{-1}(\operatorname{Im} f)\right) = f(X) }[/math] | [math]\displaystyle{ f^{-1}(f(X)) = f^{-1}(\operatorname{Im} f) = X }[/math] | None |
[math]\displaystyle{ f\left(f^{-1}(f(L))\right) = f(L) }[/math] | [math]\displaystyle{ f^{-1}\left(f\left(f^{-1}(L)\right)\right) = f^{-1}(L) }[/math] | None |
Containments ⊆ and intersections ⋂ of images and preimages
Equivalences and implications of images and preimages
Image | Preimage | Additional assumptions on sets |
---|---|---|
[math]\displaystyle{ f(L) \subseteq \operatorname{Im} f \subseteq Y }[/math] | [math]\displaystyle{ f^{-1}(L) = X }[/math] if and only if [math]\displaystyle{ \operatorname{Im} f \subseteq L }[/math] | None |
[math]\displaystyle{ f(L) = \varnothing }[/math] if and only if [math]\displaystyle{ L \cap \operatorname{domain} f = \varnothing }[/math] | [math]\displaystyle{ f^{-1}(L) = \varnothing }[/math] if and only if [math]\displaystyle{ L \cap \operatorname{Im} f = \varnothing }[/math] | None |
[math]\displaystyle{ f(A) = \varnothing }[/math] if and only if [math]\displaystyle{ A = \varnothing }[/math] | [math]\displaystyle{ f^{-1}(C) = \varnothing }[/math] if and only if [math]\displaystyle{ C \subseteq Y \setminus \operatorname{Im} f }[/math] | [math]\displaystyle{ A \subseteq X }[/math] and [math]\displaystyle{ C \subseteq Y }[/math] |
[math]\displaystyle{ L \subseteq R }[/math] implies [math]\displaystyle{ f(L) \subseteq f(R) }[/math][5] | [math]\displaystyle{ L \subseteq R }[/math] implies [math]\displaystyle{ f^{-1}(L) \subseteq f^{-1}(R) }[/math][5] | None |
The following are equivalent:
|
The following are equivalent:
If [math]\displaystyle{ C ~\subseteq~ \operatorname{Im} f }[/math] then [math]\displaystyle{ f^{-1}(C) ~\subseteq~ f^{-1}(R) }[/math] if and only if [math]\displaystyle{ C ~\subseteq~ R. }[/math] |
[math]\displaystyle{ C \subseteq \operatorname{Im} f }[/math] |
The following are equivalent when [math]\displaystyle{ C \subseteq Y: }[/math]
|
The following are equivalent:
The following are equivalent when [math]\displaystyle{ A \subseteq X: }[/math]
|
[math]\displaystyle{ A \subseteq X }[/math] and [math]\displaystyle{ C \subseteq Y }[/math] |
The following are equivalent:
|
The following are equivalent:
|
[math]\displaystyle{ A \subseteq X }[/math] and [math]\displaystyle{ C \subseteq Y }[/math] |
[math]\displaystyle{ f\left(f^{-1}(L)\right) \subseteq L }[/math][5] Equality holds if and only if the following is true: Equality holds if any of the following are true:
|
[math]\displaystyle{ f^{-1}(f(A)) \supseteq A }[/math] Equality holds if and only if the following is true:
Equality holds if any of the following are true: |
[math]\displaystyle{ A \subseteq X }[/math] |
Intersection of a set and a (pre)image
The following statements are equivalent:
- [math]\displaystyle{ \varnothing = f(L) \cap R }[/math]
- [math]\displaystyle{ \varnothing = L \cap f^{-1}(R) }[/math][5]
- [math]\displaystyle{ \varnothing = f^{-1}(f(L)) \cap f^{-1}(R) }[/math]
- [math]\displaystyle{ \varnothing = f^{-1}(f(L) \cap R) }[/math]
Thus for any [math]\displaystyle{ t, }[/math][5] [math]\displaystyle{ t \not\in f(L) \quad \text{ if and only if } \quad L \cap f^{-1}(t) = \varnothing. }[/math]
Sequences and collections of families of sets
Definitions
A family of sets or simply a family is a set whose elements are sets. A family over [math]\displaystyle{ X }[/math] is a family of subsets of [math]\displaystyle{ X. }[/math]
The power set of a set [math]\displaystyle{ X }[/math] is the set of all subsets of [math]\displaystyle{ X }[/math]: [math]\displaystyle{ \wp(X) ~\colon=~ \{\; S ~:~ S \subseteq X\; \}. }[/math]
Notation for sequences of sets
Throughout, [math]\displaystyle{ S \text{ and } T }[/math] will be arbitrary sets and [math]\displaystyle{ S_{\bull} }[/math] 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 [math]\displaystyle{ S_{\bull} = \left(S_i\right)_{i=1}^{\infty} \qquad \text{ or } \qquad S_{\bull} = \left(S_i\right)_{i \in \N} }[/math] where [math]\displaystyle{ \N }[/math] denotes the natural numbers. A notation [math]\displaystyle{ S_{\bull} = \left(S_i\right)_{i \in I} }[/math] indicates that [math]\displaystyle{ S_{\bull} }[/math] is a net directed by [math]\displaystyle{ (I, \leq), }[/math] which (by definition) is a sequence if the set [math]\displaystyle{ I, }[/math] which is called the net's indexing set, is the natural numbers (that is, if [math]\displaystyle{ I = \N }[/math]) and [math]\displaystyle{ \,\leq\, }[/math] is the natural order on [math]\displaystyle{ \N. }[/math]
Disjoint and monotone sequences of sets
If [math]\displaystyle{ S_i \cap S_j = \varnothing }[/math] for all distinct indices [math]\displaystyle{ i \neq j }[/math] then [math]\displaystyle{ S_{\bull} }[/math] is called a pairwise disjoint or simply a disjoint. A sequence or net [math]\displaystyle{ S_{\bull} }[/math] of set is called increasing or non-decreasing if (resp. decreasing or non-increasing) if for all indices [math]\displaystyle{ i \leq j, }[/math] [math]\displaystyle{ S_i \subseteq S_j }[/math] (resp. [math]\displaystyle{ S_i \supseteq S_j }[/math]). A sequence or net [math]\displaystyle{ S_{\bull} }[/math] of set is called strictly increasing (resp. strictly decreasing) if it is non-decreasing (resp. is non-increasing) and also [math]\displaystyle{ S_i \neq S_j }[/math] for all distinct indices [math]\displaystyle{ i \text{ and } j. }[/math] It is called monotone if it is non-decreasing or non-increasing and it is called strictly monotone if it is strictly increasing or strictly decreasing.
A sequences or net [math]\displaystyle{ S_{\bull} }[/math] is said to increase to [math]\displaystyle{ S, }[/math] denoted by [math]\displaystyle{ S_{\bull} \uparrow S }[/math][11] or [math]\displaystyle{ S_{\bull} \nearrow S, }[/math] if [math]\displaystyle{ S_{\bull} }[/math] is increasing and the union of all [math]\displaystyle{ S_i }[/math] is [math]\displaystyle{ S; }[/math] that is, if [math]\displaystyle{ \bigcup_{n} S_n = S \qquad \text{ and } \qquad S_i \subseteq S_j \quad \text{ whenever } i \leq j. }[/math] It is said to decrease to [math]\displaystyle{ S, }[/math] denoted by [math]\displaystyle{ S_{\bull} \downarrow S }[/math][11] or [math]\displaystyle{ S_{\bull} \searrow S, }[/math] if [math]\displaystyle{ S_{\bull} }[/math] is increasing and the intersection of all [math]\displaystyle{ S_i }[/math] is [math]\displaystyle{ S }[/math] that is, if [math]\displaystyle{ \bigcap_{n} S_n = S \qquad \text{ and } \qquad S_i \supseteq S_j \quad \text{ whenever } i \leq j. }[/math]
Definitions of elementwise operations on families
If [math]\displaystyle{ \mathcal{L} \text{ and } \mathcal{R} }[/math] are families of sets and if [math]\displaystyle{ S }[/math] is any set then define:[12] [math]\displaystyle{ \mathcal{L} \;(\cup)\; \mathcal{R} ~\colon=~ \{~ L \cup R ~:~ L \in \mathcal{L} ~\text{ and }~ R \in \mathcal{R} ~\} }[/math] [math]\displaystyle{ \mathcal{L} \;(\cap)\; \mathcal{R} ~\colon=~ \{~ L \cap R ~:~ L \in \mathcal{L} ~\text{ and }~ R \in \mathcal{R} ~\} }[/math] [math]\displaystyle{ \mathcal{L} \;(\setminus)\; \mathcal{R} ~\colon=~ \{~ L \setminus R ~:~ L \in \mathcal{L} ~\text{ and }~ R \in \mathcal{R} ~\} }[/math] [math]\displaystyle{ \mathcal{L} \;(\triangle)\; \mathcal{R} ~\colon=~ \{~ L \;\triangle\; R ~:~ L \in \mathcal{L} ~\text{ and }~ R \in \mathcal{R} ~\} }[/math] [math]\displaystyle{ \mathcal{L}\big\vert_S ~\colon=~ \{ L \cap S ~:~ L \in \mathcal{L} \} = \mathcal{L} \;(\cap)\; \{S\} }[/math] which are respectively called elementwise union, elementwise intersection, elementwise (set) difference, elementwise symmetric difference, and the trace/restriction of [math]\displaystyle{ \mathcal{L} }[/math] to [math]\displaystyle{ S. }[/math] The regular union, intersection, and set difference are all defined as usual and are denoted with their usual notation: [math]\displaystyle{ \mathcal{L} \cup \mathcal{R}, \mathcal{L} \cap \mathcal{R}, \mathcal{L} \;\triangle\; \mathcal{R}, }[/math] and [math]\displaystyle{ \mathcal{L} \setminus \mathcal{R}, }[/math] 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 upward closure in [math]\displaystyle{ X }[/math] of a family [math]\displaystyle{ \mathcal{L} \subseteq \wp(X) }[/math] is the family: [math]\displaystyle{ \mathcal{L}^{\uparrow X} ~\colon=~ \bigcup_{L \in \mathcal{L}} \{\; S ~:~ L \subseteq S \subseteq X \;\} ~=~ \{\; S \subseteq X ~:~ \text{ there exists } L \in \mathcal{L} \text{ such that } L \subseteq S \;\} }[/math] and the downward closure of [math]\displaystyle{ \mathcal{L} }[/math] is the family: [math]\displaystyle{ \mathcal{L}^{\downarrow} ~\colon=~ \bigcup_{L \in \mathcal{L}} \wp(L) ~=~ \{\; S ~:~ \text{ there exists } L \in \mathcal{L} \text{ such that } S \subseteq L \;\}. }[/math]
Definitions of categories of families of sets
A family [math]\displaystyle{ \mathcal{L} }[/math] is called isotone, ascending, or upward closed in [math]\displaystyle{ X }[/math] if [math]\displaystyle{ \mathcal{L} \subseteq \wp(X) }[/math] and [math]\displaystyle{ \mathcal{L} = \mathcal{L}^{\uparrow X}. }[/math][12] A family [math]\displaystyle{ \mathcal{L} }[/math] is called downward closed if [math]\displaystyle{ \mathcal{L} = \mathcal{L}^{\downarrow}. }[/math]
A family [math]\displaystyle{ \mathcal{L} }[/math] is said to be:
- closed under finite intersections (resp. closed under finite unions) if whenever [math]\displaystyle{ L, R \in \mathcal{L} }[/math] then [math]\displaystyle{ L \cap R \in \mathcal{L} }[/math] (respectively, [math]\displaystyle{ L \cup R \in \mathcal{L} }[/math]).
- closed under countable intersections (resp. closed under countable unions) if whenever [math]\displaystyle{ L_1, L_2, L_3, \ldots }[/math] are elements of [math]\displaystyle{ \mathcal{L} }[/math] then so is their intersections [math]\displaystyle{ \bigcap_{i=1}^{\infty} L_i := L_1 \cap L_2 \cap L_3 \cap \cdots }[/math] (resp. so is their union [math]\displaystyle{ \bigcup_{i=1}^{\infty} L_i := L_1 \cup L_2 \cup L_3 \cup \cdots }[/math]).
- closed under complementation in (or with respect to) [math]\displaystyle{ X }[/math] if whenever [math]\displaystyle{ L \in \mathcal{L} }[/math] then [math]\displaystyle{ X \setminus L \in \mathcal{L}. }[/math]
A family [math]\displaystyle{ \mathcal{L} }[/math] of sets is called a/an:
- π−system if [math]\displaystyle{ \mathcal{L} \neq \varnothing }[/math] and [math]\displaystyle{ \mathcal{L} }[/math] is closed under finite-intersections.
- Every non-empty family [math]\displaystyle{ \mathcal{L} }[/math] is contained in a unique smallest (with respect to [math]\displaystyle{ \subseteq }[/math]) π−system that is denoted by [math]\displaystyle{ \pi(\mathcal{L}) }[/math] and called the π−system generated by [math]\displaystyle{ \mathcal{L}. }[/math]
- filter subbase and is said to have the finite intersection property if [math]\displaystyle{ \mathcal{L} \neq \varnothing }[/math] and [math]\displaystyle{ \varnothing \not\in \pi(\mathcal{L}). }[/math]
- filter on [math]\displaystyle{ X }[/math] if [math]\displaystyle{ \mathcal{L} \neq \varnothing }[/math] is a family of subsets of [math]\displaystyle{ X }[/math] that is a π−system, is upward closed in [math]\displaystyle{ X, }[/math] and is also proper, which by definition means that it does not contain the empty set as an element.
- prefilter or filter base if it is a non-empty family of subsets of some set [math]\displaystyle{ X }[/math] whose upward closure in [math]\displaystyle{ X }[/math] is a filter on [math]\displaystyle{ X. }[/math]
- algebra on [math]\displaystyle{ X }[/math] is a non-empty family of subsets of [math]\displaystyle{ X }[/math] that contains the empty set, forms a π−system, and is also closed under complementation with respect to [math]\displaystyle{ X. }[/math]
- σ-algebra on [math]\displaystyle{ X }[/math] is an algebra on [math]\displaystyle{ X }[/math] that is closed under countable unions (or equivalently, closed under countable intersections).
Sequences of sets often arise in measure theory.
Algebra of sets
A family [math]\displaystyle{ \Phi }[/math] of subsets of a set [math]\displaystyle{ X }[/math] is said to be an algebra of sets if [math]\displaystyle{ \varnothing \in \Phi }[/math] and for all [math]\displaystyle{ L, R \in \Phi, }[/math] all three of the sets [math]\displaystyle{ X \setminus R, \,L \cap R, }[/math] and [math]\displaystyle{ L \cup R }[/math] are elements of [math]\displaystyle{ \Phi. }[/math][13]
The article on this topic lists set identities and other relationships these three operations.
Every algebra of sets is also a ring of sets[13] and a π-system.
Algebra generated by a family of sets
Given any family [math]\displaystyle{ \mathcal{S} }[/math] of subsets of [math]\displaystyle{ X, }[/math] there is a unique smallest[note 7] algebra of sets in [math]\displaystyle{ X }[/math] containing [math]\displaystyle{ \mathcal{S}. }[/math][13] It is called the algebra generated by [math]\displaystyle{ \mathcal{S} }[/math] and it will be denote it by [math]\displaystyle{ \Phi_{\mathcal{S}}. }[/math] This algebra can be constructed as follows:[13]
- If [math]\displaystyle{ \mathcal{S} = \varnothing }[/math] then [math]\displaystyle{ \Phi_{\mathcal{S}} = \{\varnothing, X\} }[/math] and we are done. Alternatively, if [math]\displaystyle{ \mathcal{S} }[/math] is empty then [math]\displaystyle{ \mathcal{S} }[/math] may be replaced with [math]\displaystyle{ \{\varnothing\}, \{X\}, \text{ or } \{\varnothing, X\} }[/math] and continue with the construction.
- Let [math]\displaystyle{ \mathcal{S}_0 }[/math] be the family of all sets in [math]\displaystyle{ \mathcal{S} }[/math] together with their complements (taken in [math]\displaystyle{ X }[/math]).
- Let [math]\displaystyle{ \mathcal{S}_1 }[/math] be the family of all possible finite intersections of sets in [math]\displaystyle{ \mathcal{S}_0. }[/math][note 8]
- Then the algebra generated by [math]\displaystyle{ \mathcal{S} }[/math] is the set [math]\displaystyle{ \Phi_{\mathcal{S}} }[/math] consisting of all possible finite unions of sets in [math]\displaystyle{ \mathcal{S}_1. }[/math]
Elementwise operations on families
Let [math]\displaystyle{ \mathcal{L}, \mathcal{M}, }[/math] and [math]\displaystyle{ \mathcal{R} }[/math] be families of sets over [math]\displaystyle{ X. }[/math] On the left hand sides of the following identities, [math]\displaystyle{ \mathcal{L} }[/math] is the L eft most family, [math]\displaystyle{ \mathcal{M} }[/math] is in the M iddle, and [math]\displaystyle{ \mathcal{R} }[/math] is the R ight most set.
Commutativity:[12] [math]\displaystyle{ \mathcal{L} \;(\cup)\; \mathcal{R} = \mathcal{R} \;(\cup)\; \mathcal{L} }[/math] [math]\displaystyle{ \mathcal{L} \;(\cap)\; \mathcal{R} = \mathcal{R} \;(\cap)\; \mathcal{L} }[/math]
Associativity:[12] [math]\displaystyle{ [\mathcal{L} \;(\cup)\; \mathcal{M}] \;(\cup)\; \mathcal{R} = \mathcal{L} \;(\cup)\; [\mathcal{M} \;(\cup)\; \mathcal{R}] }[/math] [math]\displaystyle{ [\mathcal{L} \;(\cap)\; \mathcal{M}] \;(\cap)\; \mathcal{R} = \mathcal{L} \;(\cap)\; [\mathcal{M} \;(\cap)\; \mathcal{R}] }[/math]
Identity: [math]\displaystyle{ \mathcal{L} \;(\cup)\; \{\varnothing\} = \mathcal{L} }[/math] [math]\displaystyle{ \mathcal{L} \;(\cap)\; \{X\} = \mathcal{L} }[/math] [math]\displaystyle{ \mathcal{L} \;(\setminus)\; \{\varnothing\} = \mathcal{L} }[/math]
Domination: [math]\displaystyle{ \mathcal{L} \;(\cup)\; \{X\} = \{X\} ~~~~\text{ if } \mathcal{L} \neq \varnothing }[/math] [math]\displaystyle{ \mathcal{L} \;(\cap)\; \{\varnothing\} = \{\varnothing\} ~~~~\text{ if } \mathcal{L} \neq \varnothing }[/math] [math]\displaystyle{ \mathcal{L} \;(\cup)\; \varnothing = \varnothing }[/math] [math]\displaystyle{ \mathcal{L} \;(\cap)\; \varnothing = \varnothing }[/math] [math]\displaystyle{ \mathcal{L} \;(\setminus)\; \varnothing = \varnothing }[/math] [math]\displaystyle{ \varnothing \;(\setminus)\; \mathcal{R} = \varnothing }[/math]
Power set
[math]\displaystyle{ \wp(L \cap R) ~=~ \wp(L) \cap \wp(R) }[/math] [math]\displaystyle{ \wp(L \cup R) ~=~ \wp(L) \ (\cup)\ \wp(R) ~\supseteq~ \wp(L) \cup \wp(R). }[/math]
If [math]\displaystyle{ L }[/math] and [math]\displaystyle{ R }[/math] are subsets of a vector space [math]\displaystyle{ X }[/math] and if [math]\displaystyle{ s }[/math] is a scalar then [math]\displaystyle{ \wp(s L) ~=~ s \wp(L) }[/math] [math]\displaystyle{ \wp(L + R) ~\supseteq~ \wp(L) + \wp(R). }[/math]
Sequences of sets
Suppose that [math]\displaystyle{ L }[/math] is any set such that [math]\displaystyle{ L \supseteq R_i }[/math] for every index [math]\displaystyle{ i. }[/math] If [math]\displaystyle{ R_\bull }[/math] decreases to [math]\displaystyle{ R }[/math] then [math]\displaystyle{ L \setminus R_\bull := \left(L \setminus R_i\right)_i }[/math] increases to [math]\displaystyle{ L \setminus R }[/math][11] whereas if instead [math]\displaystyle{ R_\bull }[/math] increases to [math]\displaystyle{ R }[/math] then [math]\displaystyle{ L \setminus R_\bull }[/math] decreases to [math]\displaystyle{ L \setminus R. }[/math]
If [math]\displaystyle{ L \text{ and } R }[/math] are arbitrary sets and if [math]\displaystyle{ L_\bull = \left(L_i\right)_i }[/math] increases (resp. decreases) to [math]\displaystyle{ L }[/math] then [math]\displaystyle{ \left(L_i \setminus R\right)_i }[/math] increase (resp. decreases) to [math]\displaystyle{ L \setminus R. }[/math]
Partitions
Suppose that [math]\displaystyle{ S_\bull = \left(S_i\right)_{i = 1}^\infty }[/math] is any sequence of sets, that [math]\displaystyle{ S \subseteq \bigcup_i S_i }[/math] is any subset, and for every index [math]\displaystyle{ i, }[/math] let [math]\displaystyle{ D_i = \left(S_i \cap S\right) \setminus \bigcup_{m=1}^i \left(S_m \cap S\right). }[/math] Then [math]\displaystyle{ S = \bigcup_i D_i }[/math] and [math]\displaystyle{ D_\bull := \left(D_i\right)_{i=1}^\infty }[/math] is a sequence of pairwise disjoint sets.[11]
Suppose that [math]\displaystyle{ S_\bull = \left(S_i\right)_{i = 1}^\infty }[/math] is non-decreasing, let [math]\displaystyle{ S_0 = \varnothing, }[/math] and let [math]\displaystyle{ D_i = S_i \setminus S_{i-1} }[/math] for every [math]\displaystyle{ i = 1, 2, \ldots. }[/math] Then [math]\displaystyle{ \bigcup_i S_i = \bigcup_i D_i }[/math] and [math]\displaystyle{ D_\bull = \left(D_i\right)_{i=1}^\infty }[/math] is a sequence of pairwise disjoint sets.[11]
See also
- Algebra of sets – Identities and relationships involving sets
- Complement (set theory) – Set of the elements not in a given subset
- Inclusion–exclusion principle – Counting technique in combinatorics
- Intersection (set theory) – Set of elements common to all of some sets
- List of mathematical identities
- Naive set theory – Informal set theories
- Pigeonhole principle – If there are more items than boxes holding them, one box must contain at least two items
- Set (mathematics) – Collection of mathematical objects
- Simple theorems in the algebra of sets
- Union (set theory) – Set of elements in any of some sets
Notes
Notes
- ↑ For example, the expression [math]\displaystyle{ (M \setminus R) \setminus A }[/math] uses two of the same symbols ([math]\displaystyle{ M }[/math] and [math]\displaystyle{ R }[/math]) that appear in the identity [math]\displaystyle{ (L \,\setminus\, M) \,\setminus\, R ~=~ (L \,\setminus\, R) \,\setminus\, (M \,\setminus\, R) }[/math] but they refer to different sets in each expression. To apply this identity to [math]\displaystyle{ (M \setminus R) \setminus A, }[/math] substitute [math]\displaystyle{ \text{Left set} := M,\; }[/math] [math]\displaystyle{ \text{Middle set} := R,\; }[/math] and [math]\displaystyle{ \text{Right set} := A }[/math] (since these are the left, middle, and right sets in [math]\displaystyle{ (M \setminus R) \setminus A }[/math]) to obtain: [math]\displaystyle{ \begin{alignat}{4} (M \setminus R) \setminus A &= (\text{Left set } &&\setminus \text{Right set}&&) &&\setminus (\text{Middle set } &&\setminus \text{Right set}) \\ &= (M &&\setminus A&&) &&\setminus (R &&\setminus A). \\ \end{alignat} }[/math] For a second example, this time applying the identity to [math]\displaystyle{ ((M \cap R \setminus L) \setminus (A \triangle L)) \setminus L, }[/math] is now given. The identity [math]\displaystyle{ (L \setminus M) \setminus R = (L \setminus R) \setminus (M \setminus R) }[/math] can be applied to [math]\displaystyle{ ((M \cap R \setminus L) \setminus (A \triangle L)) \setminus L }[/math] by reading [math]\displaystyle{ L, M, }[/math] and [math]\displaystyle{ R }[/math] as [math]\displaystyle{ \text{Left}, \text{Middle}, }[/math] and [math]\displaystyle{ \text{Right} }[/math] and then substituting [math]\displaystyle{ \text{Left} = (M \cap R \setminus L), }[/math] [math]\displaystyle{ \text{Middle} = (A \triangle L), }[/math] and [math]\displaystyle{ \text{Right} = L }[/math] to obtain: [math]\displaystyle{ \begin{alignat}{4} ((M \cap R \setminus L) \setminus (A \triangle L)) \setminus L &= (\text{Left } &&\setminus \text{Right}&&) &&\setminus (\text{Middle } &&\setminus \text{Right}) \\ &= ((M \cap R \setminus L) &&\setminus L&&) &&\setminus ((A \triangle L) &&\setminus L). \\ \end{alignat} }[/math]
- ↑ 2.0 2.1 To deduce Eq. 2c from Eq. 2a, it must still be shown that [math]\displaystyle{ {\textstyle\bigcup\limits_{\stackrel{i \in I,}{j \in I}}} \left(L_i \cup R_j\right) ~=~ {\textstyle\bigcup\limits_{i \in I}} \left(L_i \cup R_i\right) }[/math] so Eq. 2c is not a completely immediate consequence of Eq. 2a. (Compare this to the commentary about Eq. 3b).
- ↑ So for instance, it's even possible that [math]\displaystyle{ L \cap (X \cup Y) = \varnothing, }[/math] or that [math]\displaystyle{ L \cap X \neq \varnothing }[/math] and [math]\displaystyle{ L \cap Y \neq \varnothing }[/math] (which happens, for instance, if [math]\displaystyle{ X = Y }[/math]), etc.
- ↑ The conclusion [math]\displaystyle{ X \setminus f^{-1}(R) = f^{-1}(Y \setminus R) }[/math] can also be written as: [math]\displaystyle{ f^{-1}(R)^\complement ~=~ f^{-1}\left(R^\complement\right). }[/math]
- ↑ Whether or not it is even feasible for the function [math]\displaystyle{ f }[/math] to be constant and the sets [math]\displaystyle{ L \triangle R }[/math] and [math]\displaystyle{ R }[/math] to be non-empty and disjoint is irrelevant for reaching the correct conclusion about whether to use [math]\displaystyle{ \,\subseteq \text{ or } \supseteq.\, }[/math]
- ↑ 6.0 6.1 6.2 6.3 Note that this condition depends entirely on [math]\displaystyle{ R }[/math] and not on [math]\displaystyle{ L. }[/math]
- ↑ Here "smallest" means relative to subset containment. So if [math]\displaystyle{ \Phi }[/math] is any algebra of sets containing [math]\displaystyle{ \mathcal{S}, }[/math] then [math]\displaystyle{ \Phi_{\mathcal{S}} \subseteq \Phi. }[/math]
- ↑ Since [math]\displaystyle{ \mathcal{S} \neq \varnothing, }[/math] there is some [math]\displaystyle{ S \in \mathcal{S}_0 }[/math] such that its complement also belongs to [math]\displaystyle{ \mathcal{S}_0. }[/math] The intersection of these two sets implies that [math]\displaystyle{ \varnothing \in \mathcal{S}_1. }[/math] The union of these two sets is equal to [math]\displaystyle{ X, }[/math] which implies that [math]\displaystyle{ X \in \Phi_{\mathcal{S}}. }[/math]
Proofs
- ↑ 1.0 1.1 1.2 Let [math]\displaystyle{ f_R := \left\{ y \in f(L) : L \cap f^{-1}(y) \subseteq R \right\} }[/math] where because [math]\displaystyle{ f_R \subseteq f(R \cap L), }[/math] [math]\displaystyle{ f_R }[/math] is also equal to [math]\displaystyle{ f_R = \left\{ y \in f(R \cap L) : L \cap f^{-1}(y) \subseteq R \right\}. }[/math] As proved above, [math]\displaystyle{ f(L \setminus R) = f(L) \setminus f_R }[/math] so that [math]\displaystyle{ f(L) \setminus f(R) = f(L \setminus R) }[/math] if and only if [math]\displaystyle{ f(L) \setminus f(R) = f(L) \setminus f_R. }[/math] Since [math]\displaystyle{ f(L) \setminus f(R) = f(L) \setminus (f(L) \cap f(R)), }[/math] this happens if and only if [math]\displaystyle{ f(L) \setminus (f(L) \cap f(R)) = f(L) \setminus f_R. }[/math] Because [math]\displaystyle{ f(L) \cap f(R) \text{ and } f_R }[/math] are both subsets of [math]\displaystyle{ f(L), }[/math] the condition on the right hand side happens if and only if [math]\displaystyle{ f(L) \cap f(R) = f_R. }[/math] Because [math]\displaystyle{ f_R \subseteq f(R \cap L) \subseteq f(L) \cap f(R), }[/math] the equality [math]\displaystyle{ f(L) \cap f(R) = f_R }[/math] holds if and only if [math]\displaystyle{ f(L) \cap f(R) \subseteq f_R. }[/math] [math]\displaystyle{ \blacksquare }[/math] If [math]\displaystyle{ f(R) \subseteq f(L) }[/math] (such as when [math]\displaystyle{ L = X }[/math] or [math]\displaystyle{ R \subseteq L }[/math]) then [math]\displaystyle{ f(L) \cap f(R) \subseteq f_R }[/math] if and only if [math]\displaystyle{ f(R) \subseteq f_R. }[/math] In particular, taking [math]\displaystyle{ L = X }[/math] proves: [math]\displaystyle{ f(X \setminus R) = f(X) \setminus f(R) }[/math] if and only if [math]\displaystyle{ f(R) \subseteq \left\{ y \in f(R \cap X) : f^{-1}(y) \subseteq R \right\}, }[/math] where [math]\displaystyle{ f(R \cap X) = f(R). }[/math] [math]\displaystyle{ \blacksquare }[/math]
- ↑ Let [math]\displaystyle{ P := \left\{y \in Y : L \cap f^{-1}(y) \subseteq R\right\} }[/math] and let [math]\displaystyle{ (\star) }[/math] denote the set equality [math]\displaystyle{ f(L \setminus R) = Y \setminus P, }[/math] which will now be proven. If [math]\displaystyle{ y \in Y \setminus P }[/math] then [math]\displaystyle{ L \cap f^{-1}(y) \not\subseteq R }[/math] so there exists some [math]\displaystyle{ x \in L \cap f^{-1}(y) \setminus R; }[/math] now [math]\displaystyle{ f^{-1}(y) \subseteq X }[/math] implies [math]\displaystyle{ x \in L \cap X \setminus R }[/math] so that [math]\displaystyle{ y = f(x) \in f(L \cap X \setminus R) = f(L \setminus R). }[/math] To prove the reverse inclusion [math]\displaystyle{ f(L \setminus R) \subseteq Y \setminus P, }[/math] let [math]\displaystyle{ y \in f(L \setminus R) }[/math] so that there exists some [math]\displaystyle{ x \in X \cap L \setminus R }[/math] such that [math]\displaystyle{ y = f(x). }[/math] Then [math]\displaystyle{ x \in L \cap f^{-1}(y) \setminus R }[/math] so that [math]\displaystyle{ L \cap f^{-1}(y) \not\subseteq R }[/math] and thus [math]\displaystyle{ y \not\in P, }[/math] which proves that [math]\displaystyle{ y \in Y \setminus P, }[/math] as desired. [math]\displaystyle{ \blacksquare }[/math] Defining [math]\displaystyle{ Q := f(L) \cap P = \left\{ y \in f(L) : L \cap f^{-1}(y) \subseteq R \right\}, }[/math] the identity [math]\displaystyle{ f(L \setminus R) = f(L) \setminus Q }[/math] follows from [math]\displaystyle{ (\star) }[/math] and the inclusions [math]\displaystyle{ f(L \setminus R) \subseteq f(L) \subseteq Y. }[/math] [math]\displaystyle{ \blacksquare }[/math]
Citations
- ↑ Taylor, Courtney (March 31, 2019). "What Is Symmetric Difference in Math?" (in en). https://www.thoughtco.com/what-is-the-symmetric-difference-3126594.
- ↑ Weisstein, Eric W.. "Symmetric Difference" (in en). https://mathworld.wolfram.com/SymmetricDifference.html.
- ↑ 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 Monk 1969, pp. 24-54.
- ↑ 4.0 4.1 4.2 4.3 4.4 4.5 4.6 Császár 1978, pp. 15-26.
- ↑ 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 Császár 1978, pp. 102-120.
- ↑ Kelley 1985, p. 85
- ↑ See Munkres 2000, p. 21
- ↑ Lee p.388 of Lee, John M. (2010). Introduction to Topological Manifolds, 2nd Ed.
- ↑ 9.0 9.1 Lee Halmos 1960, p. 39
- ↑ 10.0 10.1 Lee Munkres 2000, p. 19
- ↑ 11.0 11.1 11.2 11.3 11.4 Durrett 2019, pp. 1-8.
- ↑ 12.0 12.1 12.2 12.3 Császár 1978, pp. 53-65.
- ↑ 13.0 13.1 13.2 13.3 "Algebra of sets". 16 August 2013. https://encyclopediaofmath.org/wiki/Algebra_of_sets.
References
- Artin, Michael (1991). Algebra. Prentice Hall. ISBN 81-203-0871-9.
- Blyth, T.S. (2005). Lattices and Ordered Algebraic Structures. Springer. ISBN 1-85233-905-5..
- Bylinski, Czeslaw (2004). "Some Basic Properties of Sets". Journal of Formalized Mathematics 1. http://www.mizar.org/JFM/Vol1/zfmisc_1.html. Retrieved 5 October 2021.
- Courant, Richard, Herbert Robbins, Ian Stewart, What is mathematics?: An Elementary Approach to Ideas and Methods, Oxford University Press US, 1996. ISBN:978-0-19-510519-3. "SUPPLEMENT TO CHAPTER II THE ALGEBRA OF SETS".
- Template:Császár General Topology
- Template:Dixmier General Topology
- Dolecki, Szymon; Mynard, Frederic (2016). Convergence Foundations Of Topology. New Jersey: World Scientific Publishing Company. ISBN 978-981-4571-52-4. OCLC 945169917.
- Dugundji, James (1966). Topology. Boston: Allyn and Bacon. ISBN 978-0-697-06889-7. OCLC 395340485.
- Template:Durrett Probability Theory and Examples 5th Edition
- Halmos, Paul R. (1960). Naive set theory. The University Series in Undergraduate Mathematics. van Nostrand Company. ISBN 9780442030643. https://archive.org/details/naivesettheory0000halm.
- Template:Joshi Introduction to General Topology
- Kelley, John L. (1985). General Topology. Graduate Texts in Mathematics. 27 (2 ed.). Birkhäuser. ISBN 978-0-387-90125-1.
- Köthe, Gottfried (1969). Topological Vector Spaces I. Grundlehren der mathematischen Wissenschaften. 159. New York: Springer Science & Business Media. ISBN 978-3-642-64988-2. OCLC 840293704.
- Monk, James Donald (1969). Introduction to Set Theory. International series in pure and applied mathematics. New York: McGraw-Hill. ISBN 978-0-07-042715-0. OCLC 1102. http://euclid.colorado.edu/~monkd/monk11.pdf.
- Munkres, James R. (2000). Topology (Second ed.). Upper Saddle River, NJ: Prentice Hall, Inc. ISBN 978-0-13-181629-9. OCLC 42683260.
- Narici, Lawrence; Beckenstein, Edward (2011). Topological Vector Spaces. Pure and applied mathematics (Second ed.). Boca Raton, FL: CRC Press. ISBN 978-1584888666. OCLC 144216834.
- Padlewska, Beata (1990). "Families of Sets". Journal of Formalized Mathematics 1: 1. http://mizar.org/JFM/Vol1/setfam_1.html. Retrieved 5 October 2021.
- Schechter, Eric (1996). Handbook of Analysis and Its Foundations. San Diego, CA: Academic Press. ISBN 978-0-12-622760-4. OCLC 175294365.
- Template:Schubert Topology
- Stoll, Robert R.; Set Theory and Logic, Mineola, N.Y.: Dover Publications (1979) ISBN:0-486-63829-4. "The Algebra of Sets", pp 16—23.
- Trybulec, Zinaida (2002). "Properties of subsets". Journal of Formalized Mathematics 1: 1. https://fm.mizar.org/1990-1/pdf1-1/subset_1.pdf. Retrieved 5 October 2021.
- Wilansky, Albert (2013). Modern Methods in Topological Vector Spaces. Mineola, New York: Dover Publications, Inc. ISBN 978-0-486-49353-4. OCLC 849801114.
- Willard, Stephen (2004). General Topology. Dover Books on Mathematics (First ed.). Mineola, N.Y.: Dover Publications. ISBN 978-0-486-43479-7. OCLC 115240.
External links
Original source: https://en.wikipedia.org/wiki/List of set identities and relations.
Read more |