LLMs Make Formal Software Verification Feasible at Scale
Anthropic demonstrates how Large Language Models (LLMs) can automate formal software verification, proving security properties in over 100 open-source libraries. This approach, using Claude, significantly reduces the effort required for formal verification, a process prev…
Intelligence analysis by Gemini 2.5 Flash Lite

The article highlights a breakthrough in software security where LLMs like Claude are used to perform formal verification at scale. This technique, previously labor-intensive and expensive, can now be applied to production software, proving security properties and even discovering long-standing bugs, paving the way for more robust and secure code development.
Imagine you have a super-smart robot helper that can read computer code like a book. Instead of just testing the code to see if it breaks, this robot can read it and write a special math proof that shows the code will *always* work correctly, like a guarantee. This makes building safe computer programs much easier and faster.
Analysis
Claude and Formal Verification
Anthropic's research, in collaboration with Theorem, showcases a paradigm shift in software security by leveraging Large Language Models (LLMs) for formal verification. Traditionally, this process involves translating code into a mathematical model to rigorously prove that it adheres to a defined set of security rules. The complexity and immense human effort required—often taking years and specialized expertise, as exemplified by the 20 person-years needed to formally verify the seL4 operating system kernel—have confined its application to highly critical systems like avionics. However, by employing Claude, Anthropic has demonstrated that LLMs can autonomously generate correctness proofs for real-world software at an unprecedented scale. This marks a significant advancement, moving formal verification from a niche, high-cost endeavor to a potentially mainstream practice in software development.
RISC-V Assembly and Open-Source Libraries
The project focused on proving security properties at the assembly code level, specifically for RISC-V architecture. Claude was tasked with verifying over 100 real-world open-source software libraries. The proofs generated by Claude aimed to demonstrate that these programs would always exit normally without triggering memory-safety errors or assertion failures, under specific conditions related to input size, OS responses, and memory layout. This large-scale application to production software is, to the authors' knowledge, the first of its kind. Notably, during the proof generation process, Claude identified bugs that had persisted despite trillions of test runs, underscoring the limitations of traditional testing methods and the power of formal verification augmented by AI.
The Future of Secure Software Development
The implications of this research extend to the future of secure software development workflows. As LLM capabilities continue to advance, the cost and effort associated with formal verification are expected to decrease further. This trend suggests that formal verification could become an indispensable component of the software development lifecycle, akin to automated testing. The ability to not only find but also mathematically prove the absence of certain classes of bugs offers a much stronger guarantee of security than conventional methods. Anthropic is making a subset of these proofs publicly available and is collaborating with Theorem to offer tools and pipelines for other open-source projects, encouraging broader adoption and further exploration of AI-driven formal verification techniques.
Key points
- LLMs can now perform formal software verification at scale, a task previously requiring extensive human expertise.
- Anthropic used Claude to prove security properties in over 100 open-source RISC-V libraries.
- The AI discovered bugs that had eluded detection through trillions of test runs.
- This breakthrough makes formal verification more accessible, potentially revolutionizing secure software development.
- The research aims to integrate proven security guarantees into standard software engineering practices.
This advancement could lead to significantly more secure software across the board, as the barrier to entry for formal verification is dramatically lowered. It promises a future where critical bugs are identified and fixed before they can be exploited, enhancing user safety and trust in digital systems.
While promising, the current proofs have limitations, such as specific assumptions about the operating environment and input sizes. There's a risk that over-reliance on AI-generated proofs without human oversight could lead to a false sense of security if the models miss subtle edge cases or if the verification scope is too narrow.



