---
title: Anthropic says Claude produced a complete Lean proof of Fermat's Last Theorem — Ground Truth
url: https://groundtruth.day/news/claude-produced-a-complete-lean-proof-of-fermats-last-theorem.html
description: Anthropic says Claude worked largely autonomously for 11 days to produce a complete machine-checked Lean 4 proof of Fermat's Last Theorem, extending a long-running human formalization effort rather than independently rediscovering Wiles's mathematics.
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://groundtruth.day/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

News · [2026-09-04](https://groundtruth.day/news/2026-09-04.html)

# Anthropic says Claude produced a complete Lean proof of Fermat's Last Theorem

Anthropic says Claude worked largely autonomously for 11 days to produce the first complete computer-checked Lean 4 proof of Fermat's Last Theorem. The repository and proof path describe a real machine-checkable artifact, but the result should be understood as formalizing a known mathematical route with substantial prior human infrastructure—not as a model independently discovering Wiles's proof from scratch. That distinction makes the news more useful, not less.

### Key facts

- Anthropic says Claude worked largely autonomously for **11 days** and generated **29,500 intermediate theorems** in the final artifact.
- The [repository](https://github.com/anthropics/fermats-last-theorem) calls the result a complete machine-checked Lean 4 proof and documents its verification path.
- The project [attributes 106 files](https://github.com/anthropics/fermats-last-theorem/blob/main/ATTRIBUTION.md) containing Lean text taken or adapted from Imperial College London's FLT project or `flt-regular`.
- Primary source: [Anthropic's formalization announcement](https://www.anthropic.com/research/formalizing-fermats-last-theorem).

Fermat's Last Theorem says that no positive integers satisfy `a^n + b^n = c^n` for integers `n` greater than two. Andrew Wiles's proof is one of modern mathematics' landmark achievements, but writing a human proof and writing a proof assistant artifact are different jobs. A paper can safely omit steps experts know how to reconstruct. A proof assistant must be told every definition, transformation, and dependency in a language whose kernel can check each move.

That is why the announcement is a formal-methods story. The [Mathlib statement](https://leanprover-community.github.io/mathlib4_docs/Mathlib/NumberTheory/FLT/Basic.html) already expresses Fermat's Last Theorem in Lean and points to the Imperial formalization project. Anthropic's [proof path](https://github.com/anthropics/fermats-last-theorem/blob/main/PROOF-PATH.md) says the new work follows the Frey, Serre, Ribet, Wiles, and Taylor-Wiles route by contradiction, using a simplified version described by Darmon, Diamond, and Taylor. The advance is filling in and connecting the enormous number of formally valid steps so the checker can accept the entire result.

An analogy: a conventional proof is an architectural blueprint that a qualified builder can interpret. A Lean proof is the complete set of machine-verifiable assembly instructions, down to every fastener. The second form is laborious, but once it is accepted it can be rerun by anyone with the same checker. Anthropic's repository says the proof is accepted only with Lean's three standard axioms and after passing its comparator and a second-kernel check. That is what Kevin Buzzard means in Anthropic's post when he calls the result a major step and says the proof has “no assumptions other than the axioms of mathematics.”

The human contribution is central, not an inconvenient qualification. Buzzard's [Imperial College London project](https://imperialcollegelondon.github.io/FLT/) has been active since 2024, with a 2024–2029 blueprint and an explicit goal of a complete proof. In a [December 2024 update](https://xenaproject.wordpress.com/2024/12/11/fermats-last-theorem-how-its-going/), he wrote that the team was already two months into teaching FLT to a computer. Anthropic's attribution file is unusually valuable because it makes the dependence inspectable: 106 files contain text taken or adapted from the Imperial project or another existing source.

This does not make Claude a glorified copy machine. Formalization is a difficult combinatorial and engineering task. The model had to work through a codebase, select lemmas, construct formal terms, repair errors, and leave an artifact that Lean can check. Anthropic's reported 29,500 intermediate theorems give a sense of scale. It is a promising demonstration of what language models can do when success has a hard, automatic verifier. The problem is well aligned with a machine because there is no ambiguity about whether the final proof builds.

The strongest counter-argument is that this alignment makes the headline misleading if phrased as “AI solved Fermat.” The theorem was solved by Wiles decades ago; the mathematical route, theorem statement, library, and project vocabulary already existed. Buzzard has also cautioned in Lean-community discussion that filling in small lemmas is not necessarily the bottleneck for formalizing the whole theorem. A model can accelerate a well-specified formal project without resolving the hardest questions of mathematical invention.

Why it matters anyway is that many consequential technical claims are closer to formalization than to original theorem discovery. Cryptographic protocols, compilers, hardware controllers, financial contracts, and safety-critical algorithms often have a specification and a verifier. In those domains, a system that can turn a human goal into checkable proof obligations could make rigorous assurance cheaper and more widespread. Our explainer on [proof assistants](https://groundtruth.day/learn/what-is-a-proof-assistant.html) explains why a small trusted kernel changes the confidence model.

The honest caveat is maintenance. Formal proofs depend on versions of Lean, Mathlib, definitions, automation, and libraries; a proof that checks today can require work to keep checking as its environment evolves. The important next milestones are reproducible independent builds, expert review, reusable lemmas flowing upstream, and evidence that models can contribute in domains where the roadmap is less completely pre-specified. Anthropic's artifact is an impressive answer to a constrained, rigorously checkable problem. It is not a reason to abandon human mathematical judgment.

---

Primary source, verified: [read the paper →](https://www.anthropic.com/research/formalizing-fermats-last-theorem)

Key questions

## Did Claude discover a new proof of Fermat's Last Theorem?

No. Anthropic's artifact formalizes a known route through the theorem in Lean 4, using existing human work, libraries, and adapted project files; its achievement is a complete machine-checkable proof artifact.

## What does a complete Lean proof guarantee?

It guarantees that Lean's proof checker can validate each formal step against its allowed axioms and definitions. That is much stronger than a persuasive natural-language argument, but it does not make the surrounding software ecosystem magically error-free.

## How much did the model do?

Anthropic says Claude worked largely autonomously for 11 days and generated 29,500 intermediate theorems in the final proof. The project also explicitly attributes 106 files of Lean text taken or adapted from existing formalization work.

**Cite this**

APA

```
Ground Truth. (2026, September 4). Anthropic says Claude produced a complete Lean proof of Fermat's Last Theorem. Ground Truth. https://groundtruth.day/news/claude-produced-a-complete-lean-proof-of-fermats-last-theorem.html
```

BibTeX

```
@misc{groundtruth:claude-produced-a-complete-lean-proof-of-fermats-last-theorem,
title  = {Anthropic says Claude produced a complete Lean proof of Fermat's Last Theorem},
author = {{Ground Truth}},
year   = {2026},
month  = {sep},
url    = {https://groundtruth.day/news/claude-produced-a-complete-lean-proof-of-fermats-last-theorem.html}
}
```

Topics: [anthropic](https://groundtruth.day/tags/anthropic.html) · [claude](https://groundtruth.day/tags/claude.html) · [formal-verification](https://groundtruth.day/tags/formal-verification.html) · [mathematics](https://groundtruth.day/tags/mathematics.html) · [lean](https://groundtruth.day/tags/lean.html) · [reasoning](https://groundtruth.day/tags/reasoning.html) · [research](https://groundtruth.day/tags/research.html)

**Related on Ground Truth**

- [Anthropic's Lean artifact formalizes Fermat's Last Theorem, not a new discovery](https://groundtruth.day/news/anthropic-lean-formalizes-fermats-last-theorem.html) News
- [A new Lean repository packages RH and Dirichlet GRH proofs in a shorter edition](https://groundtruth.day/news/shorter-lean-formalization-riemann-hypothesis-grh.html) News
- [Claude helped set two elliptic-curve rank records in four days](https://groundtruth.day/news/claude-helped-set-two-elliptic-curve-rank-records-in-four-days.html) News
- [OpenAI publishes ten mathematics claims with Lean proofs and no named authors](https://groundtruth.day/news/openai-publishes-ten-math-claims-with-lean-proofs-and-no-named-authors.html) News

Comments are replies to this story on Bluesky — reply with any Bluesky account to join in.
