AdvertiseDonate
FresnoBakersfieldSan JoseStocktonOaklandSacramentoSan FranciscoReno
Verified Focus · 1690 W. Shaw Avenue, 1st & 2nd Floor, Fresno, CA 93711
Tech · AI

Anthropic's AI Model Generates 180 Million Lines of Code to Prove Software Safety

A collaboration between Anthropic and Theorem used Claude to mathematically verify existing open-source libraries, uncovering hundreds of latent bugs while exposing the high costs and strict limitations of automated proof generation.

By Nadia Almasi ·

Illustration for: Anthropic's AI Model Generates 180 Million Lines of Code to Prove Software Safety
Illustration generated for this article, not a news photograph.

180 million lines of mathematical proof code. That is the volume of output generated by Anthropic’s Claude model over a span of just a few weeks, according to data released on October 23, 2026. The figure represents an unprecedented scale of automated verification, where the AI did not write new software but instead demonstrated that existing code behaves as intended under specific conditions. This massive output was produced while analyzing 123 open-source libraries, a task that historically required years of specialized human labor and was often deemed too expensive for all but the most critical systems.

The central claim from Anthropic and its partner, Theorem, is that artificial intelligence can now handle the rigorous process of formal verification. Traditionally, proving that software runs without errors in all possible scenarios has been prohibitively costly. For context, a team of specialists required 20 person-years to formally verify the seL4 operating system kernel, a small piece of code. This expense meant the method was largely reserved for extreme cases, such as the avionics software used by Airbus. By leveraging Claude, the Frontier Red Team aims to make this level of scrutiny more routine, effectively automating the proof of correctness for software.

The process involved translating crash tests from Google’s OSS-Fuzz security project into mathematical problems. Claude then analyzed the compiled machine code and produced extensive proofs to verify the behavior of the existing software. An independent verification program called Rocq checks these proofs automatically. Anthropic describes the workflow as "fully autonomous," noting that it requires almost no human reviewers during the generation phase. However, this autonomy is built upon formal foundations and tools created by humans at Theorem, meaning the AI is executing a complex, pre-defined logical framework rather than inventing its own rules of correctness.

One of the more striking outcomes of this automated verification was the discovery of hundreds of bugs that conventional testing had missed. These defects typically only manifest under very specific circumstances, such as unusually large input files or particular sequences of memory accesses. In one notable instance involving a widely used PDF reader, the team identified as many security vulnerabilities in a single week as are typically reported for that software over an entire year. In another case, Claude detected a logical error that had remained undetected for more than a decade. The researchers note that even when a complete proof fails, the attempt itself often surfaces these hidden issues.

Despite these successes, significant caveats remain. Anthropic explicitly states that "formally verified" does not equate to "error-free." The proofs are valid only under strict constraints, including a specific processor architecture, single-threaded execution, and input sizes under 64 MB. In real-world applications, these libraries often run on diverse hardware and in more complex configurations. This gap between the controlled conditions of the proof and the variability of actual deployment remains a key open question for developers considering this approach.

The computational cost of this endeavor is also substantial. Individual proofs can consume hundreds of millions of tokens, and Anthropic has not disclosed the total financial cost of the project. While the expense is steep, the argument is that it saves money elsewhere by increasing trust in AI-generated software and reducing the time developers spend on manual review. Efficiency is improving, with newer models like Opus 5.5 solving half the required proofs using approximately 40 percent fewer tokens than its predecessor, Opus 5.

The implications extend beyond immediate bug detection. If AI can both write code and prove its safety under defined conditions, the industry’s focus may shift from asking whether AI can program to asking whether it can guarantee the safety of that code. Anthropic believes this shift could make formal verification as practical as standard unit testing. Theorem’s roadmap already targets critical infrastructure components such as glibc, OpenSSL, and cURL, suggesting that this technology is moving from experimental proof-of-concept toward a standard part of the software development lifecycle.

For readers in California and beyond, this development signals a potential leap in software automation. It offers a path to more reliable code but demands careful scrutiny of the conditions under which those proofs hold. As the cost of compute drops and models become more efficient, the balance between verification cost and software reliability may tip in favor of broader adoption, though the strict limitations of current proofs remain a significant hurdle for universal application.

Source: The Decoder · original report published

More Tech · Report a business · Got a Story?

Get Verified Focus in your inboxReporting on the stories people talk about. Free, a few times a week, unsubscribe any time.

Related stories

Get Verified Focus in your inboxReporting on the stories people talk about. Free, a few times a week, unsubscribe any time.