Skip to main content
Logo image

Section 13.1 Basics and examples

If A is a set that has the same size as N, then we can think of a bijection Nโ†’A as โ€œcountingโ€ the elements of A (even though there are an infinite number of elements to count), in exactly the same way that we use our counting sets N<m to count finite sets.
countable
a set that is finite or has the same size as N
countably infinite
a countable set which has the same size as N
uncountable
a set that is not countable

Note 13.1.1.

  1. An uncountable set is necessarily infinite.
  2. Two sets which have the same size (i.e. there exists a bijection between them) are either both countable or both uncountable.
In case A is finite, the statement is precisely that of Fact 12.2.1. So assume A is infinite, in which case a sequence of the type described in the statement must also be infinite. Technically, an infinite sequence from A is a function Nโ†’A. The โ€œeach element of Aโ€ property is the same as saying the function is surjective, and the โ€œexactly onceโ€ property is the same as saying the function is injective. So a sequence of the described kind is exactly the same as bijection Nโ†’A, which is what is required for A to be the same size as N (i.e. countably infinite).
We have already constructed a bijection Nโ†’Z in Example 12.3.5, which shows that Z is countable.
To show that Q is countable, we will use Fact 13.1.2 and construct an infinite sequence which contains each element of Q exactly once. First, construct an infinite grid which contains all positive rational numbers. By zig-zagging through the grid, we obtain an infinite sequence which contains each positive element of Q at least once, though there are duplicates because an element of Q can have many different representations as a fraction.
A grid containing all positive rational numbers.
Figure 13.1.5. A grid containing all positive rational numbers.
A path through the grid containing all positive rational numbers.
Figure 13.1.6. A path through the positive rational numbers.
The path through the grid creates the following sequence of positive rational numbers. By crossing out duplicates, we obtain an infinite sequence which contains each positive rational number exactly once.
1,12,2,3,1,13,14,23,32,4,5,2,1,12,15,16,25,34,43,52,โ€ฆ
Finally, interleave the negative rational numbers into the above sequence, and insert 0 at the beginning.
0,1,โˆ’1,12,โˆ’12,2,โˆ’2,3,โˆ’3,13,โˆ’13,14,โˆ’14,23,โˆ’23,32,โˆ’32,4,โˆ’4,5,โˆ’5,โ€ฆ
Here is an example of an uncountable set. The argument to prove the set is uncountable is a famous one, so we encapsulate it as the proof of a Lemma, rather than just a plain Example.
We will show that no sequence of numbers from C can contain every element of C.
Suppose {ak} is an infinite sequence of elements of C. We can create an element rโˆˆC which is not in the sequence as follows. Set
r=0.r1r2r3r4โ‹ฏ,
where rk is the digit in the kth decimal place of r, according to the following rules.
  • If the kth decimal place of akโˆ’1 is 0, set rk=1.
  • If the kth decimal place of akโˆ’1 is 1, set rk=0.
Clearly every digit of r will be either a 0 or 1, and 0โ‰คr<0.2, so rโˆˆC. (The reason we use akโˆ’1 instead of ak in the rules to create r is to make sure we consider sequence element a0 somewhere in there.)
Now we have akโ‰ r for every kโˆˆN, since r and ak differ in the (k+1)th decimal place. Furthermore, rโˆˆC because it is between 0 and 0.2 and its decimal expansion involves only digits 0 and 1. Therefore, sequence {ak} does not contain every element of C because it does not contain r.

Remark 13.1.8.

  1. The โ€œdiagonalโ€ part of the name Cantorโ€™s diagonal argument refers to the following. If the decimal expansions of the real numbers in the sequence {ak} are written out in a grid so that each row is one of the numbers ak and each column represents a specific decimal place in the sequence numbers, then the rules to create r can be thought of as โ€œflippingโ€ the digits that occur in the diagonal positions of this grid. (Draw the grid for yourself to see the pattern!)
  2. Later in this chapter we will use Lemma 13.1.7 to prove that R itself is uncountable. (See Theorem 13.2.5.)