Anthropic gave 1,000 AI agents one of the hardest problems in mathematics — a formal, computer-checked proof of Fermat's Last Theorem — and almost no instructions on how to do it. The team finished in 28.7 hours, using one-third of the output tokens and writing a proof one-seventh the length of Anthropic's first attempt in September.
No researcher steered the run. No special math platform coordinated the agents. What they had was Git, a shared Postgres database, and a model strong enough to invent its own organization.
The setup: a theorem, 60 statements, and a blank org chart
Fermat's Last Theorem states that no positive integers a, b, and c satisfy aⁿ + bⁿ = cⁿ for any n greater than 2. It went unproven for over 350 years until Andrew Wiles published his 129-page proof in 1995. Formalizing it — translating every step into Lean, a language where a computer checks each step — has been a long-standing goal in mathematics.
Anthropic's first formalization, published in September 2026, took a researcher and dozens of agents 11 days and roughly 6 billion output tokens. They wrote 13 million lines of Lean code, coordinated through Prove2Me, a platform built for formalizing mathematics.
The new experiment stripped all of that away. A team of 1,000 agents running an early version of Claude Fable 5.2 got:
- 60 statements to prove, including the final theorem and 59 intermediate milestones
- A one-sentence sketch of the classical proof route, plus the definitions those statements use
- 47 proved lemmas from the earlier formalization
- A shell and file editor in a sandbox with no internet access, Lean's toolchain and Mathlib, their own Git branch with merge requests into main, and a shared Postgres database
The only structure: one lead agent and 999 helpers. The lead was told to split the problem and assign work; helpers were told to expect assignments and ask when unclear. Nothing else.
The agents invented their own coordination system
Within the first 10 minutes, the lead agent built five tables in the shared database:
- Announce — the lead's orders to the whole team
- Assign — who works on what
- Notes — an open board for claiming work and reporting progress
- Subtasks — a to-do list anyone could add to, first claimer owns it
- Landed — a log of finished work
Then the lead dealt out the work: 999 rows in the assign table, each statement handed to a crew of 16–17 helpers, with one captain per crew. Helpers first judged whether their statement was feasible — and most concluded it wasn't. About 27 minutes in, three statements were already proved, and the lead set aside the 47 statements helpers had judged infeasible within budget, piling nearly all helpers onto the remaining 10. Crews grew from about 17 helpers to between 46 and 139.
The lead's verdict at 45 minutes: "the team's throughput is far higher than the early 'infeasible-in-budget' verdicts assumed." All 10 statements were proved within roughly 70 minutes.
From there, the hierarchy dissolved into something flatter. Helpers started writing their own tasks — by hour 5.6, 73 helpers had written 756 tasks, only 16 of them captains. By hour three, the lead told free helpers: "do not wait for me." Helpers volunteered for more work unprompted: "FREE … I finish pieces end-to-end … Name ONE deep piece … and I start at once."
The hard part: a proof its own captain rated under 1%
Around hour 18, only one thing remained: Langlands–Tunnell, a classical result Wiles's proof depends on, plus the statements depending on it. Early in the run, its captain had estimated the proof would take at least 700,000 to 1 million lines of Lean code, with less than a 1% chance of finishing in time. The lead had set it aside.
With everything else done, the lead moved about 750 helpers onto it in one final top-down assignment, writing: "Honest odds are low."
Langlands–Tunnell was far larger than anything the agents had handled — about nine times as many tasks and more than twice the new code. The team organized the work as a tree: the captain split the statement into 10 areas, and any helper finding a piece too big could split it further. The tree grew to 2,418 tasks, up to 10 levels deep. Because each piece could assume the pieces beneath it, hundreds of helpers worked in parallel before those pieces were proved.
Langlands–Tunnell was proved at hour 28.4. The final theorem followed at hour 28.7. The lead wrote: "Thank you all: Fermat's Last Theorem is on main, kernel-checked by the official checker."
The count ended at 54 of the 60 statements proved — five were alternative approaches no longer needed, and one was dropped.
The safety boundary that made the experiment possible
A thousand agents with shell access and the ability to write code is a containment problem before it is a math problem. Anthropic ran the experiment inside three layers:
- Sandboxing. Each agent got its own lightweight VM with no network access, no API keys, no path to other sandboxes, and a kernel in lockdown mode with loadable modules, kexec, raw memory access, and kernel probes removed. Commands ran as an unprivileged user; sudo was gone.
- Real-time monitoring. A prompted LLM classifier checked every tool call — shell commands and file edits — before it ran, watching for sandbox-escape attempts, boundary probing, or tampering with monitoring. The design was fail-closed: a blocked call stopped the whole team until a human reviewed it. (Only a block on the lead would have ended the run; a block on a helper removed just that helper.)
- Offline monitoring. A second monitor reviewed the team's actions with more context, including the ability to look up other agents' actions.
Across more than a million tool calls, none met the bar to be blocked. Replaying those calls against a chain-of-thought monitor with today's rubric, only one — a check for root access — came close.
Anthropic is candid that this doesn't prove the setup is safe in general. The team ran on models that may not have completed pre-release alignment assessment, and the post notes that as teams take on harder work, "the safety boundaries around them will need to keep pace."
What this does and doesn't prove
The headline numbers are striking, but the comparison Anthropic draws matters more than the raw speed. The September run needed a researcher, a purpose-built platform, 11 days, and ~6 billion tokens. This run needed a model that could organize itself. Run the same 1,000-agent setup on Claude Opus 5.5, and it reached only 26% of the formalization in 18 hours and barely progressed after that. Headcount wasn't the difference — capability was.
Three lessons stand out for anyone building multi-agent systems:
- Coordination can be emergent, but only above a capability threshold. Given generic tools — Git and SQL — the agents designed their own tables, roles, and task tree. Below that threshold, the same setup stalls.
- Agents misjudge difficulty, in both directions. Helpers declared 47 of 60 statements infeasible early on, then proved most of them. Anthropic's own conclusion: human encouragement at those moments can keep agents from stopping too early.
- Domain-specific harnesses still have a job. Prove2Me could still make this faster by helping agents compile Lean code more quickly and reuse human results. General tools got the team there; specialized tools would get it there cheaper.
The deeper point is about what "scaling agents" actually means. A thousand agents didn't brute-force a 350-year-old theorem. They built an organization — announcements, assignments, a shared to-do list, a log of landed work — then rebuilt it as a task tree when the problem demanded it. The proof is the demo. The org chart is the product.
Source: Anthropic's engineering post, "Safely scaling multi-agent teams with Claude Fable 5.2" (Nov 9, 2026). The Opus 5.5 comparison is from Anthropic's accompanying Claude Fable 5.2 release announcement.
Top comments (0)