Cantor's diagonal theorem · Exercise-CANTOR-S-DIAGONAL-THEOREM-007
Step-by-step solved exercise: Cardinals
What does the diagonal argument imply for \(\displaystyle \mathbb{R}\)?
Cantor's diagonal theorem · Exercise-CANTOR-S-DIAGONAL-THEOREM-007
What does the diagonal argument imply for \(\displaystyle \mathbb{R}\)?
Let \(\displaystyle S\) be the set of binary sequences that do not end in repeated ones. The map sending each \(\displaystyle s\in S\) to its base-2 value is injective into \(\displaystyle [0,1]\).
Comment: This avoids double expansions of dyadic rationals.
If \(\displaystyle \mathbb{R}\) were countable, so would \(\displaystyle [0,1]\) be, and since \(\displaystyle S\) injects into \(\displaystyle [0,1]\), \(\displaystyle S\) would be countable.
Let \(\displaystyle T\) be the set of sequences ending in repeated ones. Each is determined by a finite prefix, and there are countably many finite prefixes, so \(\displaystyle T\) is countable.
Then \(\displaystyle \{0,1\}^{\mathbb{N}}=S\cup T\) would be a union of two countable sets, hence countable.
This contradicts the diagonal argument, which shows that \(\displaystyle \{0,1\}^{\mathbb{N}}\) is not countable. Therefore \(\displaystyle \mathbb{R}\) is not countable.
\(\displaystyle \mathbb{R}\) is not countable.