Claude produces first complete computer-checked proof of Fermat's Last Theorem

Working largely on its own for 11 days, Claude wrote 13 million lines of Lean; the novelty is the verification, not new mathematics.

4 Sep 2026

Anthropic says Claude has produced the first complete, computer-checked proof of Fermat's Last Theorem. Working largely autonomously over 11 days, Claude wrote the proof in the Lean proof assistant, the company said in a research post on 4 September.

Daily AI Brief covers stories like this, six days a week. Free.

Along the way it wrote 13 million lines of Lean and proved 30,300 theorems, 29,500 of which are used in the final proof. Dozens of Claude agents worked together to define concepts and prove intermediate results. The run used about six billion output tokens from an internal research model that Anthropic describes as roughly comparable to Claude Fable 5.1.

Lean checked the finished proof, which uses only Lean's three standard axioms, and a comparator confirmed that the theorem statement matches Mathlib's. The proof follows a simplified version of Andrew Wiles's 1995 proof, as set out by Darmon, Diamond and Taylor. Anthropic stresses that the novelty is the verification, not new mathematics.

Kevin Buzzard of Imperial College London, who has led a multi-year community effort since 2024 to formalise the theorem in Lean, was shown the result. Anthropic has published the full proof on GitHub with a written walk-through.

In this story

Market report

2025 Generative AI in Professional Services Report

Thomson Reuters

This report by Thomson Reuters explores the integration and impact of generative AI technologies, such as ChatGPT and Microsoft Copilot, within the professional services sector. It highlights the growing adoption of GenAI tools across industries like legal, tax, accounting, and government, and discusses the challenges and opportunities these technologies present. The report also examines professionals' perceptions of GenAI and the need for strategic integration to maximize its value.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.