Skip to main content
Logo image

Section 13.1 Basics and examples

If \(A\) is a set that has the same size as \(\N\text{,}\) then we can think of a bijection \(\N \to 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 \(\natnumlt{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 \to A\text{.}\) 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 \to A\text{,}\) 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 \to \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.
\begin{gather*} 1, \;\;\; \frac{1}{2}, \;\;\; 2, \;\;\; 3, \;\;\; \xcancel{1,} \;\;\; \frac{1}{3}, \;\;\; \frac{1}{4}, \;\;\; \frac{2}{3}, \;\;\; \frac{3}{2}, \;\;\; 4, \;\;\; 5,\\ \xcancel{2,} \;\;\; \xcancel{1,} \;\;\; \xcancel{\frac{1}{2},} \;\;\; \frac{1}{5}, \;\;\; \frac{1}{6}, \;\;\; \frac{2}{5}, \;\;\; \frac{3}{4}, \;\;\; \frac{4}{3}, \;\;\; \frac{5}{2}, \;\;\; \dotsc \end{gather*}
Finally, interleave the negative rational numbers into the above sequence, and insert \(0\) at the beginning.
\begin{gather*} 0, \;\;\; 1, \;\;\; -1, \;\;\; \frac{1}{2}, \;\;\; -\frac{1}{2}, \;\;\; 2, \;\;\; -2, \;\;\; 3, \;\;\; -3, \;\;\; \frac{1}{3}, \;\;\; -\frac{1}{3}, \;\;\;\\ \frac{1}{4}, \;\;\; -\frac{1}{4}, \;\;\; \frac{2}{3}, \;\;\; -\frac{2}{3}, \;\;\; \frac{3}{2}, \;\;\; -\frac{3}{2}, \;\;\; 4, \;\;\; -4, \;\;\; 5, \;\;\; -5, \;\;\; \dotsc \end{gather*}
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 \(\mathscr{C}\) can contain every element of \(\mathscr{C}\text{.}\)
Suppose \(\{a_k\}\) is an infinite sequence of elements of \(\mathscr{C}\text{.}\) We can create an element \(r \in \mathscr{C}\) which is not in the sequence as follows. Set
\begin{equation*} r = 0.r_1 r_2 r_3 r_4 \dotsm\text{,} \end{equation*}
where \(r_k\) is the digit in the \(\nth[k]\) decimal place of \(r\text{,}\) according to the following rules.
  • If the \(\nth[k]\) decimal place of \(a_{k-1}\) is \(0\text{,}\) set \(r_k = 1\text{.}\)
  • If the \(\nth[k]\) decimal place of \(a_{k-1}\) is \(1\text{,}\) set \(r_k = 0\text{.}\)
Clearly every digit of \(r\) will be either a \(0\) or \(1\text{,}\) and \(0 \le r \lt 0.2\text{,}\) so \(r \in \mathscr{C}\text{.}\) (The reason we use \(a_{k-1}\) instead of \(a_k\) in the rules to create \(r\) is to make sure we consider sequence element \(a_0\) somewhere in there.)
Now we have \(a_k \ne r\) for every \(k \in \N\text{,}\) since \(r\) and \(a_k\) differ in the \(\nth[(k+1)]\) decimal place. Furthermore, \(r \in \mathscr{C}\) because it is between \(0\) and \(0.2\) and its decimal expansion involves only digits \(0\) and \(1\text{.}\) Therefore, sequence \(\{a_k\}\) does not contain every element of \(\mathscr{C}\) because it does not contain \(r\text{.}\)

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 \(\{a_k\}\) are written out in a grid so that each row is one of the numbers \(a_k\) 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.)