Skip to content
DAH

Complete Lean proof of Fermat's Last Theorem produced by an agentic formalization

VerifiedFormalizationmachine-checked artifact· claimed by Anthropic (repository anthropics/fermats-last-theorem) on Sep 4, 2026
✓ 2 passed✗ 0 failed○ 2 open

What is claimed

About 13 million lines of Lean following the Darmon–Diamond–Taylor exposition of Wiles–Taylor–Wiles prove Mathlib's statement of FLT, with small exponents handled via existing regular-prime work. It compiles about twenty times slower than Mathlib and is not integrated with it. It certifies a known theorem; it does not provide the reusable, Mathlib-integrated Galois-representation infrastructure that the Imperial project targets.

Status: Verified

Kevin Buzzard compiled the repository, ran Comparator against the FLT statement ('it checks out') and inspected non-theorem code flagged by the agents (4 Sep 2026).

Checks

4 checks
  1. 1.✓ PassedMachine-checked

    Comparator check of the final FLT statement

    Buzzard compiled the repository and Comparator accepted the statement against Mathlib's FermatLastTheorem.

    Source
  2. 2.✓ PassedRead and checked

    Manual review of non-theorem code

    Buzzard checked the code the agents flagged as not being theorems (a convenience tactic) and found nothing that changes the statement.

    Source
  3. 3.○ OpenRead and checked

    Map which deep inputs are proved and which are imported

    Buzzard's post says the repository proves the whole argument, including Fontaine theory and Mazur's Eisenstein-ideal results, but does not say how Langlands–Tunnell and Ribet's level lowering are handled. A dependency map would settle this.

  4. 4.○ OpenReproduced

    Second independent rebuild and axiom printout

    Publish a clean-room build log with #print axioms FermatLastTheorem output from a party other than the author and Buzzard.