List of set identities and relations explained
This article lists mathematical properties and laws of sets, involving the set-theoretic operations of union, intersection, and complementation and the relations of set equality and set inclusion. It also provides systematic procedures for evaluating expressions, and performing calculations, involving these operations and relations.
The binary operations of set union (
) and intersection (
) satisfy many identities. Several of these identities or "laws" have well established names.
Notation
Throughout this article, capital letters (such as
and
) will denote sets. On the left hand side of an identity, typically,
will be the
eft most set,
will be the
iddle set, and
will be the
ight most set.This is to facilitate applying identities to expressions that are complicated or use the same symbols as the identity.
[1] For example, the identity
may be read as:
Elementary set operations
For sets
and
define:
and
where the
is sometimes denoted by
and equals:
[2] [3] One set
is said to another set
if
Sets that do not intersect are said to be .
The power set of
is the set of all subsets of
and will be denoted by
Universe set and complement notation
The notation may be used if
is a subset of some set
that is understood (say from context, or because it is clearly stated what the superset
is). It is emphasized that the definition of
depends on context. For instance, had
been declared as a subset of
with the sets
and
not necessarily related to each other in any way, then
would likely mean
instead of
If it is needed then unless indicated otherwise, it should be assumed that
denotes the
universe set, which means that all sets that are used in the formula are subsets of
In particular, the
complement of a set
will be denoted by
where unless indicated otherwise, it should be assumed that
denotes the complement of
in (the universe)
One subset involved
Assume
Identity
Definition:
is called a
left identity element of a
binary operator
if
for all
and it is called a
right identity element of
if
for all
A left identity element that is also a right identity element if called an
identity element.
The empty set
is an identity element of binary union
and symmetric difference
and it is also a right identity element of set subtraction
but
is not a left identity element of
since
so
if and only if
Idempotence
and
Nilpotence
:
Domination/Absorbing element:
Definition:
is called a
left absorbing element of a
binary operator
if
for all
and it is called a
right absorbing element of
if
for all
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
The empty set
is an absorbing element of binary intersection
and binary Cartesian product
and it is also a left absorbing element of set subtraction
but
is not a right absorbing element of set subtraction since
where
if and only if
Double complement or involution law:
L \,\triangle (X \setminus L)&= X&&\qquad\text\quad&&L \,\triangle L^\complement = X&&\quad&&\text L \subseteq X\\[1.4ex]
L \,\cap (X \setminus L)&= \varnothing&&\qquad\text\quad&&L \cap L^\complement = \varnothing&&\quad&&\\[1.4ex]\end
X \setminus X&= \varnothing&&\qquad\text\quad&&X^\complement = \varnothing&&\quad&&\text\\[1.4ex]\end
Two sets involved
In the left hand sides of the following identities,
is the eft most set and
is the ight most set. Assume both
are subsets of some universe set
Formulas for binary set operations ⋂, ⋃, \, and ∆
In the left hand sides of the following identities,
is the eft most set and
is the ight most set. Whenever necessary, both
should be assumed to be subsets of some universe set
so that
L\complement:=X\setminusLandR\complement:=X\setminusR.
De Morgan's laws
De Morgan's laws state that for
X \setminus (L \cup R)&= (X \setminus L) \cap (X \setminus R)&&\qquad\text\quad&&(L \cup R)^\complement = L^\complement \cap R^\complement&&\quad&&\text\\[1.4ex]\end
Commutativity
Unions, intersection, and symmetric difference are commutative operations:
Set subtraction is not commutative. However, the commutativity of set subtraction can be characterized: from
(L\setminusR)\cap(R\setminusL)=\varnothing
it follows that:
Said differently, if distinct symbols always represented distinct sets, then the true formulas of the form
⋅ \setminus ⋅ = ⋅ \setminus ⋅
that could be written would be those involving a single symbol; that is, those of the form:
But such formulas are necessarily true for binary operation
(because
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\setminusL)\setminusR=L\setminus(L\setminusR)
if and only if
if and only if
(R\setminusL)\setminusL=R\setminus(L\setminusL).
Set subtraction is
quasi-commutative and satisfies the Jordan identity.
Other identities involving two sets
Absorption laws:
Other properties
X \setminus (L \setminus R)&= (X \setminus L) \cup R&&\qquad\text\quad&&(L \setminus R)^\complement = L^\complement \cup R&&\quad&&\text R \subseteq X\\[1.4ex]
L \setminus R&= (X \setminus R) \setminus (X \setminus L)&&\qquad\text\quad&&L \setminus R = R^\complement \setminus L^\complement&&\quad&&\text L, R \subseteq X\\[1.4ex]\end
Intervals:
then
L\triangleR\subseteqR\setminusL
and
are disjoint (that is, L\cap(X\setminusR)=\varnothing
)X\setminusR\subseteqX\setminusL
(that is, R\complement\subseteqL\complement
)The following statements are equivalent for any
-
- There exists some
Set equality
See also: Extensionality.
The following statements are equivalent:
-
-
-
- If
then
if and only if
- Uniqueness of complements: If then
Empty set
A set
is
empty if the sentence
is true, where the notation
is shorthand for
If
is any set then the following are equivalent:
-
is not empty, meaning that the sentence
lnot[\forallx(x\not\inL)]
is true (literally, the logical negation of "
is empty" holds true). - (In classical mathematics)
is inhabited, meaning:
- 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
that is not empty (where by definition, "
is empty" means that the statement
is true) might not have an inhabitant (which is an
such that
). -
for some set
If
is any set then the following are equivalent:
-
is empty (
), meaning:
-
for every set
-
for every set
-
for some/every set
-
Given any
the following are equivalent:
Moreover,
Meets, Joins, and lattice properties
which is a
binary operation, has the following three properties:
The following proposition says that for any set
the
power set of
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:
Joins/supremums exist:
The union
is the join/supremum of
and
with respect to
because:
-
and
and
- if
is a set such that
and
then
The intersection
is the join/supremum of
and
with respect to
Meets/infimums exist:
The intersection
is the meet/infimum of
and
with respect to
because:
- if
and
and
- if
is a set such that
and
then
The union
is the meet/infimum of
and
with respect to
Other inclusion properties:
Three sets involved
In the left hand sides of the following identities,
is the eft most set,
is the iddle set, and
is the 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\capR=\{x:(x\inL)\land(x\inR)\}
with
logical conjunction (and)
and associate union
L\cupR=\{x:(x\inL)\lor(x\inR)\}
with
logical disjunction (or)
and then transfer the precedence of these logical operators (where
has precedence over
) to these set operators, thereby giving
precedence over
So for example,
would mean
since it would be associated with the logical statement
L\lorM\landR~=~L\lor(M\landR)
and similarly,
would mean
since it would be associated with
L\lorM\landR\lorZ~=~L\lor(M\landR)\lorZ.
Sometimes, set complement (subtraction)
is also associated with
logical complement (not)
in which case it will have the highest precedence. More specifically,
L\setminusR=\{x:(x\inL)\landlnot(x\inR)\}
is rewritten
so that for example,
would mean
since it would be rewritten as the logical statement
which is equal to
For another example, because
means
which is equal to both
and
L\land((lnotM)\landR)~=~L\land(R\land(lnotM))
(where
was rewritten as
), the formula
would refer to the set
(L\setminusM)\capR=L\cap(R\setminusM);
moreover, since
L\land(lnotM)\landR=(L\landR)\landlnotM,
this set is also equal to
(other set identities can similarly be deduced from
propositional calculus identities in this way).However, because set subtraction is not associative
(L\setminusM)\setminusR ≠ L\setminus(M\setminusR),
a formula such as
would be ambiguous; for this reason, among others, set subtraction is often not assigned any precedence at all.
L\triangleR=\{x:(x\inL) ⊕ (x\inR)\}
is sometimes associated with
exclusive or (xor)
(also sometimes denoted by
), in which case if the order of precedence from highest to lowest is
then the order of precedence (from highest to lowest) for the set operators would be
\setminus,\triangle,\cap,\cup.
There is no universal agreement on the precedence of exclusive disjunction
with respect to the other logical connectives, which is why symmetric difference
is not often assigned a precedence.
Associativity
is called
associative if
(L\astM)\astR=L\ast(M\astR)
always holds.
The following set operators are associative:
For set subtraction, instead of associativity, only the following is always guaranteed:where equality holds if and only if
(this condition does not depend on
). Thus
if and only if
(R\setminusM)\setminusL=R\setminus(M\setminusL),
where the only difference between the left and right hand side set equalities is that the locations of
have been swapped.
Distributivity
Definition: If
are
binary operators then if
while if
The operator if it both left distributes and right distributes over
In the definitions above, to transform one side to the other, the innermost operator (the operator inside the parentheses) becomes the outermost operator and the outermost operator becomes the innermost operator.
Right distributivity
Left distributivity
Distributivity and symmetric difference ∆
Intersection distributes over symmetric difference:
Union does not distribute over symmetric difference because only the following is guaranteed in general:
Symmetric difference does not distribute over itself:and in general, for any sets
(where
represents
),
might not be a subset, nor a superset, of
(and the same is true for
).
Distributivity and set subtraction \
Failure of set subtraction to left distribute:
Set subtraction is distributive over itself. However, set subtraction is left distributive over itself because only the following is guaranteed in general:where equality holds if and only if
which happens if and only if
L\capM\capR=\varnothingandL\setminusM\subseteqR.
For symmetric difference, the sets
and
(L\setminusM)\triangle(L\setminusR)=L\cap(M\triangleR)
are always disjoint. So these two sets are equal if and only if they are both equal to
Moreover,
L\setminus(M\triangleR)=\varnothing
if and only if
L\capM\capR=\varnothingandL\subseteqM\cupR.
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:always holds (the equalities on the left and right are De Morgan's laws) but equality is not guaranteed in general (that is, the containment
might be strict). Equality holds if and only if
L\setminus(M\capR) \subseteq L\setminus(M\cupR),
which happens if and only if
This observation about De Morgan's laws shows that
is left distributive over
or
because only the following are guaranteed in general:
where equality holds for one (or equivalently, for both) of the above two inclusion formulas if and only if
The following statements are equivalent:
-
-
L\setminus(M\capR)=(L\setminusM)\cap(L\setminusR);
that is,
left distributes over
for these three particular setsL\setminus(M\cupR)=(L\setminusM)\cup(L\setminusR);
that is,
left distributes over
for these three particular setsL\setminus(M\capR)=L\setminus(M\cupR)
L\cap(M\cupR)=L\capM\capR
L\cap(M\cupR)~\subseteq~M\capR
-
and
L\setminus(M\setminusR)=L\setminus(R\setminusM)
L\setminus(M\setminusR)=L\setminus(R\setminusM)=L
Quasi-commutativity
always holds but in general, However,
L\setminus(M\setminusR)~\subseteq~L\setminus(R\setminusM)
if and only if
if and only if
L\setminus(R\setminusM)~=~L.
Set subtraction complexity: To manage the many identities involving set subtraction, this section is divided based on where the set subtraction operation and parentheses are located on the left hand side of the identity. The great variety and (relative) complexity of formulas involving set subtraction (compared to those without it) is in part due to the fact that unlike
and
set subtraction is neither associative nor commutative and it also is not left distributive over
or even over itself.
Two set subtractions
Set subtraction is associative in general: since only the following is always guaranteed:
(L\M)\R
L\(M\R)
L\subseteqMthenL\setminus(M\setminusR)=L\capR
- with equality if and only if
One set subtraction
(L\M) ⁎ R
Set subtraction on the left, and parentheses on the
\begin{alignat}{4}
(L\setminusM)\capR&=(&&L\capR)\setminus(M\capR)~~~(Distributivelawof\capover\setminus)\\
&=(&&L\capR)\setminusM\\
&=&&L\cap(R\setminusM)\\
\end{alignat}
L\(M ⁎ R)
Set subtraction on the left, and parentheses on the
where the above two sets that are the subjects of De Morgan's laws always satisfy
L\setminus(M\cupR)~~{\color{red}{\subseteq}}~~\color{black}{}L\setminus(M\capR).
(L ⁎ M)\R
Set subtraction on the right, and parentheses on the
L ⁎ (M\R)
Set subtraction on the right, and parentheses on the
\begin{alignat}{4}
L\cap(M\setminusR)
&=(&&L\capM)&&\setminus(L\capR)~~~(Distributivelawof\capover\setminus)\\
&=(&&L\capM)&&\setminusR\\
&=&&M&&\cap(L\setminusR)\\
&=(&&L\setminusR)&&\cap(M\setminusR)\\
\end{alignat}
Three operations on three sets
(L • M) ⁎ (M • R)
Operations of the form
(L\bulletM)\ast(M\bulletR)
:
(L • M) ⁎ (R\M)
Operations of the form
(L\bulletM)\ast(R\setminusM)
:
(L\M) ⁎ (L\R)
Operations of the form
(L\setminusM)\ast(L\setminusR)
:
Other simplifications
Other properties:
- If
then
L\setminusR=L\cap(M\setminusR).
L x (M\setminusR)=(L x M)\setminus(L x R)
- If
then
M\setminusR\subseteqM\setminusL.
-
if and only if for any
belongs to of the sets
Symmetric difference ∆ of finitely many sets
Given finitely many sets
something belongs to their
symmetric difference if and only if it belongs to an odd number of these sets. Explicitly, for any
x\inL1\triangle … \triangleLn
if and only if the cardinality
\left|\left\{i:x\inLi\right\}\right|
is odd. (Recall that symmetric difference is associative so parentheses are not needed for the set
L1\triangle … \triangleLn
).
Consequently, the symmetric difference of three sets satisfies:
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:
But in general, ⨯ does not distribute over itself:
Binary ⋂ of finite ⨯
Binary ⋃ of finite ⨯
Difference \ of finite ⨯
and
Finite ⨯ of differences \
Symmetric difference ∆ and finite ⨯
In general,
\left(L\triangleL2\right) x \left(R\triangleR2\right)
need not be a subset nor a superset of
\left(L x R\right)\triangle\left(L2 x R2\right).
Arbitrary families of sets
Let
and
be indexed
families of sets. Whenever the assumption is needed, then all
indexing sets, such as
and
are assumed to be non-empty.
Definitions
A or (more briefly) a refers to a set whose elements are sets.
An is a function from some set, called its, into some family of sets. An indexed family of sets will be denoted by
where this notation assigns the symbol
for the indexing set and for every index
assigns the symbol
to the value of the function at
The function itself may then be denoted by the symbol
which is obtained from the notation
by replacing the index
with a bullet symbol
explicitly,
is the function:
which may be summarized by writing
Any given indexed family of sets
(which is a
function) can be canonically associated with its image/range
\operatorname{Im}L\bull~\stackrel{\scriptscriptstyledef
}~ \left\ (which is a family of sets). Conversely, any given family of sets
may be associated with the
-indexed family of sets
}, which is technically the
identity map
However, this is a bijective correspondence because an indexed family of sets
is required to be injective (that is, there may exist distinct indices
such as
), 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
then
cupiLi=\{x~:~thereexistsi\in\varnothingsuchthatx\inLi\}=\varnothing,
which is somethings called the (despite being called a convention, this equality follows from the definition).
If
is a family of sets then
denotes the set:
Arbitrary intersections defined
If
then
If
is a family of sets then
denotes the set:
Nullary intersections
If
then
where every possible thing
in the universe
vacuously satisfied the condition: "if
then
". Consequently,
} L_i = \ consists of in the universe.
So if
and:
then
} L_i = \ ~=~ X.
- otherwise, if you are working in a model in which "the class of all things
" is not a set (by far the most common situation) then
} L_i is because
} L_i consists of, which makes
} L_i a
proper class and 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 of sets or an refers to the intersection of a finite collection of sets.
Some authors adopt the so called , 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
then some author may declare that the empty intersection of these sets be equal to
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
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
Distributing unions and intersections
Binary ⋂ of arbitrary ⋃'s
and
are
pairwise disjoint and all
are also pairwise disjoint, then so are all
(that is, if
(i,j) ≠ \left(i2,j2\right)
then
\left(Li\capRj\right)\cap
\cap
\right)=\varnothing
).
then in general,
(an example of this is given below). The single union on the right hand side be over all pairs
The same is usually true for other similar non-trivial set equalities and relations that depend on two (potentially unrelated) indexing sets
and
(such as or). Two exceptions are (unions of unions) and (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).
and let
Let
and let
L2\colon=R1\colon=\varnothing.
Then
Furthermore,
Binary ⋃ of arbitrary ⋂'s
and
then in general,
(an example of this is given above). The single intersection on the right hand side be over all pairs
Arbitrary ⋂'s and arbitrary ⋃'s
Incorrectly distributing by swapping ⋂ and ⋃
Naively swapping
}\; and
}\; 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
the sets
are labelled; and analogously, the left hand side depends on how for each fixed
the sets
are labelled. An example demonstrating this is now given.
- Example of dependence on labeling and failure of equality: To see why equality need not hold when
and
are swapped, let
and let
S11=\{1,2\},~S12=\{1,3\},~S21=\{3,4\},
and
Then If
and
are swapped while
and
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
then In particular, the left hand side is no longer
which shows that the left hand side
} \; S_ depends on how the sets are labelled. If instead
and
are swapped while
and
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
which shows that the right hand side also depends on how the sets are labeled.
Equality in can hold under certain circumstances, such as in, which is the special case where
is
\left(Li\setminusRj\right)(i,j)
(that is,
with the same indexing sets
and
), or such as in, which is the special case where
is
\left(Li\setminusRj\right)(j,
(that is,
\hat{S}j,i\colon=Li\setminusRj
with the indexing sets
and
swapped).For a correct formula that extends the distributive laws, an approach other than just switching
and
is needed.
Correct distributive laws
Suppose that for each
is a non-empty index set and for each
let
be any set (for example, to apply this law to
use
for all
and use
for all
and all
). Let
denote the
Cartesian product, which can be interpreted as the set of all functions
f~:~I~\to~{stylecup\limitsi
} J_i such that
for every
Such a function may also be denoted using the tuple notation
where
fi~\stackrel{\scriptscriptstyledef
}~ f(i) for every
and conversely, a tuple
is just notation for the function with domain
whose value at
is
both notations can be used to denote the elements of
Then
where
{style\prod}J\bull~\stackrel{\scriptscriptstyledef
}~ J_i.
Applying the distributive laws
In the particular case where all
are equal (that is,
for all
which is the case with the family
for example), then letting
denote this common set, the Cartesian product will be
{style\prod}J\bull~\stackrel{\scriptscriptstyledef
}~ J_i = J = J^I, which is the
set of all functions of the form
The above set equalities and, respectively become:
which when combined with implies: where
- on the left hand side, the indices
range over
(so the subscripts of
range over
i\inIandf(i)\inf(I)\subseteqJ
)
- on the right hand side, the indices
range over
(so the subscripts of
range over
j\inJandg(j)\ing(J)\subseteqI
).
To apply the general formula to the case of
and
use
and let
for all
and let
for all
Every map
f\in{style\prod}J\bull~\stackrel{\scriptscriptstyledef
}~ J_i = J_1 \times J_2 = K \times L can be
bijectively identified with the pair
\left(f(1),f(2)\right)\inK x L
(the inverse sends
to the map
f(k,l)\in{style\prod}J\bull
defined by
and
this is technically just a change of notation). Recall that was
Expanding and simplifying the left hand side gives
and doing the same to the right hand side gives:
Thus the general identity reduces down to the previously given set equality :
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 - above.
In general, naively swapping
and
may produce a different set (see this note for more details). The equalities
found in and are thus unusual in that they state exactly that swapping
and
will change the resulting set.
Commutativity and associativity of ⋃ and ⋂
Commutativity:
Unions of unions and intersections of intersections:
and
and if
then also:
[4] Cartesian products Π of arbitrarily many sets
Intersections ⋂ of Π
If
is a family of sets then
belongs to the set in above if and only if
for all
and all
In particular, if
and
are two families indexed by the same set then
So for instance,
and
Intersections of products indexed by different sets
Let
and
be two families indexed by different sets.
Technically,
implies
\left({style\prod\limitsi
} L_i\right) \cap 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.
and
with all sets equal to
then
} L_i = \R = \R^2 and
} R_j = \R = \R^3 where
, for example,
}} \R = \R^2 is identified as a subset of
}} \R = \R^3 through some
injection, such as maybe
for instance; however, in this particular case the product
}} L_i actually represents the
-indexed product
}} L_i where
- For another example, take
and
with
and
all equal to
Then
}L_i = \R^2 \times \R and
} R_j = \R \times \R \times \R, which can both be identified as the same set via the bijection that sends
to
Under this identification,
\left({style\prod\limitsi
} L_i\right) \cap \, R_j ~=~ \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:
Distributing arbitrary Π over arbitrary ⋃
Suppose that for each
is a non-empty index set and for each
let
be any set (for example, to apply this law to
use
for all
and use
for all
and all
). Let
denote the
Cartesian product, which (as mentioned above) can be interpreted as the set of all functions
f~:~I~\to~{stylecup\limitsi
} J_i such that
for every
.Then
where
{style\prod}J\bull~\stackrel{\scriptscriptstyledef
}~ J_i.
Unions ⋃ of Π
For unions, only the following is guaranteed in general:where
is a family of sets.
- Example where equality fails: Let
let
let
and let
Then
More generally,
if and only if for each
at least one of the sets in the
-indexed collections of sets
S\bullet,j=\left(Si,j\right)i\in
is empty, while
if and only if for each
at least one of the sets in the
-indexed collections of sets
Si,\bullet=\left(Si,j\right)j\in
is not empty.
However,
Difference \ of Π
If
and
are two families of sets then:
so for instance,
and
Symmetric difference ∆ of Π
Functions and sets
Let
be any function.
Let
be completely arbitrary sets. Assume
A\subseteqXandC\subseteqY.
Definitions
Let
be any function, where we denote its
by
and denote its
by
\operatorname{codomain}f.
Many of the identities below do not actually require that the sets be somehow related to
's domain or codomain (that is, to
or
) so when some kind of relationship is necessary then it will be clearly indicated. Because of this, in this article, if
is declared to be "," and it is not indicated that
must be somehow related to
or
(say for instance, that it be a subset
or
) then it is meant that
is truly arbitrary.
[5] This generality is useful in situations where
is a map between two subsets
and
of some larger sets
and
and where the set
might not be entirely contained in
and/or
Y=\operatorname{codomain}f
(e.g. if all that is known about
is that
); in such a situation it may be useful to know what can and cannot be said about
and/or
without having to introduce a (potentially unnecessary) intersection such as:
and/or
Images and preimages of sets
If
is set then the is defined to be the set:
while the is:
where if
is a singleton set then the or is
Denote by
or
the or of
which is the set:
Saturated sets
See main article: Saturated set.
A set
is said to be or a
if any of the following equivalent conditions are satisfied:
- There exists a set
such that
necessarily contains
as a subset.
- Any set not entirely contained in the domain of
cannot be
-saturated. -
-
and
A\subseteq\operatorname{domain}f.
L\cap\operatorname{domain}f\subseteqf-1(f(L))
always holds, where if A\subseteq\operatorname{domain}f
then this becomes
A\subseteq\operatorname{domain}f
and if
and x\in\operatorname{domain}f
satisfy
then
- Whenever a fiber of
intersects
then
contains the entire fiber. In other words,
contains every
-fiber that intersects it.
is such that A\capf-1(y) ≠ \varnothing,
then
- In both this statement and the next, the set
may be replaced with any superset of
(such as
) and the resulting statement will still be equivalent to the rest.- The intersection of
with a fiber of
is equal to the empty set or to the fiber itself.
the intersection
is equal to the empty set
or to
(that is,
or
).
For a set
to be
-saturated, it is necessary that
A\subseteq\operatorname{domain}f.
Compositions and restrictions of functions
If
and
are maps then
denotes the map
with domain and codomain
defined by
The denoted by
is the map
with
\operatorname{domain}f\vertL~=~L\cap\operatorname{domain}f
defined by sending
x\inL\cap\operatorname{domain}f
to
that is,
Alternatively,
~f\vertL~=~f\circ\operatorname{In}~
where
~\operatorname{In}~:~L\capX\toX~
denotes the
inclusion map, which is defined by
\operatorname{In}(s)~\stackrel{\scriptscriptstyledef
}~ s.
(Pre)Images of arbitrary unions ⋃'s and intersections ⋂'s
If
is a family of arbitrary sets indexed by
then:
So of these four identities, it is that are not always preserved. Preimages preserve all basic set operations. Unions are preserved by both images and preimages.
If all
are
-saturated then
be will be
-saturated and equality will hold in the first relation above; explicitly, this means:
If
is a family of arbitrary subsets of
X=\operatorname{domain}f,
which means that
for all
then becomes:
(Pre)Images of binary set operations
Throughout, let
and
be any sets and let
be any function.
Summary
As the table below shows, set equality is guaranteed for of: intersections, set subtractions, and symmetric differences.
Image | Preimage | |
---|
~~~~f(L\cupR)~=~f(L)\cupf(R)
| f-1(L\cupR)~=~f-1(L)\cupf-1(R)
| None |
| f-1(L\capR)~=~f-1(L)\capf-1(R)
| None |
| \begin{alignat}{4}
f-1(L)\setminusf-1(R)&=f-1&&(&&L&&\setminus&&R)\\
&=f-1&&(&&L&&\setminus[&&R\cap\operatorname{Im}f])\\
&=f-1&&([&&L\cap\operatorname{Im}f]&&\setminus&&R)\\
&=f-1&&([&&L\cap\operatorname{Im}f]&&\setminus[&&R\cap\operatorname{Im}f])\end{alignat}
| None |
| \begin{alignat}{4}
X\setminusf-1(R)&=f-1(&&Y&&\setminus&&R)\\
&=f-1(&&Y&&\setminus[&&R\cap\operatorname{Im}f])\\
&=f-1(&&\operatorname{Im}f&&\setminus&&R)\\
&=f-1(&&\operatorname{Im}f&&\setminus[&&R\cap\operatorname{Im}f])\end{alignat}
[6] | None |
| 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:
In words, preimages distribute over unions, intersections, set subtraction, and symmetric difference.
Images preserve unions
Images of unions are well-behaved:
but images of the other basic set operations are since only the following are guaranteed in general:
or else they can naturally as the set subtraction of two sets:
If
then
f(X\setminusR)\supseteqf(X)\setminusf(R)
where as in the more general case, equality is not guaranteed. If
is surjective then
f(X\setminusR)~\supseteq~Y\setminusf(R),
which can be rewritten as:
f\left(R\complement\right)~\supseteq~f(R)\complement
if
R\complement~\stackrel{\scriptscriptstyledef
}~ X \setminus R and
f(R)\complement~\stackrel{\scriptscriptstyledef
}~ Y \setminus f(R).
Counter-examples: images of operations not distributing
If
is constant,
and
then all four of the set containments
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.
Let
be any constant function with image
and suppose that
are non-empty disjoint subsets; that is,
L ≠ \varnothing,R ≠ \varnothing,
and
which implies that all of the sets
and
X\setminusR\supseteqL\setminusR
are not empty and so consequently, their images under
are all equal to
- The containment
~f(L\setminusR)~\supsetneq~f(L)\setminusf(R)~
is strict: In words: functions might not distribute over set subtraction
- The containment
~f(X\setminusR)~\supsetneq~f(X)\setminusf(R)~
is strict: - The containment
~f(L~\triangle~R)~\supsetneq~f(L)~\triangle~f(R)~
is strict: In words: functions might not distribute over symmetric difference
(which can be defined as the set subtraction of two sets: L\triangleR=(L\cupR)\setminus(L\capR)
). - The containment
~f(L\capR)~\subsetneq~f(L)\capf(R)~
is strict: In words: functions might not distribute over set intersection
(which can be defined as the set subtraction of two sets: L\capR=L\setminus(L\setminusR)
).
(examples (1) and (2)) or else they can naturally 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
) can always be deduced by imagining the function
as being and the two sets (
and
) as being non-empty disjoint subsets of its domain. This is because equality fails for such a function and sets: one side will be always be
and the other non-empty − from this fact, the correct choice of
can be deduced by answering: "which side is empty?" For example, to decide if the
in
should be
pretend
[7] that
is constant and that
and
are non-empty disjoint subsets of
's domain; then the hand side would be empty (since
f(L\triangleR)\setminusf(R)=\{f'ssinglevalue\}\setminus\{f'ssinglevalue\}=\varnothing
), which indicates that
should be
(the resulting statement is always guaranteed to be true) because this is the choice that will make
true. Alternatively, the correct direction of containment can also be deduced by consideration of any constant
with
and
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
always equals
or alternatively, whether or not
always equals
(although
was used here, it can replaced by
\cup,\setminus,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
and
) 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 sets:
For any function
the following statements are equivalent:
-
is injective.
for all distinct
f(L\capR)=f(L)\capf(R)forallL,R\subseteqX.
(The equals sign
can be replaced with
).f(L\setminusR)=f(L)\setminusf(R) forallL,R\subseteqX.
(The equals sign
can be replaced with
).f(X\setminusR)=f(X)\setminusf(R) forall~~~~~R\subseteqX.
(The equals sign
can be replaced with
).f(L\triangleR)=f(L)\trianglef(R) forallL,R\subseteqX.
(The equals sign
can be replaced with
).- 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):
is injective if and only if f(x)\not\inf(X\setminus\{x\}) foreveryx\inX.
- "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)
Characterizations of equality: The following statements are equivalent:
-
f(L\capR)~\supseteq~f(L)\capf(R)
L\capf-1(f(R))~\subseteq~f-1(f(L\capR))
is always equal to
(because L\capf-1(f(R))~\subseteq~f-1(f(L))
always holds).R\capf-1(f(L))~\subseteq~f-1(f(L\capR))
L\capf-1(f(R))~=~f-1(f(L\capR))\capL
R\capf-1(f(L))~=~f-1(f(L\capR))\capR
- If
satisfies
then
- If
but
then
f(L)\setminusf(L\capR)~\subseteq~f(L)\setminusf(R)
f(R)\setminusf(L\capR)~\subseteq~f(R)\setminusf(L)
f(L\cupR)\setminusf(L\capR)~\subseteq~f(L)\trianglef(R)
- Any of the above three conditions (i) - (k) but with the subset symbol
replaced with an equals sign
Sufficient conditions for equality: Equality holds if any of the following are true:
-
is injective.[8]
- The restriction
is injective.
-
-
-
is
-saturated; that is,
-
is
-saturated; that is,
-
-
f(L\setminusR)~\subseteq~f(L)\setminusf(R)
or equivalently, f(L\setminusR)~=~f(L)\setminusf(R)
f(R\setminusL)~\subseteq~f(R)\setminusf(L)
or equivalently, f(R\setminusL)~=~f(R)\setminusf(L)
f\left(L~\triangle~R\right)\subseteqf(L)~\triangle~f(R)
or equivalently, f\left(L~\triangle~R\right)=f(L)~\triangle~f(R)
R\cap\operatorname{domain}f\subseteqL
L\cap\operatorname{domain}f\subseteqR
-
-
In addition, the following always hold:
Conditions for f(L\R) = f(L)\f(R)
Characterizations of equality: The following statements are equivalent:
-
f(L\setminusR)~=~f(L)\setminusf(R)
f(L\setminusR)~\subseteq~f(L)\setminusf(R)
L\capf-1(f(R))~\subseteq~R
L\capf-1(f(R))~=~L\capR\cap\operatorname{domain}f
- Whenever
then
- The set on the right hand side is always equal to
\left\{y\inf(L\capR):L\capf-1(y)\subseteqR\right\}.
- This is the above condition (f) but with the subset symbol
replaced with an equals sign
Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:
-
or equivalently
f(L\capR)\supseteqf(L)\capf(R).
L\capf-1(f(R))~=~L\capf-1(f(L\capR))
or equivalently, L\capf-1(f(R))~\subseteq~f-1(f(L\capR))
R\capf-1(f(L))~=~R\capf-1(f(L\capR))
Sufficient conditions for equality: Equality holds if any of the following are true:
-
is injective.
- The restriction
is injective.
-
[9] or equivalently,
R\cap\operatorname{domain}f~=~f-1(f(R))
-
is
-saturated; that is,
[9]
f\left(L~\triangle~R\right)\subseteqf(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)
Characterizations of equality: The following statements are equivalent:
-
f(X\setminusR)~=~f(X)\setminusf(R)
f(X\setminusR)~\subseteq~f(X)\setminusf(R)
-
f-1(f(R))=R\cap\operatorname{domain}f
R\cap\operatorname{domain}f
is
-saturated.- Whenever
then
where if
R\subseteq\operatorname{domain}f
then this list can be extended to include:
-
is
-saturated; that is,
Sufficient conditions for equality: Equality holds if any of the following are true:
-
is injective.
-
is
-saturated; that is,
Conditions for f(L∆R) = f(L)∆f(R)
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)\subseteqf(L)~\triangle~f(R)
f(L\setminusR)=f(L)\setminusf(R)
and f(R\setminusL)=f(R)\setminusf(L)
f(L\setminusR)\subseteqf(L)\setminusf(R)
and f(R\setminusL)\subseteqf(R)\setminusf(L)
L\capf-1(f(R))~\subseteq~R
and R\capf-1(f(L))~\subseteq~L
L\capf-1(f(R))~\subseteq~f-1(f(L))
and R\capf-1(f(L))~\subseteq~f-1(f(R))
always hold.L\capf-1(f(R))~=~R\capf-1(f(L))
- If this above set equality holds, then this set will also be equal to both
L\capR\cap\operatorname{domain}f
and L\capR\capf-1(f(L\capR)).
L\capf-1(f(L\capR))~=~R\capf-1(f(L\capR))
and f(L\capR)~\supseteq~f(L)\capf(R).
Necessary conditions for equality (excluding characterizations): If equality holds then the following are necessarily true:
-
or equivalently
f(L\capR)\supseteqf(L)\capf(R).
L\capf-1(f(L\capR))~=~R\capf-1(f(L\capR))
Sufficient conditions for equality: Equality holds if any of the following are true:
-
is injective.
- The restriction
is injective.
Exact formulas/equalities for images of set operations
Formulas for f(L\R) =
For any function
and any sets
and
[10] Formulas for f(X\R) =
Taking
L:=X=\operatorname{domain}f
in the above formulas gives:
where the set
\left\{y\inf(R):f-1(y)\subseteqR\right\}
is equal to the image under
of the largest
-saturated subset of
- In general, only
f(X\setminusR)\supseteqf(X)\setminusf(R)
always holds and equality is not guaranteed; but replacing "
" with its subset "\left\{y\inf(R):f-1(y)\subseteqR\right\}
" results in a formula in which equality is guaranteed: From this it follows that:[11] - If
fR:=\left\{y\inf(X):f-1(y)\subseteqR\right\}
then f(X\setminusR)=f(X)\setminusfR,
which can be written more symmetrically as f(X\setminusR)=fX\setminusfR
(since
).
Formulas for f(L∆R) =
It follows from
L\triangleR=(L\cupR)\setminus(L\capR)
and the above formulas for the image of a set subtraction that for any function
and any sets
and
Formulas for f(L) =
It follows from the above formulas for the image of a set subtraction that for any function
and any set
This is more easily seen as being a consequence of the fact that for any
if and only if
Formulas for f(L⋂R) =
It follows from the above formulas for the image of a set that for any function
and any sets
and
where moreover, for any
L\capf-1(y)\subseteqL\setminusR~
if and only if
~L\capR\capf-1(y)=\varnothing~
if and only if
~R\capf-1(y)\subseteqR\setminusL~
if and only if
The sets
and
mentioned above could, in particular, be any of the sets
f(L\cupR), \operatorname{Im}f,
or
for example.
(Pre)Images of set operations on (pre)images
Let
and
be arbitrary sets,
be any map, and let
and
Image of preimage | Preimage of image | Additional assumptions on sets |
---|
f\left(f-1(L)\capR\right)=L\capf(R)
| f-1(f(L)\capR)~\supseteq~L\capf-1(R)
| None |
f\left(f-1(L)\cupR\right)~=~(L\cap\operatorname{Im}f)\cupf(R)~\subseteq~L\cupf(R)
| f-1(f(A)\cupR)~\supseteq~A\cupf-1(R)
[12] Equality holds if any of the following are true:-
-
|
| |
(Pre)Images of operations on images
Since
f(L)\setminusf(L\setminusR)~=~\left\{y\inf(L\capR)~:~L\capf-1(y)\subseteqR\right\},
Since
f(X)\setminusf(L\setminusR)~=~\left\{y\inf(X)~:~L\capf-1(y)\subseteqR\right\},
Using
this becomes
~f(X)\setminusf(X\setminusR)~=~\left\{y\inf(R)~:~f-1(y)\subseteqR\right\}~
and
and so
(Pre)Images and Cartesian products Π
Let
\prodY\bull~\stackrel{\scriptscriptstyledef
}~ \prod_ Y_j and for every
let
denote the canonical projection onto
Definitions
Given a collection of maps
indexed by
define the map
which is also denoted by
This is the unique map satisfying
Conversely, if given a map then
F=\left(\pij\circF\right)j.
Explicitly, what this means is that if
is defined for every
then
the unique map satisfying:
for all
or said more briefly,
The map
F\bull=\left(Fj\right)j~:~X~\to~\prodjYj
should not be confused with the
Cartesian product
of these maps, which is by definition is the map
with domain
rather than
Preimage and images of a Cartesian product
Suppose
F\bull=\left(Fj\right)j~:~X~\to~\prodjYj.
If
then
If
then
where equality will hold if
in which case
and
For equality to hold, it suffices for there to exist a family
of subsets
such that
in which case: and
for all
(Pre)Image of a single set
Image | Preimage | Additional assumptions |
---|
\begin{alignat}{4}
f(L)&=f(L\cap\operatorname{domain}f)\\
&=f(L\capX)\\
&=Y~~~~\setminus\left\{y\inY~~~~:f-1(y)\subseteqX\setminusL\right\}\\
&=\operatorname{Im}f\setminus\left\{y\in\operatorname{Im}f:f-1(y)\subseteqX\setminusL\right\}\\
\end{alignat}
| \begin{alignat}{4}
f-1(L)&=f-1(L\cap\operatorname{Im}f)\\
&=f-1(L\capY)
\end{alignat}
| None |
f(X)=\operatorname{Im}f\subseteqY
| \begin{alignat}{4}
f-1(Y)&=X\\
f-1(\operatorname{Im}f)&=X
\end{alignat}
| None |
\begin{alignat}{4}
f(L)&=f(L\capR~&&\cup~&&(&&L\setminusR))\\
&=f(L\capR)~&&\cup~f&&(&&L\setminusR)
\end{alignat}
| \begin{alignat}{4}
f-1(L)&=f-1(L\capR&&\cup&&(&&L&&\setminus&&R))\\
&=f-1(L\capR)&&\cupf-1&&(&&L&&\setminus&&R)\\
&=f-1(L\capR)&&\cupf-1&&(&&L&&\setminus[&&R\cap\operatorname{Im}f])\\
&=f-1(L\capR)&&\cupf-1&&([&&L\cap\operatorname{Im}f]&&\setminus&&R)\\
&=f-1(L\capR)&&\cupf-1&&([&&L\cap\operatorname{Im}f]&&\setminus[&&R\cap\operatorname{Im}f])\end{alignat}
| None |
\operatorname{Im}f=f(X)~=~f(L)\cupf(X\setminusL)
| \begin{alignat}{4}
X&=f-1(L)\cupf-1(Y&&\setminusL)\\
&=f-1(L)\cupf-1(\operatorname{Im}f&&\setminusL)
\end{alignat}
| None |
|
| None |
| (g\circf)-1(L)~=~f-1\left(g-1(L)\right)
| None (
and
are arbitrary functions). |
f\left(f-1(L)\right)=L\cap\operatorname{Im}f
| f-1(f(L))~\supseteq~L\capf-1(\operatorname{Im}f)=L\capf-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\subseteqY
|
if and only if \operatorname{Im}f\subseteqL
| None |
if and only if L\cap\operatorname{domain}f=\varnothing
|
if and only if L\cap\operatorname{Im}f=\varnothing
| None |
if and only if
|
if and only if C\subseteqY\setminus\operatorname{Im}f
|
and
|
implies
|
implies
| None |
The following are equivalent:-
-
L\cap\operatorname{domain}f~\subseteq~f-1(f(R))
| The following are equivalent:-
-
L\cap\operatorname{Im}f\subseteqR
If C~\subseteq~\operatorname{Im}f
then
if and only if
| C\subseteq\operatorname{Im}f
|
The following are equivalent when
-
-
for some
| The following are equivalent:-
-
and
L\subseteq\operatorname{domain}f
The following are equivalent when
-
-
|
and
|
The following are equivalent:f(A)~\supseteq~f(X\setminusA)
-
| The following are equivalent:f-1(C)~\supseteq~f-1(Y\setminusC)
-
|
and
|
f\left(f-1(L)\right)\subseteqL
Equality holds if the following is true:L\subseteq\operatorname{Im}f.
[13] [14] Equality holds if any of the following are true:-
and
is surjective.
|
Equality holds if the following is true:-
is
-saturated.
Equality holds if any of the following are true:-
is injective.
|
| |
Intersection of a set and a (pre)image
The following statements are equivalent:
-
-
\varnothing=f-1(f(L))\capf-1(R)
\varnothing=f-1(f(L)\capR)
Thus for any
Sequences and collections of families of sets
Definitions
A or simply a is a set whose elements are sets. A is a family of subsets of
The of a set
is the set of all subsets of
:
Notation for sequences of sets
Throughout,
will be arbitrary sets and
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
where
denotes the
natural numbers. A notation
indicates that
is a
net directed by
which (by definition) is a
sequence if the set
which is called the net's
indexing set, is the natural numbers (that is, if
) and
is the natural order on
Disjoint and monotone sequences of sets
If
for all distinct indices
then
is called a or simply a . A sequence or net
of set is called or if (resp. or) if for all indices
(resp.
). A sequence or net
of set is called (resp.) if it is non-decreasing (resp. is non-increasing) and also
for all indices
It is called if it is non-decreasing or non-increasing and it is called if it is strictly increasing or strictly decreasing.
A sequences or net
is said to denoted by
or
if
is increasing and the union of all
is
that is, if
It is said to denoted by
or
if
is increasing and the intersection of all
is
that is, if
Definitions of elementwise operations on families
If
are families of sets and if
is any set then define:
which are respectively called
,
,
(
)
,
, and the
/
The regular union, intersection, and set difference are all defined as usual and are denoted with their usual notation:
l{L}\cupl{R},l{L}\capl{R},l{L} \triangle l{R},
and
respectively. These elementwise operations on families of sets play an important role in, among other subjects, the theory of
filters and prefilters on sets.
The of a family
is the family:
and the is the family:
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.
A family
is called,, or in
if
and
A family
is called if
A family
is said to be:
then
(respectively,
).
are elements of
then so is their intersections
(resp. so is their union
).
then
A family
of sets is called a/an:
and
is closed under finite-intersections.
is contained in a unique smallest (with respect to
) −system that is denoted by
and called
and
\varnothing\not\in\pi(l{L}).
is a family of subsets of
that is a −system, is upward closed in
and is also, which by definition means that it does not contain the empty set as an element.
- or if it is a non-empty family of subsets of some set
whose upward closure in
is a filter on
- is a non-empty family of subsets of
that contains the empty set, forms a −system, and is also closed under complementation with respect to
that is closed under countable unions (or equivalently, closed under countable intersections).
Sequences of sets often arise in measure theory.
Algebra of sets
See also: Algebra of sets.
of subsets of a set
is said to be
if
and for all
all three of the sets
and
are elements of
[15] The
article on this topic lists set identities and other relationships these three operations.
Every algebra of sets is also a ring of sets[15] and a π-system.
Algebra generated by a family of sets
Given any family
of subsets of
there is a unique smallest
[16] algebra of sets in
containing
[15] It is called
and it will be denote it by
}. This algebra can be constructed as follows:
[15] - If
then
} = \ and we are done. Alternatively, if
is empty then
may be replaced with
\{\varnothing\},\{X\},or\{\varnothing,X\}
and continue with the construction. - Let
be the family of all sets in
together with their complements (taken in
).
- Let
be the family of all possible finite intersections of sets in
[17]
- Then the algebra generated by
is the set
} consisting of all possible finite unions of sets in
Elementwise operations on families
Let
and
be families of sets over
On the left hand sides of the following identities,
is the eft most family,
is in the iddle, and
is the ight most set.
Commutativity
Associativity
Identity:
Domination:
Power set
If
and
are subsets of a vector space
and if
is a scalar then
Sequences of sets
Suppose that
is any set such that
for every index
If
decreases to
then
L\setminusR\bull:=\left(L\setminusRi\right)i
increases to
whereas if instead
increases to
then
decreases to
If
are arbitrary sets and if
increases (resp. decreases) to
then
\left(Li\setminusR\right)i
increase (resp. decreases) to
Partitions
Suppose that
is any sequence of sets, that
is any subset, and for every index
let
Di=\left(Si\capS\right)\setminus
\left(Sm\capS\right).
Then
and
is a sequence of pairwise disjoint sets.
Suppose that
is non-decreasing, let
and let
for every
Then
and
is a sequence of pairwise disjoint sets.
Notes
Notes
Proofs
References
- Book: Artin, Michael. Michael Artin. Algebra. 1991. Prentice Hall. 81-203-0871-9.
- Book: Blyth, T.S.. Lattices and Ordered Algebraic Structures. Springer. 2005. 1-85233-905-5. .
- Bylinski. Czeslaw. 2004. Some Basic Properties of Sets. Journal of Formalized Mathematics. 1. 5 October 2021.
- Courant, Richard, Herbert Robbins, Ian Stewart, What is mathematics?: An Elementary Approach to Ideas and Methods, Oxford University Press US, 1996. . "SUPPLEMENT TO CHAPTER II THE ALGEBRA OF SETS".
- Book: Halmos, Paul R.. Paul Halmos. Naive set theory. registration. The University Series in Undergraduate Mathematics. van Nostrand Company. 1960. 9780442030643 . 0087.04403.
- Book: Kelley. John L.. General Topology. 2. Graduate Texts in Mathematics. 27. 1985. Birkhäuser. 978-0-387-90125-1.
- Book: Monk, James Donald. Introduction to Set Theory. McGraw-Hill. New York. 1969. International series in pure and applied mathematics. 978-0-07-042715-0. 1102.
- Trybulec. Zinaida. 2002. Properties of subsets. Journal of Formalized Mathematics. 1. 1. 5 October 2021.
External links
Notes and References
- For example, the expression
uses two of the same symbols (
and
) that appear in the identity but they refer to different sets in each expression. To apply this identity to
substitute
and
(since these are the left, middle, and right sets in
) to obtain: For a second example, this time applying the identity to
((M\capR\setminusL)\setminus(A\triangleL))\setminusL,
is now given. The identity can be applied to ((M\capR\setminusL)\setminus(A\triangleL))\setminusL
by reading
and
as
and
and then substituting
and
to obtain:
- Web site: Taylor. Courtney. March 31, 2019. What Is Symmetric Difference in Math?. 2020-09-05. ThoughtCo. en.
- Web site: Weisstein. Eric W.. Symmetric Difference. 2020-09-05. mathworld.wolfram.com. en.
- To deduce from, it must still be shown that
{stylecup\limits\stackrel{i{j\inI}}}\left(Li\cupRj\right)~=~{stylecup\limitsi
} \left(L_i \cup R_i\right) so is not a completely immediate consequence of . (Compare this to the commentary about).
- So for instance, it's even possible that
L\cap(X\cupY)=\varnothing,
or that
(which happens, for instance, if
), etc.
- The conclusion
X\setminusf-1(R)=f-1(Y\setminusR)
can also be written as: f-1(R)\complement~=~f-1\left(R\complement\right).
- Whether or not it is even feasible for the function
to be constant and the sets
and
to be non-empty and disjoint is irrelevant for reaching the correct conclusion about whether to use
- See
- Note that this condition depends entirely on
and on
- Let
P:=\left\{y\inY:L\capf-1(y)\subseteqR\right\}
and let
denote the set equality f(L\setminusR)=Y\setminusP,
which will now be proven. If
then L\capf-1(y)\not\subseteqR
so there exists some x\inL\capf-1(y)\setminusR;
now
implies
so that y=f(x)\inf(L\capX\setminusR)=f(L\setminusR).
To prove the reverse inclusion f(L\setminusR)\subseteqY\setminusP,
let
so that there exists some
such that
Then x\inL\capf-1(y)\setminusR
so that L\capf-1(y)\not\subseteqR
and thus
which proves that
as desired.
Defining Q:=f(L)\capP=\left\{y\inf(L):L\capf-1(y)\subseteqR\right\},
the identity f(L\setminusR)=f(L)\setminusQ
follows from
and the inclusions f(L\setminusR)\subseteqf(L)\subseteqY.
- Let
fR:=\left\{y\inf(L):L\capf-1(y)\subseteqR\right\}
where because
is also equal to fR=\left\{y\inf(R\capL):L\capf-1(y)\subseteqR\right\}.
As proved above, f(L\setminusR)=f(L)\setminusfR
so that f(L)\setminusf(R)=f(L\setminusR)
if and only if f(L)\setminusf(R)=f(L)\setminusfR.
Since f(L)\setminusf(R)=f(L)\setminus(f(L)\capf(R)),
this happens if and only if f(L)\setminus(f(L)\capf(R))=f(L)\setminusfR.
Because
are both subsets of
the condition on the right hand side happens if and only if
Because fR\subseteqf(R\capL)\subseteqf(L)\capf(R),
the equality
holds if and only if
If
(such as when
or
) then
if and only if
In particular, taking
proves: f(X\setminusR)=f(X)\setminusf(R)
if and only if f(R)\subseteq\left\{y\inf(R\capX):f-1(y)\subseteqR\right\},
where
- Lee p.388 of Lee, John M. (2010). Introduction to Topological Manifolds, 2nd Ed.
- Lee
- Lee
- Web site: Algebra of sets. Encyclopediaofmath.org. 16 August 2013. 8 November 2020.
- Here "smallest" means relative to subset containment. So if
is any algebra of sets containing
then
} \subseteq \Phi.
- Since
there is some
such that its complement also belongs to
The intersection of these two sets implies that
The union of these two sets is equal to
which implies that
}.