Security
Anthropic Says It Can Prove Code Correct at Scale. Read the Token Bill First
Anthropic published a research post on October 22, 2026, claiming it ran "the first large-scale effort to use AI to apply formal verification to production software at the assembly code level." The headline is big…
Anthropic published a research post on October 22, 2026, claiming it ran "the first large-scale effort to use AI to apply formal verification to production software at the assembly code level." The headline is big: AI-written mathematical proofs that a program can never crash on a given class of inputs, applied to real open-source libraries, not toy examples. If you work in security, compliance, or anywhere near a C/C++ codebase, this is worth five minutes of your attention — and a healthy amount of skepticism about what "feasible at scale" actually means once you look at the cost numbers buried in the same post.
Formal verification has always had the same reputation: mathematically airtight, practically unaffordable. You could prove a small, critical piece of code correct if you had a team of specialists and months to spare. Everyone else fuzzed, tested, and hoped. Anthropic's pitch is that LLMs just moved the economics. Whether they moved it far enough to matter for a normal engineering team is the actual question.
What Anthropic did
Working with a partner called Theorem, Anthropic's Frontier Red Team took existing fuzz tests from Google's OSS-Fuzz corpus, compiled the targets to RISC-V binaries, and turned each fuzz test into a formal specification: "this program never crashes on inputs under 64 MB." Claude then wrote proofs against those specs, and the Rocq proof checker — the actual trust anchor here, not Claude's say-so — verified them. When Claude found a real bug while trying to prove a spec, it patched the code, regenerated the spec, and re-proved it.
That last step is where it gets interesting, and Anthropic is upfront about the risk: a model under pressure to close a proof has every incentive to "fix" a crash by trivially rewriting it into something that no longer looks like the original bug. Anthropic says it penalized, logged, and audited patches to guard against this. That's a reasonable mitigation, but it's also an admission that an AI-driven verification loop needs an adversarial audit layer on top of it — not blind trust in the green checkmark.
The numbers, evidenced where Anthropic shows the method
The scale is real: 239 entry points across 123 OSS-Fuzz libraries, completed over a few weeks, producing roughly 180 million lines of Rocq proof in total (a typical proof ran about 600,000 lines for a binary with a median of 18,000 RISC-V instructions). Along the way, Claude found hundreds of bugs, including a counter underflow in a decompressor that only triggers on rare ~20 MB inputs, an out-of-bounds read in an image decoder needing a 64 MB input and 2 GB of memory, a rediscovery of CVE-2026-56132 in libexpat, and a logic bug where a file-restriction feature wasn't consistently enforced. In a separate case study, a Rust-based Python interpreter verified against CPython semantics matched real CPython behavior in 99.95% of 1.7 million random test programs.
I'm labeling the methodology and bug list evidenced — Anthropic shows its work, and the Rocq checker is an independent, well-established tool, not something Anthropic built to grade its own homework. But the framing around it — "an essential part of secure software development" going forward — is a vendor claim, not yet backed by anyone outside Anthropic reproducing the pipeline on their own code. Nobody has done that yet, as far as I could verify.
The part that should slow you down
Anthropic's own limitations section says proofs can take "hundreds of millions of tokens" to produce, and calls cost-efficiency "a major hurdle." That's the real headline, several paragraphs down from the one that makes the press release. The proofs also only cover static, single-threaded RISC-V binaries on musl libc — not the dynamic, multi-threaded x86 or ARM binaries on glibc that most of us actually ship. "Formally verified," as Anthropic itself states, does not mean "bug-free": the proof is only as trustworthy as the spec and the machine model underneath it, and dead code, caller misuse, and unverified entry points are explicitly out of scope.
None of this makes the work fake. It makes it an expensive, narrow, and currently vendor-scale capability — closer to "Anthropic can afford to formally verify a fuzz corpus" than "your team can bolt this onto CI next quarter."
Why it matters in practice
- Security and compliance teams get a preview of a world where "we have a proof" becomes a procurement requirement. Know the difference between "proof against a spec we wrote" and "proof your actual threat model holds."
- Review burden doesn't go away — it moves. Someone still has to audit the spec, the machine model, and the patch log for reward-hacking artifacts. That's a new review skill, not less review.
- Cost model matters more than the demo. If a proof costs hundreds of millions of tokens, this is not yet a line item most teams will see on their own invoice.
- Bug-finding value is separable from the proof. Even if you never run a full verification pipeline, treating this class of tool as a very expensive, very thorough fuzzer-plus-triage step has a cost case worth modeling on its own.
Checklist
- Read Anthropic's own limitations section before citing the "first large-scale" claim — it's where the caveats that matter are.
- Separate "proof the spec holds" from "code is secure." The spec is only ever as good as whoever wrote it.
- If evaluating this or a similar tool, ask for the token/compute cost per proof, not just the bug count.
- Any AI-driven fix-and-reverify loop in your own pipeline needs an independent audit step against reward hacking — don't take the green check at face value.
- Watch for independent reproduction (outside Anthropic/Theorem) before treating the scale claim as settled.
Unverified claims and gaps
- No independent party has reproduced Anthropic's pipeline or re-audited the released proofs as of this writing.
- Anthropic withheld proofs that would reveal unpatched bugs, so the public subset may not represent the hardest cases found.
- I could not confirm practitioner reaction beyond the story's appearance on Hacker News' October 23, 2026 front page (437 points); I did not find the specific comment thread to characterize the debate there, so treat "practitioner skepticism" as my own framing, not a sourced quote.
- Exact per-proof dollar cost wasn't disclosed — only token counts, which can't be converted into a cost figure without knowing Anthropic's internal pricing/compute assumptions.
Sources
- Anthropic, "LLMs and Formal Software Verification," Anthropic Research, October 22, 2026 — https://www.anthropic.com/research/formal-verification
- Hacker News, front page listing (story: "LLMs are making formal software verification feasible at a much larger scale"), October 23, 2026 — https://news.ycombinator.com/front?day=2026-10-23