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 Produces First Formalized Proof of Fermat's Last Theorem in 11 Days(52 posts)→
More from Research
- Stanford team launches ScholarCatalyst benchmark for inspiration retrieval — lateinteraction · 2026-10-21
- Holon-S1 predicts gene activity and biomarkers from routine pathology slides — altryne · 2026-10-21
- Three reasons AI is not conscious and may never be, per Nature essay — anilkseth · 2026-10-21
- Aviation tracks every part's provenance — agents can reason over that graph — colinmcnamara · 2026-10-21
- SFT details: instruction/reasoning/code/math mix, synthetic + human traces, no epoching — TimDarcet · 2026-10-21
- Mid-training recipe disclosed: 32k→131k context extension, dropping logit distillation for tokens — TimDarcet · 2026-10-21