# 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 ($\cup$) and intersection ($\cap$) satisfy many identities. Several of these identities or "laws" have well established names.

## Notation

Throughout this article, capital letters (such as $A,B,C,L,M,R,S,$ and $X$) will denote sets. On the left hand side of an identity, typically,
* $L$ will be the leftmost set,
* $M$ will be the middle set, and
* $R$ will be the rightmost set.
This is to facilitate applying identities to expressions that are complicated or use the same symbols as the identity. For example, the identity $(L\,\setminus \,M)\,\setminus \,R~=~(L\,\setminus \,R)\,\setminus \,(M\,\setminus \,R)$ may be read as: $({\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}}).$

### Elementary set operations

For sets $L$ and $R,$ define: ${\begin{alignedat}{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{alignedat}}$ and $L\triangle R~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{~x~:~x{\text{ belongs to exactly one of }}L{\text{ and }}R~\}$ where the symmetric difference $L\triangle R$ is sometimes denoted by $L\ominus R$ and equals: ${\begin{alignedat}{4}L\;\triangle \;R~&=~(L~\setminus ~&&R)~\cup ~&&(R~\setminus ~&&L)\\~&=~(L~\cup ~&&R)~\setminus ~&&(L~\cap ~&&R).\end{alignedat}}$
One set $L$ is said to intersect another set $R$ if $L\cap R\neq \varnothing .$ Sets that do not intersect are said to be disjoint.
The power set of $X$ is the set of all subsets of $X$ and will be denoted by $\wp (X)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{~L~:~L\subseteq X~\}.$
Universe set and complement notation
The notation $L^{\complement }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~X\setminus L.$ may be used if $L$ is a subset of some set $X$ that is understood (say from context, or because it is clearly stated what the superset $X$ is). It is emphasized that the definition of $L^{\complement }$ depends on context. For instance, had $L$ been declared as a subset of $Y,$ with the sets $Y$ and $X$ not necessarily related to each other in any way, then $L^{\complement }$ would likely mean $Y\setminus L$ instead of $X\setminus L.$
If it is needed then unless indicated otherwise, it should be assumed that $X$ denotes the universe set, which means that all sets that are used in the formula are subsets of $X.$ In particular, the complement of a set $L$ will be denoted by $L^{\complement }$ where unless indicated otherwise, it should be assumed that $L^{\complement }$ denotes the complement of $L$ in (the universe) $X.$

## One subset involved

Assume $L\subseteq X.$
Identity:
Definition: $e$ is called a left identity element of a binary operator $\,\ast \,$ if $e\,\ast \,R=R$ for all $R$ and it is called a right identity element of $\,\ast \,$ if $L\,\ast \,e=L$ for all $L.$ A left identity element that is also a right identity element if called an identity element.
The empty set $\varnothing$ is an identity element of binary union $\cup$ and symmetric difference $\triangle ,$ and it is also a right identity element of set subtraction $\,\setminus :$
${\begin{alignedat}{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{alignedat}}$ but $\varnothing$ is not a left identity element of $\,\setminus \,$ since $\varnothing \setminus L=\varnothing$ so ∅∖L=L{\textstyle \varnothing \setminus L=L} if and only if $L=\varnothing .$
Idempotence $L\ast L=L$ and Nilpotence $L\ast L=\varnothing$:
${\begin{alignedat}{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{alignedat}}$
Domination/Absorbing element:
Definition: $z$ is called a left absorbing element of a binary operator $\,\ast \,$ if $z\,\ast \,R=z$ for all $R$ and it is called a right absorbing element of $\,\ast \,$ if $L\,\ast \,z=z$ for all $L.$ A left absorbing element that is also a right absorbing element if called an absorbing element. Absorbing elements are also sometime called annihilating elements or zero elements.
A universe set is an absorbing element of binary union $\cup .$ The empty set $\varnothing$ is an absorbing element of binary intersection $\cap$ and binary Cartesian product $\times ,$ and it is also a left absorbing element of set subtraction $\,\setminus :$
${\begin{alignedat}{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{alignedat}}$ but $\varnothing$ is not a right absorbing element of set subtraction since $L\setminus \varnothing =L$ where L∖∅=∅{\textstyle L\setminus \varnothing =\varnothing } if and only if L=∅.{\textstyle L=\varnothing .}
Double complement or involution law:
${\begin{alignedat}{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{alignedat}}$
$L\setminus \varnothing =L$ ${\begin{alignedat}{4}\varnothing &=L&&\setminus L\\&=\varnothing &&\setminus L\\&=L&&\setminus X~~~~{\text{ where }}L\subseteq X\\\end{alignedat}}$
$L^{\complement }=X\setminus L\quad {\text{ (definition of notation)}}$
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$

## Two sets involved

In the left hand sides of the following identities, $L$ is the L eft most set and $R$ is the R ight most set. Assume both $L{\text{ and }}R$ are subsets of some universe set $X.$

### Formulas for binary set operations ⋂, ⋃, \, and ∆

In the left hand sides of the following identities, L is the L eft most set and R is the R ight most set. Whenever necessary, both L and R should be assumed to be subsets of some universe set X, so that $L^{\complement }:=X\setminus L{\text{ and }}R^{\complement }:=X\setminus R.$
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$

### De Morgan's laws

De Morgan's laws state that for $L,R\subseteq X:$
${\begin{alignedat}{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{alignedat}}$

### Commutativity

Unions, intersection, and symmetric difference are commutative operations:
${\begin{alignedat}{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{alignedat}}$
Set subtraction is not commutative. However, the commutativity of set subtraction can be characterized: from $(L\,\setminus \,R)\cap (R\,\setminus \,L)=\varnothing$ it follows that: $L\,\setminus \,R=R\,\setminus \,L\quad {\text{ if and only if }}\quad L=R.$ Said differently, if distinct symbols always represented distinct sets, then the only true formulas of the form $\,\cdot \,\,\setminus \,\,\cdot \,=\,\cdot \,\,\setminus \,\,\cdot \,$ that could be written would be those involving a single symbol; that is, those of the form: $S\,\setminus \,S=S\,\setminus \,S.$ But such formulas are necessarily true for every binary operation $\,\ast \,$ (because $x\,\ast \,x=x\,\ast \,x$ must hold by definition of equality), and so in this sense, set subtraction is as diametrically opposite to being commutative as is possible for a binary operation. Set subtraction is also neither left alternative nor right alternative; instead, $(L\setminus L)\setminus R=L\setminus (L\setminus R)$ if and only if $L\cap R=\varnothing$ if and only if $(R\setminus L)\setminus L=R\setminus (L\setminus L).$ Set subtraction is quasi-commutative and satisfies the Jordan identity.

### Other identities involving two sets

Absorption laws:
${\begin{alignedat}{4}L\cup (L\cap R)&\;=\;&&L&&\quad {\text{ (Absorption)}}\\[1.4ex]L\cap (L\cup R)&\;=\;&&L&&\quad {\text{ (Absorption)}}\\[1.4ex]\end{alignedat}}$
Other properties
${\begin{alignedat}{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{alignedat}}$
Intervals:
$(a,b)\cap (c,d)=(\max\{a,c\},\min\{b,d\})$ $[a,b)\cap [c,d)=[\max\{a,c\},\min\{b,d\})$

### Subsets ⊆ and supersets ⊇

The following statements are equivalent for any $L,R\subseteq X:$
* $L\subseteq R$
** Definition of subset: if $l\in L$ then $l\in R$
* $L\cap R=L$
* $L\cup R=R$
* $L\,\triangle \,R=R\setminus L$
* $L\,\triangle \,R\subseteq R\setminus L$
* $L\setminus R=\varnothing$
* $L$ and $X\setminus R$ are disjoint (that is, $L\cap (X\setminus R)=\varnothing$)
* $X\setminus R\subseteq X\setminus L\qquad$ (that is, $R^{\complement }\subseteq L^{\complement }$)
The following statements are equivalent for any $L,R\subseteq X:$
* $L\not \subseteq R$
* There exists some $l\in L\setminus R.$

#### Set equality

The following statements are equivalent:
* $L=R$
* $L\,\triangle \,R=\varnothing$
* $L\,\setminus \,R=R\,\setminus \,L$
* If $L\cap R=\varnothing$ then $L=R$ if and only if $L=\varnothing =R.$
* Uniqueness of complements: If L∪R=X and L∩R=∅{\textstyle L\cup R=X{\text{ and }}L\cap R=\varnothing } then $R=X\setminus L$

##### Empty set

A set $L$ is empty if the sentence $\forall x(x\not \in L)$ is true, where the notation $x\not \in L$ is shorthand for $\lnot (x\in L).$
If $L$ is any set then the following are equivalent:
* $L$ is not empty, meaning that the sentence $\lnot [\forall x(x\not \in L)]$ is true (literally, the logical negation of "$L$ is empty" holds true).
* (In classical mathematics) $L$ is inhabited, meaning: $\exists x(x\in L)$
** In constructive mathematics, "not empty" and "inhabited" are not equivalent: every inhabited set is not empty but the converse is not always guaranteed; that is, in constructive mathematics, a set $L$ that is not empty (where by definition, "$L$ is empty" means that the statement $\forall x(x\not \in L)$ is true) might not have an inhabitant (which is an $x$ such that $x\in L$).
* $L\not \subseteq R$ for some set $R$
If $L$ is any set then the following are equivalent:
* $L$ is empty ($L=\varnothing$), meaning: $\forall x(x\not \in L)$
* $L\cup R\subseteq R$ for every set $R$
* $L\subseteq R$ for every set $R$
* $L\subseteq R\setminus L$ for some/every set $R$
* $\varnothing /L=L$
Given any $x,$ the following are equivalent:
* x∉L∖R{\textstyle x\not \in L\setminus R}
* x∈L∩R or x∉L.{\textstyle x\in L\cap R\;{\text{ or }}\;x\not \in L.}
* x∈R or x∉L.{\textstyle x\in R\;{\text{ or }}\;x\not \in L.}
Moreover, $(L\setminus R)\cap R=\varnothing \qquad {\text{ always holds}}.$

#### Meets, Joins, and lattice properties

Inclusion is a partial order: Explicitly, this means that inclusion $\,\subseteq ,\,$ which is a binary operation, has the following three properties:
* Reflexivity: L⊆L{\textstyle L\subseteq L}
* Antisymmetry: (L⊆R and R⊆L) if and only if L=R{\textstyle (L\subseteq R{\text{ and }}R\subseteq L){\text{ if and only if }}L=R}
* Transitivity: If L⊆M and M⊆R then L⊆R{\textstyle {\text{If }}L\subseteq M{\text{ and }}M\subseteq R{\text{ then }}L\subseteq R}
The following proposition says that for any set $S,$ the power set of $S,$ ordered by inclusion, is a bounded lattice, and hence together with the distributive and complement laws above, show that it is a Boolean algebra.
Existence of a least element and a greatest element: $\varnothing \subseteq L\subseteq X$
Joins/supremums exist: $L\subseteq L\cup R$
The union $L\cup R$ is the join/supremum of $L$ and $R$ with respect to $\,\subseteq \,$ because:
* $L\subseteq L\cup R$ and $R\subseteq L\cup R,$ and
* if $Z$ is a set such that $L\subseteq Z$ and $R\subseteq Z$ then $L\cup R\subseteq Z.$
The intersection $L\cap R$ is the join/supremum of $L$ and $R$ with respect to $\,\supseteq .\,$
Meets/infimums exist: $L\cap R\subseteq L$
The intersection $L\cap R$ is the meet/infimum of $L$ and $R$ with respect to $\,\subseteq \,$ because:
* if $L\cap R\subseteq L$ and $L\cap R\subseteq R,$ and
* if $Z$ is a set such that $Z\subseteq L$ and $Z\subseteq R$ then $Z\subseteq L\cap R.$
The union $L\cup R$ is the meet/infimum of $L$ and $R$ with respect to $\,\supseteq .\,$
Other inclusion properties:
$L\setminus R\subseteq L$ $(L\setminus R)\cap L=L\setminus R$
* If $L\subseteq R$ then $L\,\triangle \,R=R\setminus L.$
* If $L\subseteq X$ and $R\subseteq Y$ then $L\times R\subseteq X\times Y$

## Three sets involved

In the left hand sides of the following identities, $L$ is the L eft most set, $M$ is the M iddle set, and $R$ 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 $L\cap R=\{x:(x\in L)\land (x\in R)\}$ with logical conjunction (and) $L\land R$ and associate union $L\cup R=\{x:(x\in L)\lor (x\in R)\}$ with logical disjunction (or) $L\lor R,$ and then transfer the precedence of these logical operators (where $\,\land \,$ has precedence over $\,\lor \,$) to these set operators, thereby giving $\,\cap \,$ precedence over $\,\cup .\,$ So for example, $L\cup M\cap R$ would mean $L\cup (M\cap R)$ since it would be associated with the logical statement $L\lor M\land R~=~L\lor (M\land R)$ and similarly, $L\cup M\cap R\cup Z$ would mean $L\cup (M\cap R)\cup Z$ since it would be associated with $L\lor M\land R\lor Z~=~L\lor (M\land R)\lor Z.$
Sometimes, set complement (subtraction) $\,\setminus \,$ is also associated with logical complement (not) $\,\lnot ,\,$ in which case it will have the highest precedence. More specifically, $L\setminus R=\{x:(x\in L)\land \lnot (x\in R)\}$ is rewritten $L\land \lnot R$ so that for example, $L\cup M\setminus R$ would mean $L\cup (M\setminus R)$ since it would be rewritten as the logical statement $L\lor M\land \lnot R$ which is equal to $L\lor (M\land \lnot R).$ For another example, because $L\land \lnot M\land R$ means $L\land (\lnot M)\land R,$ which is equal to both $(L\land (\lnot M))\land R$ and $L\land ((\lnot M)\land R)~=~L\land (R\land (\lnot M))$ (where $(\lnot M)\land R$ was rewritten as $R\land (\lnot M)$), the formula $L\setminus M\cap R$ would refer to the set $(L\setminus M)\cap R=L\cap (R\setminus M);$ moreover, since $L\land (\lnot M)\land R=(L\land R)\land \lnot M,$ this set is also equal to $(L\cap R)\setminus M$ (other set identities can similarly be deduced from propositional calculus identities in this way). However, because set subtraction is not associative $(L\setminus M)\setminus R\neq L\setminus (M\setminus R),$ a formula such as $L\setminus M\setminus R$ would be ambiguous; for this reason, among others, set subtraction is often not assigned any precedence at all.
Symmetric difference $L\triangle R=\{x:(x\in L)\oplus (x\in R)\}$ is sometimes associated with exclusive or (xor) $L\oplus R$ (also sometimes denoted by $\,\veebar$), in which case if the order of precedence from highest to lowest is $\,\lnot ,\,\oplus ,\,\land ,\,\lor \,$ then the order of precedence (from highest to lowest) for the set operators would be $\,\setminus ,\,\triangle ,\,\cap ,\,\cup .$ There is no universal agreement on the precedence of exclusive disjunction $\,\oplus \,$ with respect to the other logical connectives, which is why symmetric difference $\,\triangle \,$ is not often assigned a precedence.

### Associativity

Definition: A binary operator $\,\ast \,$ is called associative if $(L\,\ast \,M)\,\ast \,R=L\,\ast \,(M\,\ast \,R)$ always holds.
The following set operators are associative:
${\begin{alignedat}{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{alignedat}}$
For set subtraction, instead of associativity, only the following is always guaranteed: $(L\,\setminus \,M)\,\setminus \,R\;~~{\color {red}{\subseteq }}~~\;L\,\setminus \,(M\,\setminus \,R)$ where equality holds if and only if $L\cap R=\varnothing$ (this condition does not depend on $M$). Thus (L∖M)∖R=L∖(M∖R){\textstyle \;(L\setminus M)\setminus R=L\setminus (M\setminus R)\;} if and only if $\;(R\setminus M)\setminus L=R\setminus (M\setminus L),\;$ where the only difference between the left and right hand side set equalities is that the locations of $L{\text{ and }}R$ have been swapped.

### Distributivity

Definition: If $\ast {\text{ and }}\bullet$ are binary operators then $\,\ast \,$ left distributes over $\,\bullet \,$ if $L\,\ast \,(M\,\bullet \,R)~=~(L\,\ast \,M)\,\bullet \,(L\,\ast \,R)\qquad \qquad {\text{ for all }}L,M,R$ while $\,\ast \,$ right distributes over $\,\bullet \,$ if $(L\,\bullet \,M)\,\ast \,R~=~(L\,\ast \,R)\,\bullet \,(M\,\ast \,R)\qquad \qquad {\text{ for all }}L,M,R.$ The operator $\,\ast \,$ distributes over $\,\bullet \,$ if it both left distributes and right distributes over $\,\bullet \,.\,$ 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:
${\begin{alignedat}{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\,\triangle \,M)\,\times \,R~&~~=~~&&(L\,\times \,R)\,&&\triangle \,&&(M\,\times \,R)\qquad &&{\text{ (Right-distributivity of }}\,\times \,{\text{ over }}\,\triangle \,{\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{alignedat}}$
Left distributivity:
${\begin{alignedat}{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]L\times (M\,\triangle R)&\;=\;\;&&(L\times M)\,\triangle (L\times R)&&{\text{ (Left-distributivity of }}\,\times \,{\text{ over }}\,\triangle \,{\text}}\\[1.4ex]\end{alignedat}}$

#### Distributivity and symmetric difference ∆

Intersection distributes over symmetric difference: ${\begin{alignedat}{5}L\,\cap \,(M\,\triangle \,R)~&~~=~~&&(L\,\cap \,M)\,\triangle \,(L\,\cap \,R)~&&~\\[1.4ex]\end{alignedat}}$ ${\begin{alignedat}{5}(L\,\triangle \,M)\,\cap \,R~&~~=~~&&(L\,\cap \,R)\,\triangle \,(M\,\cap \,R)~&&~\\[1.4ex]\end{alignedat}}$
Union does not distribute over symmetric difference because only the following is guaranteed in general: ${\begin{alignedat}{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{alignedat}}$
Symmetric difference does not distribute over itself: $L\,\triangle \,(M\,\triangle \,R)~~{\color {red}{\neq }}~~\color {black}{\,}(L\,\triangle \,M)\,\triangle \,(L\,\triangle \,R)~=~M\,\triangle \,R$ and in general, for any sets $L{\text{ and }}A$ (where $A$ represents $M\,\triangle \,R$), $L\,\triangle \,A$ might not be a subset, nor a superset, of $L$ (and the same is true for $A$).

#### 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: ${\begin{alignedat}{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{alignedat}}$ where equality holds if and only if $L\,\setminus \,M=L\,\cap \,R,$ which happens if and only if $L\cap M\cap R=\varnothing {\text{ and }}L\setminus M\subseteq R.$
For symmetric difference, the sets $L\,\setminus \,(M\,\triangle \,R)$ and $(L\,\setminus \,M)\,\triangle \,(L\,\setminus \,R)=L\,\cap \,(M\,\triangle \,R)$ are always disjoint. So these two sets are equal if and only if they are both equal to $\varnothing .$ Moreover, $L\,\setminus \,(M\,\triangle \,R)=\varnothing$ if and only if $L\cap M\cap R=\varnothing {\text{ and }}L\subseteq M\cup R.$
To investigate the left distributivity of set subtraction over unions or intersections, consider how the sets involved in (both of) De Morgan's laws are all related: ${\begin{alignedat}{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{alignedat}}$ 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 ${\color {red}{\subseteq }}$ might be strict). Equality holds if and only if $L\,\setminus \,(M\,\cap \,R)\;\subseteq \;L\,\setminus \,(M\,\cup \,R),$ which happens if and only if $L\,\cap \,M=L\,\cap \,R.$
This observation about De Morgan's laws shows that $\,\setminus \,$ is not left distributive over $\,\cup \,$ or $\,\cap \,$ because only the following are guaranteed in general: ${\begin{alignedat}{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{alignedat}}$ ${\begin{alignedat}{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{alignedat}}$ where equality holds for one (or equivalently, for both) of the above two inclusion formulas if and only if $L\,\cap \,M=L\,\cap \,R.$
The following statements are equivalent:
* $L\cap M\,=\,L\cap R$
* $L\,\setminus \,M\,=\,L\,\setminus \,R$
* $L\,\setminus \,(M\,\cap \,R)=(L\,\setminus \,M)\,\cap \,(L\,\setminus \,R);$ that is, $\,\setminus \,$ left distributes over $\,\cap \,$ for these three particular sets
* $L\,\setminus \,(M\,\cup \,R)=(L\,\setminus \,M)\,\cup \,(L\,\setminus \,R);$ that is, $\,\setminus \,$ left distributes over $\,\cup \,$ for these three particular sets
* $L\,\setminus \,(M\,\cap \,R)\,=\,L\,\setminus \,(M\,\cup \,R)$
* $L\cap (M\cup R)\,=\,L\cap M\cap R$
* $L\cap (M\cup R)~\subseteq ~M\cap R$
* $L\cap R~\subseteq ~M\;$ and $\;L\cap M~\subseteq ~R$
* $L\setminus (M\setminus R)\,=\,L\setminus (R\setminus M)$
* $L\setminus (M\setminus R)\,=\,L\setminus (R\setminus M)\,=\,L$
Quasi-commutativity: $(L\setminus M)\setminus R~=~(L\setminus R)\setminus M\qquad {\text{ (Quasi-commutative)}}$ always holds but in general, $L\setminus (M\setminus R)~~{\color {red}{\neq }}~~L\setminus (R\setminus M).$ However, $L\setminus (M\setminus R)~\subseteq ~L\setminus (R\setminus M)$ if and only if $L\cap R~\subseteq ~M$ if and only if $L\setminus (R\setminus M)~=~L.$
Set subtraction complexity: To manage the many identities involving set subtraction, this section is divided based on where the set subtraction operation and parentheses are located on the left hand side of the identity. The great variety and (relative) complexity of formulas involving set subtraction (compared to those without it) is in part due to the fact that unlike $\,\cup ,\,\cap ,$ and $\triangle ,\,$ set subtraction is neither associative nor commutative and it also is not left distributive over $\,\cup ,\,\cap ,\,\triangle ,$ or even over itself.

### Two set subtractions

Set subtraction is not associative in general: $(L\,\setminus \,M)\,\setminus \,R\;~~{\color {red}{\neq }}~~\;L\,\setminus \,(M\,\setminus \,R)$ since only the following is always guaranteed: $(L\,\setminus \,M)\,\setminus \,R\;~~{\color {red}{\subseteq }}~~\;L\,\setminus \,(M\,\setminus \,R).$

#### (L\M)\R

${\begin{alignedat}{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{alignedat}}$

#### L\(M\R)

${\begin{alignedat}{4}L\setminus (M\setminus R)&=(L\setminus M)\cup (L\cap R)\\[1.4ex]\end{alignedat}}$
   * If $L\subseteq M{\text{ then }}L\setminus (M\setminus R)=L\cap R$
   * L∖(M∖R)⊆(L∖M)∪R{\textstyle L\setminus (M\setminus R)\subseteq (L\setminus M)\cup R} with equality if and only if $R\subseteq L.$

### One set subtraction
#### (L\M) ⁎ R

Set subtraction on the left, and parentheses on the left
${\begin{alignedat}{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{alignedat}}$
    ${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$ ${\begin{alignedat}{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{alignedat}}$
$(L\,\setminus M)\times R=(L\times R)\,\setminus (M\times R)~~~~~{\text{ (Distributivity)}}$

#### L\(M ⁎ R)

Set subtraction on the left, and parentheses on the right
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{4}L\setminus (M\cap R)&=(L\setminus M)\cup (L\setminus R)~~~~{\text{ (De Morgan's law) }}\\\end{alignedat}}$ where the above two sets that are the subjects of De Morgan's laws always satisfy $L\,\setminus \,(M\,\cup \,R)~~{\color {red}{\subseteq }}~~\color {black}{\,}L\,\setminus \,(M\,\cap \,R).$
${\begin{alignedat}{4}L\setminus (M~\triangle ~R)&=(L\setminus (M\cup R))\cup (L\cap M\cap R)~~~{\text{ (the outermost union is disjoint) }}\\\end{alignedat}}$

#### (L ⁎ M)\R

Set subtraction on the right, and parentheses on the left
${\begin{alignedat}{4}(L\cup M)\setminus R&=(L\setminus R)\cup (M\setminus R)\\\end{alignedat}}$
${\begin{alignedat}{4}(L\cap M)\setminus R&=(&&L\setminus R)&&\cap (M\setminus R)\\&=&&L&&\cap (M\setminus R)\\&=&&M&&\cap (L\setminus R)\\\end{alignedat}}$
${\begin{alignedat}{4}(L\,\triangle \,M)\setminus R&=(L\setminus R)~&&\triangle ~(M\setminus R)\\&=(L\cup R)~&&\triangle ~(M\cup R)\\\end{alignedat}}$

#### L ⁎ (M\R)

Set subtraction on the right, and parentheses on the right
${\begin{alignedat}{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{alignedat}}$
    ${\begin{alignedat}{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{alignedat}}$
$L\times (M\,\setminus R)=(L\times M)\,\setminus (L\times R)~~~~~{\text{ (Distributivity)}}$

### Three operations on three sets
#### (L • M) ⁎ (M • R)

Operations of the form $(L\bullet M)\ast (M\bullet R)$:
${\begin{alignedat}{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\cap (L\cup 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{alignedat}}$

#### (L • M) ⁎ (R\M)

Operations of the form $(L\bullet M)\ast (R\,\setminus \,M)$:
${\begin{alignedat}{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{alignedat}}$

#### (L\M) ⁎ (L\R)

Operations of the form $(L\,\setminus \,M)\ast (L\,\setminus \,R)$:
${\begin{alignedat}{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{alignedat}}$

### Other simplifications

Other properties:
$L\cap M=R\;{\text{ and }}\;L\cap R=M\qquad {\text{ if and only if }}\qquad M=R\subseteq L.$
* If $L\subseteq M$ then $L\setminus R=L\cap (M\setminus R).$
* $L\times (M\,\setminus R)=(L\times M)\,\setminus (L\times R)$
* If $L\subseteq R$ then $M\setminus R\subseteq M\setminus L.$
* $L\cap M\cap R=\varnothing$ if and only if for any $x\in L\cup M\cup R,$ $x$ belongs to at most two of the sets $L,M,{\text{ and }}R.$

## Symmetric difference ∆ of finitely many sets

Given finitely many sets $L_{1},\ldots ,L_{n},$ something belongs to their symmetric difference if and only if it belongs to an odd number of these sets. Explicitly, for any $x,$ $x\in L_{1}\triangle \cdots \triangle L_{n}$ if and only if the cardinality $\left|\left\{i:x\in L_{i}\right\}\right|$ is odd. (Recall that symmetric difference is associative so parentheses are not needed for the set $L_{1}\triangle \cdots \triangle L_{n}$).
Consequently, the symmetric difference of three sets satisfies: ${\begin{alignedat}{4}L\,\triangle \,M\,\triangle \,R&=(L\cap M\cap R)\cup \{x:x{\text{ belongs to exactly one of the sets }}L,M,R\}~~~~~~{\text{ (the union is disjoint) }}\\&=[L\cap M\cap R]\cup [L\setminus (M\cup R)]\cup [M\setminus (L\cup R)]\cup [R\setminus (L\cup M)]~~~~~~~~~{\text{ (all 4 sets enclosed by [ ] are pairwise disjoint) }}\\\end{alignedat}}$

## Cartesian products ⨯ of finitely many sets
### Binary ⨯ distributes over ⋃ and ⋂ and \ and ∆

The binary Cartesian product ⨯ distributes over unions, intersections, set subtraction, and symmetric difference:
${\begin{alignedat}{9}(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\,\triangle \,M)\,\times \,R~&~~=~~&&(L\,\times \,R)\,&&\triangle \,&&(M\,\times \,R)\qquad &&{\text{ (Right-distributivity of }}\,\times \,{\text{ over }}\,\triangle \,{\text}}\\[1.4ex]\end{alignedat}}$
${\begin{alignedat}{5}L\times (M\cap R)&\;=\;\;&&(L\times M)\cap (L\times R)\qquad &&{\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]L\times (M\triangle R)&\;=\;\;&&(L\times M)\triangle (L\times R)&&{\text{ (Left-distributivity of }}\,\times \,{\text{ over }}\,\triangle \,{\text}}\\[1.4ex]\end{alignedat}}$
But in general, ⨯ does not distribute over itself: $L\times (M\times R)~\color {Red}{\neq }\color {Black}~(L\times M)\times (L\times R)$ $(L\times M)\times R~\color {Red}{\neq }\color {Black}~(L\times R)\times (M\times R).$

### Binary ⋂ of finite ⨯

$(L\times R)\cap \left(L_{2}\times R_{2}\right)~=~\left(L\cap L_{2}\right)\times \left(R\cap R_{2}\right)$ $(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)$

### Binary ⋃ of finite ⨯

${\begin{alignedat}{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{alignedat}}$

### Difference \ of finite ⨯

${\begin{alignedat}{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{alignedat}}$ and $(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]$

### Finite ⨯ of differences \

$\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]$
$\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]$

### Symmetric difference ∆ and finite ⨯

$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]$ $\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]$
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$
In general, $\left(L\,\triangle \,L_{2}\right)\times \left(R\,\triangle \,R_{2}\right)$ need not be a subset nor a superset of $\left(L\times R\right)\,\triangle \,\left(L_{2}\times R_{2}\right).$
${\begin{alignedat}{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{alignedat}}$
${\begin{alignedat}{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{alignedat}}$

## Arbitrary families of sets

Let $\left(L_{i}\right)_{i\in I},$ $\left(R_{j}\right)_{j\in J},$ and $\left(S_{i,j}\right)_{(i,j)\in I\times J}$ be indexed families of sets. Whenever the assumption is needed, then all indexing sets, such as $I$ and $J,$ are assumed to be non-empty.

### Definitions

A 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 $\left(L_{i}\right)_{i\in I},$ where this notation assigns the symbol $I$ for the indexing set and for every index $i\in I,$ assigns the symbol $L_{i}$ to the value of the function at $i.$ The function itself may then be denoted by the symbol $L_{\bullet },$ which is obtained from the notation $\left(L_{i}\right)_{i\in I}$ by replacing the index $i$ with a bullet symbol $\bullet \,;$ explicitly, $L_{\bullet }$ is the function: ${\begin{alignedat}{4}L_{\bullet }:\;&&I&&\;\to \;&\left\{L_{i}:i\in I\right\}\\[0.3ex]&&i&&\;\mapsto \;&L_{i}\\\end{alignedat}}$ which may be summarized by writing $L_{\bullet }=\left(L_{i}\right)_{i\in I}.$
Any given indexed family of sets $L_{\bullet }=\left(L_{i}\right)_{i\in I}$ (which is a function) can be canonically associated with its image/range $\operatorname {Im} L_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\left\{L_{i}:i\in I\right\}$ (which is a family of sets). Conversely, any given family of sets ${\mathcal {B}}$ may be associated with the ${\mathcal {B}}$-indexed family of sets $(B)_{B\in {\mathcal {B}}},$ which is technically the identity map ${\mathcal {B}}\to {\mathcal {B}}.$ However, this is not a bijective correspondence because an indexed family of sets $L_{\bullet }=\left(L_{i}\right)_{i\in I}$ is not required to be injective (that is, there may exist distinct indices $i\neq j$ such as $L_{i}=L_{j}$), 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
If $I=\varnothing$ then $\bigcup _{i\in \varnothing }L_{i}=\{x~:~{\text{ there exists }}i\in \varnothing {\text{ such that }}x\in L_{i}\}=\varnothing ,$ which is somethings called the nullary union convention (despite being called a convention, this equality follows from the definition).
If ${\mathcal {B}}$ is a family of sets then $\cup {\mathcal {B}}$ denotes the set: $\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\}.$
Arbitrary intersections defined
If $I\neq \varnothing$ then
If ${\mathcal {B}}\neq \varnothing$ is a non-empty family of sets then $\cap {\mathcal {B}}$ denotes the set: $\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\}.$
Nullary intersections
If $I=\varnothing$ then $\bigcap _{i\in \varnothing }L_{i}=\{x~:~{\text{ for all }}i,{\text{ if }}i\in \varnothing {\text{ then }}x\in L_{i}\}$ where every possible thing $x$ in the universe vacuously satisfied the condition: "if $i\in \varnothing$ then $x\in L_{i}$". Consequently, ${\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}=\{x:{\text{ true }}\}$ consists of everything in the universe.
So if $I=\varnothing$ and:
* if you are working in a model in which there exists some universe set $X$ then ${\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}=\{x~:~x\in L_{i}{\text{ for every }}i\in \varnothing \}~=~X.$
* otherwise, if you are working in a model in which "the class of all things $x$" is not a set (by far the most common situation) then ${\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}$ is undefined because ${\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}$ consists of everything, which makes ${\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}$ 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 $X$ then some author may declare that the empty intersection of these sets be equal to $X.$ However, the nullary intersection convention is not as commonly accepted as the nullary union convention and this article will not adopt it (this is due to the fact that unlike the empty union, the value of the empty intersection depends on $X$ so if there are multiple sets under consideration, which is commonly the case, then the value of the empty intersection risks becoming ambiguous).
Multiple index sets $\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}$ $\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}$

### Distributing unions and intersections
#### Binary ⋂ of arbitrary ⋃'s

and
* If all $\left(L_{i}\right)_{i\in I}$ are pairwise disjoint and all $\left(R_{j}\right)_{j\in J}$ are also pairwise disjoint, then so are all $\left(L_{i}\cap R_{j}\right)_{(i,j)\in I\times J}$ (that is, if $(i,j)\neq \left(i_{2},j_{2}\right)$ then $\left(L_{i}\cap R_{j}\right)\cap \left(L_{i_{2}}\cap R_{j_{2}}\right)=\varnothing$).
* Importantly, if $I=J$ then in general, $~\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)~$ (an example of this is given below). The single union on the right hand side must be over all pairs $(i,j)\in I\times I:$ $~\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).~$ The same is usually true for other similar non-trivial set equalities and relations that depend on two (potentially unrelated) indexing sets $I$ and $J$ (such as Eq. 4b or Eq. 7g). 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).
* Example where equality fails: Let $X\neq \varnothing$ and let $I=\{1,2\}.$ Let $L_{1}\colon =R_{2}\colon =X$ and let $L_{2}\colon =R_{1}\colon =\varnothing .$ Then $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 .$ Furthermore, $\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.$

#### Binary ⋃ of arbitrary ⋂'s

and
* Importantly, if $I=J$ then in general, $~\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)~$ (an example of this is given above). The single intersection on the right hand side must be over all pairs $(i,j)\in I\times I:$ $~\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).~$

#### Arbitrary ⋂'s and arbitrary ⋃'s
##### Incorrectly distributing by swapping ⋂ and ⋃

Naively swapping $\;{\textstyle \bigcup \limits _{i\in I}}\;$ and $\;{\textstyle \bigcap \limits _{j\in J}}\;$ may produce a different set
The following inclusion always holds:
In general, equality need not hold and moreover, the right hand side depends on how for each fixed $i\in I,$ the sets $\left(S_{i,j}\right)_{j\in J}$ are labelled; and analogously, the left hand side depends on how for each fixed $j\in J,$ the sets $\left(S_{i,j}\right)_{i\in I}$ are labelled. An example demonstrating this is now given.
* Example of dependence on labeling and failure of equality: To see why equality need not hold when $\cup$ and $\cap$ are swapped, let $I\colon =J\colon =\{1,2\},$ and let $S_{11}=\{1,2\},~S_{12}=\{1,3\},~S_{21}=\{3,4\},$ and $S_{22}=\{2,4\}.$ Then $\{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\}.$ If $S_{11}$ and $S_{21}$ are swapped while $S_{12}$ and $S_{22}$ are unchanged, which gives rise to the sets ${\hat {S}}_{11}\colon =\{3,4\},~{\hat {S}}_{12}\colon =\{1,3\},~{\hat {S}}_{21}\colon =\{1,2\},$ and ${\hat {S}}_{22}\colon =\{2,4\},$ then $\{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\}.$ In particular, the left hand side is no longer $\{1,4\},$ which shows that the left hand side ${\textstyle \bigcup \limits _{i\in I}}\;{\textstyle \bigcap \limits _{j\in J}}S_{i,j}$ depends on how the sets are labelled. If instead $S_{11}$ and $S_{12}$ are swapped while $S_{21}$ and $S_{22}$ are unchanged, which gives rise to the sets ${\overline {S}}_{11}\colon =\{1,3\},~{\overline {S}}_{12}\colon =\{1,2\},~{\overline {S}}_{21}\colon =\{3,4\},$ and ${\overline {S}}_{22}\colon =\{2,4\},$ then both the left hand side and right hand side are equal to $\{1,4\},$ which shows that the right hand side also depends on how the sets are labeled.
Equality in Inclusion 1 ∪∩ is a subset of ∩∪ can hold under certain circumstances, such as in 7e, which is the special case where $\left(S_{i,j}\right)_{(i,j)\in I\times J}$ is $\left(L_{i}\setminus R_{j}\right)_{(i,j)\in I\times J}$ (that is, $S_{i,j}\colon =L_{i}\setminus R_{j}$ with the same indexing sets $I$ and $J$), or such as in 7f, which is the special case where $\left(S_{i,j}\right)_{(i,j)\in I\times J}$ is $\left(L_{i}\setminus R_{j}\right)_{(j,i)\in J\times I}$ (that is, ${\hat {S}}_{j,i}\colon =L_{i}\setminus R_{j}$ with the indexing sets $I$ and $J$ swapped). For a correct formula that extends the distributive laws, an approach other than just switching $\cup$ and $\cap$ is needed.

##### Correct distributive laws

Suppose that for each $i\in I,$ $J_{i}$ is a non-empty index set and for each $j\in J_{i},$ let $T_{i,j}$ be any set (for example, to apply this law to $\left(S_{i,j}\right)_{(i,j)\in I\times J},$ use $J_{i}\colon =J$ for all $i\in I$ and use $T_{i,j}\colon =S_{i,j}$ for all $i\in I$ and all $j\in J_{i}=J$). Let ${\textstyle \prod }J_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\prod _{i\in I}J_{i}$ denote the Cartesian product, which can be interpreted as the set of all functions $f~:~I~\to ~{\textstyle \bigcup \limits _{i\in I}}J_{i}$ such that $f(i)\in J_{i}$ for every $i\in I.$ Such a function may also be denoted using the tuple notation $\left(f_{i}\right)_{i\in I}$ where $f_{i}~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~f(i)$ for every $i\in I$ and conversely, a tuple $\left(f_{i}\right)_{i\in I}$ is just notation for the function with domain $I$ whose value at $i\in I$ is $f_{i};$ both notations can be used to denote the elements of ${\textstyle \prod }J_{\bullet }.$ Then
where ${\textstyle \prod }J_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~{\textstyle \prod \limits _{i\in I}}J_{i}.$

##### Applying the distributive laws

Example application: In the particular case where all $J_{i}$ are equal (that is, $J_{i}=J_{i_{2}}$ for all $i,i_{2}\in I,$ which is the case with the family $\left(S_{i,j}\right)_{(i,j)\in I\times J},$ for example), then letting $J$ denote this common set, the Cartesian product will be ${\textstyle \prod }J_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~{\textstyle \prod \limits _{i\in I}}J_{i}={\textstyle \prod \limits _{i\in I}}J=J^{I},$ which is the set of all functions of the form $f~:~I~\to ~J.$ The above set equalities Eq. 5 ∩∪ to ∪∩ and Eq. 6 ∪∩ to ∩∪, respectively become: $\bigcap _{i\in I}\;\bigcup _{j\in J}S_{i,j}=\bigcup _{f\in J^{I}}\;\bigcap _{i\in I}S_{i,f(i)}$ $\bigcup _{i\in I}\;\bigcap _{j\in J}S_{i,j}=\bigcap _{f\in J^{I}}\;\bigcup _{i\in I}S_{i,f(i)}$
which when combined with Inclusion 1 ∪∩ is a subset of ∩∪ implies: $\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}$ where
* on the left hand side, the indices $f{\text{ and }}i$ range over $f\in J^{I}{\text{ and }}i\in I$ (so the subscripts of $S_{i,f(i)}$ range over $i\in I{\text{ and }}f(i)\in f(I)\subseteq J$)
* on the right hand side, the indices $g{\text{ and }}j$ range over $g\in I^{J}{\text{ and }}j\in J$ (so the subscripts of $S_{g(j),j}$ range over $j\in J{\text{ and }}g(j)\in g(J)\subseteq I$).
Example application: To apply the general formula to the case of $\left(C_{k}\right)_{k\in K}$ and $\left(D_{l}\right)_{l\in L},$ use $I\colon =\{1,2\},$ $J_{1}\colon =K,$ $J_{2}\colon =L,$ and let $T_{1,k}\colon =C_{k}$ for all $k\in J_{1}$ and let $T_{2,l}\colon =D_{l}$ for all $l\in J_{2}.$ Every map $f\in {\textstyle \prod }J_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~{\textstyle \prod \limits _{i\in I}}J_{i}=J_{1}\times J_{2}=K\times L$ can be bijectively identified with the pair $\left(f(1),f(2)\right)\in K\times L$ (the inverse sends $(k,l)\in K\times L$ to the map $f_{(k,l)}\in {\textstyle \prod }J_{\bullet }$ defined by $1\mapsto k$ and $2\mapsto l;$ this is technically just a change of notation). Recall that Eq. 5 ∩∪ to ∪∩ was
$~\bigcap _{i\in I}\;\bigcup _{j\in J_{i}}T_{i,j}=\bigcup _{f\in {\textstyle \prod }J_{\bullet }}\;\bigcap _{i\in I}T_{i,f(i)}.~$
Expanding and simplifying the left hand side gives $\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)$ and doing the same to the right hand side gives: $\bigcup _{f\in \prod J_{\bullet }}\;\bigcap _{i\in I}T_{i,f(i)}=\bigcup _{f\in \prod J_{\bullet }}\left(T_{1,f(1)}\cap T_{2,f(2)}\right)=\bigcup _{f\in \prod J_{\bullet }}\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).$
Thus the general identity Eq. 5 ∩∪ to ∪∩ reduces down to the previously given set equality Eq. 3b: $\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).$

### Distributing subtraction over ⋃ and ⋂

The next identities are known as De Morgan's laws.
The following four set equalities can be deduced from the equalities 7a - 7d above.
In general, naively swapping $\;\cup \;$ and $\;\cap \;$ may produce a different set (see this note for more details). The equalities $\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)$ found in Eq. 7e and Eq. 7f are thus unusual in that they state exactly that swapping $\;\cup \;$ and $\;\cap \;$ will not change the resulting set.

### Commutativity and associativity of ⋃ and ⋂

Commutativity:
$\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)$
$\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)$
Unions of unions and intersections of intersections:
$\left(\bigcup _{i\in I}L_{i}\right)\cup R~=~\bigcup _{i\in I}\left(L_{i}\cup R\right)$ $\left(\bigcap _{i\in I}L_{i}\right)\cap R~=~\bigcap _{i\in I}\left(L_{i}\cap R\right)$ and
and if $I=J$ then also:

### Cartesian products Π of arbitrarily many sets
#### Intersections ⋂ of Π

If $\left(S_{i,j}\right)_{(i,j)\in I\times J}$ is a family of sets then
* Moreover, a tuple $\left(x_{i}\right)_{i\in I}$ belongs to the set in Eq. 8 above if and only if $x_{i}\in S_{i,j}$ for all $i\in I$ and all $j\in J.$
In particular, if $\left(L_{i}\right)_{i\in I}$ and $\left(R_{i}\right)_{i\in I}$ are two families indexed by the same set then $\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)$ So for instance, $(L\times R)\cap \left(L_{2}\times R_{2}\right)~=~\left(L\cap L_{2}\right)\times \left(R\cap R_{2}\right)$ $(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)$ and $(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)$
Intersections of products indexed by different sets
Let $\left(L_{i}\right)_{i\in I}$ and $\left(R_{j}\right)_{j\in J}$ be two families indexed by different sets.
Technically, $I\neq J$ implies $\left({\textstyle \prod \limits _{i\in I}}L_{i}\right)\cap {\textstyle \prod \limits _{j\in J}}R_{j}=\varnothing .$ However, sometimes these products are somehow identified as the same set through some bijection or one of these products is identified as a subset of the other via some injective map, in which case (by abuse of notation) this intersection may be equal to some other (possibly non-empty) set.
* For example, if $I:=\{1,2\}$ and $J:=\{1,2,3\}$ with all sets equal to $\mathbb {R}$ then ${\textstyle \prod \limits _{i\in I}}L_{i}={\textstyle \prod \limits _{i\in \{1,2\}}}\mathbb {R} =\mathbb {R} ^{2}$ and ${\textstyle \prod \limits _{j\in J}}R_{j}={\textstyle \prod \limits _{j\in \{1,2,3\}}}\mathbb {R} =\mathbb {R} ^{3}$ where $\mathbb {R} ^{2}\cap \mathbb {R} ^{3}=\varnothing$ unless, for example, ${\textstyle \prod \limits _{i\in \{1,2\}}}\mathbb {R} =\mathbb {R} ^{2}$ is identified as a subset of ${\textstyle \prod \limits _{j\in \{1,2,3\}}}\mathbb {R} =\mathbb {R} ^{3}$ through some injection, such as maybe $(x,y)\mapsto (x,y,0)$ for instance; however, in this particular case the product ${\textstyle \prod \limits _{i\in I=\{1,2\}}}L_{i}$ actually represents the $J$-indexed product ${\textstyle \prod \limits _{j\in J=\{1,2,3\}}}L_{i}$ where $L_{3}:=\{0\}.$
* For another example, take $I:=\{1,2\}$ and $J:=\{1,2,3\}$ with $L_{1}:=\mathbb {R} ^{2}$ and $L_{2},R_{1},R_{2},{\text{ and }}R_{3}$ all equal to $\mathbb {R} .$ Then ${\textstyle \prod \limits _{i\in I}}L_{i}=\mathbb {R} ^{2}\times \mathbb {R}$ and ${\textstyle \prod \limits _{j\in J}}R_{j}=\mathbb {R} \times \mathbb {R} \times \mathbb {R} ,$ which can both be identified as the same set via the bijection that sends $((x,y),z)\in \mathbb {R} ^{2}\times \mathbb {R}$ to $(x,y,z)\in \mathbb {R} \times \mathbb {R} \times \mathbb {R} .$ Under this identification, $\left({\textstyle \prod \limits _{i\in I}}L_{i}\right)\cap \,{\textstyle \prod \limits _{j\in J}}R_{j}~=~\mathbb {R} ^{3}.$

#### Binary ⨯ distributes over arbitrary ⋃ and ⋂

The binary Cartesian product ⨯ distributes over arbitrary intersections (when the indexing set is not empty) and over arbitrary unions:
${\begin{alignedat}{5}L\times \left(\bigcup _{i\in I}R_{i}\right)&\;=\;\;&&\bigcup _{i\in I}(L\times R_{i})\qquad &&{\text{ (Left-distributivity of }}\,\times \,{\text{ over }}\,\cup \,{\text}}\\[1.4ex]L\times \left(\bigcap _{i\in I}R_{i}\right)&\;=\;\;&&\bigcap _{i\in I}(L\times R_{i})\qquad &&{\text{ (Left-distributivity of }}\,\times \,{\text{ over }}\,\bigcap _{i\in I}\,{\text{ when }}I\neq \varnothing \,{\text}}\\[1.4ex]\left(\bigcup _{i\in I}L_{i}\right)\times R&\;=\;\;&&\bigcup _{i\in I}(L_{i}\times R)\qquad &&{\text{ (Right-distributivity of }}\,\times \,{\text{ over }}\,\cup \,{\text}}\\[1.4ex]\left(\bigcap _{i\in I}L_{i}\right)\times R&\;=\;\;&&\bigcap _{i\in I}(L_{i}\times R)\qquad &&{\text{ (Right-distributivity of }}\,\times \,{\text{ over }}\,\bigcap _{i\in I}\,{\text{ when }}I\neq \varnothing \,{\text}}\\[1.4ex]\end{alignedat}}$

#### Distributing arbitrary Π over arbitrary ⋃

Suppose that for each $i\in I,$ $J_{i}$ is a non-empty index set and for each $j\in J_{i},$ let $T_{i,j}$ be any set (for example, to apply this law to $\left(S_{i,j}\right)_{(i,j)\in I\times J},$ use $J_{i}\colon =J$ for all $i\in I$ and use $T_{i,j}\colon =S_{i,j}$ for all $i\in I$ and all $j\in J_{i}=J$). Let ${\textstyle \prod }J_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\prod _{i\in I}J_{i}$ denote the Cartesian product, which (as mentioned above) can be interpreted as the set of all functions $f~:~I~\to ~{\textstyle \bigcup \limits _{i\in I}}J_{i}$ such that $f(i)\in J_{i}$ for every $i\in I$. Then
where ${\textstyle \prod }J_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~{\textstyle \prod \limits _{i\in I}}J_{i}.$

#### Unions ⋃ of Π

For unions, only the following is guaranteed in general: $\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}$ where $\left(S_{i,j}\right)_{(i,j)\in I\times J}$ is a family of sets.
* Example where equality fails: Let $I=J=\{1,2\},$ let $S_{1,1}=S_{2,2}=\varnothing ,$ let $X\neq \varnothing ,$ and let $S_{1,2}=S_{2,1}=X.$ Then $\varnothing =\varnothing \cup \varnothing =\left(\prod _{i\in I}S_{i,1}\right)\cup \left(\prod _{i\in I}S_{i,2}\right)=\bigcup _{j\in J}\;\prod _{i\in I}S_{i,j}~~\color {Red}{\neq }\color {Black}~~\prod _{i\in I}\;\bigcup _{j\in J}S_{i,j}=\left(\bigcup _{j\in J}S_{1,j}\right)\times \left(\bigcup _{j\in J}S_{2,j}\right)=X\times X.$ More generally, ∅=⋃$_{j∈J}$∏$_{i∈I}$S$_{i, j}${\textstyle \varnothing =\bigcup _{j\in J}\;\prod _{i\in I}S_{i, j}} if and only if for each $j\in J,$ at least one of the sets in the $I$-indexed collections of sets $S_{\bullet ,j}=\left(S_{i,j}\right)_{i\in I}$ is empty, while ∏$_{i∈I}$⋃$_{j∈J}$S$_{i, j}$≠∅{\textstyle \prod _{i\in I}\;\bigcup _{j\in J}S_{i, j}\neq \varnothing } if and only if for each $i\in I,$ at least one of the sets in the $J$-indexed collections of sets $S_{i,\bullet }=\left(S_{i,j}\right)_{j\in J}$ is not empty.
However, ${\begin{alignedat}{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{alignedat}}$

#### Difference \ of Π

If $\left(L_{i}\right)_{i\in I}$ and $\left(R_{i}\right)_{i\in I}$ are two families of sets then: ${\begin{alignedat}{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{alignedat}}$ so for instance, ${\begin{alignedat}{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{alignedat}}$ and $(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]$

#### Symmetric difference ∆ of Π

${\begin{alignedat}{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{alignedat}}$

## Functions and sets

Let $f:X\to Y$ be any function.
Let $L{\text{ and }}R$ be completely arbitrary sets. Assume $A\subseteq X{\text{ and }}C\subseteq Y.$

### Definitions

Let $f:X\to Y$ be any function, where we denote its domain $X$ by $\operatorname {domain} f$ and denote its codomain $Y$ by $\operatorname {codomain} f.$
Many of the identities below do not actually require that the sets be somehow related to $f$'s domain or codomain (that is, to $X$ or $Y$) so when some kind of relationship is necessary then it will be clearly indicated. Because of this, in this article, if $L$ is declared to be "any set," and it is not indicated that $L$ must be somehow related to $X$ or $Y$ (say for instance, that it be a subset $X$ or $Y$) then it is meant that $L$ is truly arbitrary. This generality is useful in situations where $f:X\to Y$ is a map between two subsets $X\subseteq U$ and $Y\subseteq V$ of some larger sets $U$ and $V,$ and where the set $L$ might not be entirely contained in $X=\operatorname {domain} f$ and/or $Y=\operatorname {codomain} f$ (e.g. if all that is known about $L$ is that $L\subseteq U$); in such a situation it may be useful to know what can and cannot be said about $f(L)$ and/or $f^{-1}(L)$ without having to introduce a (potentially unnecessary) intersection such as: $f(L\cap X)$ and/or $f^{-1}(L\cap Y).$
Images and preimages of sets
If $L$ is any set then the image of $L$ under $f$ is defined to be the set: $f(L)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{\,f(l)~:~l\in L\cap \operatorname {domain} f\,\}$ while the preimage of $L$ under $f$ is: $f^{-1}(L)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{\,x\in \operatorname {domain} f~:~f(x)\in L\,\}$ where if $L=\{s\}$ is a singleton set then the fiber or preimage of $s$ under $f$ is $f^{-1}(s)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~f^{-1}(\{s\})~=~\{\,x\in \operatorname {domain} f~:~f(x)=s\,\}.$
Denote by $\operatorname {Im} f$ or $\operatorname {image} f$ the image or range of $f:X\to Y,$ which is the set: $\operatorname {Im} f~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~f(X)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~f(\operatorname {domain} f)~=~\{f(x)~:~x\in \operatorname {domain} f\}.$
Saturated sets
A set $A$ is said to be $f$-saturated or a saturated set if any of the following equivalent conditions are satisfied:
* There exists a set $R$ such that $A=f^{-1}(R).$
** Any such set $R$ necessarily contains $f(A)$ as a subset.
** Any set not entirely contained in the domain of $f$ cannot be $f$-saturated.
* $A=f^{-1}(f(A)).$
* $A\supseteq f^{-1}(f(A))$ and $A\subseteq \operatorname {domain} f.$
** The inclusion $L\cap \operatorname {domain} f\subseteq f^{-1}(f(L))$ always holds, where if $A\subseteq \operatorname {domain} f$ then this becomes $A\subseteq f^{-1}(f(A)).$
* $A\subseteq \operatorname {domain} f$ and if $a\in A$ and $x\in \operatorname {domain} f$ satisfy $f(x)=f(a),$ then $x\in A.$
* Whenever a fiber of $f$ intersects $A,$ then $A$ contains the entire fiber. In other words, $A$ contains every $f$-fiber that intersects it.
* The intersection of $A$ with a fiber of $f$ is equal to the empty set or to the fiber itself.
** Explicitly: for every $y\in \operatorname {Im} f,$ the intersection $A\cap f^{-1}(y)$ is equal to the empty set $\varnothing$ or to $f^{-1}(y)$ (that is, $A\cap f^{-1}(y)=\varnothing$ or $A\cap f^{-1}(y)=f^{-1}(y)$).
For a set $A$ to be $f$-saturated, it is necessary that $A\subseteq \operatorname {domain} f.$
Compositions and restrictions of functions
If $f$ and $g$ are maps then $g\circ f$ denotes the composition map $g\circ f~:~\{\,x\in \operatorname {domain} f~:~f(x)\in \operatorname {domain} g\,\}~\to ~\operatorname {codomain} g$ with domain and codomain ${\begin{alignedat}{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{alignedat}}$ defined by $(g\circ f)(x)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~g(f(x)).$
The restriction of $f:X\to Y$ to $L,$ denoted by $f{\big \vert }_{L},$ is the map $f{\big \vert }_{L}~:~L\cap \operatorname {domain} f~\to ~Y$ with $\operatorname {domain} f{\big \vert }_{L}~=~L\cap \operatorname {domain} f$ defined by sending $x\in L\cap \operatorname {domain} f$ to $f(x);$ that is, $f{\big \vert }_{L}(x)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~f(x).$ Alternatively, $~f{\big \vert }_{L}~=~f\circ \operatorname {In} ~$ where $~\operatorname {In} ~:~L\cap X\to X~$ denotes the inclusion map, which is defined by $\operatorname {In} (s)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~s.$

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

If $\left(L_{i}\right)_{i\in I}$ is a family of arbitrary sets indexed by $I\neq \varnothing$ then: ${\begin{alignedat}{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{alignedat}}$
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 $L_{i}$ are $f$-saturated then $\bigcap _{i\in I}L_{i}$ be will be $f$-saturated and equality will hold in the first relation above; explicitly, this means:
If $\left(A_{i}\right)_{i\in I}$ is a family of arbitrary subsets of $X=\operatorname {domain} f,$ which means that $A_{i}\subseteq X$ for all $i,$ then Conditional Equality 10a becomes:

### (Pre)Images of binary set operations

Throughout, let $L$ and $R$ be any sets and let $f:X\to Y$ 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 |
| $\,~~~~f(L\cup R)~=~f(L)\cup f(R)$ | $f^{-1}(L\cup R)~=~f^{-1}(L)\cup f^{-1}(R)$ | None |
| $f(L\cap R)~\subseteq ~f(L)\cap f(R)$ | $f^{-1}(L\cap R)~=~f^{-1}(L)\cap f^{-1}(R)$ | None |
| $f(L\setminus R)~\supseteq ~f(L)\setminus f(R)$ | ${\begin{alignedat}{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{alignedat}}$ | None |
| $f(X\setminus R)~\supseteq ~f(X)\setminus f(R)$ | ${\begin{alignedat}{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{alignedat}}$ | None |
| $f\left(L~\triangle ~R\right)~\supseteq ~f(L)~\triangle ~f(R)$ | $f^{-1}\left(L~\triangle ~R\right)~=~f^{-1}(L)~\triangle ~f^{-1}(R)$ | None |
Preimages preserve set operations
Preimages of sets are well-behaved with respect to all basic set operations:
${\begin{alignedat}{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{alignedat}}$
In words, preimages distribute over unions, intersections, set subtraction, and symmetric difference.
Images only preserve unions
Images of unions are well-behaved:
${\begin{alignedat}{4}f(L\cup R)~&=~f(L)\cup f(R)\\\end{alignedat}}$
but images of the other basic set operations are not since only the following are guaranteed in general:
${\begin{alignedat}{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{alignedat}}$
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 $L\setminus R$ or else they can naturally be defined as the set subtraction of two sets: $L\cap R=L\setminus (L\setminus R)\quad {\text{ and }}\quad L\triangle R=(L\cup R)\setminus (L\cap R).$
If $L=X$ then $f(X\setminus R)\supseteq f(X)\setminus f(R)$ where as in the more general case, equality is not guaranteed. If $f$ is surjective then $f(X\setminus R)~\supseteq ~Y\setminus f(R),$ which can be rewritten as: $f\left(R^{\complement }\right)~\supseteq ~f(R)^{\complement }$ if $R^{\complement }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~X\setminus R$ and $f(R)^{\complement }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~Y\setminus f(R).$

#### Counter-examples: images of operations not distributing

If $f:\{1,2\}\to Y$ is constant, $L=\{1\},$ and $R=\{2\}$ then all four of the set containments ${\begin{alignedat}{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{alignedat}}$ 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 $f:X\to Y$ be any constant function with image $f(X)=\{y\}$ and suppose that $L,R\subseteq X$ are non-empty disjoint subsets; that is, $L\neq \varnothing ,R\neq \varnothing ,$ and $L\cap R=\varnothing ,$ which implies that all of the sets $L~\triangle ~R=L\cup R,$ $\,L\setminus R=L,$ and $X\setminus R\supseteq L\setminus R$ are not empty and so consequently, their images under $f$ are all equal to $\{y\}.$
* The containment $~f(L\setminus R)~\supsetneq ~f(L)\setminus f(R)~$ is strict: $\{y\}~=~f(L\setminus R)~\neq ~f(L)\setminus f(R)~=~\{y\}\setminus \{y\}~=~\varnothing$ In words: functions might not distribute over set subtraction $\,\setminus \,$
* The containment $~f(X\setminus R)~\supsetneq ~f(X)\setminus f(R)~$ is strict: $\{y\}~=~f(X\setminus R)~\neq ~f(X)\setminus f(R)~=~\{y\}\setminus \{y\}~=~\varnothing .$
* The containment $~f(L~\triangle ~R)~\supsetneq ~f(L)~\triangle ~f(R)~$ is strict: $\{y\}~=~f\left(L~\triangle ~R\right)~\neq ~f(L)~\triangle ~f(R)~=~\{y\}\triangle \{y\}~=~\varnothing$ In words: functions might not distribute over symmetric difference $\,\triangle \,$ (which can be defined as the set subtraction of two sets: $L\triangle R=(L\cup R)\setminus (L\cap R)$).
* The containment $~f(L\cap R)~\subsetneq ~f(L)\cap f(R)~$ is strict: $\varnothing ~=~f(\varnothing )~=~f(L\cap R)~\neq ~f(L)\cap f(R)~=~\{y\}\cap \{y\}~=~\{y\}$ In words: functions might not distribute over set intersection $\,\cap \,$ (which can be defined as the set subtraction of two sets: $L\cap R=L\setminus (L\setminus R)$).
What the set operations in these four examples have in common is that they either are set subtraction $\setminus$ (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 $\,\subseteq {\text{ or }}\supseteq \,$) can always be deduced by imagining the function $f$ as being constant and the two sets ($L$ and $R$) 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 $\varnothing$ and the other non-empty − from this fact, the correct choice of $\,\subseteq {\text{ or }}\supseteq \,$ can be deduced by answering: "which side is empty?" For example, to decide if the $?$ in $f(L\triangle R)\setminus f(R)~\;~?~\;~f((L\triangle R)\setminus R)$ should be $\,\subseteq {\text{ or }}\supseteq ,\,$ pretend that $f$ is constant and that $L\triangle R$ and $R$ are non-empty disjoint subsets of $f$'s domain; then the left hand side would be empty (since $f(L\triangle R)\setminus f(R)=\{f{\text{'s single value}}\}\setminus \{f{\text{'s single value}}\}=\varnothing$), which indicates that $\,?\,$ should be $\,\subseteq \,$ (the resulting statement is always guaranteed to be true) because this is the choice that will make $\varnothing ={\text{left hand side}}~\;~?~\;~{\text{right hand side}}$ true. Alternatively, the correct direction of containment can also be deduced by consideration of any constant $f:\{1,2\}\to Y$ with $L=\{1\}$ and $R=\{2\}.$
Furthermore, this mnemonic can also be used to correctly deduce whether or not a set operation always distribute over images or preimages; for example, to determine whether or not $f(L\cap R)$ always equals $f(L)\cap f(R),$ or alternatively, whether or not $f^{-1}(L\cap R)$ always equals $f^{-1}(L)\cap f^{-1}(R)$ (although $\,\cap \,$ was used here, it can replaced by $\,\cup ,\,\setminus ,{\text{ or }}\,\triangle$). The answer to such a question can, as before, be deduced by consideration of this constant function: the answer for the general case (that is, for arbitrary $f,L,$ and $R$) is always the same as the answer for this choice of (constant) function and disjoint non-empty sets.

#### Conditions guaranteeing that images distribute over set operations

Characterizations of when equality holds for all sets:
For any function $f:X\to Y,$ the following statements are equivalent:
* $f:X\to Y$ is injective.
** This means: $f(x)\neq f(y)$ for all distinct $x,y\in X.$
* $f(L\cap R)=f(L)\,\cap \,f(R)\,{\text{ for all }}\,L,R\subseteq X.$ (The equals sign $\,=\,$ can be replaced with $\,\supseteq \,$).
* $f(L\,\setminus R)=f(L)\,\setminus \,f(R)\;{\text{ for all }}\,L,R\subseteq X.$ (The equals sign $\,=\,$ can be replaced with $\,\subseteq \,$).
* $f(X\setminus R)=f(X)\setminus \,f(R)\;{\text{ for all }}\,~~~~~R\subseteq X.$ (The equals sign $\,=\,$ can be replaced with $\,\subseteq \,$).
* $f(L\,\triangle \,R)=f(L)\,\triangle \,f(R)\;{\text{ for all }}\,L,R\subseteq X.$ (The equals sign $\,=\,$ can be replaced with $\,\subseteq \,$).
* 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): $f$ is injective if and only if $f(x)\not \in f(X\setminus \{x\})\;{\text{ for every }}\,x\in X.$
** "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"
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)

$f(L\cap R)~\subseteq ~f(L)\cap f(R)\qquad \qquad {\text{ always holds}}$
Characterizations of equality: The following statements are equivalent:
* $f(L\cap R)~=~f(L)\cap f(R)$
* $f(L\cap R)~\supseteq ~f(L)\cap f(R)$
* $L\cap f^{-1}(f(R))~\subseteq ~f^{-1}(f(L\cap R))$
** The left hand side $L\cap f^{-1}(f(R))$ is always equal to $L\cap f^{-1}(f(L)\cap f(R))$ (because $L\cap f^{-1}(f(R))~\subseteq ~f^{-1}(f(L))$ always holds).
* $R\cap f^{-1}(f(L))~\subseteq ~f^{-1}(f(L\cap R))$
* $L\cap f^{-1}(f(R))~=~f^{-1}(f(L\cap R))\cap L$
* $R\cap f^{-1}(f(L))~=~f^{-1}(f(L\cap R))\cap R$
* If $l\in L$ satisfies $f(l)\in f(R)$ then $f(l)\in f(L\cap R).$
* If $y\in f(L)$ but $y\notin f(L\cap R)$ then $y\notin f(R).$
* $f(L)\,\setminus \,f(L\cap R)~\subseteq ~f(L)\,\setminus \,f(R)$
* $f(R)\,\setminus \,f(L\cap R)~\subseteq ~f(R)\,\setminus \,f(L)$
* $f(L\cup R)\setminus f(L\cap R)~\subseteq ~f(L)\,\triangle \,f(R)$
* Any of the above three conditions (i) - (k) but with the subset symbol $\,\subseteq \,$ replaced with an equals sign $\,=.\,$
Sufficient conditions for equality: Equality holds if any of the following are true:
* $f$ is injective.
* The restriction $f{\big \vert }_{L\cup R}$ is injective.
* $f^{-1}(f(R))~\subseteq ~R$
* $f^{-1}(f(L))~\subseteq ~L$
* $R$ is $f$-saturated; that is, $f^{-1}(f(R))=R$
* $L$ is $f$-saturated; that is, $f^{-1}(f(L))=L$
* $f(L)~\subseteq ~f(L\cap R)$
* $f(R)~\subseteq ~f(L\cap R)$
* $f(L\,\setminus \,R)~\subseteq ~f(L)\setminus \,f(R)$ or equivalently, $f(L\,\setminus \,R)~=~f(L)\setminus f(R)$
* $f(R\,\setminus \,L)~\subseteq ~f(R)\setminus \,f(L)$ or equivalently, $f(R\,\setminus \,L)~=~f(R)\setminus f(L)$
* $f\left(L~\triangle ~R\right)\subseteq f(L)~\triangle ~f(R)$ or equivalently, $f\left(L~\triangle ~R\right)=f(L)~\triangle ~f(R)$
* $R\cap \operatorname {domain} f\,\subseteq L$
* $L\cap \operatorname {domain} f\,\subseteq R$
* $R\subseteq L$
* $L\subseteq R$
In addition, the following always hold: $f\left(f^{-1}(L)\cap R\right)~=~L\cap f(R)$ $f\left(f^{-1}(L)\cup R\right)~=~(L\cap \operatorname {Im} f)\cup f(R)$

##### Conditions for f(L\R) = f(L)\f(R)

$f(L\setminus R)~\supseteq ~f(L)\setminus f(R)\qquad \qquad {\text{ always holds}}$
Characterizations of equality: The following statements are equivalent:
* $f(L\setminus R)~=~f(L)\setminus f(R)$
* $f(L\setminus R)~\subseteq ~f(L)\setminus f(R)$
* $L\cap f^{-1}(f(R))~\subseteq ~R$
* $L\cap f^{-1}(f(R))~=~L\cap R\cap \operatorname {domain} f$
* Whenever $y\in f(L)\cap f(R)$ then $L\cap f^{-1}(y)\subseteq R.$
* f(L)∩f(R) ⊆ {y∈f(L):L∩f$^{−1}$(y)⊆R}{\textstyle f(L)\cap f(R)~\subseteq ~\left\{y\in f(L):L\cap f^{-1}(y)\subseteq R\right\}}
** The set on the right hand side is always equal to $\left\{y\in f(L\cap R):L\cap f^{-1}(y)\,\subseteq R\right\}.$
* f(L)∩f(R) = {y∈f(L):L∩f$^{−1}$(y)⊆R}{\textstyle f(L)\cap f(R)~=~\left\{y\in f(L):L\cap f^{-1}(y)\subseteq R\right\}}
** This is the above condition (f) but with the subset symbol $\,\subseteq \,$ replaced with an equals sign $\,=.\,$
Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:
* $f(L\cap R)=f(L)\cap f(R),$ or equivalently $f(L\cap R)\supseteq f(L)\cap f(R).$
* $L\cap f^{-1}(f(R))~=~L\cap f^{-1}(f(L\cap R))$ or equivalently, $L\cap f^{-1}(f(R))~\subseteq ~f^{-1}(f(L\cap R))$
* $R\cap f^{-1}(f(L))~=~R\cap f^{-1}(f(L\cap R))$
Sufficient conditions for equality: Equality holds if any of the following are true:
* $f$ is injective.
* The restriction $f{\big \vert }_{L\cup R}$ is injective.
* $f^{-1}(f(R))~\subseteq ~R$ or equivalently, $R\cap \operatorname {domain} f~=~f^{-1}(f(R))$
* $R$ is $f$-saturated; that is, $R=f^{-1}(f(R)).$
* $f\left(L~\triangle ~R\right)\subseteq f(L)~\triangle ~f(R)$ or equivalently, $f\left(L~\triangle ~R\right)=f(L)~\triangle ~f(R)$

##### Conditions for f(X\R) = f(X)\f(R)

$f(X\setminus R)~\supseteq ~f(X)\setminus f(R)\qquad \qquad {\text{ always holds, where }}f:X\to Y$
Characterizations of equality: The following statements are equivalent:
* $f(X\setminus R)~=~f(X)\setminus f(R)$
* $f(X\setminus R)~\subseteq ~f(X)\setminus f(R)$
* $f^{-1}(f(R))\,\subseteq \,R$
* $f^{-1}(f(R))\,=\,R\cap \operatorname {domain} f$
* $R\cap \operatorname {domain} f$ is $f$-saturated.
* Whenever $y\in f(R)$ then $f^{-1}(y)\subseteq R.$
* f(R) ⊆ {y∈f(R):f$^{−1}$(y)⊆R}{\textstyle f(R)~\subseteq ~\left\{y\in f(R):f^{-1}(y)\subseteq R\right\}}
* f(R) = {y∈f(R):f$^{−1}$(y)⊆R}{\textstyle f(R)~=~\left\{y\in f(R):f^{-1}(y)\subseteq R\right\}}
where if $R\subseteq \operatorname {domain} f$ then this list can be extended to include:
* $R$ is $f$-saturated; that is, $R=f^{-1}(f(R)).$
Sufficient conditions for equality: Equality holds if any of the following are true:
* $f$ is injective.
* $R$ is $f$-saturated; that is, $R=f^{-1}(f(R)).$

##### Conditions for f(L∆R) = f(L)∆f(R)

$f\left(L~\triangle ~R\right)~\supseteq ~f(L)~\triangle ~f(R)\qquad \qquad {\text{ always holds}}$
Characterizations of equality: The following statements are equivalent:
* $f\left(L~\triangle ~R\right)=f(L)~\triangle ~f(R)$
* $f\left(L~\triangle ~R\right)\subseteq f(L)~\triangle ~f(R)$
* $f(L\,\setminus \,R)=f(L)\,\setminus \,f(R)$ and $f(R\,\setminus \,L)=f(R)\,\setminus \,f(L)$
* $f(L\,\setminus \,R)\subseteq f(L)\,\setminus \,f(R)$ and $f(R\,\setminus \,L)\subseteq f(R)\,\setminus \,f(L)$
* $L\cap f^{-1}(f(R))~\subseteq ~R$ and $R\cap f^{-1}(f(L))~\subseteq ~L$
** The inclusions $L\cap f^{-1}(f(R))~\subseteq ~f^{-1}(f(L))$ and $R\cap f^{-1}(f(L))~\subseteq ~f^{-1}(f(R))$ always hold.
* $L\cap f^{-1}(f(R))~=~R\cap f^{-1}(f(L))$
** If this above set equality holds, then this set will also be equal to both $L\cap R\cap \operatorname {domain} f$ and $L\cap R\cap f^{-1}(f(L\cap R)).$
* $L\cap f^{-1}(f(L\cap R))~=~R\cap f^{-1}(f(L\cap R))$ and $f(L\cap R)~\supseteq ~f(L)\cap f(R).$
Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:
* $f(L\cap R)=f(L)\cap f(R),$ or equivalently $f(L\cap R)\supseteq f(L)\cap f(R).$
* $L\cap f^{-1}(f(L\cap R))~=~R\cap f^{-1}(f(L\cap R))$
Sufficient conditions for equality: Equality holds if any of the following are true:
* $f$ is injective.
* The restriction $f{\big \vert }_{L\cup R}$ is injective.

#### Exact formulas/equalities for images of set operations
##### Formulas for f(L\R) =

For any function $f:X\to Y$ and any sets $L$ and $R,$ ${\begin{alignedat}{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{alignedat}}$

##### Formulas for f(X\R) =

Taking $L:=X=\operatorname {domain} f$ in the above formulas gives: ${\begin{alignedat}{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{alignedat}}$ where the set $\left\{y\in f(R):f^{-1}(y)\subseteq R\right\}$ is equal to the image under $f$ of the largest $f$-saturated subset of $R.$
* In general, only $f(X\setminus R)\,\supseteq \,f(X)\setminus f(R)$ always holds and equality is not guaranteed; but replacing "$f(R)$" with its subset "$\left\{y\in f(R):f^{-1}(y)\subseteq R\right\}$" results in a formula in which equality is always guaranteed: $f(X\setminus R)\,=\,f(X)\setminus \left\{y\in f(R):f^{-1}(y)\subseteq R\right\}.$ From this it follows that: $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.$
* If $f_{R}:=\left\{y\in f(X):f^{-1}(y)\subseteq R\right\}$ then $f(X\setminus R)=f(X)\setminus f_{R},$ which can be written more symmetrically as $f(X\setminus R)=f_{X}\setminus f_{R}$ (since $f_{X}=f(X)$).

##### Formulas for f(L∆R) =

It follows from $L\,\triangle \,R=(L\cup R)\setminus (L\cap R)$ and the above formulas for the image of a set subtraction that for any function $f:X\to Y$ and any sets $L$ and $R,$ ${\begin{alignedat}{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{alignedat}}$

##### Formulas for f(L) =

It follows from the above formulas for the image of a set subtraction that for any function $f:X\to Y$ and any set $L,$${\begin{alignedat}{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{alignedat}}$
This is more easily seen as being a consequence of the fact that for any $y\in Y,$ $f^{-1}(y)\cap L=\varnothing$ if and only if $y\not \in f(L).$

##### Formulas for f(L⋂R) =

It follows from the above formulas for the image of a set that for any function $f:X\to Y$ and any sets $L$ and $R,$ ${\begin{alignedat}{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{alignedat}}$ where moreover, for any $y\in Y,$
    $L\cap f^{-1}(y)\subseteq L\setminus R~$ if and only if $~L\cap R\cap f^{-1}(y)=\varnothing ~$ if and only if $~R\cap f^{-1}(y)\subseteq R\setminus L~$ if and only if $~y\not \in f(L\cap R).$
The sets $U$ and $V$ mentioned above could, in particular, be any of the sets $f(L\cup R),\;\operatorname {Im} f,$ or $Y,$ for example.

### (Pre)Images of set operations on (pre)images

Let $L$ and $R$ be arbitrary sets, $f:X\to Y$ be any map, and let $A\subseteq X$ and $C\subseteq Y.$
| Image of preimage | Preimage of image | Additional assumptions on sets |
| $f\left(f^{-1}(L)\cap R\right)=L\cap f(R)$ | $f^{-1}(f(L)\cap R)~\supseteq ~L\cap f^{-1}(R)$ | None |
| $f\left(f^{-1}(L)\cup R\right)~=~(L\cap \operatorname {Im} f)\cup f(R)~\subseteq ~L\cup f(R)$ | $f^{-1}(f(A)\cup R)~\supseteq ~A\cup f^{-1}(R)$ Equality holds if any of the following are true: $f(A)\subseteq R.$ $A\subseteq f^{-1}(R).$ | $A\subseteq X$ |
(Pre)Images of operations on images
Since $f(L)\setminus f(L\setminus R)~=~\left\{y\in f(L\cap R)~:~L\cap f^{-1}(y)\subseteq R\right\},$
${\begin{alignedat}{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{alignedat}}$
Since $f(X)\setminus f(L\setminus R)~=~\left\{y\in f(X)~:~L\cap f^{-1}(y)\subseteq R\right\},$ ${\begin{alignedat}{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{alignedat}}$
Using $L:=X,$ this becomes $~f(X)\setminus f(X\setminus R)~=~\left\{y\in f(R)~:~f^{-1}(y)\subseteq R\right\}~$ and ${\begin{alignedat}{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{alignedat}}$ and so ${\begin{alignedat}{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{alignedat}}$

### (Pre)Images and Cartesian products Π

Let $\prod Y_{\bullet }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\prod _{j\in J}Y_{j}$ and for every $k\in J,$ let $\pi _{k}~:~\prod _{j\in J}Y_{j}~\to ~Y_{k}$ denote the canonical projection onto $Y_{k}.$
Definitions
Given a collection of maps $F_{j}:X\to Y_{j}$ indexed by $j\in J,$ define the map ${\begin{alignedat}{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{alignedat}}$ which is also denoted by $F_{\bullet }=\left(F_{j}\right)_{j\in J}.$ This is the unique map satisfying $\pi _{j}\circ F_{\bullet }=F_{j}\quad {\text{ for all }}j\in J.$
Conversely, if given a map $F~:~X~\to ~\prod _{j\in J}Y_{j}$ then $F=\left(\pi _{j}\circ F\right)_{j\in J}.$ Explicitly, what this means is that if $F_{k}~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\pi _{k}\circ F~:~X~\to ~Y_{k}$ is defined for every $k\in J,$ then $F$ the unique map satisfying: $\pi _{j}\circ F=F_{j}$ for all $j\in J;$ or said more briefly, $F=\left(F_{j}\right)_{j\in J}.$
The map $F_{\bullet }=\left(F_{j}\right)_{j\in J}~:~X~\to ~\prod _{j\in J}Y_{j}$ should not be confused with the Cartesian product $\prod _{j\in J}F_{j}$ of these maps, which is by definition is the map ${\begin{alignedat}{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{alignedat}}$ with domain $\prod _{j\in J}X=X^{J}$ rather than $X.$
Preimage and images of a Cartesian product
Suppose $F_{\bullet }=\left(F_{j}\right)_{j\in J}~:~X~\to ~\prod _{j\in J}Y_{j}.$
If $A~\subseteq ~X$ then $F_{\bullet }(A)~~\;\color {Red}{\subseteq }\color {Black}\;~~\prod _{j\in J}F_{j}(A).$
If $B~\subseteq ~\prod _{j\in J}Y_{j}$ then $F_{\bullet }^{-1}(B)~~\;\color {Red}{\subseteq }\color {Black}\;~~\bigcap _{j\in J}F_{j}^{-1}\left(\pi _{j}(B)\right)$ where equality will hold if $B=\prod _{j\in J}\pi _{j}(B),$ in which case F$_∙$$^{−1}$(B)=⋂$_{j∈J}$F$_j$$^{−1}$(π$_j$(B)){\textstyle F_{\bullet }^{-1}(B)=\displaystyle \bigcap _{j\in J}F_{j}^{-1}\left(\pi _{j}(B)\right)} and
For equality to hold, it suffices for there to exist a family $\left(B_{j}\right)_{j\in J}$ of subsets $B_{j}\subseteq Y_{j}$ such that $B=\prod _{j\in J}B_{j},$ in which case:
and $\pi _{j}(B)=B_{j}$ for all $j\in J.$

### (Pre)Image of a single set

| Image | Preimage | Additional assumptions |
| ${\begin{alignedat}{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{alignedat}}$ | ${\begin{alignedat}{4}f^{-1}(L)&=f^{-1}(L\cap \operatorname {Im} f)\\&=f^{-1}(L\cap Y)\end{alignedat}}$ | None |
| $f(X)=\operatorname {Im} f\subseteq Y$ | ${\begin{alignedat}{4}f^{-1}(Y)&=X\\f^{-1}(\operatorname {Im} f)&=X\end{alignedat}}$ | None |
| ${\begin{alignedat}{4}f(L)&=f(L\cap R~&&\cup ~&&(&&L\setminus R))\\&=f(L\cap R)~&&\cup ~f&&(&&L\setminus R)\end{alignedat}}$ | ${\begin{alignedat}{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{alignedat}}$ | None |
| $\operatorname {Im} f=f(X)~=~f(L)\cup f(X\setminus L)$ | ${\begin{alignedat}{4}X&=f^{-1}(L)\cup f^{-1}(Y&&\setminus L)\\&=f^{-1}(L)\cup f^{-1}(\operatorname {Im} f&&\setminus L)\end{alignedat}}$ | None |
| $f{\big \vert }_{L}(R)=f(L\cap R)$ | $\left(f{\big \vert }_{L}\right)^{-1}(R)=L\cap f^{-1}(R)$ | None |
| $(g\circ f)(L)~=~g(f(L))$ | $(g\circ f)^{-1}(L)~=~f^{-1}\left(g^{-1}(L)\right)$ | None ($f$ and $g$ are arbitrary functions). |
| $f\left(f^{-1}(L)\right)=L\cap \operatorname {Im} f$ | $f^{-1}(f(L))~\supseteq ~L\cap f^{-1}(\operatorname {Im} f)=L\cap f^{-1}(Y)$ | None |
| $f\left(f^{-1}(Y)\right)=f\left(f^{-1}(\operatorname {Im} f)\right)=f(X)$ | $f^{-1}(f(X))=f^{-1}(\operatorname {Im} f)=X$ | None |
| $f\left(f^{-1}(f(L))\right)=f(L)$ | $f^{-1}\left(f\left(f^{-1}(L)\right)\right)=f^{-1}(L)$ | None |

#### Containments ⊆ and intersections ⋂ of images and preimages

Equivalences and implications of images and preimages
| Image | Preimage | Additional assumptions on sets |
| $f(L)\subseteq \operatorname {Im} f\subseteq Y$ | $f^{-1}(L)=X$ if and only if $\operatorname {Im} f\subseteq L$ | None |
| $f(L)=\varnothing$ if and only if $L\cap \operatorname {domain} f=\varnothing$ | $f^{-1}(L)=\varnothing$ if and only if $L\cap \operatorname {Im} f=\varnothing$ | None |
| $f(A)=\varnothing$ if and only if $A=\varnothing$ | $f^{-1}(C)=\varnothing$ if and only if $C\subseteq Y\setminus \operatorname {Im} f$ | $A\subseteq X$ and $C\subseteq Y$ |
| $L\subseteq R$ implies $f(L)\subseteq f(R)$ | $L\subseteq R$ implies $f^{-1}(L)\subseteq f^{-1}(R)$ | None |
| The following are equivalent: $f(L)\subseteq f(R)$ $f(L\cup R)=f(R)$ $L\cap \operatorname {domain} f~\subseteq ~f^{-1}(f(R))$ | The following are equivalent: $f^{-1}(L)\subseteq f^{-1}(R)$ $f^{-1}(L\cup R)=f^{-1}(R)$ $L\cap \operatorname {Im} f\subseteq R$ If $C~\subseteq ~\operatorname {Im} f$ then $f^{-1}(C)~\subseteq ~f^{-1}(R)$ if and only if $C~\subseteq ~R.$ | $C\subseteq \operatorname {Im} f$ |
| The following are equivalent when $C\subseteq Y:$ $C\subseteq f(R)$ $f(B)=C$ for some $B\subseteq R$ $f(B)=C$ for some $B\subseteq R\cap \operatorname {domain} f$ | The following are equivalent: $L\subseteq f^{-1}(R)$ $f(L)\subseteq R$ and $L\subseteq \operatorname {domain} f$ The following are equivalent when $A\subseteq X:$ $A\subseteq f^{-1}(R)$ $f(A)\subseteq R$ | $A\subseteq X$ and $C\subseteq Y$ |
| The following are equivalent: $f(A)~\supseteq ~f(X\setminus A)$ $f(A)=\operatorname {Im} f$ | The following are equivalent: $f^{-1}(C)~\supseteq ~f^{-1}(Y\setminus C)$ $f^{-1}(C)=X$ | $A\subseteq X$ and $C\subseteq Y$ |
| $f\left(f^{-1}(L)\right)\subseteq L$ Equality holds if and only if the following is true: $L\subseteq \operatorname {Im} f.$ Equality holds if any of the following are true: $L\subseteq Y$ and $f:X\to Y$ is surjective. | $f^{-1}(f(A))\supseteq A$ Equality holds if and only if the following is true: $A$ is $f$-saturated. Equality holds if any of the following are true: $f$ is injective. | $A\subseteq X$ |
Intersection of a set and a (pre)image
The following statements are equivalent:
* $\varnothing =f(L)\cap R$
* $\varnothing =L\cap f^{-1}(R)$
* $\varnothing =f^{-1}(f(L))\cap f^{-1}(R)$
* $\varnothing =f^{-1}(f(L)\cap R)$
Thus for any $t,$ $t\not \in f(L)\quad {\text{ if and only if }}\quad L\cap f^{-1}(t)=\varnothing .$

## 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 $X$ is a family of subsets of $X.$
The power set of a set $X$ is the set of all subsets of $X$: $\wp (X)~\colon =~\{\;S~:~S\subseteq X\;\}.$
Notation for sequences of sets
Throughout, $S{\text{ and }}T$ will be arbitrary sets and $S_{\bullet }$ and will denote a net or a sequence of sets where if it is a sequence then this will be indicated by either of the notations $S_{\bullet }=\left(S_{i}\right)_{i=1}^{\infty }\qquad {\text{ or }}\qquad S_{\bullet }=\left(S_{i}\right)_{i\in \mathbb {N} }$ where $\mathbb {N}$ denotes the natural numbers. A notation $S_{\bullet }=\left(S_{i}\right)_{i\in I}$ indicates that $S_{\bullet }$ is a net directed by $(I,\leq ),$ which (by definition) is a sequence if the set $I,$ which is called the net's indexing set, is the natural numbers (that is, if $I=\mathbb {N}$) and $\,\leq \,$ is the natural order on $\mathbb {N} .$
Disjoint and monotone sequences of sets
If $S_{i}\cap S_{j}=\varnothing$ for all distinct indices $i\neq j$ then $S_{\bullet }$ is called a pairwise disjoint or simply a disjoint.
A sequence or net $S_{\bullet }$ of set is called increasing or non-decreasing if (resp. decreasing or non-increasing) if for all indices $i\leq j,$ $S_{i}\subseteq S_{j}$ (resp. $S_{i}\supseteq S_{j}$). A sequence or net $S_{\bullet }$ of set is called strictly increasing (resp. strictly decreasing) if it is non-decreasing (resp. is non-increasing) and also $S_{i}\neq S_{j}$ for all distinct indices $i{\text{ and }}j.$ 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 $S_{\bullet }$ is said to increase to $S,$ denoted by $S_{\bullet }\uparrow S$ or $S_{\bullet }\nearrow S,$ if $S_{\bullet }$ is increasing and the union of all $S_{i}$ is $S;$ that is, if $\bigcup _{n}S_{n}=S\qquad {\text{ and }}\qquad S_{i}\subseteq S_{j}\quad {\text{ whenever }}i\leq j.$ It is said to decrease to $S,$ denoted by $S_{\bullet }\downarrow S$ or $S_{\bullet }\searrow S,$ if $S_{\bullet }$ is increasing and the intersection of all $S_{i}$ is $S$ that is, if $\bigcap _{n}S_{n}=S\qquad {\text{ and }}\qquad S_{i}\supseteq S_{j}\quad {\text{ whenever }}i\leq j.$
Definitions of elementwise operations on families
If ${\mathcal {L}}{\text{ and }}{\mathcal {R}}$ are families of sets and if $S$ is any set then define: ${\mathcal {L}}\;(\cup )\;{\mathcal {R}}~\colon =~\{~L\cup R~:~L\in {\mathcal {L}}~{\text{ and }}~R\in {\mathcal {R}}~\}$ ${\mathcal {L}}\;(\cap )\;{\mathcal {R}}~\colon =~\{~L\cap R~:~L\in {\mathcal {L}}~{\text{ and }}~R\in {\mathcal {R}}~\}$ ${\mathcal {L}}\;(\setminus )\;{\mathcal {R}}~\colon =~\{~L\setminus R~:~L\in {\mathcal {L}}~{\text{ and }}~R\in {\mathcal {R}}~\}$ ${\mathcal {L}}\;(\triangle )\;{\mathcal {R}}~\colon =~\{~L\;\triangle \;R~:~L\in {\mathcal {L}}~{\text{ and }}~R\in {\mathcal {R}}~\}$ ${\mathcal {L}}{\big \vert }_{S}~\colon =~\{L\cap S~:~L\in {\mathcal {L}}\}={\mathcal {L}}\;(\cap )\;\{S\}$ which are respectively called elementwise union, elementwise intersection, elementwise (set) difference, elementwise symmetric difference, and the trace/restriction of ${\mathcal {L}}$ to $S.$ The regular union, intersection, and set difference are all defined as usual and are denoted with their usual notation: ${\mathcal {L}}\cup {\mathcal {R}},{\mathcal {L}}\cap {\mathcal {R}},{\mathcal {L}}\;\triangle \;{\mathcal {R}},$ and ${\mathcal {L}}\setminus {\mathcal {R}},$ 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 $X$ of a family ${\mathcal {L}}\subseteq \wp (X)$ is the family: ${\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\;\}$ and the downward closure of ${\mathcal {L}}$ is the family: ${\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\;\}.$

#### Definitions of categories of families of sets

The following table lists some well-known categories of families of sets having applications in general topology and measure theory.
Families ${\mathcal {F}}$ of sets over $\Omega$ vte :
| Is necessarily true of ${\mathcal {F}}\colon$ or, is ${\mathcal {F}}$ closed under: | Directed by $\,\supseteq$ | $A\cap B$ | $A\cup B$ | $B\setminus A$ | $\Omega \setminus A$ | $A_{1}\cap A_{2}\cap \cdots$ | $A_{1}\cup A_{2}\cup \cdots$ | $\Omega \in {\mathcal {F}}$ | $\varnothing \in {\mathcal {F}}$ | F.I.P. |
| π-system | | | | | | | | | | |
| Semiring | | | | | | | | | | Never |
| Semialgebra (Semifield) | | | | | | | | | | Never |
| Monotone class | | | | | | only if $A_{i}\searrow$ | only if $A_{i}\nearrow$ | | | |
| 𝜆-system (Dynkin System) | | | | only if $A\subseteq B$ | | | only if $A_{i}\nearrow$ or they are disjoint | | | Never |
| Ring (Order theory) | | | | | | | | | | |
| Ring (Measure theory) | | | | | | | | | | Never |
| δ-Ring | | | | | | | | | | Never |
| 𝜎-Ring | | | | | | | | | | Never |
| Algebra (Field) | | | | | | | | | | Never |
| 𝜎-Algebra (𝜎-Field) | | | | | | | | | | Never |
| Dual ideal | | | | | | | | | | |
| Filter | | | | Never | Never | | | | $\varnothing \not \in {\mathcal {F}}$ | |
| Prefilter (Filter base) | | | | Never | Never | | | | $\varnothing \not \in {\mathcal {F}}$ | |
| Filter subbase | | | | Never | Never | | | | $\varnothing \not \in {\mathcal {F}}$ | |
| Open Topology | | | | | | | (even arbitrary $\cup$) | | | Never |
| Closed Topology | | | | | | (even arbitrary $\cap$) | | | | Never |
| Is necessarily true of ${\mathcal {F}}\colon$ or, is ${\mathcal {F}}$ closed under: | directed downward | finite intersections | finite unions | relative complements | complements in $\Omega$ | countable intersections | countable unions | contains $\Omega$ | contains $\varnothing$ | Finite Intersection Property |
| Additionally, a semiring is a π-system where every complement $B\setminus A$ is equal to a finite disjoint union of sets in ${\mathcal {F}}.$ A semialgebra is a semiring where every complement $\Omega \setminus A$ is equal to a finite disjoint union of sets in ${\mathcal {F}}.$ $A,B,A_{1},A_{2},\ldots$ are arbitrary elements of ${\mathcal {F}}$ and it is assumed that ${\mathcal {F}}\neq \varnothing .$ |||||||||||
A family ${\mathcal {L}}$ is called isotone, ascending, or upward closed in $X$ if ${\mathcal {L}}\subseteq \wp (X)$ and ${\mathcal {L}}={\mathcal {L}}^{\uparrow X}.$
A family ${\mathcal {L}}$ is called downward closed if ${\mathcal {L}}={\mathcal {L}}^{\downarrow }.$
A family ${\mathcal {L}}$ is said to be:
* closed under finite intersections (resp. closed under finite unions) if whenever $L,R\in {\mathcal {L}}$ then $L\cap R\in {\mathcal {L}}$ (respectively, $L\cup R\in {\mathcal {L}}$).
* closed under countable intersections (resp. closed under countable unions) if whenever $L_{1},L_{2},L_{3},\ldots$ are elements of ${\mathcal {L}}$ then so is their intersections $\bigcap _{i=1}^{\infty }L_{i}:=L_{1}\cap L_{2}\cap L_{3}\cap \cdots$ (resp. so is their union $\bigcup _{i=1}^{\infty }L_{i}:=L_{1}\cup L_{2}\cup L_{3}\cup \cdots$).
* closed under complementation in (or with respect to) $X$ if whenever $L\in {\mathcal {L}}$ then $X\setminus L\in {\mathcal {L}}.$
A family ${\mathcal {L}}$ of sets is called a/an:
* π−system if ${\mathcal {L}}\neq \varnothing$ and ${\mathcal {L}}$ is closed under finite-intersections.
** Every non-empty family ${\mathcal {L}}$ is contained in a unique smallest (with respect to $\subseteq$) π−system that is denoted by $\pi ({\mathcal {L}})$ and called the π−system generated by ${\mathcal {L}}.$
* filter subbase and is said to have the finite intersection property if ${\mathcal {L}}\neq \varnothing$ and $\varnothing \not \in \pi ({\mathcal {L}}).$
* filter on $X$ if ${\mathcal {L}}\neq \varnothing$ is a family of subsets of $X$ that is a π−system, is upward closed in $X,$ 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 $X$ whose upward closure in $X$ is a filter on $X.$
* algebra on $X$ is a non-empty family of subsets of $X$ that contains the empty set, forms a π−system, and is also closed under complementation with respect to $X.$
* σ-algebra on $X$ is an algebra on $X$ that is closed under countable unions (or equivalently, closed under countable intersections).
Sequences of sets often arise in measure theory.
Algebra of sets
A family $\Phi$ of subsets of a set $X$ is said to be an algebra of sets if $\varnothing \in \Phi$ and for all $L,R\in \Phi ,$ all three of the sets $X\setminus R,\,L\cap R,$ and $L\cup R$ are elements of $\Phi .$ The article on this topic lists set identities and other relationships these three operations.
Every algebra of sets is also a ring of sets and a π-system.
Algebra generated by a family of sets
Given any family ${\mathcal {S}}$ of subsets of $X,$ there is a unique smallest algebra of sets in $X$ containing ${\mathcal {S}}.$ It is called the algebra generated by ${\mathcal {S}}$ and it will be denote it by $\Phi _{\mathcal {S}}.$ This algebra can be constructed as follows:
* If ${\mathcal {S}}=\varnothing$ then $\Phi _{\mathcal {S}}=\{\varnothing ,X\}$ and we are done. Alternatively, if ${\mathcal {S}}$ is empty then ${\mathcal {S}}$ may be replaced with $\{\varnothing \},\{X\},{\text{ or }}\{\varnothing ,X\}$ and continue with the construction.
* Let ${\mathcal {S}}_{0}$ be the family of all sets in ${\mathcal {S}}$ together with their complements (taken in $X$).
* Let ${\mathcal {S}}_{1}$ be the family of all possible finite intersections of sets in ${\mathcal {S}}_{0}.$
* Then the algebra generated by ${\mathcal {S}}$ is the set $\Phi _{\mathcal {S}}$ consisting of all possible finite unions of sets in ${\mathcal {S}}_{1}.$

#### Elementwise operations on families

Let ${\mathcal {L}},{\mathcal {M}},$ and ${\mathcal {R}}$ be families of sets over $X.$ On the left hand sides of the following identities, ${\mathcal {L}}$ is the L eft most family, ${\mathcal {M}}$ is in the M iddle, and ${\mathcal {R}}$ is the R ight most set.
Commutativity: ${\mathcal {L}}\;(\cup )\;{\mathcal {R}}={\mathcal {R}}\;(\cup )\;{\mathcal {L}}$ ${\mathcal {L}}\;(\cap )\;{\mathcal {R}}={\mathcal {R}}\;(\cap )\;{\mathcal {L}}$
Associativity: $[{\mathcal {L}}\;(\cup )\;{\mathcal {M}}]\;(\cup )\;{\mathcal {R}}={\mathcal {L}}\;(\cup )\;[{\mathcal {M}}\;(\cup )\;{\mathcal {R}}]$ $[{\mathcal {L}}\;(\cap )\;{\mathcal {M}}]\;(\cap )\;{\mathcal {R}}={\mathcal {L}}\;(\cap )\;[{\mathcal {M}}\;(\cap )\;{\mathcal {R}}]$
Identity: ${\mathcal {L}}\;(\cup )\;\{\varnothing \}={\mathcal {L}}$ ${\mathcal {L}}\;(\cap )\;\{X\}={\mathcal {L}}$ ${\mathcal {L}}\;(\setminus )\;\{\varnothing \}={\mathcal {L}}$
Domination: ${\mathcal {L}}\;(\cup )\;\{X\}=\{X\}~~~~{\text{ if }}{\mathcal {L}}\neq \varnothing$ ${\mathcal {L}}\;(\cap )\;\{\varnothing \}=\{\varnothing \}~~~~{\text{ if }}{\mathcal {L}}\neq \varnothing$ ${\mathcal {L}}\;(\cup )\;\varnothing =\varnothing$ ${\mathcal {L}}\;(\cap )\;\varnothing =\varnothing$ ${\mathcal {L}}\;(\setminus )\;\varnothing =\varnothing$ $\varnothing \;(\setminus )\;{\mathcal {R}}=\varnothing$

### Power set

$\wp (L\cap R)~=~\wp (L)\cap \wp (R)$ $\wp (L\cup R)~=~\wp (L)\ (\cup )\ \wp (R)~\supseteq ~\wp (L)\cup \wp (R).$
If $L$ and $R$ are subsets of a vector space $X$ and if $s$ is a scalar then $\wp (sL)~=~s\wp (L)$ $\wp (L+R)~\supseteq ~\wp (L)+\wp (R).$

### Sequences of sets

Suppose that $L$ is any set such that $L\supseteq R_{i}$ for every index $i.$ If $R_{\bullet }$ decreases to $R$ then $L\setminus R_{\bullet }:=\left(L\setminus R_{i}\right)_{i}$ increases to $L\setminus R$ whereas if instead $R_{\bullet }$ increases to $R$ then $L\setminus R_{\bullet }$ decreases to $L\setminus R.$
If $L{\text{ and }}R$ are arbitrary sets and if $L_{\bullet }=\left(L_{i}\right)_{i}$ increases (resp. decreases) to $L$ then $\left(L_{i}\setminus R\right)_{i}$ increase (resp. decreases) to $L\setminus R.$

#### Partitions

Suppose that $S_{\bullet }=\left(S_{i}\right)_{i=1}^{\infty }$ is any sequence of sets, that $S\subseteq \bigcup _{i}S_{i}$ is any subset, and for every index $i,$ let $D_{i}=\left(S_{i}\cap S\right)\setminus \bigcup _{m=1}^{i}\left(S_{m}\cap S\right).$ Then $S=\bigcup _{i}D_{i}$ and $D_{\bullet }:=\left(D_{i}\right)_{i=1}^{\infty }$ is a sequence of pairwise disjoint sets.
Suppose that $S_{\bullet }=\left(S_{i}\right)_{i=1}^{\infty }$ is non-decreasing, let $S_{0}=\varnothing ,$ and let $D_{i}=S_{i}\setminus S_{i-1}$ for every $i=1,2,\ldots .$ Then $\bigcup _{i}S_{i}=\bigcup _{i}D_{i}$ and $D_{\bullet }=\left(D_{i}\right)_{i=1}^{\infty }$ is a sequence of pairwise disjoint sets.