Anthropic and Theorem Slash Software Verification Costs with Autonomous AI Proofs
A new partnership leverages Claude to mathematically verify 123 open-source libraries, uncovering hundreds of hidden bugs and challenging the high cost of traditional formal verification.
By Bruno Brooks ·

Anthropic has demonstrated that its Claude model can autonomously generate mathematical proofs for existing software, a development that could significantly reduce the expense and time required for formal verification in the tech industry. By partnering with Theorem, the company produced approximately 180 million lines of proof code for 123 open-source libraries in a matter of weeks, a task that traditionally requires years of specialized human labor.
The initiative directly addresses the prohibitive cost of proving software correctness. Historically, formal verification has been reserved for critical systems like avionics, where a small operating system kernel once required 20 person-years to verify. In this new workflow, Claude translates crash tests from Google’s OSS-Fuzz project into mathematical problems and analyzes compiled machine code to produce extensive proofs. These outputs are automatically checked by an independent verification program called Rocq, minimizing the need for human reviewers.
A key financial and operational benefit of this approach is its ability to detect defects that conventional testing methods miss. During the verification process, Claude identified and fixed hundreds of bugs, many of which only manifested under specific conditions such as unusually large input files or specific access sequences. For instance, while verifying a widely used PDF reader, the team found as many security bugs in one week as are typically reported for that software in an entire year. In another case, the model caught a logical error that had remained undetected for more than a decade.
Despite these successes, the method has strict technical limitations that affect its immediate market applicability. Anthropic notes that the proofs are only valid under specific conditions, including a particular processor architecture, single-threaded execution, and input sizes under 64 MB. While these constraints may not match all real-world deployment scenarios, the company argues that even failed proof attempts often surface real bugs, adding value to the development cycle.
The computational cost remains a significant factor, with individual proofs consuming up to hundreds of millions of tokens. However, efficiency is improving rapidly; newer models like Opus 5.5 solve half the proofs with approximately 40 percent fewer tokens than the previous version. If AI can reliably verify its own code, developers can place greater trust in AI-generated software, potentially reducing costs across the entire coding and review process.
This progress shifts the industry focus from whether AI can program to whether it can guarantee the safety of that code. Anthropic expects formal verification using AI to become as routine as standard testing in the near future. Theorem’s roadmap already targets critical infrastructure components such as glibc, OpenSSL, and cURL, signaling a broader push to automate and secure the foundational layers of modern software systems.






