Cantor's Diagonalization Argument

R is uncountable.

Proof
We'll show that [0,1]⊆R is uncountable. Let f:N→[0,1]. We'll show f is not onto. Recall that each x∈[0,1] has an infinite decimal representation:

x=0.b1b2...

where each bi∈{0,...,9}.

1=0.9999999…, so 1 can be represented this way.

Let's look at each f(n):

f(1)=0.a11a12a13a14…f(2)=0.a22a22a23a24…f(3)=0.a31a32a33a34…f(4)=0.a41a42a43a44…⋮

For n∈N, let bn={7 if ann≠73 if ann=7 (note: the numbers here don't matter. It just matters we change each number to some new number).

Now consider x=0.b1b2b3b4…. Clearly x∈[0,1] still. But since b1≠a11 by our mapping, then x≠f(1). Similarly since b2≠a22 then x≠f(2). Repeat this argument, so then x≠f(n) for all n. Therefore, f is not onto, completing the proof.
☐