Frontier Foundry

1,000 Claude Agents Formalized Fermat's Last Theorem — Lance Martin, Anthropic

Talk notes · AI Engineer ·

A close reading of the source at youtube.com: what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.

Formal VerificationLong-Horizon & Background AgentsMulti-Agent SystemsBenchmarks & LeaderboardsAgent MemoryAgent Sandboxing & PermissionsAnthropic

Problem

Lance Martin (Anthropic) tells two stories about getting more out of Claude; the first is multi-agent. Fermat's Last Theorem stood unproven for about 350 years and Andrew Wiles's proof took him seven years (talk). Formalizing it means checking every step by machine, in Lean (1:13). In September Anthropic showed Claude could do this with about a dozen agents, but only with a domain-specific platform (prove to me) and a lot of help from a researcher (2:14). The question for the rerun: can a much larger team do it with no domain harness and no human steering of the solution?

Approach

  • Thousand agents, two primitives. One lead and 999 helpers, each in its own sandbox with restricted network access, connected only to Git and a SQL database. The prompt names the roles, the two tools and the problem, "that's really it" (3:15).
  • Monitoring around it. Real-time monitoring of every tool call for escapes, plus offline review of all agents' runs every 10 minutes (3:15).
  • The lead builds its own tables. About 5 minutes in, unprompted, it created tables to announce, assign roles to workers, post notes, track subtasks and record what had landed; helpers wrote Lean to the "land" table (4:15).
  • Self-made abstractions and reallocation. For the hardest statements the agents built their own task trees, and the lead and helpers reassigned themselves across the 60 statements over about 30 hours (5:17).

Lessons learned

  • Structure for safety, not for the math. Martin says there was a lot of structure for safety and monitoring, but the team finished a formalization "expected to take many, many years" with simple primitives and no domain harness (6:19). A lead note near the end read "total freeze of the origin... magnificent work all 999 of you".
  • The first dozen-agent team did not work well until given prove to me and researcher support (1:13); the rerun removed both.
  • Second story, memory (not formal verification). Martin argues agent memory is written greedily forwards but must be coherent backwards; stronger models know when to write and read memory. On CL Bench (40 questions about a database, fresh session each time) Sonnet 46 gains little from a memory directory, and Opus 55 gains much more (9:16). Claude 37's Pokemon memory directory was huge and indiscriminate; Fable 5's was tight and strategic (11:24).
  • Dreaming (reflecting over transcripts and notes) rescued a run poisoned by a wrongly written landmark location, and filled gaps in a wiki; on a 25-question company-corpus test, search alone scored about 53% and wikis improved with more dreaming tokens (13:46, 15:16).

Theme

Agents & Harnesses; Science.

Where this leads

the concepts it is about

Related briefs

every brief

Cite this page

the version of 2026-11-25
APA
Han, R. (2026, November 25). 1,000 Claude Agents Formalized Fermat's Last Theorem — Lance Martin, Anthropic. Frontier Foundry. https://www.ryanhan.ai/briefs/2026-11-25-aie-talks-1-000-claude-agents-formalized-fermat-s-last-theorem-lance-m
BibTeX
@misc{han2026-briefs-2026-11-25-aie-talks-1-000-claude-agents-formalized-fermat-s-last-theorem-lance-m,
  author       = {Han, Ryan},
  title        = {{1,000 Claude Agents Formalized Fermat's Last Theorem — Lance Martin, Anthropic}},
  howpublished = {Frontier Foundry},
  year         = {2026},
  month        = nov,
  url          = {https://www.ryanhan.ai/briefs/2026-11-25-aie-talks-1-000-claude-agents-formalized-fermat-s-last-theorem-lance-m}
}