Skip to content
AI ConnectPowered by VELENTIS
AI-generated2 min

Anthropic Verifies Fermat's Last Theorem in Lean 4 Using Multi-Agent System

Anthropic has achieved a full machine verification of Fermat's Last Theorem in Lean 4, deploying an autonomous multi-agent system that generated 13 million lines of code.

This article was AI-generated and published automatically. Context, labelling and all sources at the end of the article.

(KI-generiertes Symbolbild: Gemini / AI Connect)

Anthropic has published a landmark research paper detailing the complete machine verification of Fermat's Last Theorem using the formal proof language Lean 4. Released on September 4 and 5, 2026, under the title 'Formalizing Fermat's Last Theorem in Lean', the paper marks an extraordinary advance in automated mathematics and formal verification. Rather than relying on large teams of human mathematicians to encode logical steps by hand over many years, an autonomous multi-agent system executed the entire formalization pipeline. The artificial intelligence agents worked continuously over multiple days to construct an unbroken chain of verified deductions without manual steering.

The technical scope of the project highlights the unprecedented scaling capabilities of coordinated agent architectures. Operating across an 11-day timeframe, the autonomous multi-agent setup produced approximately 13 million lines of formal Lean code. Throughout this execution, the agents resolved more than 30,000 intermediate lemmas via the specialized proof environment Prove2Me. The system decomposed complex proof structures into granular subgoals, tested alternative hypotheses, and iteratively resolved syntax and proof errors directly against the Lean compiler.

Anthropic explicitly noted that the paper does not present a new mathematical discovery of the theorem itself. The historic proposition that no three positive integers satisfy the equation x^n plus y^n equals z^n for any integer exponent greater than two was originally solved by British mathematician Andrew Wiles in 1995. However, Wiles' landmark paper spanned hundreds of pages of advanced algebraic geometry, creating an enormous barrier for manual translation into interactive theorem provers. Anthropic's agents bridged this divide by converting the dense theoretical framework into an airtight, machine-verifiable representation.

The integrity of the machine-generated artifact has already been acknowledged by senior leaders in the formal mathematics community. Professor Kevin Buzzard of Imperial College London, who led the ongoing human collaborative effort to formalize the theorem in Lean, reviewed the output and verified the validity of the proof chain. The mathematical community has followed the announcement closely, as the multi-agent system finished within 11 days a task that human academic working groups had estimated would take years of laborious coding. Buzzard's endorsement resolves doubts regarding the consistency of the 13-million-line formal codebase.

The milestone signals a decisive shift from standard generative models toward closed-loop, verifiable symbolic reasoning systems. While conventional large language models are susceptible to factual hallucinations in open domain prose, pairing generative intelligence with rigorous proof checkers like Lean 4 enforces strict logical guarantees. Every mathematical step must be verified deterministically by the system before it is incorporated into the formal codebase. This successful demonstration points toward broad utility in mission-critical software verification, microprocessor design, and automated scientific discovery.

What this means for you

This achievement proves that autonomous multi-agent systems can execute long-horizon, logically strict projects over extended periods without human intervention. For engineers and researchers, coupling generative models with deterministic proof environments outlines a clear roadmap to eliminate hallucinations in high-stakes verification tasks.

Perspectives

Coverage: 1× US · 2× Other

One story, several angles: how each source frames the topic, each with a verbatim quote.

Leaning: 1× Vendor PR

  • stanfordtechreview.comOther

    The source focuses on how the true significance lies in the inversion of verification economics, making the audit of the proof far faster and cheaper than its generation.

    Original quote

    The check is now the cheap half

    stanfordtechreview.com
  • explainx.aiOther

    The article highlights the historical scale and speed of the achievement, emphasizing that Claude formalized a centuries-old mathematical proof largely without human supervision.

    Original quote

    Anthropic calls it the largest Lean proof ever written.

    explainx.ai

Source classification is maintained editorially (political spectrum only where consensus is broad; vendor communication is PR, not journalism). Unlabelled sources are unclassified: we do not guess.

Evidence

Solidly sourced
62/100

The evidence score is computed, not hand-set: from confidence, the number of sources and the share of verified statements.

Source & transparency

As of: September 07, 2026

AI-generatedAI-generated: produced automatically from vetted sources with technical quality checks (source, quote and figure verification); no human sign-off of each item before publication

Sources
3
Verified statements
0 / 3
Evidence score
62Solidly sourced

Want to put this into practice?

We connect you with suitable AI providers from the DACH region, free of charge and without obligation.

What's next?