Skip to content
AI ConnectPowered by VELENTIS
AI-generated2 min

Anthropic Reports Formal Verification of Fermat's Last Theorem Using Claude in Lean

An Anthropic multi-agent system has formally verified Fermat's Last Theorem in the Lean proof assistant, generating 13 million lines of code in 11 days to prove over 30,000 intermediate lemmas.

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 Labs has announced a notable milestone at the intersection of artificial intelligence and formal mathematics. A specialized multi-agent system, built upon a research model from the Claude family, has completely formalized and computer-verified Fermat's Last Theorem within the interactive proof assistant Lean. The project represents the first computer-verified proof of Andrew Wiles' famous mathematical work. Within the formal mathematics and Lean communities, the result is recognized as a historic achievement demonstrating the viability of large-scale formal verification using artificial intelligence.

The technical scale of the undertaking significantly exceeds prior verification efforts in modern computing. Over an uninterrupted period of 11 days, the coordinated collective of AI agents generated more than 13 million lines of formal Lean code. The system handled the dense mathematical reasoning by parallelizing deeply nested theoretical structures and translating them into machine-checked formulations. Experts classify the completed work as the largest formal verification in the history of mathematics.

A decisive element in achieving the verification was the autonomous decomposition of the overall proof into thousands of individual components. Throughout the 11-day run, the multi-agent system proved over 30,000 intermediate mathematical lemmas autonomously, without requiring human researchers to manually intervene in individual deduction steps. Specialized Claude agents were tasked with closing logical gaps, validating assumptions, and linking intermediate conclusions together. Through this coordinated process, the multifaceted structure of Wiles' proof was completely grounded in elementary axioms.

This approach represents a fundamental methodological departure from conventional language model usage. Rather than relying on classical, error-prone text generation that frequently produces inaccurate conclusions in advanced reasoning tasks, the agents operated within a deterministic environment. The Lean interactive proof assistant served as an unyielding verification engine, checking every proposed deductive step for mathematical soundness. Logical errors were immediately rejected by the software, preventing flawed reasoning from propagating through the proof.

The breakthrough provides formal mathematics with concrete evidence that LLM-supported systems can successfully close ultra-complex logical deduction chains without hallucinations. While standard generative models in open-ended text generation often produce plausible but factually incorrect statements, integration with Lean binds the neural network to strict mathematical truth. The agent collective demonstrated that generative architectures, when paired with formal verification tools, can reliably complete the most demanding deductive chains.

The successful verification illustrates expanding capabilities for cooperative AI agents operating across complex scientific domains. By orchestrating multiple specialized Claude instances, the team completed a monumental formalization project that had long been considered a multi-decade challenge for human mathematicians working alone. The achievement highlights how autonomous agent systems can serve as dependable instruments for rigorous proof construction and critical software verification. It establishes a new reference point for integrating generative architectures with interactive theorem provers.

What this means for you

For researchers and software engineers, this milestone signals a transition from statistical text generation to verifiable formal reasoning. Coupling language models directly with theorem provers like Lean demonstrates a repeatable method for eliminating hallucinations in high-precision domains. Formal verification is moving from an arduous theoretical specialty into a practical, automated capability for complex problem-solving.

Perspectives

Coverage: 3× Other

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

  • techpresso.coOther

    Techpresso frames the story as a historic mathematical milestone, highlighting the massive scale of the proof generated by autonomous agents and its external verification.

    Original quote

    Anthropic says its Claude AI formally proved Fermat's Last Theorem, a puzzle that stumped mathematicians for 358 years

    techpresso.co
  • aigossips.netOther

    AIGossips frames the achievement as a paradigm shift away from AI hallucinations toward definitive formal verification, emphasizing its strategic relevance for science and critical regional industries.

    Original quote

    providing a definitive automated verification that leaves no room for speculation.

    aigossips.net

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
67/100
  • Anthropic Labs fully formalized and verified Fermat's Last Theorem and Andrew Wiles' proof in the Lean interactive proof assistant using a Claude-based multi-agent system.

    single source
  • The system generated more than 13 million lines of formal Lean code over an 11-day period.

    verified
  • The cooperating AI agents autonomously proved over 30,000 intermediate lemmas without human intervention.

    single source
  • The achievement is recognized as the largest formal verification in the history of mathematics.

    single source

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
1 / 4
Evidence score
67Solidly 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?