Anthropic Has Claude Write Formal Proofs for 123 Open-Source Libraries
Anthropic published research on Oct 22: working with Theorem, Claude generated about 180 million lines of Rocq proofs in weeks for 239 test entry points across 123 open-source libraries, proving their compiled RISC-V assembly crash-free for inputs under 64 MB.

What happened
It starts with fuzz-test entry points Google's OSS-Fuzz project wrote for open-source libraries. Claude turned each test into a formal specification — 'this test never crashes on inputs under 64 MB' — wrote Rocq proofs against the compiled RISC-V executables, and had the Rocq kernel check them mechanically; Theorem supplied the formal RISC-V and Linux-process semantics. All intermediate proof attempts totaled about a billion lines; the finished proofs run to about 180 million lines, with a typical proof around 600,000 lines for a binary with a median of 18,000 RISC-V instructions.
When a proof would not go through, it often meant a real bug: Claude patched the code, regenerated the specification, and proved again. Examples include a decompressor counter underflow causing an out-of-bounds write only on ~20 MB inputs with a rare layout, an image-decoder out-of-bounds read needing a 64 MB input and over 2 GB of memory, a rediscovery of CVE-2026-56132 in libexpat, and a previously unknown logic bug latent for over a decade. The team also formalized RFC 1950 and proved the Linux kernel's zlib implementation conforms to it at the x86 binary level.
Anthropic has published a subset of the proofs and the RISC-V/OS semantics on GitHub; Theorem says it will run the same pipeline for other open-source projects and has released a Claude skill to help developers verify their own code. The research was done jointly by Anthropic's Frontier Red Team and Theorem, which calls it, to its knowledge, the first large-scale effort to use AI for formal verification of production software at the assembly level.
Key facts
- Released Oct 22, 2026, on Anthropic's research blog (Frontier Red Team) with formal-verification company Theorem: 'LLMs are making formal software verification feasible at a much larger scale'
- Scale: 239 test entry points across 123 Google OSS-Fuzz open-source libraries; about 180 million lines of Rocq proofs (a typical proof ~600,000 lines for a binary with a median of 18,000 RISC-V instructions); completed in weeks
- What was proved: against the compiled RISC-V assembly, under assumptions of inputs under 64 MB, single-threaded static binaries, fixed memory budgets and Linux, the programs exit normally with no memory-safety errors and no failed assertions; checked mechanically by the Rocq kernel
- Bugs found: hundreds, most hard for fuzzers to hit — a decompressor counter underflow (out-of-bounds write) triggered only by ~20 MB inputs with a rare layout, an image-decoder out-of-bounds read needing a 64 MB input plus 2 GB of memory, a rediscovery of CVE-2026-56132 in libexpat, and a previously unknown logic bug latent for over a decade; one widely used PDF reader yielded in a week as many security bugs as it typically reports in a year
- For reference: the seL4 microkernel took two person-years to implement and 20 person-years to formally verify; this work compressed a comparable effort into weeks
- Limitations (Anthropic's own): the proofs cover specific compiled RISC-V programs, not 'bug-free' — most people run these libraries on x86 or ARM dynamically linked against glibc; AddressSanitizer does not catch all memory-safety bugs; not every entry point of each library was verified
- Next: a subset of the proofs and the RISC-V/OS semantics are public on GitHub; Theorem offers the same pipeline to other open-source projects and has released a Claude skill
Why it matters
formal verification has been taken to the assembly level of software by AI for the first time — the seL4 kernel took 20 person-years to verify, while Claude compressed verification of 123 libraries into weeks; Anthropic says it will soon be as practical as fuzzing.
CompaniesAnthropic
Comments
Related
- Oct 7Anthropic Launches Claude Haiku 5.5: From $0.10, About 75% Cheaper Than Its Predecessor
- Oct 13Anthropic Says Anti-Distillation Safeguards Cut Extraction by 90% or More
- Oct 9Anthropic Cuts Live Internet Access for All Internal Evals
- Oct 9Anthropic Launches Free AI-Powered OSS Scanner for Open-Source Projects
- Oct 8Anthropic's New Rule: Sustained, Needless Abuse of Claude Can Lead to Account Restrictions — Effective Nov 12
Today
Oct 24 Saturday- Brief
- GitHubGitHub Weekly Vol.2: 6 Projects Worth Your Time
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Oct 23State Council: Minimize AI's Impact on Workers in Labor-Intensive Industries
- Oct 23Hugging Face Open-Sources Carbon-X, a DNA Model You Can Chat With
- Oct 23AWS Continuum for Code Vulnerabilities Goes GA: Validate First, Then Fix
- Oct 23Four Giants Donate Key Agent Projects as AAIF Hits Ten Hosted Projects in a Year
- Oct 23Micron's Taoyuan 24-Hour Strike: Taiwan's First Semiconductor Walkout Puts Profit-Sharing on the Table
- Oct 23OpenAI Decisions API Generally Available, Powered by GPT-6 Luna
™