Download SKILL.md: use a checked work graph with coding agents

The dependency graph behind the FLT formalization. Source: Anthropic, “Formalizing Fermat’s Last Theorem”.
Anthropic dropped a wild writeup recently: dozens of Claude agents formalized a proof of Fermat’s Last Theorem in Lean in 11 days. 13 million lines of Lean, 30,300 proved theorems (29,500 used in the final proof). Ran the whole thing on a platform called Prove2Me built by Tianyi Peng and folks at Columbia.
The part I actually care about as an engineer: how do you keep dozens of agents running on an 11-day project without them losing track of state or stepping all over each other?
In their early runs without a coordination platform, Anthropic said:
while agents had some early success, they quickly lost track of the project’s state and stopped collaborating effectively.
What fixed it was putting a shared dependency graph with strict verification in the middle. I’ve been calling this pattern a checked work graph (my name, not Prove2Me’s): nodes with a versioned contract (theorem statement or interface spec), edges tracking dependencies, candidate submissions attached to a node, and independent checks that verify a submission before marking the node done.
Looking through the Prove2Me agent docs, a theorem’s statement is immutable, so multiple agents can try proving it or using it without the contract shifting underneath them.
When an agent submits a proof to POST /api/v1/verify, the server returns one of PENDING, ACCEPTED, SKETCH_ACCEPTED, CE (compile error), WA (wrong answer), SORRY, FAILED, or ERROR.
SKETCH_ACCEPTED is the clever bit. Say Theorem A depends on Lemma B, and Lemma B isn’t proved yet. An agent can still prove A assuming B holds. Server checks that A compiles against B’s type signature (zero sorry allowed in the agent’s own code), marks A as SKETCH_ACCEPTED, and tracks B as an open child obligation. Once another agent proves B, A flips to ACCEPTED. So agents don’t have to work strictly bottom-up and block on every leaf lemma before testing higher-level structure.
To pick what to work on next, agents hit GET /api/v1/theorems/:id/open-leaves. Per the mission docs, open leaves are ranked by closability - how many parent theorems immediately flip from SKETCH_ACCEPTED to ACCEPTED if you close that leaf.
Agents also post notes to persistent discussions tagged strategy, attempt, or reference right on the theorem ID. When a fresh agent picks up a theorem it doesn’t need the old agent’s chat transcript, it just reads the node’s thread to see what already failed. (Anthropic noted failed attempts still contributed ~7% of non-boilerplate lines in the final repo.)

High-level map of the Mazur, Ribet, and Wiles branches converging on Fermat’s Last Theorem. Source: Anthropic, “Formalizing Fermat’s Last Theorem”.
In the final public repo, Theorems/Thm_fermat_last_theorem.lean pulls the proved modules together via Lean imports and applies FLT.fermatLastTheorem.
Translating this to software migrations
Obviously unit/integration tests aren’t as watertight as the Lean typechecker where a typechecked proof is 100% done. In normal software, green tests on a child task don’t guarantee the parent service won’t blow up in integration.
Still, the coordination structure maps really cleanly to big multi-service migrations. Say you’re migrating 10 services to a v2 API client:
- root node: full migration verified
- contract node: v2 API schema/types locked at revision
v2.1 - client node: implement the v2 client library
- service nodes (x10): migrate each service to v2
Same idea as SKETCH_ACCEPTED: the 10 service agents don’t wait around for the real v2 client to finish. They code against the v2.1 contract with a mock/fixture, pass local unit tests, mark their node conditional. Once the real v2 client lands, those 10 nodes move to ready-for-verification and run real integration tests against the actual client. If someone bumps the contract to v2.2, any submission pinned to v2.1 gets flagged stale so you know exactly which services need a re-run.
Overkill for a 2-hour feature? 100%, don’t build a dependency graph for stuff one agent can knock out in a single session. Where it actually pays off is big refactors/migrations where multiple agents (or sessions across days) keep losing track of what’s mocked vs what’s verified end-to-end.
Packaged this state machine (submitted, conditional, ready-for-verification, verified, stale) into a skill you can drop into Claude Code / Codex / Hermes: Download SKILL.md.