Anthropic's AI wrote math proofs to check 123 free code libraries for bugs
Anthropic and Theorem used Claude to write about 180 million lines of proof that existing code works, and it found hundreds of bugs.

The Decoder reports that Claude wrote about 180 million lines of proof for 123 open-source libraries. It took a few weeks. Open-source libraries are free code that many other programs use. A proof here is a long math argument that shows code does what it should.
A separate program called Rocq checks each proof by itself. Anthropic says this needs almost no human reviewers. Claude also found hundreds of bugs that regular testing missed. In one popular PDF reader, the team found as many security bugs in a week as people usually report in a year.
Anthropic says the proofs only hold in narrow cases. They cover one type of processor, programs that do one thing at a time, and files under 64 MB. Anthropic has not shared the total cost.
Checking code like this once took human experts years. Here the work shifts to computing power, which The Decoder says is costly. Anthropic says it wants this to become as routine as regular testing. Theorem plans to target code libraries like OpenSSL and cURL.
The facts
- Claude produced roughly 180 million lines of proof code for 123 open-source libraries in a few weeks, according to Anthropic.
- Theorem's roadmap already targets critical infrastructure code such as glibc, OpenSSL and cURL.
- A program called Rocq checks the proofs automatically, and Anthropic says the process needs almost no human reviewers.
- Claude found hundreds of bugs, including a logic error that had gone unnoticed for over a decade.
- While checking a widely used PDF reader, the team found as many security bugs in one week as are typically reported for it in a year.
- The proofs only hold for a specific processor type, single-threaded programs, and inputs under 64 MB.
- Checking the small operating system core seL4 by hand took specialists 20 person-years.
- Anthropic does not report the total cost of the project.
Published