AdvertiseDonate
☰ SectionsHeadlines from coast to coast.
Live Media Wire · 301 Grant Street, Suite 270, Pittsburgh, PA 15219

Claude Generates 180 Million Lines of Code to Verify Software

Anthropic’s AI model proved the correctness of 123 open-source libraries in weeks, finding bugs that often hide from standard tests.

By Adewale Lewandowski ·

Illustration for: Claude Generates 180 Million Lines of Code to Verify Software
Illustration generated for this article, not a news photograph.

Anthropic used its Claude model to generate 180 million lines of mathematical proof code to verify existing software. The work demonstrates that AI can now perform formal verification, a process that ensures code runs without errors in all scenarios. This task traditionally required massive human effort, but the AI completed it in a matter of weeks.

Formal verification has historically been too costly for most developers. Specialists needed 20 person-years to verify seL4, a small operating system kernel. Because of this expense, the technique was largely reserved for critical systems like Airbus avionics. Anthropic’s Frontier Red Team partnered with Theorem to apply this process to 123 open-source libraries from Google’s OSS-Fuzz project.

Claude did not write new software. Instead, it analyzed compiled machine code from existing programs. The model converted crash tests into mathematical problems and constructed proofs to show the code behaved correctly. A separate program called Rocq automatically checked these proofs. Anthropic states the process required almost no human reviewers, though the underlying tools were built by humans at Theorem.

The verification process uncovered hundreds of bugs. Researchers noted that many of these errors would likely escape conventional testing because they only appear under narrow conditions. These conditions include unusually large input files or specific sequences of memory access. In one test, the team found as many security bugs in a single week as are usually reported for a popular PDF reader in a full year. In another case, Claude identified a logical error that had remained hidden for more than a decade.

Anthropic clarifies that the proofs do not guarantee the software is error-free in all environments. The verification holds only under specific conditions, including a particular processor architecture and single-threaded execution. It also requires inputs smaller than 64 MB. Real-world deployments often run on different hardware configurations, which may fall outside these proven boundaries.

The computational cost remains high. Individual proofs consume hundreds of millions of tokens, and Anthropic has not published the total project costs. However, the company argues that if AI can verify its own code, developers can spend less time on manual reviews. This could reduce costs across the software development process. A smaller test run showed that Opus 5.5 solves half the proofs using about 40 percent fewer tokens than Opus 5.

The project shifts focus from whether AI can write code to whether it can prove that code is safe. Anthropic expects formal verification with AI to become as practical as standard testing. Theorem’s roadmap currently targets critical infrastructure libraries, including glibc, OpenSSL, and cURL.

More Tech · Report a business · Got a Story?

Get Live Media Wire in your inboxHeadlines from coast to coast. Free, a few times a week, unsubscribe any time.

Related stories

Get Live Media Wire in your inboxHeadlines from coast to coast. Free, a few times a week, unsubscribe any time.