Claude Verifies 123 Libraries, Uncovering Hundreds of Hidden Software Bugs
Anthropic's AI model mathematically proved the correctness of existing code, identifying critical flaws that traditional testing methods had missed for years.
By Adewale Fletcher ·

The era of manual software auditing is facing a rapid obsolescence as artificial intelligence begins to certify its own work.
In a development that could reshape the software industry, Anthropic’s Claude model, working alongside partner Theorem, generated approximately 180 million lines of mathematical proof code. This output covered 123 open-source libraries from Google’s OSS-Fuzz security project in a matter of weeks. The initiative represents a significant shift from traditional bug hunting to formal verification, a process that has historically been reserved for high-stakes environments due to its prohibitive cost and labor intensity.
The technical approach involved translating crash tests into mathematical problems and analyzing compiled machine code to produce extensive proofs. An independent verification program named Rocq automatically checked these outputs, requiring minimal human review. Anthropic describes the process as "fully autonomous," although the underlying formal foundations and tools were developed by human experts at Theorem. This automated pipeline allowed the AI to identify and fix hundreds of bugs that conventional testing suites had failed to detect, many of which only manifested under specific, unusual conditions such as large input files or particular access sequences.
The practical implications are stark, as evidenced by the verification of a widely used PDF reader. The team discovered as many security vulnerabilities in a single week as are typically reported for that specific software over the course of an entire year. In another instance, Claude uncovered a logical error that had remained undetected for more than a decade. These findings suggest that even when a complete proof fails, the attempt to generate one effectively surfaces real, hidden defects in the codebase.
Despite these successes, the technology comes with strict limitations. Anthropic clarifies that "formally verified" does not equate to "error-free," as the proofs hold only under specific constraints: a designated processor architecture, single-threaded execution, and input sizes under 64 MB. The computational cost is also substantial, with individual proofs consuming hundreds of millions of tokens. However, efficiency is improving; the newer Opus 5.5 model solved half the proofs with roughly 40 percent fewer tokens than its predecessor, Opus 5.
The stakes are high for the future of software automation. If AI can reliably write code and mathematically guarantee its safety under defined conditions, the industry focus shifts from basic programming capabilities to proof generation. Anthropic anticipates that AI-driven formal verification will soon become as routine as standard testing. Theorem’s roadmap already targets critical infrastructure components, including glibc, OpenSSL, and cURL, signaling a push toward securing the foundational layers of modern computing.
This advancement suggests a future where the trust in AI-generated software is bolstered by mathematical certainty, potentially reducing the time and cost associated with manual code review. As the technology matures, the ability to prove code safety may become a standard feature of the development lifecycle, transforming how engineers approach software reliability.





