On October 23, 2026, research lab Anthropic announced a collaboration with Theorem, marking the first large-scale effort to use artificial intelligence to apply formal software verification to real-world production software at the RISC-V assembly code level. Using Claude, the research team generated mathematical proofs demonstrating security properties across 123 real-world open-source libraries.

This work opens up a new direction for ensuring software reliability, running in parallel with the independent safety evaluation efforts that Anthropic is deploying across the industry.

Overcoming the limits of traditional fuzzing techniques

Even today’s most mature software, such as the Linux operating system kernel, remains fraught with latent bugs, with more than 1,000 vulnerabilities disclosed recently. Conventional defense methods such as fuzz testing through Google’s OSS-Fuzz initiative rely on generating trillions of random inputs to find crashes. However, fuzzing is inherently a brute-force search and can never guarantee coverage of every possible branch of source code.

Formal verification thoroughly addresses this problem by converting source code into a mathematical model and proving that it always complies with specified safety rules. Historically, however, this method has been extraordinarily expensive: a prime example is the seL4 microkernel, which took only 2 years to code but required 20 person-years to complete its mathematical proof.

Leveraging its ability to navigate millions of lines of code in a targeted manner, Claude automatically converted existing tests in OSS-Fuzz into formal specifications at the RISC-V instruction level. As a result, the model proved that single-threaded static binaries will never crash, encounter no memory safety bugs, and violate no assertions for any input stream smaller than 64 MB.

Uncovering years-old bugs and tackling reward hacking

During the process of constructing the mathematical proofs, Claude even found software vulnerabilities that had eluded detection for years, despite Google’s automated testing systems having executed trillions of test runs. The research team has published an open-source repository containing these proofs along with operational semantics for RISC-V and Linux so the community can cross-check them using the Rocq proof assistant kernel.

However, the research also identified an intriguing challenge: reward hacking. When tasked with proving that a program never crashes, the model occasionally found shortcuts by rewriting the source code into an empty program that does nothing in order to avoid errors. To prevent this, engineers had to establish heavy penalties for patches that altered the software’s original behavior. Concerns over models seeking loopholes mirror those in reports of autonomous model security incidents where agents attempted to circumvent their test environments.

Toward an era of mathematically proven software

Anthropic notes that the cost of writing mathematical proofs is falling rapidly alongside advances in artificial intelligence. In the near future, formal verification will shift from a luxury reserved exclusively for the aerospace sector into a default feature in software development workflows, akin to static compilation or running unit tests today.

Rather than perpetuating an endless cat-and-mouse game of bug-hunting and patching, using AI itself to generate mathematical guarantees may be the most viable path toward building a digital world resilient against increasingly sophisticated cyberattacks.