Skip to content
The Lumenary

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

The Lumenary · Research pathways

Formalising published mathematics

Name: ______________________

Date: ______________________

You will learn to

  • Write a blueprint that breaks a published theorem into formalisable definitions and lemmas and records their dependencies
  • Formalise a short published result — Zagier's one-sentence proof of Fermat's two-squares theorem — recording every gap and implicit assumption found along the way
  • Identify the trusted base of a formal proof and check that a formal statement faithfully captures the published theorem
  • Describe completed large formalisations, such as the odd order theorem, the Kepler conjecture and the Liquid Tensor Experiment, and what they did and did not verify
  • Contribute to a large library such as Mathlib, and work in a collaborative formalisation project
  1. 1.

    Which of the following does a blueprint for a formalisation project record? (Choose all that apply.)

    • A.An informal statement (and proof) for each definition and lemma
    • B.For each item, the name of its formal counterpart
    • C.Which earlier items each statement or proof uses
    • D.A machine-checked proof of every item
  2. 2.

    In Lean, natural-number subtraction is truncated. What is the value of (2 : ℕ) - 5 + 4?

  3. 3.

    For p=29p = 29, how many triples (x,y,z)(x, y, z) of positive integers satisfy x2+4yz=29x^2 + 4yz = 29? (This is ∣S∣|S|.)

  4. 4.

    Zagier's three cases do not cover the boundary x=y−zx = y - z. Which fact about pp shows that no element of SS lies on this boundary?

    • A.pp is not a perfect square
    • B.pp is odd
    • C.p≡1(mod4)p \equiv 1 \pmod 4
    • D.Nothing: the boundary case is harmless
  5. 5.

    Take n=45=4⋅11+1n = 45 = 4 \cdot 11 + 1, which is not prime. How many fixed points does Zagier's map have on S={(x,y,z):x,y,z≥1, x2+4yz=45}S = \{(x, y, z) : x, y, z \ge 1,\ x^2 + 4yz = 45\}?

  6. 6.

    Someone "proves" that every n≡1(mod4)n \equiv 1 \pmod 4 is a sum of two squares by repeating Zagier's sentence. For n=21n = 21, which claim of the sentence is false?

    • A."has exactly one fixed point"
    • B."the finite set SS"
    • C."the involution"
    • D.the parity lemma
  7. 7.

    Which Lean statement faithfully formalises "every prime p≡1(mod4)p \equiv 1 \pmod 4 is a sum of two squares"?

    • A.∀ p : ℕ, p.Prime → p % 4 = 1 → ∃ a b : ℕ, a ^ 2 + b ^ 2 = p
    • B.∀ p : ℕ, p % 4 = 1 → ∃ a b : ℕ, a ^ 2 + b ^ 2 = p
    • C.∀ p : ℕ, p.Prime → p % 4 = 1 → p % 2 = 0 → ∃ a b : ℕ, a ^ 2 + b ^ 2 = p
    • D.∃ p : ℕ, p.Prime ∧ p % 4 = 1 ∧ ∃ a b : ℕ, a ^ 2 + b ^ 2 = p
  8. 8.

    Lean has accepted a 5,000-line formalisation of a published theorem with no sorry. Which of the following must you still check yourself? (Choose all that apply.)

    • A.That the formal statement says what the published theorem says
    • B.That the definitions the statement uses agree with standard usage
    • C.That #print axioms shows no unexpected axioms
    • D.Every intermediate lemma, by hand
    • E.That the formal proof follows the paper line by line
  9. 9.

    The formalisation of the Feit–Thompson odd order theorem (completed in 2012) is a standard example of how formal proofs relate to published ones. What did it formalise?

    • A.A proof following later, reorganised published accounts (Bender–Glauberman 1994, Peterfalvi 2000), with new general libraries built along the way
    • B.The 1963 paper, line by line
    • C.Only the statement, with the proof assumed as an axiom
    • D.A new proof found by computer search
  10. 10.

    Write zagier_set(n), returning the sorted list of triples (x, y, z) of positive integers with x*x + 4*y*z == n, and zagier_map(t), Zagier's map with the paper's three cases. The tests check the set for small primes and that the map is an involution with the single fixed point (1, 1, k) for p = 4k + 1.

    Computational — Practice

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