This is the second installment of notes of my lecture in LuFTER 1/2011. In the last post, we are limited to relationships on a given set. With so limited tools, we will not be able to do much apart from say, solving taxonomic problems. Here, we will now introduce more structures, namely operations on sets.
Set Operations
The two basic operations of set theory are the well-known set union and set intersection.
The union of sets
and
is the set of objects whose members are either members of
or members of
i.e.
.
The set union obeys commutativity
,
and associativity
.
The intersection of sets
and
is the set of objects whose members are members of both
and
i.e.
.
Similarly the set intersection also obeys commutativity and associativity:
;
.
Exercise 1: Prove the commutativity and associativity laws for the set union and intersection.
At this juncture, one should probably have noticed the correspondence between set union and intersection with the logical or and logical and respectively. Later, we will see that these set operations do indeed give the algebra of Boolean logic. (Question: Which comes first?) It is also good to highlight one can extend both union and intersection to a family of sets where
for some labelling set
; namely
and
. You will probably see them in defining topological space.
One could go further to define the idea of set-theoretic difference (perhaps as opposed to the union) as
.
Sometimes, it is also denoted as . An example is the set difference
between the set of real numbers
and the set of rational numbers
; the resultant set is the set
of irrational numbers.
Exercise 2: Prove .
Note that if , then
and
is said to be disjoint. Related to the set difference operation is the symmetric difference i.e.
,
and this has “better” properties:
;
;
.
Often one build sets from one large set (the universe of discourse) and this large set, we called universal set . Within such set then, we can now define an operation called complement
of the set
:
.
This complement operation obeys the following:
;
;
;
;
.
The complement operation also obeys the deMorgan’s laws:
;
.
One can see that the complement really acts like a NOT gate.
Exercise 3: Prove the properties of the complement operation including deMorgan’s laws.
To complete the logic operations analogy, one adds further the distributivity law whenever one mixes both the union and intersection operations together:
;
.
Exercise 4: Prove the distributive laws.
Putting together all the operations together with the sets in
, they form what is known as the Boolean algebra.
We end this part by giving an interesting example of constructing the “natural numbers” using set operations. We begin with the empty set , which we conveniently called it
. Next, we define what we called as the successor set
giving the following sequence (with more relabelling):
;
;
;
;
The collection forms the set
of natural numbers, which can be shown to obey the Peano postulates:
;
;
;
.
The set can then be identified with the natural numbers
. One could easily see that for
, then
implying the orderedness of numbers, a property that we will touch upon later. In fact we could do more by defining addition and multiplication using set-theoretic relations and operations.
It is often remarked that this example is like creating something (numbers) out of nothing (the empty set). In some sense, it is but there is no need to philosophize it too much (and in no way it is like the creation operation!). It is simply an abstraction of the counting operation. An analogy can be made with by first peering into an empty box and later put the empty box in another box, and the latter box in one other box ad infinitum, very much like the Russian doll. If there is anything to philosophize on, is that numbers can be thought of as an abstract mental construct that we associate with counting – a fact that we often forget.
References
These are additional references since the first part:
- Kenneth Kunen, “Set Theory: An Introduction to Independence Proofs“, (North-Holland, 1990)
- Ian R. Porteous, “Topological Geometry“, (Cambridge Univ. Press, 1981)
- Roger Godement, “Algebra“, (Hermann, 1968)