Skip to content
ContentLora

    Tip: press / anywhere to search.

    concept

    The project to formalise Fermat's Last Theorem in Lean

    Also known as FLT project, Fermat's Last Theorem formalization, Lean FLT project, Imperial FLT project

    The FLT project is an open-source effort, hosted at Imperial College London and led by Kevin Buzzard, to formalise a proof of Fermat's Last Theorem in the Lean proof assistant.[1] It is funded by the EPSRC until September 2029. Its stated initial goal is to reduce the theorem to results known by the end of the 1980s.[2][3] In September 2026 Anthropic announced a separate, AI-generated Lean proof of the full theorem that adapts parts of the project's work; the Imperial project describes itself as ongoing.[4][5][1]

    Editor reviewedUpdated Wiki16 claims · 100% primaryMathematics research, Computing
    Key facts

    This page is part of the mathematics crash course. Read proof assistants explained and Lean and mathlib first. It describes formalisation projects; it does not assess any proof.

    The theorem

    Fermat’s Last Theorem says that if x, y, z and n are positive integers with n at least 3, then x^n + y^n never equals z^n. Pierre de Fermat raised it in 1637, and Andrew Wiles, assisted by Richard Taylor, resolved it more than 350 years later.[6] The statement uses only whole numbers, but every known proof relies on much deeper mathematics, including elliptic curves, modular forms and Galois representations. Written out in full from the axioms, the project says, any known proof would run to several thousand pages.[7]

    The Imperial College project

    The FLT project is an ongoing, multi-author, open-source project to formalise a proof of the theorem in Lean. It is hosted at Imperial College London and led by Kevin Buzzard.[1] The Lean FRO records its start in December 2023.[8] EPSRC grant EP/Y022904/1 funds it from October 2024 until September 2029.[2]

    The project uses a modern variant of the Wiles and Taylor-Wiles proof, drawing on ideas of Khare and Wintenberger, along a route that Richard Taylor planned with Buzzard.[9] Its stated initial goal is to reduce the theorem to a set of deeper results that were all known by the end of the 1980s. Its overview says it expects to reach that goal by September 2029, when the grant runs out.[3] Along the way, it adds foundational theory to mathlib, Lean’s shared library.[10]

    The project gives several reasons for the work. It says many standard objects of modern number theory had not even been defined in Lean or any other proof assistant.[11] And as of December 2023, Fermat’s Last Theorem was the only one of the 100 challenge theorems on Freek Wiedijk’s formalisation list still not formalised.[12] When it began, its overview said AI tools could not really help with formalisation, so humans would do most of the work.[13]

    The 2026 AI-generated proof

    On 4 September 2026 Anthropic announced what it called the first complete computer-checked proof of Fermat’s Last Theorem. It says its Claude models wrote the proof in Lean, working largely autonomously over 11 days.[4] The company says the proof runs to 13 million lines of Lean, more than five times the size of mathlib, and proves 29,500 intermediate theorems.[14] It says the proof adapts pieces of the Imperial project and the flt-regular project. It also quotes Buzzard, who reviewed it, as saying it proves the theorem with no assumptions beyond the axioms of mathematics.[5]

    The proof’s public repository describes how to check it. A successful build reports that the theorem depends only on Lean’s standard axioms, and two further checks run the Comparator tool and the separate nanoda checker.[15] The repository says the Lean code was produced by AI agents and is meant to be checked rather than read. Where a theorem’s name and its statement disagree, the statement is what was proved, and the code is an unmaintained research artifact.[16]

    These are the developer’s own descriptions. As of 22 November 2026 the Imperial project’s repository still describes the project as ongoing.[1]

    This page does not cover how mathematicians are assessing the AI-generated proof, or how it relates to the human-led project’s future plans. For the wider argument, see the debate on whether every proof should be checked by computer.

    Next in the crash course

    Zero-knowledge proofs explained

    How zero-knowledge proofs let you prove something is true, such as being over 18, without revealing the data behind it, and how the EU plans to use them.

    More in Mathematics research

    Developing in AI & Computing

    Questions readers ask

    What is Fermat's Last Theorem?

    The statement that if x, y, z and n are positive integers and n is at least 3, then x^n + y^n never equals z^n. Fermat raised it in 1637, and Andrew Wiles, assisted by Richard Taylor, resolved it more than 350 years later.[6]

    Why formalise a theorem that is already proved?

    The project says that written out from the axioms, any known proof would run to several thousand pages and need deep theory. Formalising it means defining many modern number-theory objects in Lean and adding them to mathlib. In 2023 it was also the last unformalised theorem on Freek Wiedijk's list of 100 challenge theorems.[7][10][12]

    Who funds the project?

    The EPSRC, through grant EP/Y022904/1, which runs from October 2024 until September 2029.[2]

    Has Fermat's Last Theorem been fully formalised?

    Anthropic announced in September 2026 that its AI models had produced a complete Lean proof in 11 days, about 13 million lines long. Its public repository describes a build check against Lean's standard axioms and two further checkers. These are the developer's claims. The Imperial project still describes itself as ongoing.[4][14][15][1]

    Sources

    · 16 claims from 4 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      The FLT project is an ongoing multi-author open-source project, hosted at Imperial College London and led by Kevin Buzzard, to formalise a proof of Fermat's Last Theorem in Lean. confirmedas of 2026-11-22

      • FLT project README · Imperial College London FLT project (GitHub) · Primary source · README (retrieved 2026-11-22)
      • FLT project README · Imperial College London FLT project (GitHub) · Primary source · Information about the project (retrieved 2026-11-22)
    2. [2]

      The FLT project is funded until September 2029 by EPSRC grant EP/Y022904/1, which began in October 2024. confirmedas of 2026-11-22

    3. [3]

      The FLT project's stated initial goal is to reduce Fermat's Last Theorem to a collection of results known by the end of the 1980s; its overview says this reduction is expected by September 2029, when the EPSRC grant runs out. confirmedas of 2026-11-22

    4. [4]

      On 4 September 2026 Anthropic announced what it called the first complete computer-checked proof of Fermat's Last Theorem, written in Lean by its Claude models working largely autonomously over 11 days. reportedas of 2026-09-04

    5. [5]

      Anthropic says its proof adapts pieces from the Imperial College London FLT project and the flt-regular project, and quotes Kevin Buzzard, who reviewed it, as saying it proves the theorem with no assumptions other than the axioms of mathematics. reportedas of 2026-09-04

    6. [6]

      Fermat's Last Theorem says that if x, y, z and n are positive integers with n at least 3, then x^n + y^n never equals z^n; Fermat raised it in 1637 and Andrew Wiles, assisted by Richard Taylor, resolved it more than 350 years later. confirmedas of 2026-11-22

    7. [7]

      The FLT project says any known proof of Fermat's Last Theorem, written out in full from the axioms of mathematics, would occupy several thousand pages and draws on elliptic curves, modular forms and Galois representations. confirmedas of 2026-11-22

    8. [8]

      The Lean FRO's history records the Liquid Tensor Experiment as completed in July 2021, the Polynomial Freiman-Ruzsa project as established in November 2023 and the Fermat's Last Theorem project as established in December 2023. confirmedas of 2026-11-22

    9. [9]

      The FLT project follows a modern variant of the Wiles and Taylor-Wiles proof, borrowing from ideas of Khare and Wintenberger, with a route planned by Richard Taylor in discussion with Kevin Buzzard. confirmedas of 2026-11-22

      • FLT project README · Imperial College London FLT project (GitHub) · Primary source · Information about the project (retrieved 2026-11-22)
      • FLT project README · Imperial College London FLT project (GitHub) · Primary source · Information about the project (retrieved 2026-11-22)
    10. [10]

      The FLT project contributes the foundational theories it needs to mathlib, Lean's mathematics library. confirmedas of 2026-11-22

    11. [11]

      When the FLT project began, it said many of the standard objects studied in modern number theory had not even been defined in Lean or any other theorem prover, so many recent results could not yet be stated formally. confirmedas of 2023-12-01

    12. [12]

      As of December 2023, Fermat's Last Theorem was the only one of the 100 challenge theorems on Freek Wiedijk's formalisation list that had not been formalised. confirmedas of 2023-12-01

    13. [13]

      When the FLT project began in December 2023, its overview said AI tools could not really help with the formalisation, so most of the work would be done by humans. confirmedas of 2023-12-01

    14. [14]

      Anthropic says the proof runs to 13 million lines of Lean, more than five times the size of mathlib, and proves 29,500 intermediate theorems. reportedas of 2026-09-04

    15. [15]

      The public repository for Anthropic's proof says a successful build reports that the theorem depends only on Lean's standard axioms (propext, Classical.choice and Quot.sound), and it ships two further checks, run with the Comparator tool and the nanoda checker. reportedas of 2026-11-22

    16. [16]

      The repository says its Lean sources were produced by AI agents building on human-written open-source Lean, are written to be checked rather than read, that names are machine-generated, and that where a theorem's name and its statement disagree, the statement is what was proved; it describes the code as a research artifact that is not maintained. reportedas of 2026-11-22

    Revision history (1)
    1. Page created.

    Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Mar 1, 2027.

    Cite this page

    "The project to formalise Fermat's Last Theorem in Lean." ContentLora, updated Nov 22, 2026. https://contentlora.com/wiki/fermats-last-theorem-formalisation-project

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.