This is a classic proof that I'll work through carefully. Let me structure this to show:
- The setup - assume countable enumeration
- Construct the diagonal sequence
- Show it can't be in the enumeration
- Derive the contradiction
Let me write this out step by step.
Theorem: The set of infinite binary sequences is uncountable.
Proof:
We'll prove this by contradiction using Cantor's diagonal argument.
Step 1: Setup - Assume Countability
Suppose the set of all infinite binary sequences is countable. This means we can enumerate all such sequences in a list (a bijection with ℕ would exist).
Let's denote the set of infinite binary sequences as S = {sequences of 0s and 1s extending infinitely}.
If S is countable, then there exists a complete enumeration:
- s₁ = (s₁,₁, s₁,₂, s₁,₃, s₁,₄, ...)
- s₂ = (s₂,₁, s₂,₂, s₂,₃, s₂,₄, ...)
- s₃ = (s₃,₁, s₃,₂, s₃,₃, s₃,₄, ...)
- ...
where each sequence sᵢ = (sᵢ,ⱼ)ⱼ₌₁^∞ is an infinite sequence of 0s and 1s, and every possible infinite binary sequence appears somewhere in this list.
We can also write this as a doubly-indexed array where entry (i,j) contains sᵢ,ⱼ ∈ {0,1}:
Position: 1 2 3 4 ...
s₁: s₁,₁ s₁,₂ s₁,₃ s₁,₄ ...
s₂: s₂,₁ s₂,₂ s₂,₃ s₂,₄ ...
s₃: s₃,₁ s₃,₂ s₃,₃ s₃,₄ ...
s₄: s₄,₁ s₄,₂ s₄,₃ s₄,₄ ...
...
Step 2: Construct the Diagonal Sequence
Now I'll create a new infinite binary sequence d = (d₁, d₂, d₃, ...) by taking the diagonal elements and flipping each bit. For each position i, I set dᵢ to be the opposite of sᵢ,ᵢ (the i-th element of the i-th sequence). This ensures d differs from every sequence in our enumeration at least at one position.
Step 3: Show d is not in the enumeration
Suppose d actually appears in the enumeration as d = sₖ for some k. Then dⱼ = sₖ,ⱼ for all positions j. But when I look at position j = k specifically, I get dₖ = sₖ,ₖ, which contradicts how I constructed d to flip the diagonal bit.
By construction, dₖ = 1 - sₖ,ₖ, so I'd need 1 - sₖ,ₖ = sₖ,ₖ. This gives 2sₖ,ₖ = 1, which is impossible since sₖ,ₖ must be either 0 or 1.
This contradiction means d cannot be anywhere in my enumeration, even though it's clearly a valid infinite binary sequence. So the set of all such sequences must be uncountable. is a beautiful and classic proof. Let me write it out in a polished way.
The construction guarantees that d cannot appear anywhere in the enumeration—it differs from each sequence at a specific position, making it fundamentally distinct from every entry in the list.
Cantor's Diagonal Argument: Uncountability of Binary Sequences
Theorem
The set of infinite binary sequences is uncountable.
Proof
Step 1: Assume Countability (for contradiction)
Suppose the set S of all infinite binary sequences is countable. Then there exists a complete enumeration of all sequences:
s1,s2,s3,s
where each si=(si,1,s with .
We represent this as an infinite table:
| Position | 1 | 2 | 3 | 4 | ... |
|---|
| s1 | s1,1 | |
Step 2: Construct the Diagonal Sequence
Define a new binary sequence d=(d1,d2,d3 by :
di=1−si,ifor each i∈
This means:
- d1=1−s1,1 (flip position 1 of sequence 1)
- (flip position 2 of sequence 2)
Crucially: d is a valid infinite binary sequence, so d∈S.
Step 3: Show d Cannot Be in the Enumeration
By assumption, d must appear somewhere in our enumeration. So suppose d=sk for some k∈N.
Then for every position j:
dj=sk,j
In particular, at position j=k:
dk=sk,k
But by the construction of d:
dk=1−sk,k
Therefore:
1−sk,k=sk,k
⟹2sk,k=1
Step 4: Contradiction
This equation has no solution for sk,k∈{0,1}:
- If sk,k=0: then 2(0)=0 ✗
Conclusion: The sequence d exists as a valid infinite binary sequence, yet it differs from every sequence in the enumeration (specifically, d differs from si at position i). This contradicts the assumption that we could enumerate all binary sequences.
Therefore, S is uncountable. ∎
Key Insight
The diagonal sequence d escapes the enumeration because:
- It's constructed to differ from s1 at position 1
- It's constructed to differ from s2 at position 2
- It's constructed to differ from s at position for every
No enumeration can be complete enough to capture this "new" sequence.