Basic Set Theory
Basic Set Theory
James T. Smith
San Francisco State University
These notes outline some set theory on which many parts of mathematics are based.
Sets
The notions object, set, and membership are used in this theory without definition. The
expression x 0 X indicates that the object x is a member of the set X. Any object with
a member is a set, and sets are considered objects. Sometimes its assumed that sets are
the only objects, but not in this outline.
Notation
Using gaudier letters for sets than for their members, as in g 0 G 0 G , often enhances
clarity (but sometimes isnt practical). These abbreviations are also useful:
0 ... is a member of & ... and
... is not a member of w ... or
= .... equals ... not
=
/ .... does not equal | ... if ... then ...
... for all ] ... if and only if
... for some
Equality
Two sets are equal if and only if they have the same members:
X = Y ] t [ t 0 X ] t 0 Y ].
That is the extensionality principle.
Extension
2008-01-29 16:02
Page 2 BASIC SET THEORY
where is a condition involving t. For example, in calculus you often consider intervals
of real numbers:
t 0 [a, b] ] a # t & t # b.
If (*) holds, then X is called the extension of . Its appropriate to call X the exten-
sion, because, by the extensionality principle, you can deduce X = Y from (*) and the
similar statement t 0 Y ] . Since X is uniquely determined when (*) holds, the
notation
X = { t : }
is common. Its read, X is the set of all t such that . For the previous example,
[a, b] = { t : a # t & t # b }.
Each set X is the extension of some condition for example, the condition
t 0 X. That is,
t0X ] t0X X = { t : t 0 X }.
However, there are conditions that have no extensionthat is, for which theres no
set X such that (*) holds. In 1902, Bertrand Russell discovered the most celebrated
such condition: t t. If that had an extension X, then X 0 X ] X X, contradiction!
Separation
One type of condition always has an extension: a condition applying only to members
of a previously given set. That is, to each set Y and each condition corresponds a
set X whose elements are those members t of Y that satisfy :
X = { t : t 0 Y & }, abbreviated { t 0 Y : }.
This is the separation principle. It implies, for example, that the condition t = t has no
extension: if there existed a set V such that t 0 V ] t = t, then Russells condition
would have an extension, namely { t 0 V : t t}. This result can also be phrased, theres
no universal set that contains all objects.
2008-01-29 16:02
BASIC SET THEORY Page 3
Inclusion
Power Set
To each set X corresponds a set P X, called the power set of X, whose members are
the subsets of X:
P X = { S : S f X }.
Empty Set
The condition t =
/ t has an extension, called the empty set :
= {t : t =
/ t} t [t ].
By the extensionality principle, is the only set with no members. Its a subset of every
set.
Singletons
To each object x corresponds a set {x}, called singleton x, whose sole member is x:
{x} = { t : t = x}.
Pairs
To any objects x and y corresponds a set {x, y}, called a pair, whose only members
are x and y:
{x, y} = { t : t = x w t = y}.
2008-01-29 16:02
Page 4 BASIC SET THEORY
Notice that
{ x, y} = { y, x} { x, x} = { x}.
Triples, quadruples, etc., could be introduced the same way, but more comprehensive
methods will be presented later.
Ordered Pairs
To any two objects x and y corresponds an object <x, y>, called an ordered pair. For
any objects x, y, xr, and yr,
<x, y> = <xr, yr> ] x = xr & y = yr.
Ordered triples and quadruples, etc., could be introduced the same way, but its easier
to define
<x, y, z> = <<x, y>, z>
and extend that idea to quadruples, etc.
Cartesian Product
To any sets X and Y corresponds a set X Y, called their Cartesian product, whose
members are the ordered pairs whose first and second entries belong to X and Y:
<x, y> 0 X Y ] x 0 X & y 0 Y.
Cartesian products of three or more sets are introduced as follows:
X Y Z = (X Y ) Z
<x, y, z> 0 X Y Z ] x 0 X & y 0 Y & z 0 Z.
Relations
2008-01-29 16:02
BASIC SET THEORY Page 5
To each relation R correspond two sets, called its domain and range, whose members
are the first and second entries of the members of R:
x 0 Dom R ] y [x R y] y 0 Rng R ] x [x R y].
Converse
Relative Product
The following associative law is fundamental: for any R and S as described and any
relation Q between sets W and X ,
(Q*R)*S = Q*(R*S).
Proof. Suppose w ((Q*R)*S) z. Then
y [w (Q*R) y & y S z ]
b
x [w Q x & x R y]
` b
x (R*S) z
` b
w (Q*(R*S)) z.
Thus the left hand side of the associative law equation is included in the right hand side.
You can demonstrate the reverse inclusion similarly.
The associative law permits the abbreviation Q*R*S for (Q*R)*S or Q*(R*S). The
following law is also important: for any relations R and S as described earlier,
T = R*S | T = S*R.
2008-01-29 16:02
Page 6 BASIC SET THEORY
Identity
Image
To each relation R and each set A corresponds a subset R[A] of Rng R called the
image of A under R:
y 0 R[ A] ] x [x 0 A & x R y].
For each relation S,
(R*S)[ A] = S[R[ A]].
Functions
The functions from a set X to a set Y constitute a set Y X. Here are some rules for
manipulating these function sets:
Y = { } / | X =
X= X f Y | IX 0 Y X.
2008-01-29 16:02
BASIC SET THEORY Page 7
Composition
Injections
Surjections
Bijections
2008-01-29 16:02
Page 8 BASIC SET THEORY
Inverse
Union
To any sets X and Y corresponds a set X c Y called their union, whose members are
the members of X and those of Y:
t0XcY ] t0X w t 0 Y.
The union is their least upper bound in the following sense:
X, Y f X c Y X f Z & Y f Z | X c Y f Z.
These commutative and associative laws hold:
XcY=YcX X c (Y c Z) = (X c Y ) c Z.
Associativity permits the abbreviation X c Y c Z for either side of this equation.
2008-01-29 16:02
BASIC SET THEORY Page 9
Intersection
To any sets X and Y corresponds a set X 1 Y called their intersection, whose members
are the elements common to X and Y:
t 0 X 1 Y ] t 0 X & t 0 Y.
The intersection is their greatest lower bound in the following sense:
X 1 Y f X, Y Z f X & Z f Y | Z f X 1 Y.
If X 1 Y = , then X and Y are called disjoint. These commutative, associative, and
distributive laws hold:
X1Y=Y1X X 1 (Y c Z) = (X 1 Y ) c (X 1 Z)
X 1 (Y 1 Z) = (X 1 Y ) 1 Z X c (Y 1 Z) = (X c Y ) 1 (X c Z) .
Associativity permits the abbreviation X 1 Y 1 Z for either side of the second equation.
Union, Continued
To any set X corresponds a set ^X called its union, whose members are the members
of the members of X :
t 0 ^X ] X [ X 0 X & t 0 X ].
The union of X is its least upper bound in the following sense:
X [ X 0 X | X f ^X ] X [ X 0 X | X f Y ] | ^ X f Y.
For any sets X and Y, ^{X, Y } = X c Y.
Intersection, Continued
To any nonempty set X corresponds a set _ X called its intersection, whose members
are the elements common to all members of X :
t 0 _X ] X [ X 0 X | t 0 X ].
The intersection of X is its greatest lower bound in the following sense:
X [ X 0 X | _X f X ] X [ X 0 X | Y f X ] | Y f _X .
For any sets X and Y, _{X, Y } = X 1 Y.
2008-01-29 16:02
Page 10 BASIC SET THEORY
Often youll be interested in the union or intersection of the range of a function X with
domain I. This notation is common:
X
iI
i = { t : (i 0 I)[ t 0 X i ]} X
iI
i = { t : (i 0 I)[ t 0 X i ]}.
When the set I is clear from the context, these are usually abbreviated as ^ i X i and
_ i X i . This notation simplifies the statements of many rulesfor example, the distribu-
tive laws
A 1 ^ i X i = ^ i (A 1 X i ) A c _ i X i = _ i (A c X i ).
Relative Complement
In this paragraph, all sets are assumed to be subsets of a single set U. To each such set
X corresponds a set X, its complement (relative to U ), whose members are those
elements of U not in X:
X = {t 0 U : t X }.
These rules hold:
U = = U
X = X double negation
X c X = U X 1 X =
X f Y ] Y f X contraposition
X
iI
i =
i I
( X i) X
iI
i =
i I
( X i) de Morgan
Natural Numbers
Theres a set whose members are called natural numbers. Among its members is
, which in this context is called zero and written 0. Theres a bijection
S: 6 {n 0 :n=
/ 0}
called the successor operation, which satisfies the first principle of recursive proof:
00Xf & n [ n 0 X | S(n) 0 X ] | X = .
From these considerations follows by a complicated argumentthe first principle of
recursive definition:
2008-01-29 16:02
BASIC SET THEORY Page 11
Binary sum and product operations + and @ and an order relation # on are
defined, and their usual properties proved, following standard recursive methods. In
particular, 1 is defined as S(0), so that S(n) = n + 1 for all n 0 ; and 2 is defined
as 1 + 1.
Integers
Following standard algebraic procedures, integers are defined as certain sets of ordered
pairs of natural numbers, and the familiar arithmetic operations are constructed for
them. They form an ordered integral domain in which each nonempty set of nonnega-
tive elements has a minimum element. All such domains are isomorphic.
Rational Numbers
Again following standard algebraic procedures, rational numbers are defined as certain
sets of ordered pairs of integers, and the familiar arithmetic operations are constructed
for them. They form a prime ordered field . All such fields are isomorphic.
Real Numbers
Following standard analytic procedures, real numbers are defined as certain sets of
sequences of rational numbersi.e. certain sets of functions from to and the
familiar arithmetic operations are constructed for them. They form a complete ordered
field . All such fields are isomorphic. (Alternative definitions of real numbers as
certain sets of rational numbers or certain sequences of integers are common.)
2008-01-29 16:02
Page 12 BASIC SET THEORY
Complex Numbers
Following a standard algebraic procedure, complex numbers are defined as pairs of real
numbers, and the familiar arithmetic operations are constructed for them. They form
an algebraically closed field .
Trivial questions
1. P=? P {} = ?
2. {x, x} = ?
3. X=? X=?
4. Dom = ? Rng = ?
5. Dom {<x, y>} = ? Rng {<x, y>} = ?
6. Dom ( X Y ) = ? Rng (X Y ) = ?
7. = ? R = {<x, y>} | R = ?
8. R = X Y | R = ? R = S | R = ?
9. *R = ? R* = ?
10. {<x, y>}*{<y, z>} = ?
11. (X Y )*(Y Z) = ? Careful!
12. Dom(R*S) f Dom(?) Rng(R*S) f Rng(?)
13. I = ? I{x} = ?
14. [A] = ? R[] = ?
15. R[Dom R] = ? R[Rng R] = ?
16. Xc=? X1=?
17. XcX=? X1X=?
18. {x} c { y} = ? {x} 1 { y} = ?
19. XcY=Y ] ? X1Y=Y ] ?
20. X c (X 1 Y ) = ? X 1 (X c Y ) = ?
21. IX [A] = ?
22. ^ = ?
23. ^{X } = ? _{X } = ?
24. Ac X
iI
i = (?)
iI
A1 X
iI
i = (?)
iI
2008-01-29 16:02
BASIC SET THEORY Page 13
Routine exercises
1. Prove S [ x 0 S | y 0 S ] | x = y.
2. Prove X f Y | P X f P Y.
3. Prove {{x}, {x, y}} = {{xr}, {xr, yr}} | x = xr & y = yr (Kuratowski, 1921). The
notion of ordered pair can be defined this way.
4. Prove X Y = Y X ] = X w X=Y w Y = .
6. Suppose R and Rr are relations and R f Rr. What can you say about the relation-
ship of
a. Dom R and Dom Rr, Rng R and Rng Rr ?
b. R and Rr ?
c. R*S and Rr*S, S*R and S*Rr ?
d. R[A] and Rr[A] ?
8. Prove that if R and S are relations, and Q = R*S, then Q = S *R. Prove that
if F : X 6 Y and G : Y 6 Z bijectively, then (G B F ) 1 = F 1 B G 1.
9. Prove that the composition of two injections is an injection. Do the same for surjec-
tions and bijections.
10. Prove that if R and S are relations, then (R*S)[A] = S[R[A]]. Prove that if
F : X 6 Y and G : Y 6 Z then (G B F )[A] = G[F [A]] .
2008-01-29 16:02
Page 14 BASIC SET THEORY
15. a. Prove ^ P X = X.
b. Prove X f P ^ X .
c. Find X so that X = P ^ X .
d. Find X so that X =/ P ^X .
16. When does a relative complement of a set equal that set itself ?
Substantial problems
2008-01-29 16:02
BASIC SET THEORY Page 15
Prove
a. Liminf n A n f Limsup n A n
b. n [ A n f A n+1 ] | Liminf n A n = ^ n A n = Limsup n A n
c. n [ A n+1 f A n ] | Liminf n A n = _ n A n = Limsup n A n .
6. Let m, n 0 and X and Y be sets with m and n elements. How many elements
have the sets
(X {0}) c (Y {1}) XY PX Y X?
How many injections are there from X to Y? How many bijections are there from
X to X?
References
2008-01-29 16:02
Page 16 BASIC SET THEORY
Monk, J. Donald. 1969. Introduction to Set Theory. New York: McGrawHill. LC:
QA248.M53. Axiomatic treatment, von NeumannBernaysGdelMorse version.
Beginning graduate level.
Stoll, Robert R. [1963] 1979. Set Theory and Logic. New York: Dover Publications.
Originally published by W. H. Freeman. LC: QA248.S7985. ISBN: 0-486-63829-4.
Pages 1154, 289306. Between the levels of Lipschutz and Monk.
Suppes, Patrick. 1960. Axiomatic Set Theory. Princeton: D. Van Nostrand. LC:
QA248.S92. Axiomatic treatment, ZermeloFraenkel version. Same level as Monk
1969. Rather close to this outline.
2008-01-29 16:02