Cardinality
Cardinality
Cardinality
Cardinality of sets
1
2 CHAPTER 7. CARDINALITY OF SETS
The following proposition will also be useful. It says that the relation
“can be put into 1-1 correspondence” is transitive: two sets that can be put
into 1-1 correspondence with the same set can be put into 1-1 correspondence
with each other.
Proposition 7.1.1 Let A, B and C be sets. If A and C can be put into 1-1
correspondence, and B and C can be put into 1-1 correspondence, then A
and B can be put into 1-1 correspondence.
• it is empty, or
• it can be put into 1-1 correspondence with {1, 2, . . . , n} for some natural
number n.
• |∅| = 0, and
Corollary 7.2.1 If A and B are finite sets, then |A| = |B| = n ≥ 0 if and
only if A and B can be put into 1-1 correspondence.
Corollary 7.2.1 suggests a way that we can start to measure the “size” of
infinite sets. We will say that any sets A and B have the same cardinality,
and write |A| = |B|, if A and B can be put into 1-1 correspondence. If A
can be put into 1-1 correspondence with a subset of B (that is, there is a 1-1
function from A to B), we write |A| ≤ |B|.
Strange and wonderful things happen when this definition is applied to
infinite sets. For example:
In each case above, one of the sets properly contains the other and, in fact,
contains infinitely many elements that are not in the other. It can run con-
trary to the intuition that these sets have the same cardinality. But that
is what the definition implies. If there is a 1-1 correspondence between two
sets, then it “pairs up” their elements. We have taken that to mean that the
two sets have the same “size”.
It is a good exercise to show that any open interval (a, b) of real numbers
has the same cardinality as (0, 1). A good way to proceed is to first find a 1-1
correspondence from (0, 1) to (0, b − a), and then another one from (0, b − a)
to (a, b). Thus any open interval or real numbers has the same cardinality
as (0, 1). Proposition 7.1.1 then implies that any two open intervals of real
numbers have the same cardinality.
It will turn out that N and R do not have the same cardinality (R is
“bigger”; in fact, so is (0, 1)). It will take the development of some theory
before this statement can be made meaningful.
Proof.
(⇒) The implication is easy to see if X is a finite set. If X is countably
infinite, then there is a 1-1 correspondence f : N → X, and the sequence
f (1), f (2), f (3), . . . contains every element of X.
(⇐) Suppose there is a sequence x1 , x2 , . . . that contains every element
of X (at least once). Define f (1) = x1 , and for n ≥ 2 let f (n) be the first
element of the sequence that does not belong to {f (1), f (2), . . .} ∩ X. Then
f is 1-1 by its construction. To see that f is onto, take any y ∈ X. Then
y appears somewhere in the sequence. Suppose xi is the first element of
the sequence that equals y. Then, by the description of f , y = f (n) for
n = 1 + |{x1 , x2 , . . . , xi−1 }|. Hence f is onto. Since f is also 1-1, it is a 1-1
correspondence.
Theorem 7.4.1 suggests a really good way to think about countable sets.
A countable set is a set whose elements can be systematically listed so that
every element eventually apears. Since every element of the set appears in
the list, if we go far enough along the list we will eventually find any element
we’re looking for.
We will now explore some amazing consequences of Theorem 7.4.1. Notice
that the sequence in the statement can contain elements that are not in X.
It can come as quite a shock that the set of rational numbers is countable.
We have all of the tools to prove it, but first will illustrate the argument by
showing that N × N is countable. For reasons that will become evident, the
method of proof is called “diagonal sweeping”.
.. .. ..
. . .
(1, 4) (2, 4) (3, 4) ···
Proof. List the rationals as shown in Figure 7.2. The first row consists of the
rational numbers with denominator 1, the second row consists of those with
denominator 2, and so on. In each row, the numerators appear in the order
0, −1, 1, −2, 2, . . .. Every rational number appears because its sign (+ or −)
can be associated with its numerator. A sequence in which every rational
number appears (many times) is obtained by “sweeping out” the figure as
illustrated.
.. .. ..
. . .
0/4 −1/4 1/4 ···
Notice that, on the diagonals in the figure, the sum of the absolute value
of the numerator and the absolute value of the denominator is constant. The
sum of these numbers on the i-th diagonal is i. Hence, a rational number
a/b appears in the list when the elements on diagonal |a| + |b| are listed.
Almost exactly the same argument – make an array and systematically
sweep it out – proves the following, more general, theorem.
• it is finite; or
Each dij is a decimal digit, that is, a number between 0 and 9 inclusive.
We now use the list define a real number x ∈ (0, 1) which, by its definition,
can not be in the list. The infinite decimal expansion of x is x = 0.x1 x2 x3 . . .
where, for i = 1, 2, . . ., (
5 if dii = 6
xi =
6 otherwise
Then x ∈ (0, 1).
For any integer i ≥ 1, the number x = 0.x1 x2 x3 . . . can not equal the i-th
number is the list, 0.di1 di2 . . . because, by definition, xi 6= dii . (That is, these
numbers differ in the i-th digit after the decimal point.) SInce the number x
has only one decimal expansion, it follows that x can not appear anywhere
in the list, contrary to the assumption that the list contains every element
of (0, 1). Therefore, (0, 1) is uncountable.
The proof method is called “Cantor diagonalization” after Georg Cantor,
and because the number x is constructed by changing the value of the “diag-
onal” digits dii . The numbers 5 and 6 were used because they are not 0 and
9, that is, by using 5 and 6 we could not inadvertently construct a decimal
expansion of a number that is in the list because it has a second, different,
decimal expansion.
The same proof shows, for example, that the set of infinite sequences of 0s
and 1s is uncountable. (The set of finite sequences of 0s and 1s is countable).
So far, we have two methods to prove that a set is uncountable. We add
a third to the list, and provide a justification for it.
• Cantor diagonalization.
7.6. OTHER CARDINALITIES 11
P(X) defined by f (x) = {x} for each x ∈ X is 1-1, so (since replacing the
target of this function by its range this function to its range gives a 1-1
correspondence between X and a subset of P(X)) the cardinality of P(X) is
“at least as big” as the cardinality of X.
Theorem 7.6.1 No set can be put into 1-1 correspondence with its power
set.