Cantor's diagonal theorem · Exercise-CANTOR-S-DIAGONAL-THEOREM-010

Step-by-step solved exercise: Cardinals

Let \(\displaystyle f\colon\mathbb{N}\to\{0,1\}^{\mathbb{N}}\) be any function. Which of these sequences is guaranteed not to lie in the image of \(\displaystyle f\), for every choice of \(\displaystyle f\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Fix any function \(\displaystyle f\); each \(\displaystyle f(n)\) is a binary sequence.

    \[\displaystyle f(n)\in\{0,1\}^{\mathbb{N}}\]
  2. Define \(\displaystyle u\) by complementing the diagonal of \(\displaystyle f\).

    \[\displaystyle u(n)=1-f(n)(n)\]
  3. If \(\displaystyle u=f(k)\) for some \(\displaystyle k\), evaluate both at position \(\displaystyle k\).

    \[\displaystyle u(k)=f(k)(k)\]
  4. Then \(\displaystyle 1-f(k)(k)=f(k)(k)\), which is impossible; so \(\displaystyle u\) is never in the image of \(\displaystyle f\), and the correct choice is \(\displaystyle u(n)=1-f(n)(n)\).

    \[\displaystyle u(n)=1-f(n)(n)\]

Answer

\(\displaystyle u(n)=1-f(n)(n)\).

🎯 Build my path to this exercise