
Anthropic Used Claude to Formally Prove 123 Open-Source Libraries Crash-Free Under Set Conditions
AI is usually in the news for finding bugs. This time it is about proving their absence. On 22 October 2026, Anthropic published research, done with the startup Theorem, saying Claude wrote formal, machine-checked proofs that 239 entry points across 123 open-source libraries will not crash on any input up to 64 MB, under a defined set of conditions.
What happened
According to Anthropic's research post, the team compiled each library and its existing OSS-Fuzz test into a RISC-V executable. Using Theorem's formal model of RISC-V instructions and Linux process behaviour, that produced a precise specification. Claude then wrote the proof, and the Rocq proof checker (the tool formerly called Coq) verified it mechanically, so humans do not need to read the proofs themselves.
Anthropic says the accepted proofs total about 180 million lines of Rocq, with a typical proof around 600,000 lines, and that the work took a few weeks. While writing them, Claude also found and patched bugs that had escaped years of fuzz testing. Anthropic is publishing a subset of the proofs, and Theorem is offering to run the pipeline for other open-source projects and has released a Claude skill for developers.
What was proven, and what was not
| Proven | Not proven |
|---|---|
| The tested entry points exit normally without memory-safety errors or failed assertions | That the libraries are bug-free or secure in every way |
| For every input under 64 MB and every modelled OS response and memory layout | Behaviour on other CPUs, multi-threaded builds or other operating systems |
| On the compiled RISC-V binary, not just the source code | Anything outside the stated specification |
Anthropic is explicit that the proofs assume a single-threaded static binary with a fixed memory budget on a RISC-V CPU running Linux. An analysis by Kingy AI adds that the public release so far covers a smaller set of entry points than the full experiment, and that a proof is only as strong as its specification. Coverage by Crypto Briefing highlights the time saved: formal verification on this scale has historically taken experts years.
What it means for builders
- Proof is becoming practical, not just academic. If AI can write the proofs and a small trusted checker validates them, verified code could reach ordinary projects. That matters more as AI makes bugs easier to find and exploit (see the PHP2Shell flaws).
- Keep fuzzing and testing. These proofs cover specific properties of specific entry points. Your normal tests and the vibe coding security checklist still apply.
- Watch the tooling. If you maintain an open-source C library on OSS-Fuzz, Theorem's offer and the published Claude skill are worth a look. For day-to-day work, compare agents in our Claude Code alternatives guide.
Sources
- Anthropic: LLMs are making formal software verification feasible at a much larger scale
- Kingy AI: Anthropic formal verification, Claude's proofs and their limits
- Crypto Briefing: Anthropic uses Claude to prove security properties in 123 open-source libraries
Related reading: Formal Verification AI: &Truth Raises $70M Seed Round and PHP2Shell Probed 4 Days Before Patch, Amazon Says.
FAQ
What did Claude actually prove?
That 239 fuzz-test entry points across 123 OSS-Fuzz libraries always exit normally, without memory-safety errors or failed assertions, for every input under 64 MB, under Anthropic's stated assumptions.
Does this mean those libraries are secure?
No. Anthropic says the work is "still far away from fixing all possible bugs", though it gets much closer than before. The guarantee only covers the stated property, entry points and execution conditions.
Who checks 180 million lines of proof?
The Rocq proof checker does. Its job is to confirm each proof satisfies the specification, so the trusted parts are the checker and the formal models, not the AI-written proof text.
Can I use this on my own code?
Anthropic says Theorem is offering to run the same pipeline for other open-source projects and has published a Claude skill to help developers start.