Skip to content

UPDATED 20:41 EDT / SEPTEMBER 04 2026

AI

Anthropic uses Claude to formalize proof of Fermat’s Last Theorem

Anthropic PBC has used Claude to create a computer-verifiable version of a famous, highly complicated mathematical proof.

The company detailed the project in a blog post published today.

A proof is a series of arguments that proves a mathematical hypothesis is correct. The proof that Anthropic tackled verifies a hypothesis called Fermat’s Last Theorem. Originally floated in 1637, the hypothesis focuses on the properties of positive whole numbers.

The proof of Fermat’s Last Theorem was developed in 1995 by mathematician Andrew Wiles. It runs for 129 pages and took months of work to verify. Anthropic’s research project formalized Wiles’ proof, which means that the company turned it into a form that can be automatically verified by computers. Formalizing proofs is useful because it rules out the possibility of human error and eases information sharing among mathematicians.

A formalized proof takes the form of a code snippet written in a programming language called Lean. It’s a specialized syntax that mathematicians use to verify hypotheses. Anthropic’s proof comprises 13 million lines of Lean code, which makes it the largest-ever file of its kind.

Formalization is difficult because proofs tend to be quite terse. They lack certain explanations that a computer would need to understand them, which requires Lean developers to add in the explanations manually. Another source of complexity is that the arguments in a proof often build on one another. That means one erroneous line of Lean code can render all the subsequent code invalid.

Mathematicians expected the process of formalizing Wiles’ proof to take several years. According to Anthropic, its researchers completed the task in 11 days using an internal research model. The algorithm is described as being roughly on par with Claude Fable 5.1, the immediate predecessor of GPT-6 Astra.

Notably, the model completed the task using only a limited amount of high-level input from humans. It spun up several dozen agents that generated 6 billion tokens of output while working on the proof. Along the way, they proved no fewer than 29,500 intermediate theorems.

Anthropic’s initial attempt to formalize Wiles’ proof was unsuccessful. According to the company, the breakthrough came when it gave Claude access to an open-source tool called Prove2Me. The software makes it easier for AI agents to determine the optimal next step in a lengthy processing workflow. Prove2Me also helps lower inference costs.

“We see autoformalization of algebra, harmonic analysis, geometry and number theory, and we learn that AI autoformalization artefacts are now robust enough to be built upon; the proof is multi-layered,” said Kevin Buzzard, a mathematician whose work Claude used to generate its formalized proof.

The milestone comes a month after Anthropic detailed another LLM-driven mathematical advance. The company used Claude to discover new information about the Riemann zeta function, a closely studied mathematical object. It’s the center focus of the Riemann hypothesis, one of the world’s most difficult conjectures.

Rival OpenAI Group PBC is also harnessing its LLMs to advance mathematics research. Last month, the company used its latest Astra model to solve several Erdos problems and narrow a number of open questions in theoretical computer science. 

Image: Anthropic

A message from John Furrier, co-founder of SiliconANGLE:

Support our mission to keep content open and free by engaging with theCUBE community. Join theCUBE’s Alumni Trust Network, where technology leaders connect, share intelligence and create opportunities.

  • 15M+ viewers of theCUBE videos, powering conversations across AI, cloud, cybersecurity and more
  • 11.4k+ theCUBE alumni — Connect with more than 11,400 tech and business leaders shaping the future through a unique trusted-based network

Are you an AWS customer?  Support SiliconANGLE financially by buying your AWS services from our Marketplace portal page and links: https://siliconangle.com/aws-marketplace/

 

About SiliconANGLE Media
SiliconANGLE Media is a recognized leader in digital media innovation, uniting breakthrough technology, strategic insights and real-time audience engagement. As the parent company of SiliconANGLE, theCUBE Network, theCUBE Research, CUBE365, theCUBE AI and theCUBE SuperStudios — with flagship locations in Silicon Valley and the New York Stock Exchange — SiliconANGLE Media operates at the intersection of media, technology and AI.

Founded by tech visionaries John Furrier and Dave Vellante, SiliconANGLE Media has built a dynamic ecosystem of industry-leading digital media brands that reach 15+ million elite tech professionals. Our new proprietary theCUBE AI Video Cloud is breaking ground in audience interaction, leveraging theCUBEai.com neural network to help technology companies make data-driven decisions and stay at the forefront of industry conversations.

Send us a news tip

Send us a News Tip

  • This field is for validation purposes and should be left unchanged.
  • Max. file size: 244 MB.

Sign in

SIGN IN

Bio

Ethics statement

Extract the signal from the noise

Get SiliconANGLE updates and analysis.

Contact us

Partner with us

Contact us

Guest inquiry