Claude formal verification: 123 libraries proved crash-free
Anthropic and Theorem used Claude to write Rocq proofs that 123 open-source libraries can't crash on fuzz inputs. Hundreds of bugs fell out. Read the spec, not the badge.
"Formally verified" used to mean a research team, a year, and one small program. Anthropic just made it a batch job. In AI formal verification research published October 22, its Frontier Red Team and the startup Theorem had Claude write machine-checked proofs that 123 open-source libraries cannot crash on their fuzz-test inputs. Along the way, Claude found and patched hundreds of bugs. The headline is the scale. The lesson for you is in the fine print.
What actually happened
Per Anthropic's write-up, the team took libraries from Google's OSS-Fuzz program and turned each fuzz harness into a spec: this test always exits normally, with no memory-safety errors or failed assertions, for any input under 64 MB. Claude then wrote proofs in the Rocq proof checker against the compiled RISC-V binary, not the source code.
The numbers:
- 239 entry points across 123 libraries proved crash-free under the stated conditions.
- About 180 million lines of Rocq in total. A typical proof runs around 600,000 lines.
- One proof can take hundreds of millions of tokens. Anthropic gives no dollar figure.
- On one widely used PDF reader, the team found as many security bugs in a week as usually get reported in a year.
When Claude hit a bug, it patched the code, regenerated the spec, and proved the fixed version. The team penalized patches that "fixed" a crash by gutting functionality, and audited them. Proofs and the RISC-V/Linux semantics are on GitHub. Proofs that could expose unpatched bugs are held back.
Why AI formal verification matters for your business
Anthropic says it plainly: "formally verified" does not mean "bug-free." These proofs assume a single-threaded static binary, RISC-V, musl, and Linux. Your server almost certainly runs x86 or ARM with dynamic glibc. A caller that misuses the library can still corrupt memory. The proof is exactly as strong as the spec, and no stronger.
That is the part you can use today. Within a year, vendors will put "AI-verified" on their sales pages. When one does, ask three questions: verified against what spec, on what platform, and which code paths were left out. If they can't answer, the badge is marketing.
The other signal is cost direction. Finding bugs used to be the expensive step in security. Here, a model found them as a side effect of proving the rest of the code clean. For the open-source libraries in your stack, that means more CVEs, faster. Your patch cadence has to keep up.
Key takeaways
- Anthropic and Theorem used Claude to prove 239 entry points in 123 OSS-Fuzz libraries crash-free for inputs under 64 MB
- Proofs are checked by Rocq against compiled RISC-V binaries; hundreds of bugs were found and patched along the way
- The proofs assume RISC-V, musl, static linking, and one thread, which is not what most production servers run
- "Formally verified" means "matches this spec," not "bug-free"; ask any vendor for the spec and the platform
- AI-driven bug discovery is getting cheaper, so expect more CVEs in your dependencies and patch faster
A proof is only as good as the spec, and a patch is only useful if it ships. We build software with dependency inventories and update pipelines you control, so a new CVE is a scheduled deploy, not a fire drill. See how we build and maintain systems, or send us your stack and we'll tell you where the patch gaps are.
Sources: Anthropic, Theorem Labs on GitHub.
- #formal-verification
- #anthropic
- #open-source
- #ai-security
- #rocq
Tommy Rush — Founder, Rush Commerce
Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More
Get The Rush Report weekly — one email, zero fluff.
Keep reading
Plex2Shell: update Plex Media Server, then check for miners
Plex2Shell chains four Plex Media Server flaws into remote code execution. CISA lists it as exploited. Update to 1.43.3.10861 and check the box for implants.
Read itCopilot usage metrics API now names your MCP servers and agents
GitHub's Copilot usage metrics API now reports MCP servers, custom agents and skills by name, not as 'other'. Use it to audit what your AI coding fleet runs.
Read it