Consider the following procedure for constructing the cantor set $C$. Whenever I say "$x$ is in $C$", read "$[x,x]$ is in $C$".
Step 0. Take $I_0 = $ {$[0,1]$}, and let $n=0$
Step 1. For each interval $[a,b]$ in $I_n$, add $a$ and $b$ to $C$
Step 2. For each interval $[a,b]$ in $I_n$, add to $I_{n+1}$ the following intervals:
- $[a,a+(b-a)/3]$
- $[b-(b-a)/3, b]$
Step 3. Increment $n=n+1$, and Goto step 1
According to my understanding this should enumerate all elements of the cantor set, but then this is impossible because a diagonalization argument shows that the cantor set is uncountable, so what am I doing wrong?
Step 1 you have to put just b, or a. Depending what step you are. Look in that way you conting 0 a lot of times. But in that way, the number of element is not uncontable...