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

Step-by-step solved exercise: Cardinals

Which sequence does the diagonal proof build to escape a list?

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

Step-by-step solution

  1. Let \(\displaystyle s_1,s_2,\dots\) be a list of binary sequences.

    \[\displaystyle s_1,s_2,s_3,\dots\]
  2. For each \(\displaystyle n\), take the \(\displaystyle n\)-th term of the \(\displaystyle n\)-th sequence.

    \[\displaystyle s_n(n)\]
  3. Define the new sequence by complementing each of those terms.

    \[\displaystyle t(n)=1-s_n(n)\]
  4. The sequence \(\displaystyle t\) differs from each \(\displaystyle s_n\) at position \(\displaystyle n\), so it is not in the list.

    \[\displaystyle t(n)\neq s_n(n)\ \forall n\]

Answer

The one whose \(\displaystyle n\)-th term is the complement of the \(\displaystyle n\)-th term of the \(\displaystyle n\)-th sequence.

🎯 Build my path to this exercise