AI Verification: Weeks of Claude Proofs Replace Years of Manual Code Checks
Anthropic's model generated 180 million lines of proof code to validate existing open-source software, uncovering bugs that traditional testing missed.
By William Richardson ·

Developers of widely used open-source software now have new confidence in the stability of their code, according to Anthropic. The company announced that its Claude model has mathematically proven the correctness of 123 existing libraries. This work addresses a long-standing gap in software reliability, where proving code behaves correctly in all scenarios has required massive human effort.
Formal verification has historically been too expensive for most projects. Specialists required 20 person-years to verify seL4, a small operating system kernel. Consequently, the technique remained rare outside critical systems like Airbus avionics. Anthropic partnered with Theorem to change this dynamic by letting Claude handle the proof generation. In weeks, the model produced approximately 180 million lines of mathematical proof code using test programs from Google's OSS-Fuzz security project.
The process involved converting crash tests into mathematical problems and analyzing compiled machine code. A separate tool called Rocq automatically checks the generated proofs. Anthropic states the process requires minimal human review, describing the generation as "fully autonomous." However, the underlying tools and formal foundations were built by humans at Theorem. Claude did not write new software; it validated existing code.
The verification effort surfaced hundreds of bugs. Researchers noted that many errors appear only under narrow conditions, such as unusually large input files or specific access sequences, which often escape conventional testing. During a one-week check of a widely used PDF reader, the team found as many security bugs as are typically reported in a full year. In another case, Claude identified a logical error that had remained undetected for more than a decade.
Anthropic emphasizes that "formally verified" does not mean "error-free." The proofs apply only under specific conditions: a particular processor architecture, single-threaded programs, and inputs smaller than 64 MB. Real-world deployments often run on different hardware. Cost remains a constraint, with individual proofs consuming hundreds of millions of tokens. Anthropic has not published total project costs, but a smaller test run showed that Opus 5.5 solves half the proofs using about 40 percent fewer tokens than Opus 5.
The project shifts the focus from whether AI can program to whether it can prove its code is safe. Anthropic expects this method to become as practical as standard testing. Theorem's roadmap now targets critical infrastructure components, including glibc, OpenSSL, and cURL.






