Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws

In the wild · 17 Nov 2026

How did AI agents machine-check Fermat's Last Theorem in about 30 hours?

On 9 November 2026 Anthropic said 1,000 agents running an early version of Claude Fable 5.2 rewrote the proof in Lean, a language a computer checks line by line, in 28.7 hours. Its first run took 11 days. The theorem is one line long; its proof rests on decades of deep mathematics. These are the company's own figures.

By Updated 4 sources, each opened and read

The Law Tome is an independent, sourced reference of named laws and effects, written by Krishna Chagti. No ads, no account, nothing for sale on this page. About the Tome

Engraving of an elderly mathematician holding up a small slate with a single line on it while a clerk cranks a great brass calculating engine that feeds out a long blank paper ribbon
One line to state, a ribbon to check · Illustration for the Law Tome

What happened

What did Anthropic say its agents did with Fermat's Last Theorem?

Anthropic's own write-up of the run, by the team that ran it, with its timelapse, the agents' roles and what was and wasn't proved. Read Anthropic's write-up.

  1. Anthropic publishes its first complete Lean proof of Fermat's Last Theorem: about 13 million lines, written by Claude over 11 days with a coordination platform called Prove2Me and occasional guidance from a researcher. source
  2. Kevin Buzzard, who leads a funded human effort to formalize the theorem, compiles the code, runs a comparator on it and reports that it checks out. source
  3. Anthropic announces that a team of 1,000 Fable 5.2 agents formalized the proof again, without Prove2Me or a researcher steering, finishing at hour 28.7 of a 30-hour run. source
  4. Anthropic amends its launch post and adds a footnote to describe more accurately what the agents were given at the start. source

Why it matters. Fermat's Last Theorem is easy to state and hard to prove, which makes it a clean test of machine checking. If a proof this deep can be checked in a day or so, checking long published proofs, and proofs written by AI, gets far cheaper. The open question is how much of that holds up outside the company's own report.

How it works

How do you machine-check a proof this long in about 30 hours?

  1. 01

    A one-line claim with a very long proof

    The theorem says a to the n plus b to the n never equals c to the n in whole numbers when n is above two. There is no short route. The accepted proof goes through elliptic curves and modular forms, and the agents followed the same classical route, which Anthropic's first formalization took from the Darmon, Diamond and Taylor account of Wiles's proof.

  2. 02

    Lean checks every step, so nothing can be skipped

    Formalizing means rewriting the proof in Lean so a computer can check it step by step. A human paper can say a step is standard; Lean needs that step proved too, all the way down. That is why the first Lean proof ran to about 13 million lines, which Buzzard says takes nearly 20 times as long to compile as Lean's whole mathematics library.

  3. 03

    Split the proof into checkable pieces

    The agents got 60 statements: the final theorem and 59 milestones on the way. Each started in Lean with a placeholder, and counted as proved only once Lean's checker accepted a finished proof. One lead agent split the work and assigned it to 999 helpers, so many pieces could be proved at once.

  4. 04

    The hardest piece set the pace

    Around hour 18 only one statement was left: Langlands-Tunnell, a classical result Wiles's proof relies on. The lead moved about 750 helpers onto it and judged the odds low. It was proved at hour 28.4, and the final theorem followed at hour 28.7. In a proof like this, the slowest deep result decides the finish time.

  5. 05

    Why the speed matters

    Nobody doubted the theorem. Buzzard was already 99.9% sure the proof was sound, and he says the September formalization told us essentially nothing new mathematically. What changes is the cost of checking. Anthropic's stated aim is to take the laborious checking off mathematicians so they can spend more time on new ideas.

The name for this is Fermat's Last Theorem: No three positive whole numbers can satisfy a to the n plus b to the n equals c to the n for any power above two.

Where it stops working

What does the claim not show?

  • All the figures for the 30-hour run come from Anthropic. The first, 11-day proof was compiled and checked by Buzzard and its code is public; we found no outside check of the second run, and the write-up does not say whether its code is public.
  • The agents did not start from nothing. They were given the 60 statements, a one-sentence sketch of the classical route, the definitions, and 47 proved lemmas from the first formalization. Anthropic amended its launch post on 11 November to say so more accurately.
  • "30 hours" is the length of the run, not one unbroken stretch. Activity stopped near hour 18 and the run was restarted from its last save with 12 more hours. The final theorem landed at hour 28.7.
  • The launch post says the theorem was fully formalized, but the write-up's count ends at 54 of 60 statements, because five alternative routes were no longer needed and one statement was dropped.
  • This is checking, not discovery. The mathematics is Wiles's, via the Darmon, Diamond and Taylor exposition, and the team calls the run a toy experiment.

How we know this

Sources, each opened and read

  1. Anthropic, "Introducing Claude Fable 5.2 and Claude Mythos 5.2", 9 Nov 2026 (edited 11 Nov 2026)Supports: the 30-hour and 11-day claims, 1,000 agents with minimal human intervention, one-third the action tokens and a proof seven times shorter, the footnote on what the agents were given, and the 11 November edit note. Checked 17 Nov 2026.
  2. Barry Zhang, Tianyi Peng, Elle Najt, Keller Scholl and Lance Martin, "Safely scaling multi-agent teams with Claude Fable 5.2", Claude blog, 9 Nov 2026Supports: the 28.7-hour finish, one lead and 999 helpers, the 60 statements and 47 lemmas, Lean's checker as the bar, Langlands-Tunnell at hour 28.4 with about 750 helpers, the restart near hour 18, 54 of 60 statements, and the toy-experiment caveat. Checked 17 Nov 2026.
  3. Anthropic, "Formalizing Fermat's Last Theorem", 4 Sep 2026Supports: the first formalization: 11 days, about 13 million lines of Lean, Prove2Me, the Darmon, Diamond and Taylor route, Lean's three standard axioms, the comparator check against Mathlib's statement, and the public code. Checked 17 Nov 2026.
  4. Kevin Buzzard, "FLT: Anthropic has beaten me to it", Xena Project blog, 4 Sep 2026Supports: his compile and comparator check of the first proof, its size and compile time, his view that it adds nothing mathematically, his 99.9% confidence in the proof, and his EPSRC-funded project. Checked 17 Nov 2026.

Written by Krishna Chagti. Published 17 Nov 2026, updated 17 Nov 2026. The limits are our own reasoning.

Questions

What else are people asking?

Did AI prove Fermat's Last Theorem?

No. Andrew Wiles, with Richard Taylor, proved it in work published in 1995. The agents rewrote a known proof in Lean so a computer could check every step. That is formalization, not a new proof.

What is Lean?

A programming language for mathematics. You write a proof in it, and its checker accepts the proof only if every step follows from earlier ones and the axioms. Anthropic's first proof used only Lean's three standard axioms.

Why did the first formalization take 11 days and this one about 30 hours?

Anthropic credits the newer model and a team of 1,000 agents working in parallel. The second team also started with 47 lemmas from the first proof and a list of 60 target statements, so the two runs did not start from the same place.

Has anyone outside Anthropic checked the 30-hour proof?

Not that we could find as of 17 November 2026. The earlier 11-day proof was compiled and checked by Kevin Buzzard on the day it was published.

Use this

Cite, embed or share the picture

Chagti, K. (2026, November 17). How did AI agents machine-check Fermat's Last Theorem in about 30 hours?. The Law Tome. https://conyso.com/lawtome/wild/fermats-last-theorem-lean-formalization-30-hours/

The diagrams on this page are free to reuse under CC BY 4.0, credited to "The Law Tome" with a link to this page. Download the share image (1080×1350) · the wide diagram.

Our prediction: The Lean code from the 1,000-agent run will be made public and compiled by someone outside Anthropic, as Buzzard did for the first proof. This is wrong if, by the check date, there is still no public repository for the run or no outside report of it compiling. Our reading, not a finding. We'll check it by 31 May 2027 and say here whether it held.

Want the next time Fermat's Last Theorem is in the news? Follow Mathematics & proof by RSS.