Skip to content
DARC
■ Change #139 · wiki.edited

Mathlib-integrated formalization of the modern FLT proof with reusable Galois-representation infrastructure: Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:16 UTCOpen the page →
explainer.student
− **Goal.** Formalize the modern proof of Fermat's Last Theorem (FLT) as a Lean 4 library merged into Mathlib. The proof strategy is: a hypothetical solution to $a^p+b^p=c^p$ gives an elliptic curve (the *Frey curve*) with strange properties; the **modularity lifting** theorems of Wiles and Taylor–Wiles show such a curve would be modular; and Ribet's level-lowering theorem shows no such modular curve exists. The formalization project (led by Kevin Buzzard at Imperial College London, with an EPSRC grant and a public *blueprint*) is aimed at the heart of this: the $R=T$ theorem, which identifies a deformation ring $R$ of Galois representations with a Hecke algebra $T$ acting on modular forms.
+ **Goal.** Formalize the modern proof of Fermat's Last Theorem (FLT) as a Lean 4 library merged into Mathlib. The proof strategy is: a hypothetical solution to $a^p+b^p=c^p$ gives an elliptic curve (the _Frey curve_) with strange properties; the **modularity lifting** theorems of Wiles and Taylor–Wiles show such a curve would be modular; and Ribet's level-lowering theorem shows no such modular curve exists. The formalization project (led by Kevin Buzzard at Imperial College London, with an EPSRC grant and a public _blueprint_) is aimed at the heart of this: the $R=T$ theorem, which identifies a deformation ring $R$ of Galois representations with a Hecke algebra $T$ acting on modular forms.
**What has to be built.** The deliverable is reusable definitions and theorems for:
+
- modular forms of level $N$ and weight 2,
- Hecke algebras (operators that act on modular forms and encode arithmetic),
- $p$-adic Galois representations and their deformation rings,
- the **Taylor–Wiles–Kisin patching method** (a technique to prove $R=T$ by combining many auxiliary primes),
- automorphic forms on definite quaternion algebras.
The criteria for success are strict. Every node of the blueprint is proved with no `sorry` (Lean's placeholder for an unproved step), each definition fits Mathlib's existing conventions, and the library builds in a time and size comparable to a large Mathlib area.
**Why reusable infrastructure matters.** Buzzard stresses that the aim is the general theorems, not just FLT: for example, a formal modularity lifting theorem would help with other results in the Langlands programme. A report in December 2024, two months in, described building a modern $R=T$ argument based on work of Diamond, Fujiwara, Kisin, Taylor and Scholze, noting that some ingredients, such as crystalline cohomology and divided powers, were still missing from Mathlib.
**The machine certificate.** On 4 September 2026 Anthropic announced an agentic formalization of FLT, a certificate of about 13 million lines following the Darmon–Diamond–Taylor route. It compiles about twenty times slower than Mathlib and is not integrated into it. Buzzard checked its final statement and judged that it tells us essentially nothing new mathematically. It does not achieve the stated deliverable of a maintainable, merged library with reusable infrastructure.
**Status.** In progress. The real difficulty is not the logic but the sheer amount of background: the project has to formalize the infrastructure of arithmetic geometry that humans take for granted.
hash 7561bd7b239ca1c2084ad16fb7de780f29aa6020849140e1e2f0f05eb03be986
previous 23dbc267d27725e56b0eb213d10b291d4a0c32cecfba34d9b2f36649c143efbc