Skip to content
Tech News
← Back to articles

Anthropic AI ‘formalizes’ proof of Fermat’s last theorem in just 11 days

read original get Fermat's Enigma by Simon Singh → more articles
Why This Matters

Anthropic's Claude prototype formalized Fermat's last theorem into 13 million lines of computer-verifiable Lean code in 11 days, a task mathematicians expected to take a decade. It signals that AI is becoming a practical tool for verifying — and potentially generating — advanced mathematical reasoning, with the prospect of auditing the entire body of published math for errors.

Key Takeaways
Worth a Look

Fermat's Enigma by Simon Singh — If Claude formalizing Fermat's last theorem in 11 days piqued your curiosity, Simon Singh's classic tells the human side of the story s — Andrew Wiles's seven-year obsession and the 350-year mystery behind it. It's a gripping, accessible read that makes the math feel like a thriller, and perfect context for why this formalization is such a big deal.

See Fermat's Enigma by Simon Singh on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

Mathematician Andrew Wiles completed the proof to Fermat’s last theorem in 1994, more than 350 years after Pierre Fermat proposed the conjecture.Credit: AP Photo/Charles Rex Arbogast/Alamy

Fermat’s last theorem, one of the most celebrated mathematical results of the last half-century, has been turned into computer-verified code for the first time, using an advanced prototype of the artificial-intelligence (AI) chatbot Claude.

AI cracks 80-year-old mathematics challenge — researchers are astonished

The fact that a machine could turn the work of human mathematicians into a 13-million-line-long, ironclad proof “just completely blew my mind”, says Alex Kontorovich, a number theorist at Rutgers University in Piscataway, New Jersey. Claude-maker Anthropic AI, of San Francisco, California, announced the breakthrough on 4 September. The model finished in 11 days a project that was expected to take humans 10 years.

The result shows that AI will play an increasingly important part in checking the work of mathematicians — as well as in producing new mathematical reasoning. At the current pace of progress, it is not unthinkable that AI could soon be able to scrutinize the entire library of mathematical knowledge, perhaps finding that some well-known results are wrong. “Two years ago, that was a fantasy,” says Kevin Buzzard, a mathematician at Imperial College London.

Mathematicians astounded

Mathematicians have been increasingly astounded by the pace at which AI’s mathematical skill have soared. This includes the technology’s ability to ‘formalize’ proofs — translating mathematical arguments from natural language into a formal, computer-certifiable code, typically in the programming language Lean.

In February, AI achieved another milestone in AI-aided ‘formalization’, when it certified the Fields-medal-winning work on the most efficient ways to pack spheres (in a space of 8 or 24 dimensions) of Maryna Viazovska. But Buzzard says that the Fermat’s last theorem work was on a whole other level of complexity. “It was maybe an order of magnitude more difficult,” he says.

Daniel Litt, a number theorist at the University of Toronto, Canada, agrees. “If they can formalize Fermat's last theorem, they can probably formalize anything.”

‘It is incredible’: How AI is transforming mathematics

... continue reading