Beginning Rigorous Mathematics/Sets and Functions
We will now discuss some important set operations. Recall from the preliminaries that we only intuitively define a set to be a collection of distinct mathematical objects. There are much better and rigorous definitions of what sets are and form a subject for study all by itself, into which we will not delve.
Recall the meaning of the symbol "
", which reads "is an element of" so that if A is a set and x an object, then
a is a statement (which is either true of false, depending on whether x is an element of A).
Contents |
[edit] Sets and Set operations
In the following discussion, A and B denote any sets.
[edit] Definitions
[edit] The empty set: 
We will assume that the empty set exists, and is denoted by
. As the name suggests, the empty set contains no elements so that for any object x the statement
is false.
[edit] Set equality
Usually there is no ambiguity when we use the symbol "=" to refer to equality between sets. It is important that equality between sets is completely different to equality between numbers.
We define the logical statement "A = B" to be true by definition when the statement "
" (which reads "x is contained in A if and only if x is contained in B") is true, and false otherwise. Intuitively this means that sets are equal if and only if they contain exactly the same elements. For example, {1,2,3} = {1,2} is false since "
" is false. It might be helpful to check the truth table to see that "
" is a false statement. It should then be clear that "{5,6,7} = {5,6,7}" is true.
[edit] Subsets
If every element of the set A is an element of B, we then say that A is a subset of B.
Rigorously, we say that the statement "
" is true by definition when the statement "
" (which reads "If x is contained in A then x is contained in B") is true.
We have seen previously that the statement {1,2} = {1,2,3} is false, however the statement
is true. It should be clear that
is false, since the statement "
" is false.
[edit] Intersection
We define the intersection of sets by the symbol "
". Rigorously we write "
" which reads "The intersection of the sets A and B is by definition equal to the set which contains exactly the elements which are contained in both A and B".
For example "
".
We say that A and B are disjoint when
.
[edit] Union
We define the union of sets by the symbol "
". Rigorously we write "
" which reads "The union of the sets A and B is by definition equal to the set which contains exactly the elements which are contained in either one of A and B".
For example "
".
[edit] Complement
To define the complement of the set A we assume that the set A is a subset of some universal set X. We say "A lives in X". Often the universal set is implicitly clear, for example when we are studying real analysis we often just assume
or when studying complex analysis we assume
.
We define the complement of a set by the superscript "c". Rigorously "
" which reads "the complement of A in X is the set of all elements which are contained in X and not in A".
For example, if we assume X = {1,2,3,4,5} then {1,5}c: = {2,3,4}.
[edit] Relative complement
We define the relative complement of sets by the symbol "
". Rigorously, "
" which reads "the relative complement of B in A is by definition equal to the set containing all the elements contained in A and is not contained in B".
For example "
".
[edit] Some basic results
[edit] Lemma 1
. Which reads "A equals B if and only if A is a subset of B AND B is a subset of A"
proof As explained in the previous chapter,
will be true by adjunction when both
and
are true.
We prove first
.
Let A = B, then by definition we have
, which is logically equivalent to
. By simplification we have that
is true, and that
is true. Therefore by definition
, and
are both true. By adjunction
is true. Therefore
is true.
Conversely, we prove
.
Let
. Then, by simplification, both
and
are true. By definition both
and
are true. By adjunction,
is true, which is logically equivalent to
. Then by definition A = B is true. Therefore
is true. QED.
[edit] Lemma 2

[edit] Lemma 3
and 
This page may need to be