Uncountable sets [00HX]
- July 16, 2026
Is everything countable? [00HY]
- July 16, 2026
At this point you might wonder if every infinite set is countable. (But if so, why is there a name for it?) In fact, there are some infinite sets that are not countable!
The rationals are countable! [00HZ]
- July 16, 2026
Let’s think about \mathbb {Q}, the set of rational numbers. There are a lot, right? In between any two integers there are infinitely many rational numbers. If you pick two rational numbers that are really close together, there are infinitely many rational numbers between those. No matter how far you zoom in there will always be infinitely many rational numbers in the part of the number line you are looking at! It is like infinitely fuzzy fuzz. Surely there are more rational numbers than there are natural numbers, right?
Wrong! A rational number is just a pair of integers: a numerator and a denominator. The function f : \mathbb {Q} \to \Z \times \Z that sends the rational number p/q to the pair (p,q) is injective: if two rational numbers are not the same, p/q \neq r/s, then certainly the pairs (p,q) and (r,s) are not the same. So |\mathbb {Q}| \leq |\Z \times \Z | = |\mathbb {N}|! If you weren’t weirded out by the fact that |\mathbb {N} \times \mathbb {N}| = |\mathbb {N}| before, you should be now.
Proving a set uncountable [00I0]
- July 16, 2026
Are there any non-countable sets? How would we prove it if there were? Let’s use our superpower:
\begin {align*} &\phantom {\equiv } \neg \mathrm {Countable}(A) \\ &\equiv \neg \exists f:\mathbb {N} \to A .\; \mathrm {Bijective}(f) \\ &\equiv \neg \exists f:\mathbb {N} \to A .\; \mathrm {Injective}(f) \land \mathrm {Surjective}(f) \\ &\equiv \forall f:\mathbb {N} \to A .\; \neg \mathrm {Injective}(f) \lor \neg \mathrm {Surjective}(f) \end {align*}So to prove that a set A is not countable, we must show that for every possible function f from \mathbb {N} to A, either f is not injective or it is not surjective. Note that a function from \mathbb {N} to A is the same as an infinite list of values from the set A. So we have to show that every possible infinite list of A either has repeated elements, or leaves some elements out.
Our first uncountable set [00I1]
- July 16, 2026
Consider the set I of real numbers between 0 (inclusive) and 1 (exclusive). Each such real number can be written as an infinite decimal, 0.d_1 d_2 d_3 d_4 \dots (Note this even works for things with finite decimal expansions because we can stick an infinite number of zeros on the end, like 1/2 = 0.500000000\dots . There is also a finicky issue with some real numbers having multiple representations as infinite decimals, for example, 0.5000000000\dots = 0.4999999999\dots , but we’re not going to worry about this for now. It’s annoying but not too hard to deal with this.)
Now, suppose we have a list of real numbers. It might start something like this: \begin {align*} r_1 &= 0.d_{11}d_{12}d_{13}d_{14}\dots \\ r_2 &= 0.d_{21}d_{22}d_{23}d_{24}\dots \\ r_3 &= 0.d_{31}d_{32}d_{33}d_{34}\dots \\ r_4 &= 0.d_{41}d_{42}d_{43}d_{44}\dots \\ &\vdots \end {align*} Remember that this list represents a function \mathbb {N} \to I. We claim that no matter what this function is, it is not surjective, that is, there is at least one real number in the interval I that gets left out. We’re going to build a real number 0.c_1 c_2 c_3 c_4 \dots by specifying it digit-by-digit.
For the first digit, c_1, pick any digit which is not equal to d_{11}, the first digit of the first number in the list.
For the second digit, c_2, pick any digit which is not equal to d_{22}, the second digit of the second number in the list.
…and so on: for digit c_i pick any digit which is not equal to d_{ii}, the ith digit of the ith number in the list.
We now claim that the resulting number c = 0.c_1c_2c_3c_4\dots is nowhere on the list! It cannot be equal to r_1, because c and r_1 have different first digits. It cannot be equal to r_2, because they differ in their second digits. It cannot be equal to any r_i, because the ith digit of c was chosen in such a way that it is different than the corresponding digit of r_i.
We assumed nothing about our list of real numbers other than the fact that it was a list; we have therefore shown that any list of real numbers in the interval I must necessarily be incomplete. Therefore, it is not possible to create a bijection between \mathbb {N} and I, so the set of real numbers in the interval I is uncountable. (Of course, this means the entire set of real numbers \mathbb {R} is uncountable too.)