Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Grades 9–12

Countability and Cantor's diagonal argument

Name: ______________________

Date: ______________________

You will learn to

  • Define when two sets have the same cardinality, and when a set is countable or uncountable
  • Show that Z\Z, N×N\N \times \N and Q\Q are countable by constructing explicit enumerations or bijections
  • Define the power set P(A)\mathcal{P}(A) and prove Cantor's theorem that no function A→P(A)A \to \mathcal{P}(A) is surjective
  • Reproduce Cantor's diagonal argument that [0,1)[0, 1) is uncountable, handling numbers with two decimal expansions
  • Explain why transcendental numbers must exist, and what is known about sizes between N\N and R\R
  1. 1.

    The zigzag z:N→Zz : \N \to \Z lists the integers as z(0),z(1),z(2),⋯=0,−1,1,−2,2,…z(0), z(1), z(2), \dots = 0, -1, 1, -2, 2, \dots What is z(7)z(7)?

  2. 2.

    Compute Cantor's pairing π(2,3)=(m+n)(m+n+1)2+n\pi(2, 3) = \dfrac{(m + n)(m + n + 1)}{2} + n for m=2m = 2, n=3n = 3.

  3. 3.

    Which pair (m,n)(m, n) has π(m,n)=12\pi(m, n) = 12?

    • A.(2,2)(2, 2)
    • B.(3,1)(3, 1)
    • C.(1,3)(1, 3)
    • D.(0,4)(0, 4)
  4. 4.

    Which of these sets are countable? (Choose all that apply.)

    • A.Z\Z
    • B.Q\Q
    • C.N×N\N \times \N
    • D.the algebraic numbers
    • E.R\R
    • F.P(N)\mathcal{P}(\N)
    • G.the irrational numbers
  5. 5.

    A list begins r1=0.5123…r_1 = 0.5123\ldots, r2=0.3456…r_2 = 0.3456\ldots, r3=0.9995…r_3 = 0.9995\ldots. Using the lesson's rule (digit nn of xx is 44 if digit nn of rnr_n is 55, and 55 otherwise), how does xx begin?

    • A.0.455…0.455\ldots
    • B.0.544…0.544\ldots
    • C.0.555…0.555\ldots
    • D.0.459…0.459\ldots
  6. 6.

    After seeing the diagonal argument, Kofi says: “Fine, the list missed xx. So put xx at the front of the list — now nothing is missing.” What is the best reply?

    • A.The new list has its own diagonal number, which is missing from it. The argument shows that every list misses a number.
    • B.You are not allowed to change the list.
    • C.The list is infinite, so there is no front to put it at.
    • D.Kofi is right; the argument only shows that some lists are incomplete.
  7. 7.

    Let A={1,2,3}A = \{1, 2, 3\} and define f:A→P(A)f : A \to \mathcal{P}(A) by f(1)={1,2}f(1) = \{1, 2\}, f(2)={3}f(2) = \{3\}, f(3)={1,3}f(3) = \{1, 3\}. List the elements of Cantor's diagonal set D={a∈A:a∉f(a)}D = \{a \in A : a \notin f(a)\}.

  8. 8.

    How many elements does P(P({1,2}))\mathcal{P}(\mathcal{P}(\{1, 2\})) have?

  9. 9.

    Which Lean statement expresses Cantor's theorem for a type α?

    • A.∀ f : α → Set α, ¬ Function.Surjective f
    • B.∀ f : α → Set α, ¬ Function.Injective f
    • C.∀ f : Set α → α, ¬ Function.Surjective f
    • D.∃ f : α → Set α, Function.Bijective f
  10. 10.

    Write pair(m, n) computing Cantor's π(m,n)=(m+n)(m+n+1)/2+n\pi(m, n) = (m+n)(m+n+1)/2 + n, and its inverse unpair(k), which returns the pair (m, n) with pair(m, n) == k. (Hint: find the diagonal d=m+nd = m + n as the largest dd with d(d+1)/2≤kd(d+1)/2 \le k.)

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0