Equalities for combinations of sets
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 (
∪
{\displaystyle \cup }
) and intersection (
∩
{\displaystyle \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
,
{\displaystyle A,B,C,L,M,R,S,}
and
X
{\displaystyle X}
) will denote sets. On the left hand side of an identity, typically,
L
{\displaystyle L}
will be the leftmost set,
M
{\displaystyle M}
will be the middle set, and
R
{\displaystyle 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.[ note 1]
For example, the identity
(
L
∖
M
)
∖
R
=
(
L
∖
R
)
∖
(
M
∖
R
)
{\displaystyle (L\,\setminus \,M)\,\setminus \,R~=~(L\,\setminus \,R)\,\setminus \,(M\,\setminus \,R)}
may be read as:
(
Left set
∖
Middle set
)
∖
Right set
=
(
Left set
∖
Right set
)
∖
(
Middle set
∖
Right set
)
.
{\displaystyle ({\text{Left set}}\,\setminus \,{\text{Middle set}})\,\setminus \,{\text{Right set}}~=~({\text{Left set}}\,\setminus \,{\text{Right set}})\,\setminus \,({\text{Middle set}}\,\setminus \,{\text{Right set}}).}
Elementary set operations
For sets
L
{\displaystyle L}
and
R
,
{\displaystyle R,}
define:
L
∪
R
=
def
{
x
:
x
∈
L
or
x
∈
R
}
L
∩
R
=
def
{
x
:
x
∈
L
and
x
∈
R
}
L
∖
R
=
def
{
x
:
x
∈
L
and
x
∉
R
}
{\displaystyle {\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
△
R
=
def
{
x
:
x
belongs to exactly one of
L
and
R
}
{\displaystyle L\triangle R~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{~x~:~x{\text{ belongs to exactly one of }}L{\text{ and }}R~\}}
where the symmetric difference
L
△
R
{\displaystyle L\triangle R}
is sometimes denoted by
L
⊖
R
{\displaystyle L\ominus R}
and equals:[ 1] [ 2]
L
△
R
=
(
L
∖
R
)
∪
(
R
∖
L
)
=
(
L
∪
R
)
∖
(
L
∩
R
)
.
{\displaystyle {\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
{\displaystyle L}
is said to intersect another set
R
{\displaystyle R}
if
L
∩
R
≠
∅
.
{\displaystyle L\cap R\neq \varnothing .}
Sets that do not intersect are said to be disjoint .
The power set of
X
{\displaystyle X}
is the set of all subsets of
X
{\displaystyle X}
and will be denoted by
℘
(
X
)
=
def
{
L
:
L
⊆
X
}
.
{\displaystyle \wp (X)~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{~L~:~L\subseteq X~\}.}
Universe set and complement notation
The notation
L
∁
=
def
X
∖
L
.
{\displaystyle L^{\complement }~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~X\setminus L.}
may be used if
L
{\displaystyle L}
is a subset of some set
X
{\displaystyle X}
that is understood (say from context, or because it is clearly stated what the superset
X
{\displaystyle X}
is).
It is emphasized that the definition of
L
∁
{\displaystyle L^{\complement }}
depends on context. For instance, had
L
{\displaystyle L}
been declared as a subset of
Y
,
{\displaystyle Y,}
with the sets
Y
{\displaystyle Y}
and
X
{\displaystyle X}
not necessarily related to each other in any way, then
L
∁
{\displaystyle L^{\complement }}
would likely mean
Y
∖
L
{\displaystyle Y\setminus L}
instead of
X
∖
L
.
{\displaystyle X\setminus L.}
If it is needed then unless indicated otherwise, it should be assumed that
X
{\displaystyle X}
denotes the universe set , which means that all sets that are used in the formula are subsets of
X
.
{\displaystyle X.}
In particular, the complement of a set
L
{\displaystyle L}
will be denoted by
L
∁
{\displaystyle L^{\complement }}
where unless indicated otherwise, it should be assumed that
L
∁
{\displaystyle L^{\complement }}
denotes the complement of
L
{\displaystyle L}
in (the universe)
X
.
{\displaystyle X.}
One subset involved
Assume
L
⊆
X
.
{\displaystyle L\subseteq X.}
Identity :
Definition :
e
{\displaystyle e}
is called a
binary operator
∗
{\displaystyle \,\ast \,}
if
e
∗
R
=
R
{\displaystyle e\,\ast \,R=R}
for all
R
{\displaystyle R}
and it is called a right identity element
of
∗
{\displaystyle \,\ast \,}
if
L
∗
e
=
L
{\displaystyle L\,\ast \,e=L}
for all
L
.
{\displaystyle L.}
A left identity element that is also a right identity element if called an identity element .
The empty set
∅
{\displaystyle \varnothing }
is an identity element of binary union
∪
{\displaystyle \cup }
and symmetric difference
△
,
{\displaystyle \triangle ,}
and it is also a right identity element of set subtraction
∖
:
{\displaystyle \,\setminus :}
L
∩
X
=
L
=
X
∩
L
where
L
⊆
X
L
∪
∅
=
L
=
∅
∪
L
L
△
∅
=
L
=
∅
△
L
L
∖
∅
=
L
{\displaystyle {\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
∅
{\displaystyle \varnothing }
is not a left identity element of
∖
{\displaystyle \,\setminus \,}
since
∅
∖
L
=
∅
{\displaystyle \varnothing \setminus L=\varnothing }
so
∅
∖
L
=
L
{\textstyle \varnothing \setminus L=L}
if and only if
L
=
∅
.
{\displaystyle L=\varnothing .}
Idempotence
L
∗
L
=
L
{\displaystyle L\ast L=L}
and Nilpotence
L
∗
L
=
∅
{\displaystyle L\ast L=\varnothing }
:
L
∪
L
=
L
(Idempotence)
L
∩
L
=
L
(Idempotence)
L
△
L
=
∅
(Nilpotence of index 2)
L
∖
L
=
∅
(Nilpotence of index 2)
{\displaystyle {\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
{\displaystyle z}
is called a
binary operator
∗
{\displaystyle \,\ast \,}
if
z
∗
R
=
z
{\displaystyle z\,\ast \,R=z}
for all
R
{\displaystyle R}
and it is called a right absorbing element
of
∗
{\displaystyle \,\ast \,}
if
L
∗
z
=
z
{\displaystyle L\,\ast \,z=z}
for all
L
.
{\displaystyle 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
∪
.
{\displaystyle \cup .}
The empty set
∅
{\displaystyle \varnothing }
is an absorbing element of binary intersection
∩
{\displaystyle \cap }
and binary Cartesian product
×
,
{\displaystyle \times ,}
and it is also a left absorbing element of set subtraction
∖
:
{\displaystyle \,\setminus :}
X
∪
L
=
X
=
L
∪
X
where
L
⊆
X
∅
∩
L
=
∅
=
L
∩
∅
∅
×
L
=
∅
=
L
×
∅
∅
∖
L
=
∅
{\displaystyle {\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
∅
{\displaystyle \varnothing }
is not a right absorbing element of set subtraction since
L
∖
∅
=
L
{\displaystyle L\setminus \varnothing =L}
where
L
∖
∅
=
∅
{\textstyle L\setminus \varnothing =\varnothing }
if and only if
L
=
∅
.
{\textstyle L=\varnothing .}
Double complement or involution law :
X
∖
(
X
∖
L
)
=
L
Also written
(
L
∁
)
∁
=
L
where
L
⊆
X
(Double complement/Involution law)
{\displaystyle {\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
∖
∅
=
L
{\displaystyle L\setminus \varnothing =L}
∅
=
L
∖
L
=
∅
∖
L
=
L
∖
X
where
L
⊆
X
{\displaystyle {\begin{alignedat}{4}\varnothing &=L&&\setminus L\\&=\varnothing &&\setminus L\\&=L&&\setminus X~~~~{\text{ where }}L\subseteq X\\\end{alignedat}}}
L
∁
=
X
∖
L
(definition of notation)
{\displaystyle L^{\complement }=X\setminus L\quad {\text{ (definition of notation)}}}
L
∪
(
X
∖
L
)
=
X
Also written
L
∪
L
∁
=
X
where
L
⊆
X
L
△
(
X
∖
L
)
=
X
Also written
L
△
L
∁
=
X
where
L
⊆
X
L
∩
(
X
∖
L
)
=
∅
Also written
L
∩
L
∁
=
∅
{\displaystyle {\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}}}
X
∖
∅
=
X
Also written
∅
∁
=
X
(Complement laws for the empty set))
X
∖
X
=
∅
Also written
X
∁
=
∅
(Complement laws for the universe set)
{\displaystyle {\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
{\displaystyle L}
is the L eft most set and
R
{\displaystyle R}
is the R ight most set.
Assume both
L
and
R
{\displaystyle L{\text{ and }}R}
are subsets of some universe set
X
.
{\displaystyle X.}
In the left hand sides of the following identities,
L
{\displaystyle L}
is the L eft most set and
R
{\displaystyle R}
is the R ight most set. Whenever necessary, both
L
and
R
{\displaystyle L{\text{ and }}R}
should be assumed to be subsets of some universe set
X
,
{\displaystyle X,}
so that
L
∁
:=
X
∖
L
and
R
∁
:=
X
∖
R
.
{\displaystyle L^{\complement }:=X\setminus L{\text{ and }}R^{\complement }:=X\setminus R.}
L
∩
R
=
L
∖
(
L
∖
R
)
=
R
∖
(
R
∖
L
)
=
L
∖
(
L
△
R
)
=
L
△
(
L
∖
R
)
{\displaystyle {\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}}}
L
∪
R
=
(
L
△
R
)
∪
L
=
(
L
△
R
)
△
(
L
∩
R
)
=
(
R
∖
L
)
∪
L
(union is disjoint)
{\displaystyle {\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}}}
L
△
R
=
R
△
L
=
(
L
∪
R
)
∖
(
L
∩
R
)
=
(
L
∖
R
)
∪
(
R
∖
L
)
(union is disjoint)
=
(
L
△
M
)
△
(
M
△
R
)
where
M
is an arbitrary set.
=
(
L
∁
)
△
(
R
∁
)
{\displaystyle {\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}}}
L
∖
R
=
L
∖
(
L
∩
R
)
=
L
∩
(
L
△
R
)
=
L
△
(
L
∩
R
)
=
R
△
(
L
∪
R
)
{\displaystyle {\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
⊆
X
:
{\displaystyle L,R\subseteq X:}
X
∖
(
L
∩
R
)
=
(
X
∖
L
)
∪
(
X
∖
R
)
Also written
(
L
∩
R
)
∁
=
L
∁
∪
R
∁
(De Morgan's law)
X
∖
(
L
∪
R
)
=
(
X
∖
L
)
∩
(
X
∖
R
)
Also written
(
L
∪
R
)
∁
=
L
∁
∩
R
∁
(De Morgan's law)
{\displaystyle {\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:
L
∪
R
=
R
∪
L
(Commutativity)
L
∩
R
=
R
∩
L
(Commutativity)
L
△
R
=
R
△
L
(Commutativity)
{\displaystyle {\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
∖
R
)
∩
(
R
∖
L
)
=
∅
{\displaystyle (L\,\setminus \,R)\cap (R\,\setminus \,L)=\varnothing }
it follows that:
L
∖
R
=
R
∖
L
if and only if
L
=
R
.
{\displaystyle 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
⋅
∖
⋅
=
⋅
∖
⋅
{\displaystyle \,\cdot \,\,\setminus \,\,\cdot \,=\,\cdot \,\,\setminus \,\,\cdot \,}
that could be written would be those involving a single symbol; that is, those of the form:
S
∖
S
=
S
∖
S
.
{\displaystyle S\,\setminus \,S=S\,\setminus \,S.}
But such formulas are necessarily true for every binary operation
∗
{\displaystyle \,\ast \,}
(because
x
∗
x
=
x
∗
x
{\displaystyle 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
right alternative
; instead,
(
L
∖
L
)
∖
R
=
L
∖
(
L
∖
R
)
{\displaystyle (L\setminus L)\setminus R=L\setminus (L\setminus R)}
if and only if
L
∩
R
=
∅
{\displaystyle L\cap R=\varnothing }
if and only if
(
R
∖
L
)
∖
L
=
R
∖
(
L
∖
L
)
.
{\displaystyle (R\setminus L)\setminus L=R\setminus (L\setminus L).}
Set subtraction is
Jordan identity
.
Other identities involving two sets
Absorption laws :
L
∪
(
L
∩
R
)
=
L
(Absorption)
L
∩
(
L
∪
R
)
=
L
(Absorption)
{\displaystyle {\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
L
∖
R
=
L
∩
(
X
∖
R
)
Also written
L
∖
R
=
L
∩
R
∁
where
L
,
R
⊆
X
X
∖
(
L
∖
R
)
=
(
X
∖
L
)
∪
R
Also written
(
L
∖
R
)
∁
=
L
∁
∪
R
where
R
⊆
X
L
∖
R
=
(
X
∖
R
)
∖
(
X
∖
L
)
Also written
L
∖
R
=
R
∁
∖
L
∁
where
L
,
R
⊆
X
{\displaystyle {\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
)
∩
(
c
,
d
)
=
(
max
{
a
,
c
}
,
min
{
b
,
d
}
)
{\displaystyle (a,b)\cap (c,d)=(\max\{a,c\},\min\{b,d\})}
[
a
,
b
)
∩
[
c
,
d
)
=
[
max
{
a
,
c
}
,
min
{
b
,
d
}
)
{\displaystyle [a,b)\cap [c,d)=[\max\{a,c\},\min\{b,d\})}
Subsets ⊆ and supersets ⊇
The following statements are equivalent for any
L
,
R
⊆
X
:
{\displaystyle L,R\subseteq X:}
L
⊆
R
{\displaystyle L\subseteq R}
Definition of subset : if
l
∈
L
{\displaystyle l\in L}
then
l
∈
R
{\displaystyle l\in R}
L
∩
R
=
L
{\displaystyle L\cap R=L}
L
∪
R
=
R
{\displaystyle L\cup R=R}
L
△
R
=
R
∖
L
{\displaystyle L\,\triangle \,R=R\setminus L}
L
△
R
⊆
R
∖
L
{\displaystyle L\,\triangle \,R\subseteq R\setminus L}
L
∖
R
=
∅
{\displaystyle L\setminus R=\varnothing }
L
{\displaystyle L}
and
X
∖
R
{\displaystyle X\setminus R}
are disjoint (that is,
L
∩
(
X
∖
R
)
=
∅
{\displaystyle L\cap (X\setminus R)=\varnothing }
)
X
∖
R
⊆
X
∖
L
{\displaystyle X\setminus R\subseteq X\setminus L\qquad }
(that is,
R
∁
⊆
L
∁
{\displaystyle R^{\complement }\subseteq L^{\complement }}
)
The following statements are equivalent for any
L
,
R
⊆
X
:
{\displaystyle L,R\subseteq X:}
L
⊈
R
{\displaystyle L\not \subseteq R}
There exists some
l
∈
L
∖
R
.
{\displaystyle l\in L\setminus R.}
Set equality
The following statements are equivalent:
L
=
R
{\displaystyle L=R}
L
△
R
=
∅
{\displaystyle L\,\triangle \,R=\varnothing }
L
∖
R
=
R
∖
L
{\displaystyle L\,\setminus \,R=R\,\setminus \,L}
If
L
∩
R
=
∅
{\displaystyle L\cap R=\varnothing }
then
L
=
R
{\displaystyle L=R}
if and only if
L
=
∅
=
R
.
{\displaystyle 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
∖
L
{\displaystyle R=X\setminus L}
Empty set
A set
L
{\displaystyle L}
is empty if the sentence
∀
x
(
x
∉
L
)
{\displaystyle \forall x(x\not \in L)}
is true, where the notation
x
∉
L
{\displaystyle x\not \in L}
is shorthand for
¬
(
x
∈
L
)
.
{\displaystyle \lnot (x\in L).}
If
L
{\displaystyle L}
is any set then the following are equivalent:
L
{\displaystyle L}
is not empty, meaning that the sentence
¬
[
∀
x
(
x
∉
L
)
]
{\displaystyle \lnot [\forall x(x\not \in L)]}
is true (literally, the logical negation
of "
L
{\displaystyle L}
is empty" holds true).
(In classical mathematics )
L
{\displaystyle L}
is inhabited , meaning:
∃
x
(
x
∈
L
)
{\displaystyle \exists x(x\in L)}
L
⊈
R
{\displaystyle L\not \subseteq R}
for some set
R
{\displaystyle R}
If
L
{\displaystyle L}
is any set then the following are equivalent:
L
{\displaystyle L}
is empty (
L
=
∅
{\displaystyle L=\varnothing }
), meaning:
∀
x
(
x
∉
L
)
{\displaystyle \forall x(x\not \in L)}
L
∪
R
⊆
R
{\displaystyle L\cup R\subseteq R}
for every set
R
{\displaystyle R}
L
⊆
R
{\displaystyle L\subseteq R}
for every set
R
{\displaystyle R}
L
⊆
R
∖
L
{\displaystyle L\subseteq R\setminus L}
for some/every set
R
{\displaystyle R}
∅
/
L
=
L
{\displaystyle \varnothing /L=L}
Given any
x
,
{\displaystyle 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
∖
R
)
∩
R
=
∅
always holds
.
{\displaystyle (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
⊆
,
{\displaystyle \,\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
,
{\displaystyle S,}
the power set of
S
,
{\displaystyle 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
greatest element
:
∅
⊆
L
⊆
X
{\displaystyle \varnothing \subseteq L\subseteq X}
Joins/supremums exist:
L
⊆
L
∪
R
{\displaystyle L\subseteq L\cup R}
The union
L
∪
R
{\displaystyle L\cup R}
is the join/supremum of
L
{\displaystyle L}
and
R
{\displaystyle R}
with respect to
⊆
{\displaystyle \,\subseteq \,}
because:
L
⊆
L
∪
R
{\displaystyle L\subseteq L\cup R}
and
R
⊆
L
∪
R
,
{\displaystyle R\subseteq L\cup R,}
and
if
Z
{\displaystyle Z}
is a set such that
L
⊆
Z
{\displaystyle L\subseteq Z}
and
R
⊆
Z
{\displaystyle R\subseteq Z}
then
L
∪
R
⊆
Z
.
{\displaystyle L\cup R\subseteq Z.}
The intersection
L
∩
R
{\displaystyle L\cap R}
is the join/supremum of
L
{\displaystyle L}
and
R
{\displaystyle R}
with respect to
⊇
.
{\displaystyle \,\supseteq .\,}
Meets/infimums exist:
L
∩
R
⊆
L
{\displaystyle L\cap R\subseteq L}
The intersection
L
∩
R
{\displaystyle L\cap R}
is the meet/infimum of
L
{\displaystyle L}
and
R
{\displaystyle R}
with respect to
⊆
{\displaystyle \,\subseteq \,}
because:
if
L
∩
R
⊆
L
{\displaystyle L\cap R\subseteq L}
and
L
∩
R
⊆
R
,
{\displaystyle L\cap R\subseteq R,}
and
if
Z
{\displaystyle Z}
is a set such that
Z
⊆
L
{\displaystyle Z\subseteq L}
and
Z
⊆
R
{\displaystyle Z\subseteq R}
then
Z
⊆
L
∩
R
.
{\displaystyle Z\subseteq L\cap R.}
The union
L
∪
R
{\displaystyle L\cup R}
is the meet/infimum of
L
{\displaystyle L}
and
R
{\displaystyle R}
with respect to
⊇
.
{\displaystyle \,\supseteq .\,}
Other inclusion properties :
L
∖
R
⊆
L
{\displaystyle L\setminus R\subseteq L}
(
L
∖
R
)
∩
L
=
L
∖
R
{\displaystyle (L\setminus R)\cap L=L\setminus R}
If
L
⊆
R
{\displaystyle L\subseteq R}
then
L
△
R
=
R
∖
L
.
{\displaystyle L\,\triangle \,R=R\setminus L.}
If
L
⊆
X
{\displaystyle L\subseteq X}
and
R
⊆
Y
{\displaystyle R\subseteq Y}
then
L
×
R
⊆
X
×
Y
{\displaystyle L\times R\subseteq X\times Y}
Three sets involved
In the left hand sides of the following identities,
L
{\displaystyle L}
is the L eft most set,
M
{\displaystyle M}
is the M iddle set, and
R
{\displaystyle 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
∩
R
=
{
x
:
(
x
∈
L
)
∧
(
x
∈
R
)
}
{\displaystyle L\cap R=\{x:(x\in L)\land (x\in R)\}}
with logical conjunction (and)
L
∧
R
{\displaystyle L\land R}
and associate union
L
∪
R
=
{
x
:
(
x
∈
L
)
∨
(
x
∈
R
)
}
{\displaystyle L\cup R=\{x:(x\in L)\lor (x\in R)\}}
with logical disjunction (or)
L
∨
R
,
{\displaystyle L\lor R,}
and then transfer the precedence of these logical operators (where
∧
{\displaystyle \,\land \,}
has precedence over
∨
{\displaystyle \,\lor \,}
) to these set operators, thereby giving
∩
{\displaystyle \,\cap \,}
precedence over
∪
.
{\displaystyle \,\cup .\,}
So for example,
L
∪
M
∩
R
{\displaystyle L\cup M\cap R}
would mean
L
∪
(
M
∩
R
)
{\displaystyle L\cup (M\cap R)}
since it would be associated with the logical statement
L
∨
M
∧
R
=
L
∨
(
M
∧
R
)
{\displaystyle L\lor M\land R~=~L\lor (M\land R)}
and similarly,
L
∪
M
∩
R
∪
Z
{\displaystyle L\cup M\cap R\cup Z}
would mean
L
∪
(
M
∩
R
)
∪
Z
{\displaystyle L\cup (M\cap R)\cup Z}
since it would be associated with
L
∨
M
∧
R
∨
Z
=
L
∨
(
M
∧
R
)
∨
Z
.
{\displaystyle L\lor M\land R\lor Z~=~L\lor (M\land R)\lor Z.}
Sometimes, set complement (subtraction)
∖
{\displaystyle \,\setminus \,}
is also associated with
logical complement (not)
¬
,
{\displaystyle \,\lnot ,\,}
in which case it will have the highest precedence.
More specifically,
L
∖
R
=
{
x
:
(
x
∈
L
)
∧
¬
(
x
∈
R
)
}
{\displaystyle L\setminus R=\{x:(x\in L)\land \lnot (x\in R)\}}
is rewritten
L
∧
¬
R
{\displaystyle L\land \lnot R}
so that for example,
L
∪
M
∖
R
{\displaystyle L\cup M\setminus R}
would mean
L
∪
(
M
∖
R
)
{\displaystyle L\cup (M\setminus R)}
since it would be rewritten as the logical statement
L
∨
M
∧
¬
R
{\displaystyle L\lor M\land \lnot R}
which is equal to
L
∨
(
M
∧
¬
R
)
.
{\displaystyle L\lor (M\land \lnot R).}
For another example, because
L
∧
¬
M
∧
R
{\displaystyle L\land \lnot M\land R}
means
L
∧
(
¬
M
)
∧
R
,
{\displaystyle L\land (\lnot M)\land R,}
which is equal to both
(
L
∧
(
¬
M
)
)
∧
R
{\displaystyle (L\land (\lnot M))\land R}
and
L
∧
(
(
¬
M
)
∧
R
)
=
L
∧
(
R
∧
(
¬
M
)
)
{\displaystyle L\land ((\lnot M)\land R)~=~L\land (R\land (\lnot M))}
(where
(
¬
M
)
∧
R
{\displaystyle (\lnot M)\land R}
was rewritten as
R
∧
(
¬
M
)
{\displaystyle R\land (\lnot M)}
), the formula
L
∖
M
∩
R
{\displaystyle L\setminus M\cap R}
would refer to the set
(
L
∖
M
)
∩
R
=
L
∩
(
R
∖
M
)
;
{\displaystyle (L\setminus M)\cap R=L\cap (R\setminus M);}
moreover, since
L
∧
(
¬
M
)
∧
R
=
(
L
∧
R
)
∧
¬
M
,
{\displaystyle L\land (\lnot M)\land R=(L\land R)\land \lnot M,}
this set is also equal to
(
L
∩
R
)
∖
M
{\displaystyle (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
∖
M
)
∖
R
≠
L
∖
(
M
∖
R
)
,
{\displaystyle (L\setminus M)\setminus R\neq L\setminus (M\setminus R),}
a formula such as
L
∖
M
∖
R
{\displaystyle 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
△
R
=
{
x
:
(
x
∈
L
)
⊕
(
x
∈
R
)
}
{\displaystyle L\triangle R=\{x:(x\in L)\oplus (x\in R)\}}
is sometimes associated with exclusive or (xor)
L
⊕
R
{\displaystyle L\oplus R}
(also sometimes denoted by
⊻
{\displaystyle \,\veebar }
), in which case if the order of precedence from highest to lowest is
¬
,
⊕
,
∧
,
∨
{\displaystyle \,\lnot ,\,\oplus ,\,\land ,\,\lor \,}
then the order of precedence (from highest to lowest) for the set operators would be
∖
,
△
,
∩
,
∪
.
{\displaystyle \,\setminus ,\,\triangle ,\,\cap ,\,\cup .}
There is no universal agreement on the precedence of exclusive disjunction
⊕
{\displaystyle \,\oplus \,}
with respect to the other logical connectives, which is why symmetric difference
△
{\displaystyle \,\triangle \,}
is not often assigned a precedence.
Associativity
Definition : A
binary operator
∗
{\displaystyle \,\ast \,}
is called
associative
if
(
L
∗
M
)
∗
R
=
L
∗
(
M
∗
R
)
{\displaystyle (L\,\ast \,M)\,\ast \,R=L\,\ast \,(M\,\ast \,R)}
always holds.
The following set operators are associative:
(
L
∪
M
)
∪
R
=
L
∪
(
M
∪
R
)
(
L
∩
M
)
∩
R
=
L
∩
(
M
∩
R
)
(
L
△
M
)
△
R
=
L
△
(
M
△
R
)
{\displaystyle {\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
∖
M
)
∖
R
⊆
L
∖
(
M
∖
R
)
{\displaystyle (L\,\setminus \,M)\,\setminus \,R\;~~{\color {red}{\subseteq }}~~\;L\,\setminus \,(M\,\setminus \,R)}
where equality holds if and only if
L
∩
R
=
∅
{\displaystyle L\cap R=\varnothing }
(this condition does not depend on
M
{\displaystyle M}
). Thus
(
L
∖
M
)
∖
R
=
L
∖
(
M
∖
R
)
{\textstyle \;(L\setminus M)\setminus R=L\setminus (M\setminus R)\;}
if and only if
(
R
∖
M
)
∖
L
=
R
∖
(
M
∖
L
)
,
{\displaystyle \;(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
and
R
{\displaystyle L{\text{ and }}R}
have been swapped.
Distributivity
Definition : If
∗
and
∙
{\displaystyle \ast {\text{ and }}\bullet }
are
binary operators
then
∗
{\displaystyle \,\ast \,}
left distributes over
∙
{\displaystyle \,\bullet \,}
if
L
∗
(
M
∙
R
)
=
(
L
∗
M
)
∙
(
L
∗
R
)
for all
L
,
M
,
R
{\displaystyle L\,\ast \,(M\,\bullet \,R)~=~(L\,\ast \,M)\,\bullet \,(L\,\ast \,R)\qquad \qquad {\text{ for all }}L,M,R}
while
∗
{\displaystyle \,\ast \,}
right distributes over
∙
{\displaystyle \,\bullet \,}
if
(
L
∙
M
)
∗
R
=
(
L
∗
R
)
∙
(
M
∗
R
)
for all
L
,
M
,
R
.
{\displaystyle (L\,\bullet \,M)\,\ast \,R~=~(L\,\ast \,R)\,\bullet \,(M\,\ast \,R)\qquad \qquad {\text{ for all }}L,M,R.}
The operator
∗
{\displaystyle \,\ast \,}
distributes over
∙
{\displaystyle \,\bullet \,}
if it both left distributes and right distributes over
∙
.
{\displaystyle \,\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:
(
L
∩
M
)
∪
R
=
(
L
∪
R
)
∩
(
M
∪
R
)
(Right-distributivity of
∪
over
∩
)
(
L
∪
M
)
∪
R
=
(
L
∪
R
)
∪
(
M
∪
R
)
(Right-distributivity of
∪
over
∪
)
(
L
∪
M
)
∩
R
=
(
L
∩
R
)
∪
(
M
∩
R
)
(Right-distributivity of
∩
over
∪
)
(
L
∩
M
)
∩
R
=
(
L
∩
R
)
∩
(
M
∩
R
)
(Right-distributivity of
∩
over
∩
)
(
L
△
M
)
∩
R
=
(
L
∩
R
)
△
(
M
∩
R
)
(Right-distributivity of
∩
over
△
)
(
L
∩
M
)
×
R
=
(
L
×
R
)
∩
(
M
×
R
)
(Right-distributivity of
×
over
∩
)
(
L
∪
M
)
×
R
=
(
L
×
R
)
∪
(
M
×
R
)
(Right-distributivity of
×
over
∪
)
(
L
∖
M
)
×
R
=
(
L
×
R
)
∖
(
M
×
R
)
(Right-distributivity of
×
over
∖
)
(
L
△
M
)
×
R
=
(
L
×
R
)
△
(
M
×
R
)
(Right-distributivity of
×
over
△
)
(
L
∪
M
)
∖
R
=
(
L
∖
R
)
∪
(
M
∖
R
)
(Right-distributivity of
∖
over
∪
)
(
L
∩
M
)
∖
R
=
(
L
∖
R
)
∩
(
M
∖
R
)
(Right-distributivity of
∖
over
∩
)
(
L
△
M
)
∖
R
=
(
L
∖
R
)
△
(
M
∖
R
)
(Right-distributivity of
∖
over
△
)
(
L
∖
M
)
∖
R
=
(
L
∖
R
)
∖
(
M
∖
R
)
(Right-distributivity of
∖
over
∖
)
=
L
∖
(
M
∪
R
)
{\displaystyle {\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:
L
∪
(
M
∩
R
)
=
(
L
∪
M
)
∩
(
L
∪
R
)
(Left-distributivity of
∪
over
∩
)
L
∪
(
M
∪
R
)
=
(
L
∪
M
)
∪
(
L
∪
R
)
(Left-distributivity of
∪
over
∪
)
L
∩
(
M
∪
R
)
=
(
L
∩
M
)
∪
(
L
∩
R
)
(Left-distributivity of
∩
over
∪
)
L
∩
(
M
∩
R
)
=
(
L
∩
M
)
∩
(
L
∩
R
)
(Left-distributivity of
∩
over
∩
)
L
∩
(
M
△
R
)
=
(
L
∩
M
)
△
(
L
∩
R
)
(Left-distributivity of
∩
over
△
)
L
×
(
M
∩
R
)
=
(
L
×
M
)
∩
(
L
×
R
)
(Left-distributivity of
×
over
∩
)
L
×
(
M
∪
R
)
=
(
L
×
M
)
∪
(
L
×
R
)
(Left-distributivity of
×
over
∪
)
L
×
(
M
∖
R
)
=
(
L
×
M
)
∖
(
L
×
R
)
(Left-distributivity of
×
over
∖
)
L
×
(
M
△
R
)
=
(
L
×
M
)
△
(
L
×
R
)
(Left-distributivity of
×
over
△
)
{\displaystyle {\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:
L
∩
(
M
△
R
)
=
(
L
∩
M
)
△
(
L
∩
R
)
{\displaystyle {\begin{alignedat}{5}L\,\cap \,(M\,\triangle \,R)~&~~=~~&&(L\,\cap \,M)\,\triangle \,(L\,\cap \,R)~&&~\\[1.4ex]\end{alignedat}}}
(
L
△
M
)
∩
R
=
(
L
∩
R
)
△
(
M
∩
R
)
{\displaystyle {\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:
L
∪
(
M
△
R
)
⊇
(
L
∪
M
)
△
(
L
∪
R
)
=
(
M
△
R
)
∖
L
=
(
M
∖
L
)
△
(
R
∖
L
)
{\displaystyle {\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
△
(
M
△
R
)
≠
(
L
△
M
)
△
(
L
△
R
)
=
M
△
R
{\displaystyle 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
and
A
{\displaystyle L{\text{ and }}A}
(where
A
{\displaystyle A}
represents
M
△
R
{\displaystyle M\,\triangle \,R}
),
L
△
A
{\displaystyle L\,\triangle \,A}
might not be a subset, nor a superset, of
L
{\displaystyle L}
(and the same is true for
A
{\displaystyle 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:
L
∖
(
M
∖
R
)
⊇
(
L
∖
M
)
∖
(
L
∖
R
)
=
L
∩
R
∖
M
{\displaystyle {\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
∖
M
=
L
∩
R
,
{\displaystyle L\,\setminus \,M=L\,\cap \,R,}
which happens if and only if
L
∩
M
∩
R
=
∅
and
L
∖
M
⊆
R
.
{\displaystyle L\cap M\cap R=\varnothing {\text{ and }}L\setminus M\subseteq R.}
For symmetric difference, the sets
L
∖
(
M
△
R
)
{\displaystyle L\,\setminus \,(M\,\triangle \,R)}
and
(
L
∖
M
)
△
(
L
∖
R
)
=
L
∩
(
M
△
R
)
{\displaystyle (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
∅
.
{\displaystyle \varnothing .}
Moreover,
L
∖
(
M
△
R
)
=
∅
{\displaystyle L\,\setminus \,(M\,\triangle \,R)=\varnothing }
if and only if
L
∩
M
∩
R
=
∅
and
L
⊆
M
∪
R
.
{\displaystyle 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:
(
L
∖
M
)
∩
(
L
∖
R
)
=
L
∖
(
M
∪
R
)
⊆
L
∖
(
M
∩
R
)
=
(
L
∖
M
)
∪
(
L
∖
R
)
{\displaystyle {\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
⊆
{\displaystyle {\color {red}{\subseteq }}}
might be strict).
Equality holds if and only if
L
∖
(
M
∩
R
)
⊆
L
∖
(
M
∪
R
)
,
{\displaystyle L\,\setminus \,(M\,\cap \,R)\;\subseteq \;L\,\setminus \,(M\,\cup \,R),}
which happens if and only if
L
∩
M
=
L
∩
R
.
{\displaystyle L\,\cap \,M=L\,\cap \,R.}
This observation about De Morgan's laws shows that
∖
{\displaystyle \,\setminus \,}
is not left distributive over
∪
{\displaystyle \,\cup \,}
or
∩
{\displaystyle \,\cap \,}
because only the following are guaranteed in general:
L
∖
(
M
∪
R
)
⊆
(
L
∖
M
)
∪
(
L
∖
R
)
=
L
∖
(
M
∩
R
)
{\displaystyle {\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}}}
L
∖
(
M
∩
R
)
⊇
(
L
∖
M
)
∩
(
L
∖
R
)
=
L
∖
(
M
∪
R
)
{\displaystyle {\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
∩
M
=
L
∩
R
.
{\displaystyle L\,\cap \,M=L\,\cap \,R.}
The following statements are equivalent:
L
∩
M
=
L
∩
R
{\displaystyle L\cap M\,=\,L\cap R}
L
∖
M
=
L
∖
R
{\displaystyle L\,\setminus \,M\,=\,L\,\setminus \,R}
L
∖
(
M
∩
R
)
=
(
L
∖
M
)
∩
(
L
∖
R
)
;
{\displaystyle L\,\setminus \,(M\,\cap \,R)=(L\,\setminus \,M)\,\cap \,(L\,\setminus \,R);}
that is,
∖
{\displaystyle \,\setminus \,}
left distributes over
∩
{\displaystyle \,\cap \,}
for these three particular sets
L
∖
(
M
∪
R
)
=
(
L
∖
M
)
∪
(
L
∖
R
)
;
{\displaystyle L\,\setminus \,(M\,\cup \,R)=(L\,\setminus \,M)\,\cup \,(L\,\setminus \,R);}
that is,
∖
{\displaystyle \,\setminus \,}
left distributes over
∪
{\displaystyle \,\cup \,}
for these three particular sets
L
∖
(
M
∩
R
)
=
L
∖
(
M
∪
R
)
{\displaystyle L\,\setminus \,(M\,\cap \,R)\,=\,L\,\setminus \,(M\,\cup \,R)}
L
∩
(
M
∪
R
)
=
L
∩
M
∩
R
{\displaystyle L\cap (M\cup R)\,=\,L\cap M\cap R}
L
∩
(
M
∪
R
)
⊆
M
∩
R
{\displaystyle L\cap (M\cup R)~\subseteq ~M\cap R}
L
∩
R
⊆
M
{\displaystyle L\cap R~\subseteq ~M\;}
and
L
∩
M
⊆
R
{\displaystyle \;L\cap M~\subseteq ~R}
L
∖
(
M
∖
R
)
=
L
∖
(
R
∖
M
)
{\displaystyle L\setminus (M\setminus R)\,=\,L\setminus (R\setminus M)}
L
∖
(
M
∖
R
)
=
L
∖
(
R
∖
M
)
=
L
{\displaystyle L\setminus (M\setminus R)\,=\,L\setminus (R\setminus M)\,=\,L}
Quasi-commutativity :
(
L
∖
M
)
∖
R
=
(
L
∖
R
)
∖
M
(Quasi-commutative)
{\displaystyle (L\setminus M)\setminus R~=~(L\setminus R)\setminus M\qquad {\text{ (Quasi-commutative)}}}
always holds but in general,
L
∖
(
M
∖
R
)
≠
L
∖
(
R
∖
M
)
.
{\displaystyle L\setminus (M\setminus R)~~{\color {red}{\neq }}~~L\setminus (R\setminus M).}
However,
L
∖
(
M
∖
R
)
⊆
L
∖
(
R
∖
M
)
{\displaystyle L\setminus (M\setminus R)~\subseteq ~L\setminus (R\setminus M)}
if and only if
L
∩
R
⊆
M
{\displaystyle L\cap R~\subseteq ~M}
if and only if
L
∖
(
R
∖
M
)
=
L
.
{\displaystyle 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
∪
,
∩
,
{\displaystyle \,\cup ,\,\cap ,}
and
△
,
{\displaystyle \triangle ,\,}
set subtraction is neither associative nor commutative and it also is not left distributive over
∪
,
∩
,
△
,
{\displaystyle \,\cup ,\,\cap ,\,\triangle ,}
or even over itself.
Two set subtractions
Set subtraction is not associative in general:
(
L
∖
M
)
∖
R
≠
L
∖
(
M
∖
R
)
{\displaystyle (L\,\setminus \,M)\,\setminus \,R\;~~{\color {red}{\neq }}~~\;L\,\setminus \,(M\,\setminus \,R)}
since only the following is always guaranteed:
(
L
∖
M
)
∖
R
⊆
L
∖
(
M
∖
R
)
.
{\displaystyle (L\,\setminus \,M)\,\setminus \,R\;~~{\color {red}{\subseteq }}~~\;L\,\setminus \,(M\,\setminus \,R).}
(L\M)\R
(
L
∖
M
)
∖
R
=
L
∖
(
M
∪
R
)
=
(
L
∖
R
)
∖
M
=
(
L
∖
M
)
∩
(
L
∖
R
)
=
(
L
∖
R
)
∖
M
=
(
L
∖
R
)
∖
(
M
∖
R
)
{\displaystyle {\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)
L
∖
(
M
∖
R
)
=
(
L
∖
M
)
∪
(
L
∩
R
)
{\displaystyle {\begin{alignedat}{4}L\setminus (M\setminus R)&=(L\setminus M)\cup (L\cap R)\\[1.4ex]\end{alignedat}}}
If
L
⊆
M
then
L
∖
(
M
∖
R
)
=
L
∩
R
{\displaystyle 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
⊆
L
.
{\displaystyle R\subseteq L.}
One set subtraction
(L\M) ⁎ R
Set subtraction on the left , and parentheses on the left
(
L
∖
M
)
∪
R
=
(
L
∪
R
)
∖
(
M
∖
R
)
=
(
L
∖
(
M
∪
R
)
)
∪
R
(the outermost union is disjoint)
{\displaystyle {\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}}}
(
L
∖
M
)
∩
R
=
(
L
∩
R
)
∖
(
M
∩
R
)
(Distributive law of
∩
over
∖
)
=
(
L
∩
R
)
∖
M
=
L
∩
(
R
∖
M
)
{\displaystyle {\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}}}
(
L
∖
M
)
∩
(
L
∖
R
)
=
L
∖
(
M
∪
R
)
⊆
L
∖
(
M
∩
R
)
=
(
L
∖
M
)
∪
(
L
∖
R
)
{\displaystyle {\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}}}
(
L
∖
M
)
△
R
=
(
L
∖
(
M
∪
R
)
)
∪
(
R
∖
L
)
∪
(
L
∩
M
∩
R
)
(the three outermost sets are pairwise disjoint)
{\displaystyle {\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
∖
M
)
×
R
=
(
L
×
R
)
∖
(
M
×
R
)
(Distributivity)
{\displaystyle (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
L
∖
(
M
∪
R
)
=
(
L
∖
M
)
∩
(
L
∖
R
)
(De Morgan's law)
=
(
L
∖
M
)
∖
R
=
(
L
∖
R
)
∖
M
{\displaystyle {\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}}}
L
∖
(
M
∩
R
)
=
(
L
∖
M
)
∪
(
L
∖
R
)
(De Morgan's law)
{\displaystyle {\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
∖
(
M
∪
R
)
⊆
L
∖
(
M
∩
R
)
.
{\displaystyle L\,\setminus \,(M\,\cup \,R)~~{\color {red}{\subseteq }}~~\color {black}{\,}L\,\setminus \,(M\,\cap \,R).}
L
∖
(
M
△
R
)
=
(
L
∖
(
M
∪
R
)
)
∪
(
L
∩
M
∩
R
)
(the outermost union is disjoint)
{\displaystyle {\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
(
L
∪
M
)
∖
R
=
(
L
∖
R
)
∪
(
M
∖
R
)
{\displaystyle {\begin{alignedat}{4}(L\cup M)\setminus R&=(L\setminus R)\cup (M\setminus R)\\\end{alignedat}}}
(
L
∩
M
)
∖
R
=
(
L
∖
R
)
∩
(
M
∖
R
)
=
L
∩
(
M
∖
R
)
=
M
∩
(
L
∖
R
)
{\displaystyle {\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}}}
(
L
△
M
)
∖
R
=
(
L
∖
R
)
△
(
M
∖
R
)
=
(
L
∪
R
)
△
(
M
∪
R
)
{\displaystyle {\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
L
∪
(
M
∖
R
)
=
L
∪
(
M
∖
(
R
∪
L
)
)
(the outermost union is disjoint)
=
[
(
L
∖
M
)
∪
(
R
∩
L
)
]
∪
(
M
∖
R
)
(the outermost union is disjoint)
=
(
L
∖
(
M
∪
R
)
)
∪
(
R
∩
L
)
∪
(
M
∖
R
)
(the three outermost sets are pairwise disjoint)
{\displaystyle {\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}}}
L
∩
(
M
∖
R
)
=
(
L
∩
M
)
∖
(
L
∩
R
)
(Distributive law of
∩
over
∖
)
=
(
L
∩
M
)
∖
R
=
M
∩
(
L
∖
R
)
=
(
L
∖
R
)
∩
(
M
∖
R
)
{\displaystyle {\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
×
(
M
∖
R
)
=
(
L
×
M
)
∖
(
L
×
R
)
(Distributivity)
{\displaystyle 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
∙
M
)
∗
(
M
∙
R
)
{\displaystyle (L\bullet M)\ast (M\bullet R)}
:
(
L
∪
M
)
∪
(
M
∪
R
)
=
L
∪
M
∪
R
(
L
∪
M
)
∩
(
M
∪
R
)
=
M
∪
(
L
∩
R
)
(
L
∪
M
)
∖
(
M
∪
R
)
=
L
∖
(
M
∪
R
)
(
L
∪
M
)
△
(
M
∪
R
)
=
(
L
∖
(
M
∪
R
)
)
∪
(
R
∖
(
L
∪
M
)
)
=
(
L
△
R
)
∖
M
(
L
∩
M
)
∪
(
M
∩
R
)
=
M
∩
(
L
∪
R
)
(
L
∩
M
)
∩
(
M
∩
R
)
=
L
∩
M
∩
R
(
L
∩
M
)
∖
(
M
∩
R
)
=
(
L
∩
M
)
∖
R
(
L
∩
M
)
△
(
M
∩
R
)
=
[
(
L
∩
M
)
∪
(
M
∩
R
)
]
∖
(
L
∩
M
∩
R
)
(
L
∖
M
)
∪
(
M
∖
R
)
=
(
L
∪
M
)
∖
(
M
∩
R
)
(
L
∖
M
)
∩
(
M
∖
R
)
=
∅
(
L
∖
M
)
∖
(
M
∖
R
)
=
L
∖
M
(
L
∖
M
)
△
(
M
∖
R
)
=
(
L
∖
M
)
∪
(
M
∖
R
)
=
(
L
∪
M
)
∖
(
M
∩
R
)
(
L
△
M
)
∪
(
M
△
R
)
=
(
L
∪
M
∪
R
)
∖
(
L
∩
M
∩
R
)
(
L
△
M
)
∩
(
M
△
R
)
=
(
(
L
∩
R
)
∖
M
)
∪
(
M
∖
(
L
∪
R
)
)
(
L
△
M
)
∖
(
M
△
R
)
=
(
L
∖
(
M
∪
R
)
)
∪
(
(
M
∩
R
)
∖
L
)
(
L
△
M
)
△
(
M
△
R
)
=
L
△
R
{\displaystyle {\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
∙
M
)
∗
(
R
∖
M
)
{\displaystyle (L\bullet M)\ast (R\,\setminus \,M)}
:
(
L
∪
M
)
∪
(
R
∖
M
)
=
L
∪
M
∪
R
(
L
∪
M
)
∩
(
R
∖
M
)
=
(
L
∩
R
)
∖
M
(
L
∪
M
)
∖
(
R
∖
M
)
=
M
∪
(
L
∖
R
)
(
L
∪
M
)
△
(
R
∖
M
)
=
M
∪
(
L
△
R
)
(
L
∩
M
)
∪
(
R
∖
M
)
=
[
L
∩
(
M
∪
R
)
]
∪
[
R
∖
(
L
∪
M
)
]
(disjoint union)
=
(
L
∩
M
)
△
(
R
∖
M
)
(
L
∩
M
)
∩
(
R
∖
M
)
=
∅
(
L
∩
M
)
∖
(
R
∖
M
)
=
L
∩
M
(
L
∩
M
)
△
(
R
∖
M
)
=
(
L
∩
M
)
∪
(
R
∖
M
)
(disjoint union)
(
L
∖
M
)
∪
(
R
∖
M
)
=
L
∪
R
∖
M
(
L
∖
M
)
∩
(
R
∖
M
)
=
(
L
∩
R
)
∖
M
(
L
∖
M
)
∖
(
R
∖
M
)
=
L
∖
(
M
∪
R
)
(
L
∖
M
)
△
(
R
∖
M
)
=
(
L
△
R
)
∖
M
(
L
△
M
)
∪
(
R
∖
M
)
=
(
L
∪
M
∪
R
)
∖
(
L
∩
M
)
(
L
△
M
)
∩
(
R
∖
M
)
=
(
L
∩
R
)
∖
M
(
L
△
M
)
∖
(
R
∖
M
)
=
[
L
∖
(
M
∪
R
)
]
∪
(
M
∖
L
)
(disjoint union)
=
(
L
△
M
)
∖
(
L
∩
R
)
(
L
△
M
)
△
(
R
∖
M
)
=
L
△
(
M
∪
R
)
{\displaystyle {\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
∖
M
)
∗
(
L
∖
R
)
{\displaystyle (L\,\setminus \,M)\ast (L\,\setminus \,R)}
:
(
L
∖
M
)
∪
(
L
∖
R
)
=
L
∖
(
M
∩
R
)
(
L
∖
M
)
∩
(
L
∖
R
)
=
L
∖
(
M
∪
R
)
(
L
∖
M
)
∖
(
L
∖
R
)
=
(
L
∩
R
)
∖
M
(
L
∖
M
)
△
(
L
∖
R
)
=
L
∩
(
M
△
R
)
=
(
L
∩
M
)
△
(
L
∩
R
)
{\displaystyle {\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
∩
M
=
R
and
L
∩
R
=
M
if and only if
M
=
R
⊆
L
.
{\displaystyle L\cap M=R\;{\text{ and }}\;L\cap R=M\qquad {\text{ if and only if }}\qquad M=R\subseteq L.}
If
L
⊆
M
{\displaystyle L\subseteq M}
then
L
∖
R
=
L
∩
(
M
∖
R
)
.
{\displaystyle L\setminus R=L\cap (M\setminus R).}
L
×
(
M
∖
R
)
=
(
L
×
M
)
∖
(
L
×
R
)
{\displaystyle L\times (M\,\setminus R)=(L\times M)\,\setminus (L\times R)}
If
L
⊆
R
{\displaystyle L\subseteq R}
then
M
∖
R
⊆
M
∖
L
.
{\displaystyle M\setminus R\subseteq M\setminus L.}
L
∩
M
∩
R
=
∅
{\displaystyle L\cap M\cap R=\varnothing }
if and only if for any
x
∈
L
∪
M
∪
R
,
{\displaystyle x\in L\cup M\cup R,}
x
{\displaystyle x}
belongs to at most two of the sets
L
,
M
,
and
R
.
{\displaystyle L,M,{\text{ and }}R.}
Symmetric difference ∆ of finitely many sets
Given finitely many sets
L
1
,
…
,
L
n
,
{\displaystyle 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
,
{\displaystyle x,}
x
∈
L
1
△
⋯
△
L
n
{\displaystyle x\in L_{1}\triangle \cdots \triangle L_{n}}
if and only if the cardinality
|
{
i
:
x
∈
L
i
}
|
{\displaystyle \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
△
⋯
△
L
n
{\displaystyle L_{1}\triangle \cdots \triangle L_{n}}
).
Consequently, the symmetric difference of three sets satisfies:
L
△
M
△
R
=
(
L
∩
M
∩
R
)
∪
{
x
:
x
belongs to exactly one of the sets
L
,
M
,
R
}
(the union is disjoint)
=
[
L
∩
M
∩
R
]
∪
[
L
∖
(
M
∪
R
)
]
∪
[
M
∖
(
L
∪
R
)
]
∪
[
R
∖
(
L
∪
M
)
]
(all 4 sets enclosed by [ ] are pairwise disjoint)
{\displaystyle {\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:
(
L
∩
M
)
×
R
=
(
L
×
R
)
∩
(
M
×
R
)
(Right-distributivity of
×
over
∩
)
(
L
∪
M
)
×
R
=
(
L
×
R
)
∪
(
M
×
R
)
(Right-distributivity of
×
over
∪
)
(
L
∖
M
)
×
R
=
(
L
×
R
)
∖
(
M
×
R
)
(Right-distributivity of
×
over
∖
)
(
L
△
M
)
×
R
=
(
L
×
R
)
△
(
M
×
R
)
(Right-distributivity of
×
over
△
)
{\displaystyle {\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}}}
L
×
(
M
∩
R
)
=
(
L
×
M
)
∩
(
L
×
R
)
(Left-distributivity of
×
over
∩
)
L
×
(
M
∪
R
)
=
(
L
×
M
)
∪
(
L
×
R
)
(Left-distributivity of
×
over
∪
)
L
×
(
M
∖
R
)
=
(
L
×
M
)
∖
(
L
×
R
)
(Left-distributivity of
×
over
∖
)
L
×
(
M
△
R
)
=
(
L
×
M
)
△
(
L
×
R
)
(Left-distributivity of
×
over
△
)
{\displaystyle {\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
×
(
M
×
R
)
≠
(
L
×
M
)
×
(
L
×
R
)
{\displaystyle L\times (M\times R)~\color {Red}{\neq }\color {Black}{}~(L\times M)\times (L\times R)}
(
L
×
M
)
×
R
≠
(
L
×
R
)
×
(
M
×
R
)
.
{\displaystyle (L\times M)\times R~\color {Red}{\neq }\color {Black}{}~(L\times R)\times (M\times R).}
Binary ⋂ of finite ⨯
(
L
×
R
)
∩
(
L
2
×
R
2
)
=
(
L
∩
L
2
)
×
(
R
∩
R
2
)
{\displaystyle (L\times R)\cap \left(L_{2}\times R_{2}\right)~=~\left(L\cap L_{2}\right)\times \left(R\cap R_{2}\right)}
(
L
×
M
×
R
)
∩
(
L
2
×
M
2
×
R
2
)
=
(
L
∩
L
2
)
×
(
M
∩
M
2
)
×
(
R
∩
R
2
)
{\displaystyle (L\times M\times R)\cap \left(L_{2}\times M_{2}\times R_{2}\right)~=~\left(L\cap L_{2}\right)\times \left(M\cap M_{2}\right)\times \left(R\cap R_{2}\right)}
Binary ⋃ of finite ⨯
(
L
×
R
)
∪
(
L
2
×
R
2
)
=
[
(
L
∖
L
2
)
×
R
]
∪
[
(
L
2
∖
L
)
×
R
2
]
∪
[
(
L
∩
L
2
)
×
(
R
∪
R
2
)
]
=
[
L
×
(
R
∖
R
2
)
]
∪
[
L
2
×
(
R
2
∖
R
)
]
∪
[
(
L
∪
L
2
)
×
(
R
∩
R
2
)
]
{\displaystyle {\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 ⨯
(
L
×
R
)
∖
(
L
2
×
R
2
)
=
[
(
L
∖
L
2
)
×
R
]
∪
[
L
×
(
R
∖
R
2
)
]
{\displaystyle {\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
×
M
×
R
)
∖
(
L
2
×
M
2
×
R
2
)
=
[
(
L
∖
L
2
)
×
M
×
R
]
∪
[
L
×
(
M
∖
M
2
)
×
R
]
∪
[
L
×
M
×
(
R
∖
R
2
)
]
{\displaystyle (L\times M\times R)~\setminus ~\left(L_{2}\times M_{2}\times R_{2}\right)~=~\left[\left(L\,\setminus \,L_{2}\right)\times M\times R\right]~\cup ~\left[L\times \left(M\,\setminus \,M_{2}\right)\times R\right]~\cup ~\left[L\times M\times \left(R\,\setminus \,R_{2}\right)\right]}
Finite ⨯ of differences \
(
L
∖
L
2
)
×
(
R
∖
R
2
)
=
(
L
×
R
)
∖
[
(
L
2
×
R
)
∪
(
L
×
R
2
)
]
{\displaystyle \left(L\,\setminus \,L_{2}\right)\times \left(R\,\setminus \,R_{2}\right)~=~\left(L\times R\right)\,\setminus \,\left[\left(L_{2}\times R\right)\cup \left(L\times R_{2}\right)\right]}
(
L
∖
L
2
)
×
(
M
∖
M
2
)
×
(
R
∖
R
2
)
=
(
L
×
M
×
R
)
∖
[
(
L
2
×
M
×
R
)
∪
(
L
×
M
2
×
R
)
∪
(
L
×
M
×
R
2
)
]
{\displaystyle \left(L\,\setminus \,L_{2}\right)\times \left(M\,\setminus \,M_{2}\right)\times \left(R\,\setminus \,R_{2}\right)~=~\left(L\times M\times R\right)\,\setminus \,\left[\left(L_{2}\times M\times R\right)\cup \left(L\times M_{2}\times R\right)\cup \left(L\times M\times R_{2}\right)\right]}
Symmetric difference ∆ and finite ⨯
L
×
(
R
△
R
2
)
=
[
L
×
(
R
∖
R
2
)
]
∪
[
L
×
(
R
2
∖
R
)
]
{\displaystyle L\times \left(R\,\triangle \,R_{2}\right)~=~\left[L\times \left(R\,\setminus \,R_{2}\right)\right]\,\cup \,\left[L\times \left(R_{2}\,\setminus \,R\right)\right]}
(
L
△
L
2
)
×
R
=
[
(
L
∖
L
2
)
×
R
]
∪
[
(
L
2
∖
L
)
×
R
]
{\displaystyle \left(L\,\triangle \,L_{2}\right)\times R~=~\left[\left(L\,\setminus \,L_{2}\right)\times R\right]\,\cup \,\left[\left(L_{2}\,\setminus \,L\right)\times R\right]}
(
L
△
L
2
)
×
(
R
△
R
2
)
=
[
(
L
∪
L
2
)
×
(
R
∪
R
2
)
]
∖
[
(
(
L
∩
L
2
)
×
R
)
∪
(
L
×
(
R
∩
R
2
)
)
]
=
[
(
L
∖
L
2
)
×
(
R
2
∖
R
)
]
∪
[
(
L
2
∖
L
)
×
(
R
2
∖
R
)
]
∪
[
(
L
∖
L
2
)
×
(
R
∖
R
2
)
]
∪
[
(
L
2
∖
L
)
∪
(
R
∖
R
2
)
]
{\displaystyle {\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}}}
(
L
△
L
2
)
×
(
M
△
M
2
)
×
(
R
△
R
2
)
=
[
(
L
∪
L
2
)
×
(
M
∪
M
2
)
×
(
R
∪
R
2
)
]
∖
[
(
(
L
∩
L
2
)
×
M
×
R
)
∪
(
L
×
(
M
∩
M
2
)
×
R
)
∪
(
L
×
M
×
(
R
∩
R
2
)
)
]
{\displaystyle {\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,
(
L
△
L
2
)
×
(
R
△
R
2
)
{\displaystyle \left(L\,\triangle \,L_{2}\right)\times \left(R\,\triangle \,R_{2}\right)}
need not be a subset nor a superset of
(
L
×
R
)
△
(
L
2
×
R
2
)
.
{\displaystyle \left(L\times R\right)\,\triangle \,\left(L_{2}\times R_{2}\right).}
(
L
×
R
)
△
(
L
2
×
R
2
)
=
(
L
×
R
)
∪
(
L
2
×
R
2
)
∖
[
(
L
∩
L
2
)
×
(
R
∩
R
2
)
]
{\displaystyle {\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}}}
(
L
×
M
×
R
)
△
(
L
2
×
M
2
×
R
2
)
=
(
L
×
M
×
R
)
∪
(
L
2
×
M
2
×
R
2
)
∖
[
(
L
∩
L
2
)
×
(
M
∩
M
2
)
×
(
R
∩
R
2
)
]
{\displaystyle {\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
(
L
i
)
i
∈
I
,
{\displaystyle \left(L_{i}\right)_{i\in I},}
(
R
j
)
j
∈
J
,
{\displaystyle \left(R_{j}\right)_{j\in J},}
and
(
S
i
,
j
)
(
i
,
j
)
∈
I
×
J
{\displaystyle \left(S_{i,j}\right)_{(i,j)\in I\times J}}
be indexed
indexing sets
, such as
I
{\displaystyle I}
and
J
,
{\displaystyle 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 indexing set
, into some family of sets.
An indexed family of sets will be denoted by
(
L
i
)
i
∈
I
,
{\displaystyle \left(L_{i}\right)_{i\in I},}
where this notation assigns the symbol
I
{\displaystyle I}
for the indexing set and for every index
i
∈
I
,
{\displaystyle i\in I,}
assigns the symbol
L
i
{\displaystyle L_{i}}
to the value of the function at
i
.
{\displaystyle i.}
The function itself may then be denoted by the symbol
L
∙
,
{\displaystyle L_{\bullet },}
which is obtained from the notation
(
L
i
)
i
∈
I
{\displaystyle \left(L_{i}\right)_{i\in I}}
by replacing the index
i
{\displaystyle i}
with a bullet symbol
∙
;
{\displaystyle \bullet \,;}
explicitly,
L
∙
{\displaystyle L_{\bullet }}
is the function:
L
∙
:
I
→
{
L
i
:
i
∈
I
}
i
↦
L
i
{\displaystyle {\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
∙
=
(
L
i
)
i
∈
I
.
{\displaystyle L_{\bullet }=\left(L_{i}\right)_{i\in I}.}
Any given indexed family of sets
L
∙
=
(
L
i
)
i
∈
I
{\displaystyle L_{\bullet }=\left(L_{i}\right)_{i\in I}}
(which is a function ) can be canonically associated with its image/range
Im
L
∙
=
def
{
L
i
:
i
∈
I
}
{\displaystyle \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
B
{\displaystyle {\mathcal {B}}}
may be associated with the
B
{\displaystyle {\mathcal {B}}}
-indexed family of sets
(
B
)
B
∈
B
,
{\displaystyle (B)_{B\in {\mathcal {B}}},}
which is technically the
identity map
B
→
B
.
{\displaystyle {\mathcal {B}}\to {\mathcal {B}}.}
However, this is
not a bijective correspondence because an indexed family of sets
L
∙
=
(
L
i
)
i
∈
I
{\displaystyle L_{\bullet }=\left(L_{i}\right)_{i\in I}}
is
not required to be injective (that is, there may exist distinct indices
i
≠
j
{\displaystyle i\neq j}
such as
L
i
=
L
j
{\displaystyle 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
⋃
i
∈
I
L
i
=
def
{
x
:
there exists
i
∈
I
such that
x
∈
L
i
}
{\displaystyle \bigcup _{i\in I}L_{i}~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{x~:~{\text{ there exists }}i\in I{\text{ such that }}x\in L_{i}\}}
Def. 1
If
I
=
∅
{\displaystyle I=\varnothing }
then
⋃
i
∈
∅
L
i
=
{
x
:
there exists
i
∈
∅
such that
x
∈
L
i
}
=
∅
,
{\displaystyle \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
B
{\displaystyle {\mathcal {B}}}
is a family of sets then
∪
B
{\displaystyle \cup {\mathcal {B}}}
denotes the set:
⋃
B
=
def
⋃
B
∈
B
B
=
def
{
x
:
there exists
B
∈
B
such that
x
∈
B
}
.
{\displaystyle \bigcup {\mathcal {B}}~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\bigcup _{B\in {\mathcal {B}}}B~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{x~:~{\text{ there exists }}B\in {\mathcal {B}}{\text{ such that }}x\in B\}.}
Arbitrary intersections defined
If
I
≠
∅
{\displaystyle I\neq \varnothing }
then
⋂
i
∈
I
L
i
=
def
{
x
:
x
∈
L
i
for every
i
∈
I
}
=
{
x
:
for all
i
,
if
i
∈
I
then
x
∈
L
i
}
.
{\displaystyle \bigcap _{i\in I}L_{i}~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{x~:~x\in L_{i}{\text{ for every }}i\in I\}~=~\{x~:~{\text{ for all }}i,{\text{ if }}i\in I{\text{ then }}x\in L_{i}\}.}
Def. 2
If
B
≠
∅
{\displaystyle {\mathcal {B}}\neq \varnothing }
is a non-empty family of sets then
∩
B
{\displaystyle \cap {\mathcal {B}}}
denotes the set:
⋂
B
=
def
⋂
B
∈
B
B
=
def
{
x
:
x
∈
B
for every
B
∈
B
}
=
{
x
:
for all
B
,
if
B
∈
B
then
x
∈
B
}
.
{\displaystyle \bigcap {\mathcal {B}}~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\bigcap _{B\in B}B~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\{x~:~x\in B{\text{ for every }}B\in {\mathcal {B}}\}~=~\{x~:~{\text{ for all }}B,{\text{ if }}B\in {\mathcal {B}}{\text{ then }}x\in B\}.}
Nullary intersections
If
I
=
∅
{\displaystyle I=\varnothing }
then
⋂
i
∈
∅
L
i
=
{
x
:
for all
i
,
if
i
∈
∅
then
x
∈
L
i
}
{\displaystyle \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
{\displaystyle x}
in the universe vacuously satisfied the condition: "if
i
∈
∅
{\displaystyle i\in \varnothing }
then
x
∈
L
i
{\displaystyle x\in L_{i}}
". Consequently,
⋂
i
∈
∅
L
i
=
{
x
:
true
}
{\displaystyle {\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}=\{x:{\text{ true }}\}}
consists of everything in the universe.
So if
I
=
∅
{\displaystyle I=\varnothing }
and:
if you are working in a universe set
X
{\displaystyle X}
then
⋂
i
∈
∅
L
i
=
{
x
:
x
∈
L
i
for every
i
∈
∅
}
=
X
.
{\displaystyle {\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
{\displaystyle x}
" is not a set (by far the most common situation) then
⋂
i
∈
∅
L
i
{\displaystyle {\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}}
is undefined because
⋂
i
∈
∅
L
i
{\displaystyle {\textstyle \bigcap \limits _{i\in \varnothing }}L_{i}}
consists of everything , which makes
⋂
i
∈
∅
L
i
{\displaystyle {\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
{\displaystyle X}
then some author may declare that the empty intersection of these sets be equal to
X
.
{\displaystyle 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
{\displaystyle X}
so if there are multiple sets under consideration, which is commonly the case, then the value of the empty intersection risks becoming ambiguous).
Multiple index sets
⋃
j
∈
J
i
∈
I
,
S
i
,
j
=
def
⋃
(
i
,
j
)
∈
I
×
J
S
i
,
j
{\displaystyle \bigcup _{\stackrel {i\in I,}{j\in J}}S_{i,j}~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\bigcup _{(i,j)\in I\times J}S_{i,j}}
⋂
j
∈
J
i
∈
I
,
S
i
,
j
=
def
⋂
(
i
,
j
)
∈
I
×
J
S
i
,
j
{\displaystyle \bigcap _{\stackrel {i\in I,}{j\in J}}S_{i,j}~~{\stackrel {\scriptscriptstyle {\text{def}}}{=}}~\bigcap _{(i,j)\in I\times J}S_{i,j}}
Distributing unions and intersections
Binary ⋂ of arbitrary ⋃'s
(
⋃
i
∈
I
L
i
)
∩
R
=
⋃
i
∈
I
(
L
i
∩
R
)
{\displaystyle \left(\bigcup _{i\in I}L_{i}\right)\cap R~=~\bigcup _{i\in I}\left(L_{i}\cap R\right)}
Eq. 3a
and
(
⋃
i
∈
I
L
i
)
∩
(
⋃
j
∈
J
R
j
)
=
⋃
j
∈
J
i
∈
I
,
(
L
i
∩
R
j
)
{\displaystyle \left(\bigcup _{i\in I}L_{i}\right)\cap \left(\bigcup _{j\in J}R_{j}\right)~=~\bigcup _{\stackrel {i\in I,}{j\in J}}\left(L_{i}\cap R_{j}\right)}
Eq. 3b
Importantly , if
I
=
J
{\displaystyle I=J}
then in general,
(
⋃
i
∈
I
L
i
)
∩
(
⋃
i
∈
I
R
i
)
≠
⋃
i
∈
I
(
L
i
∩
R
i
)
{\displaystyle ~\left(\bigcup _{i\in I}L_{i}\right)\cap \left(\bigcup _{i\in I}R_{i}\right)~~\color {Red}{\neq }\color {Black}{}~~\bigcup _{i\in I}\left(L_{i}\cap R_{i}\right)~}
(an example of this is given below). The single union on the right hand side must be over all pairs
(
i
,
j
)
∈
I
×
I
:
{\displaystyle (i,j)\in I\times I:}
(
⋃
i
∈
I
L
i
)
∩
(
⋃
i
∈
I
R
i
)
=
⋃
j
∈
I
i
∈
I
,
(
L
i
∩
R
j
)
.
{\displaystyle ~\left(\bigcup _{i\in I}L_{i}\right)\cap \left(\bigcup _{i\in I}R_{i}\right)~~=~~\bigcup _{\stackrel {i\in I,}{j\in I}}\left(L_{i}\cap R_{j}\right).~}
The same is usually true for other similar non-trivial set equalities and relations that depend on two (potentially unrelated) indexing sets
I
{\displaystyle I}
and
J
{\displaystyle 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[ note 2] ).
Example where equality fails : Let
X
≠
∅
{\displaystyle X\neq \varnothing }
and let
I
=
{
1
,
2
}
.
{\displaystyle I=\{1,2\}.}
Let
L
1
:
=
R
2
:
=
X
{\displaystyle L_{1}\colon =R_{2}\colon =X}
and let
L
2
:
=
R
1
:
=
∅
.
{\displaystyle L_{2}\colon =R_{1}\colon =\varnothing .}
Then
X
=
X
∩
X
=
(
L
1
∪
L
2
)
∩
(
R
2
∪
R
2
)
=
(
⋃
i
∈
I
L
i
)
∩
(
⋃
i
∈
I
R
i
)
≠
⋃
i
∈
I
(
L
i
∩
R
i
)
=
(
L
1
∩
R
1
)
∪
(
L
2
∩
R
2
)
=
∅
∪
∅
=
∅
.
{\displaystyle X=X\cap X=\left(L_{1}\cup L_{2}\right)\cap \left(R_{2}\cup R_{2}\right)=\left(\bigcup _{i\in I}L_{i}\right)\cap \left(\bigcup _{i\in I}R_{i}\right)~\neq ~\bigcup _{i\in I}\left(L_{i}\cap R_{i}\right)=\left(L_{1}\cap R_{1}\right)\cup \left(L_{2}\cap R_{2}\right)=\varnothing \cup \varnothing =\varnothing .}
Furthermore,
∅
=
∅
∪
∅
=
(
L
1
∩
L
2
)
∪
(
R
2
∩
R
2
)
=
(
⋂
i
∈
I
L
i
)
∪
(
⋂
i
∈
I
R
i
)
≠
⋂
i
∈
I
(
L
i
∪
R
i
)
=
(
L
1
∪
R
1
)
∩
(
L
2
∪
R
2
)
=
X
∩
X
=
X
.
{\displaystyle \varnothing =\varnothing \cup \varnothing =\left(L_{1}\cap L_{2}\right)\cup \left(R_{2}\cap R_{2}\right)=\left(\bigcap _{i\in I}L_{i}\right)\cup \left(\bigcap _{i\in I}R_{i}\right)~\neq ~\bigcap _{i\in I}\left(L_{i}\cup R_{i}\right)=\left(L_{1}\cup R_{1}\right)\cap \left(L_{2}\cup R_{2}\right)=X\cap X=X.}
Binary ⋃ of arbitrary ⋂'s