AdvertiseDonate
Latest56 Percent Complete, 2,000 Km Planned For GCC Rail By 2030
Wed, Dec 2, 2026PhiladelphiaNewarkJersey CityNew YorkBaltimoreWashingtonRichmondVirginia Beach
United Wire Hub · 50 South 16th Street, Suite 1700, Philadelphia, PA 19102
Tech · AI

Claude Automates Safety Checks for Millions of Lines of Code

Anthropic's new system uses AI to mathematically verify software correctness, uncovering hidden bugs that traditional testing methods missed.

By Isabella Kamau ·

Illustration for: Claude Automates Safety Checks for Millions of Lines of Code
Illustration generated for this article, not a news photograph.

Anthropic has demonstrated a significant leap in software reliability by using its Claude model to automatically generate mathematical proofs of code correctness. Working alongside its partner Theorem, the company applied this technique to a large batch of existing open-source libraries. The result was a system that not only verified the code but also identified and fixed numerous hidden defects that had escaped detection for years. This approach represents a shift from simply writing code to mathematically guaranteeing its behavior under specific conditions.

The effort was massive in scale. In a matter of weeks, Claude produced approximately 180 million lines of proof code. These proofs were generated for 123 different open-source libraries from Google's OSS-Fuzz security project. Traditionally, formal verification has been an extremely expensive and labor-intensive process. For context, a team of specialists once required twenty person-years to verify the small operating system kernel seL4. Because of this high cost, the method was usually reserved for critical systems like aircraft avionics.

The new process works by having Claude translate crash tests into mathematical problems. The model then analyzes the compiled machine code and generates extensive proofs to demonstrate correctness. An independent program called Rocq automatically checks these proofs. According to Anthropic, the process requires almost no human intervention, which the researchers describe as fully autonomous proof generation. However, the underlying tools and formal foundations were still built by human engineers at Theorem.

One of the most notable outcomes was the discovery of hundreds of bugs. Many of these issues only appear under very specific circumstances, such as unusually large input files or particular sequences of memory accesses. Conventional testing often misses these edge cases. During the verification of 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 instance, Claude identified a logical error that had gone undetected for more than a decade.

Despite the success, Anthropic notes that formally verified does not mean error-free in every possible scenario. The proofs hold only under strict conditions, including a specific processor architecture, single-threaded execution, and inputs under 64 megabytes. Since these libraries often run on different hardware and configurations in the real world, the verification is limited to those defined parameters. Additionally, the compute cost is significant, with individual proofs consuming hundreds of millions of tokens.

The financial implications of this technology are promising. If AI can verify its own code, developers can spend less time on manual review and testing. This efficiency could reduce costs across the entire coding process. Anthropic also observed that newer models are becoming more efficient. Their Opus 5.5 model solved half the proofs using about 40 percent fewer tokens than the previous Opus 5 version. This trend suggests that the cost of verification will continue to drop as model capabilities improve.

The project suggests that the question in software development is shifting. It is no longer just whether AI can program, but whether it can prove that the code it writes is safe. If the answer is yes, the impact could extend far beyond current coding tools. Anthropic expects this method to become as routine as standard testing in the near future. This would allow for a new level of trust in AI-generated software.

The roadmap for this technology is already expanding. Theorem is targeting critical infrastructure components such as glibc, OpenSSL, and cURL. By applying this automated verification to these foundational libraries, the industry could see a major improvement in software stability. The ability to catch deep-seated bugs automatically could change how developers approach system design and security, making robust verification a standard part of the development lifecycle rather than a specialized luxury.

More Tech · Report a business · Got a Story?

Get United Wire Hub in your inboxThe stories that matter, every day. Free, a few times a week, unsubscribe any time.

Related stories

Get United Wire Hub in your inboxThe stories that matter, every day. Free, a few times a week, unsubscribe any time.