Notes by Dr. J. Santos
Notes by Dr. J. Santos
Notes by Dr. J. Santos
5 , etc.
A.2
To indicate that two sentences designated by, say, the symbols p and q are
equivalent, we write p q. We also say with the same meaning that p if and only
if q. Following a common practice, we will often abreviate if and only if to i.
Notice that p q is itself a sentence: it is true when p and q have the same
logical value, and false when they have dierent values.
Using the notion of equivalence of sentences we may rewrite the rst axiom as
Axiom 1b. Consider two sets A and B. Then A = B if and only if x A x B.
A.3. Operations on sets. Given two sets U, V , a natural thing to do is to join
the elements of U and V into a single set:
Denition 1 (Union of two sets). Let U, V be sets. The union of U and V , U V ,
is the set whose elements x are characterized by
x U V (x U or x V )
For example {1, Z} {Z, 2} = {1, Z, 2}.
We should stop here to clarify the meaning of or, which is somehow ambiguous
in everyday language. If p and q are sentences then p or q means that at least one
of the given sentences p, q is true. Hence, the sentence p or q is only false if both
p and q are false.
Other natural way of building a set is to consider the elements common to both
sets U and V :
Denition 2 (Intersection of Two Sets). We dene the intersection of two sets
U, V , and write U V , as the set whose elements are characterized by
x U V x U and x V
For example {R, {1}} {{1}, 2} = {{1}}.
The meaning of and is the usual one in everyday language: If p and q are
sentences then p and q means that both p and q are true.
If A and B have no elements in common then A B is a set with no elements:
Denition 3. The empty set, , is the set containing no elements (hence the
sentence x is always false). By the rst axiom there is only one such set. If two
sets A, B have no common elements, that is if A B = , they are called disjoint.
Proposition 1. Let A be any set. Then
(1) A = ;
(2) A = A.
Proof.
(1) By axiom 1b, (A = ) (x A and x x ). So we want to
show that the sentence (x A and x ) x is true.
Since x is false, we get the sentence x A and False False which
is a true sentence.
(2) Now we want to show that (x A or x ) x A is a true sentence.
We have two cases:
(a) x A is true. Then we get True or False True which is a true
sentence.
(b) x A is false. Then we get False or False False which is also a
true sentence.
This concludes the proof.
A.3
(x A x B) and (x B x C) = (x A
x C)
So we assume the following two sentences are true
i. x A x B
ii. x B x C
Now we want to show that x A x C so we assume that
iii. x A
is true and try to prove that x C is true. Now i. and iii. together show
that x B is true and this together with ii. shows that x C is true, as
desired.
This nishes the proof
A.4
A.5
(3) A B B c Ac
(4) c = E, E c =
(5) A Ac = , A Ac = E
(6) (A B)c = Ac B c
(7) (A B)c = Ac B c
A.7. Expressions with Variables. In mathematical language it is frequent the
use of expressions which depend on one or more variables, that is, symbols (usualy
letters) which can be substituted by elements of a certain set. For example, consider
the expressions
x, (x y)2 , x2 2xy + y 2
where x, y can be subsituted by elements of the set of real numbers R. Now consider
the sentences
x2 > 0, 2x = x2 , x2 y 2 = 0, x y > y z
with x, y, z R. These sentences will be true or false depending on the value of
the variables x, y, z. In general, given a set X and a sentence p(x), with x taking
values in X, three possibilities may occur:
(1) p(x) is true for all x X
(2) p(x) is false for all x X
(3) There exist x, y X such that p(x) is true and p(y) is false
To distinguish betwen these 3 cases we introduce the following symbols, called
quantiers:
A.6
p(x) states that for any x X, p(x) is true; that is, we are in case (1).
xX
p(x) states that there is at least one element x X such that p(x) is
xX
xR
xR
xR
Now, if we negate p(x) then we are not in case (1) so we are either in case (2)
xX
or in case (3). That is, not p(x). In a similar fashion, it follows that, if we
xX
negate p(x), then we are not in case (1) and we are not in case (3). Hence we
xX
are in case (2), which is not p(x). These laws, known as the second De Morgan
xX
xX
For example,
x2 0
xR
x = yz
x >0
not
xR
not
xR yR zR
x=
yz
xR yR zR
y x.
xR yR
It states that, given any number x we can always nd a number y such that y x.
This sentence is clearly true: given any x we can take for example y = x. Then
clearly y x. Consider what happens if we switch the quantiers: we get the
sentence y x. This sentence states that there is a number y which is
yR xR
smaller or equal to any other number. This certainly seems false. But to prove it,
it is not enough to claim that we cannot nd any such number! The easier way to
show this sentence is false is to show that its negation is true. The negation of the
sentence is y > x. This sentence is clearly true: given any y choose for
yR xR
example x = y 1.
We just saw that exchanging the order of the quantiers and does not produce
equivalent sentences. On the other hand, exchanging the order of quantiers of the
same type always gives an equivalent sentence. For example, the propositions
(x3 = y 3 x = y)
(x3 = y 3 x = y)
xR yR
yR xR
x,y R
(x3 = y 3 x = y)
A.7
Remark 3. It is common to write simply p(x) q(x) with the meaning that
(p(x) q(x)). In the same way it is common to write p(x) q(x) instead of
xX
xX
x<1x<3
(x < y and y < z) x < z
x2 > 0 x = 0
(x > 3 or x = 3) x 3
Exercise 12. Show that the following are equivalent sentences:
(1) A B
(2) For any set C, (B C) A = B (C A)
(3) There is a set C such that (B C) A = B (C A)
A.8. Collections of Sets. As a direct application of quantiers we can generalize
the notions of union and intersection to arbitrary collections of sets (the name
collection of sets is a way to refer to a set whose elements are also sets, for example
P (E)). Let C be a collection of sets. Then we can join all the elements of all the
sets in C into a new set:
terized by
x
X x X
XC
X C
x
X x X
XC
X C
X = A B,
X =AB
XC
XC
X=
A.9. Sets dened by sentences. Given a set X, a very important way to build
subsets of X is the following: consider a sentence p(x) where x takes values on the
set X. Then we build the subset of X whose elements are exactly those for which
p(x) is true. We denote this set by {x X | p(x)}:
y {x X | p(x)} (y X and p(y))
One of the more important axioms of set theory is the following:
Axiom 2. The set {x X | p(x)} exists.
Exercise 15. Show that
(1) A B = {x A | x B};
(2) A B = {x A | x
/ B}.
A.8
X = x A| x X
X C
XC
We will now prove that the intersection of an empty collection of sets is not a
set (the only example of a nonexisting set we will encounter):
Proof. We will prove by contradiction. This method consists in assuming the result
we want to prove is false and arriving at a contradiction. The contradiction
shows
that our assumption was wrong, hence the result is true. So assume A = X X
is a set. By axiom 2 we can build the set
B = {Y A | Y
/ Y}
Then, by denition of B, the following is a true sentence:
B B (B A and B
/ B)
It follows that both sentences B
/ A and B
/ B must be true. Then, by denition
of A,
B
/ A not B X B
/X
X
X= xE: xX
X C
XC
X=E
X
References
These notes were, in several places, inspired by the presentation of the material
in the following sources:
[1] J. Campos Ferreira, Elementos de L
ogica Matem
atica e Teoria dos Conjuntos,
Lecture Notes, Dept. Math. Instituto Superior Tecnico, 2001 (in portuguese)
[2] P. R. Halmos, Naive Set Theory, SpringerVerlag, 1974
[3] James R. Munkres, Topology, Prentice Hall, 2nd Edition, 1999