Anthropic formalizes Fermat's Last Theorem in Lean: 13.4M lines, largest proof ever
AlexKontorovich · x · 2026-09-05
Anthropic announced that one of its internal models, using the prove2.me platform, has formalized a complete proof of Fermat's Last Theorem in Lean — the final item on Freek Wiedijk's famous list of 100 formalization challenges, closing out the 20-year-old benchmark.
Key facts:
- Over 13.4 million lines of Lean code and 29,500 intermediate theorems — called "the largest Lean proof ever constructed"
- It follows the Darmon–Diamond–Taylor (1995) exposition of the Wiles–Taylor–Wiles argument, via the Langlands–Tunnell theorem and Ribet's level-lowering theorem, not the modern proof route
- The repo develops Fontaine theory and enough of Mazur's Eisenstein ideal work; combined with prior formalization of odd regular primes, the result holds fully
- Mathematician Kevin Buzzard verified the code: it compiles and passes comparator checks, taking 20x longer to compile than mathlib on a 96-core machine
A landmark moment for AI in formal mathematics.
Related event: Claude completes first formal proof of Fermat's Last Theorem in Lean(23 posts)→
More from Research
- Extreme reward functions push LLMs away from their current behavior — jessi_cata · 2026-09-05
- VeriPhy: agentic physical reasoning framework for world model evaluation — Wenzhuo Xu · 2026-09-05
- TRACES agent benchmark grades live execution loops, not answers — SucceededMind · 2026-09-05
- Pedro Domingos quips: 'new idea' called RNNs will power next-gen LLMs — pmddomingos · 2026-09-05
- LoRA Creator Edward Hu Publishes Guide on Post-Training Open-Source Models with RL — iamrobotbear · 2026-09-05
- Amid CoT monitoring buzz, one video offers a glimpse into how LLMs actually think — kastnerkyle · 2026-09-05