Source: Anthropic's official research announcement. The image illustrates mathematical formalization; it is not a screenshot of Claude's output.
Claude's Fermat's Last Theorem proof sounds like an AI discovered new mathematics. That is not what happened. Anthropic used a multi-agent system to convert a known proof route into 13 million lines of Lean that proof-checking software could verify. The real breakthrough is the speed and scale of formalization—and the most useful lesson for developers is why machine-verifiable work changes how we should judge AI agents.
Claude's Fermat's Last Theorem proof is the first published end-to-end Lean formalization that a proof assistant can check from its statement down to accepted axioms, not a new human-style proof of the theorem. Anthropic says dozens of Claude agents, coordinated through the Prove2Me dependency graph, produced about 13 million lines of Lean in 11 days and used 29,500 intermediate theorems. The public repository pins Lean 4.33.1 and Mathlib, rejects sorry and extra axioms, and documents checks by Lean, comparator, and the independent nanoda kernel. Kevin Buzzard, who leads another FLT formalization effort, says he compiled the code and ran comparator successfully. The important change is therefore verification throughput: AI converted a known mathematical route into machine-checkable code at unprecedented scale. It does not show Claude discovered a new proof, understood every generated lemma, or can repeat the result cheaply on ordinary hardware.
The theorem itself did not change, and neither did the standard of proof. What changed was the amount of formalization work an AI system could coordinate and finish under a machine-checkable target.
sorry, added axioms, and unsafe escape hatches; Why it matters: Multiple checking paths narrow the room for a fake successThe scale is hard to ignore: Anthropic reports 30,300 intermediate theorems, 29,500 used in the final proof, and roughly six billion output tokens. But scale is also a warning. The repository says a clean build took 5 hours 32 minutes on 96 jobs, while comparator used nearly 15 hours and peaked at 230 GB of memory.
This is a research artifact, not a lightweight workflow. The repository says it is not maintained and does not accept contributions.
Anthropic's early multi-agent attempts lost track of project state and stopped collaborating effectively. The run succeeded after the team moved to Prove2Me, a platform that represents a formalization mission as a directed acyclic graph, or DAG. In plain English, the graph makes dependencies explicit: an agent can see which smaller theorem must be proved before a larger theorem can close.

Source: Anthropic's original Prove2Me dependency graph. The diagram shows three major branches feeding the final theorem; it is a proof-plan map, not evidence that every generated explanation is human-readable.
Prove2Me separated theorem statements from proofs, reduced repeated compilation, and kept natural-language descriptions that made prior results searchable. Dozens of Claude agents could then define concepts, prove intermediate statements, and reuse completed work instead of repeatedly rediscovering the project state.
Lean provided the hard boundary. The public repository says its default build checks all 60,475 modules with the Lean kernel. A comparator replays the environment against a challenge statement written with Mathlib, and nanoda—a separate Lean kernel written in Rust—accepted an exported environment after four disclosed performance patches.
That does not make every label or explanation trustworthy. The repository explicitly says machine-generated names and English summaries may be wrong; the Lean statement is authoritative. Formal verification proves that the formal statement follows from the accepted axioms. Humans still have to decide whether the formal statement represents the intended mathematics.
The transferable pattern is straightforward: give agents a target that another program can reject. Lean is unusually strict, but the idea applies to code generation, migrations, infrastructure, and data work.
For a serious agent workflow, separate the plan into a dependency graph, keep task state outside the model's context, make outputs reusable, and run an independent verifier after generation. Unit tests and type checks are weaker than a proof kernel, but they still turn vague confidence into a repeatable gate.
There is also a warning for multi-agent systems. Anthropic says its first attempts produced failed work because agents lost shared state. Adding more agents did not solve coordination. The useful gain came from a scaffold that exposed dependencies and made completed work discoverable.
If you use Claude as a normal chat or coding assistant, there is no new button to press. Anthropic used an internal research model roughly comparable to Claude Fable 5.1, a custom harness, Prove2Me, large compute, and a domain where answers can be checked mechanically.
The result is still meaningful because it shows a credible AI product shape: not one model writing a perfect answer, but many agents proposing pieces while a deterministic system rejects incorrect work. That pattern is more trustworthy than a polished response that nobody can verify.
My decision rule is simple: teams with formal specifications, deterministic simulators, strong test suites, or reproducible builds should experiment now. Teams whose success criteria depend on taste, ambiguous requirements, or changing external systems should treat this as a design pattern—not as proof that autonomous agents are ready to replace expert review.
My take: the headline is not “AI solved Fermat.” It is “AI made an enormous known proof executable, and the verifier—not the model's confidence—decided whether it counted.”
Did Claude prove Fermat's Last Theorem?
Claude helped produce a complete Lean formalization of an existing proof route. Lean checked that the formal statement follows from its accepted axioms. Claude did not discover Fermat's Last Theorem or replace Wiles's mathematical proof with a new human-readable argument.
Was Claude's Fermat proof independently verified?
The public repository documents Lean, comparator, and nanoda checks. Kevin Buzzard independently says he compiled the code and ran comparator successfully. That is strong verification of the formal artifact, though the full cost and internal generation process are not independently reproduced.
What is Lean in this project?
Lean is a proof assistant whose kernel checks whether each formal step is valid. It does not judge prose or mathematical elegance. In this project, the Lean statement is authoritative even when machine-generated names, comments, or summaries are hard to read.
Can developers use this system today?
The repository and Prove2Me research are public, but Anthropic did not release the complete internal model-and-harness setup as a consumer product. Developers can study the architecture and reproduce parts of the verification workflow, subject to substantial compute and tooling requirements.
Does this mean AI can reliably discover new mathematics?
No. This result shows large-scale autoformalization of known mathematics. Anthropic says formal Lean work may help models check hypotheses, but repeatable discovery of important new results is a different claim and needs separate evidence.
Discover practical AI products and emerging developer tools at AIToolHunt.