“Not everything that counts can be counted”
—William Bruce Cameron
We have seen that the infinite sets , , , are all countably infinite (and hence have the “same size” as ). We might ask, then, whether all infinite sets are countable. The answer is no; there are lots of sets which are strictly bigger than ; in this section we will look at a few examples.
Earlier we saw that the set of all finite binary sequences is countable, because we can enumerate all the elements of this set in order. In contrast, the set of all infinite binary sequences is not countable; this set is strictly larger than the infinite set of natural numbers.
The set of infinite binary sequences is not countable
Proof: Suppose, by way of contradiction, that the set were countable, so that we can create a complete list of all possible infinite binary sequences. Let be the digit in the sequence. Then, we can define a new sequence as follows:
That is, the digit in is the opposite of the digit in . Note that because and differ in the first digit. Similarly because and differ in the second digit, and in general because and differ in the digit.
Thus is an infinite binary sequence that doesn’t appear at any finite index in the list ; this contradicts our assumption that the list contains all infinite binary sequences, so the set of such sequences is not countable.
Earlier we saw that the collection of all finite sets of natural numbers is countable, because any such set could be stored in a finite computer file. In contrast, the set of all sets of natural numbers is not countable.
The set of all sets of natural numbers is infinite but not countable:
Proof:
There is a one-to-one correspondence between sets of natural
numbers and infinite binary sequences. Specifically, the set
corresponds to a sequence whose
digit is 1 if is an element of and 0
otherwise.
For example, the set of all even numbers contains 0, 2, 4, etc., and hence coresponds to the infinite sequence
while the set coresponds to the infinite sequence
Since the infinite binary sequences cannot be enumerated, neither can .
This argument can be generalized (“Cantor’s Theorem”) to show that for every set ! This immediately gives us an infinite sequence of larger and larger infinite sets:
Finally, while the set of real numbers than can be printed by a Python program is countable, the set of all real numbers is not countable.
is not countable.
Proof:
We can argue that the real numbers between 0 and 1 are
uncountable because any such number can be represented as an infinite
decimal expansion (e.g., 0.14159265…). There are even more of these
than infinite binary expansions, so the real numbers between 0 and 1 are
uncountable. And there are even more real numbers than there are real
numbers between 0 and 1, so is
uncountable.
Of course, the number of possible math papers and textbooks is infinite but countable. It follows that most real numbers cannot be directly mentioned or described because the number of real numbers is a much larger infinite set than the number of possible descriptions!