AdvertiseDonate
☰ SectionsBig-city news, all in one place.
Journal Coverage · 615 Saint George Square Court, Suite 300, Winston-Salem, NC 27103
Tech · AI

AI Code Verification: Anthropic's New System Finds Hidden Flaws

A new system allows Claude to mathematically prove software safety, uncovering hundreds of bugs that traditional testing methods missed.

By Amelia Becker ·

Illustration for: AI Code Verification: Anthropic's New System Finds Hidden Flaws
Illustration generated for this article, not a news photograph.

The landscape of software security shifted significantly this week as Anthropic revealed a new capability for its Claude model. The AI can now automatically generate mathematical proofs to verify the correctness of existing code. This development marks a major step forward in automating one of the most difficult tasks in computer science.

The core innovation lies in the partnership between Anthropic and Theorem. By leveraging Claude, the team successfully verified code from 123 open-source libraries. The process was not just a test run. The model generated approximately 180 million lines of proof code in a matter of weeks. This speed is unprecedented in the field of formal verification.

Traditional formal verification is known for being slow and expensive. Historically, it required large teams of specialists. For example, verifying the seL4 operating system kernel took 20 person-years. Because of this high cost, the method was usually reserved for critical systems like aviation software. Anthropic’s new approach drastically reduces the time required for this rigorous check.

The process involves translating crash tests into mathematical problems. Claude analyzes compiled machine code and produces extensive proofs. An independent verification program called Rocq then checks these proofs. According to Anthropic, the system operates with almost no human review. The researchers describe the process as fully autonomous, although the underlying tools were built by humans at Theorem.

One of the most striking outcomes is the discovery of hidden bugs. Claude identified hundreds of errors that conventional testing had missed. Many of these bugs only appeared under very specific conditions, such as unusually large input files. In one notable case, the team found as many security bugs in a PDF reader in one week as are typically reported in an entire year. Another error had remained undetected for over a decade.

However, the term formally verified comes with specific limitations. The proofs only hold under strict conditions, including a specific processor architecture and single-threaded programs. Inputs must also remain under 64 MB. This means the verification does not cover every possible real-world scenario where the software might run. Anthropic acknowledges that verified does not mean error-free in every context.

The computational cost is also a factor to consider. Individual proofs can run into hundreds of millions of tokens. Anthropic has not disclosed the total project costs. Yet, the efficiency is improving. A smaller test run showed that newer models are more efficient. Opus 5.5 solves half the proofs with about 40 percent fewer tokens than its predecessor. This trend suggests that the process will become more cost-effective over time.

The long-term implication is a shift in how developers trust AI-generated software. If AI can write code and prove its safety, the need for manual review decreases. This could save significant time and money across the entire coding process. The question is no longer just whether AI can program, but whether it can prove that its work is safe.

Anthropic expects this method to become as routine as standard testing in the near future. Theorem’s roadmap already targets critical infrastructure libraries like glibc, OpenSSL, and cURL. If these goals are met, the impact could extend well beyond current coding tools. The industry may soon see a new standard for software reliability driven by autonomous AI verification.

More Tech · Report a business · Got a Story?

Get Journal Coverage in your inboxBig-city news, all in one place. Free, a few times a week, unsubscribe any time.

Related stories

Get Journal Coverage in your inboxBig-city news, all in one place. Free, a few times a week, unsubscribe any time.