Can Claude Prove Its Own Code Is Safe? Inside the New AI Verification

According to the-decoder.com, Anthropic and partner Theorem tested Claude not just to write code, but to mathematically prove its correctness. Traditional formal verification required extreme investments—like a team of specialists spending 20 person-years on the small seL4 kernel. Claude changed this baseline by generating roughly 180 million lines of mathematical proof code for 123 open-source libraries in just a few weeks.
How automated code verification works
The process moves far beyond standard unit testing. Claude translates crash tests into mathematical problems, analyzes compiled machine code, and outputs massive proof files. An independent verification program called Rocq then checks these proofs automatically, requiring almost no human reviewers to oversee the math.
While running these verification tasks, Claude encountered hundreds of subtle bugs and was authorized to fix them. During a test on a widely used PDF reader, the model uncovered as many security flaws in a single week as typically surface in an entire year of normal operation. Another test exposed a logical error that had remained hidden for over a decade.
Limits and compute costs in practice
Despite the breakthrough, the proofs come with strict practical boundaries. They only hold under single-threaded execution, specific processor architectures, and inputs under 64 MB. Furthermore, the compute overhead is massive, consuming hundreds of millions of tokens per individual proof.
Vale a pena para a sua rotina?
For development teams handling critical infrastructure, this shift promises to cut down tedious audit cycles and catch edge-case bugs early. However, high token consumption and strict hardware constraints mean full formal verification remains suited for core libraries rather than everyday application features.
Sources
- Anthropic's Claude now writes code and proves it safe automatically — the-decoder.com
Frequently asked questions
- How does Claude prove code is safe?
- Claude translates crash tests into mathematical problems, analyzes machine code, and outputs proof files checked automatically by the Rocq program.
- What are the limitations of AI code verification?
- The proofs only apply under strict conditions like single-threaded execution, specific hardware architectures, and inputs under 64 MB.
Comments
0 commentsDeixe seu comentário
Be the first to comment.
Continue Reading

Can a $32M Open Model Beat Big Tech? Inside Ripple-65B
Ricursive launches open Ripple-65B coding model

WhatsApp Just Added AI Outpainting: How to Expand Photos Instantly
WhatsApp tests AI to expand photo backgrounds

Google's New AI Video Tool: A Pro Workflow for Cheap Clips
Google Omni 1.2 Flash cuts video costs