Claude Takes On Formal Verification at Scale: 100+ Open-Source Libraries in Practice

Anthropic and Theorem Labs used Claude to formally verify 100+ open-source libraries in weeks, exploring how AI can break the scaling bottleneck.
Anthropic's Frontier Red Team, in collaboration with Theorem Labs, used Claude to complete formal proofs of security properties for more than one hundred real open-source libraries within a few weeks, as disclosed on its official Twitter account. Formal verification can exhaustively prove mathematically that a program satisfies a specification, but it has long been limited by the high cost of experts writing specifications and proof scripts, and has only been implemented for critical components such as small kernels and cryptographic algorithms. The core signal of this work lies in batch coverage and time compression: AI is positioned as a lever for reducing manual effort rather than as a replacement for theorem provers. However, the announcement did not disclose the types of security properties verified, the depth of verification for each library, the proportion of human review, or how failures were handled; proof reliability and generalization ability still await examination through the full research.
Formal verification can mathematically prove that code is free of certain classes of defects, but historically it has only been applicable to small codebases or has required significant expert time. A new post from Anthropic's Frontier Red Team reveals a new development: in collaboration with Theorem Labs, they used Claude to complete formal proofs of security properties for more than one hundred real open-source libraries within a few weeks. According to information posted on the official Twitter account, this research aims to explore whether AI models can move formal verification from a "lab curiosity" into engineering practice.

Why Formal Verification Is Hard to Scale
The core of formal verification is to use mathematical methods to prove that a program satisfies a specific specification. Unlike testing, it does not rely on sampling but covers all possible inputs. The cost is an extremely high barrier: verifiers need to translate security requirements described in natural language into formal specifications, then guide a theorem prover to complete the proof. This process demands deep domain knowledge and historically has only been implemented for critical components such as small kernels and cryptographic algorithms.
The source material itself does not elaborate on specific technical details, but it points to a key bottleneck—expert time. When a codebase reaches the scale of a real project, the cost of manually writing specifications and proof scripts often exceeds the development cost of the project itself, which has long kept formal verification confined to small-scale pilots.
A theorem prover is the core tool of formal verification; in essence, it is a software system that can mechanically check the correctness of mathematical proofs. Users write the specification that a program should satisfy in a formal language (such as Coq, Isabelle, Lean, or F*), then construct a proof script that step by step derives that the program satisfies that specification. A theorem prover does not rely on test cases but performs logical reasoning over all possible execution paths of the program, thus providing exhaustive guarantees. The cost is that proof scripts are often longer than the program itself, and constructing them requires deep logical and domain knowledge; once the program or specification changes slightly, the proof may largely become invalid and need to be redone. This is precisely the technical root cause of the persistently high cost of manual verification, and also why AI-assisted proving (such as automatically completing proof tactics and generating intermediate lemmas) is seen as a breakthrough point.
The Claude + Theorem Labs Collaboration Path
According to the official tweet, the project was advanced jointly by Anthropic's Frontier Red Team and Theorem Labs, with the goal of covering proofs of security properties for more than one hundred open-source libraries within a window of a few weeks. The key phrase here is "real world"—not textbook examples, but open-source software that is actually in use.
The tweet did not disclose the specific parts of the process that Claude handled, such as whether it generated formal specifications, completed proof scripts, or both. But what can be confirmed is that the AI model is positioned as a lever for reducing manual effort, rather than as a replacement for the theorem prover itself. Theorem Labs appears as a collaborator in the tweet, indicating that this attempt combined expertise in formal methods with model capabilities.
A Signal from Individual Cases to Batch Coverage
The most noteworthy aspect of this research is not the success of a single proof, but the scalability implied by batch coverage of more than one hundred libraries. The scaling problem of formal verification has long been stuck at "every project requires expert investment from scratch." If AI can reduce the marginal cost per library, the space of candidates for verification will greatly expand.
The official wording is that it was "historically only feasible for small codebases," and the emergence of AI is described as "beginning to change" this situation. This phrasing is rather conservative and does not provide quantitative comparisons, but the combination of "a few weeks" and "more than one hundred libraries" itself already constitutes a meaningful signal.
A formal specification is the product of describing "what a program should do" in a precise mathematical language. It is separate from the program code, yet it determines the goal of verification. For example, for a sorting function, the specification would state that "the output is a permutation of the input and is in nondecreasing order"; for a cryptographic primitive, the specification might state that "the ciphertext does not leak any bit of the plaintext." Writing specifications is itself an error-prone step: if the specification is too weak, the proof is meaningless; if it is too strong, the program cannot satisfy it. In real open-source libraries, security requirements usually exist as natural-language documentation or implicit conventions, and translating them into machine-checkable formal specifications is one of the steps in the verification process that most depends on expert experience. If AI models can take on the generation of first drafts from natural language to formal specifications, they can significantly reduce the human effort required in this step.
Questions That Remain
The tweet and research summary did not disclose several key dimensions: the types of security properties covered by the proofs, the depth of verification for each library, the proportion of human review of Claude-generated content, and how failure cases were handled. The value of formal verification lies in the reliability of the proofs; if the specifications or proofs generated by the model require extensive manual correction, the economics of scaling will be weakened.
Another unresolved point is generalization ability—whether the distribution of more than one hundred libraries covers a sufficiently diverse range of languages and domains. These details require consulting the full research to assess.
For engineering teams, the significance of this work lies in providing a directional reference: the entry barrier to formal verification may be being repriced by AI. In security-critical systems, verification needs that were previously abandoned due to cost may re-enter the feasibility assessment list.
One-line Summary
Anthropic and Theorem Labs used Claude to complete formal verification of more than one hundred open-source libraries within weeks, exploring how AI can break the scaling bottleneck.
Paragraph Summary
Anthropic's Frontier Red Team, in collaboration with Theorem Labs, used Claude to complete formal proofs of security properties for more than one hundred real open-source libraries within a few weeks, with the progress disclosed via its official Twitter account. Formal verification can exhaustively prove mathematically that a program satisfies a specification, but it has long been limited by the high cost of experts writing specifications and proof scripts, and has only been implemented for critical components such as small kernels and cryptographic algorithms. The core signal of this work lies in batch coverage and time compression: AI is positioned as a lever for reducing manual effort rather than as a replacement for theorem provers. However, the official announcement did not disclose the types of security properties verified, the depth of verification for each library, the proportion of human review, or how failures were handled; proof reliability and generalization ability still await examination through the full research.
Related articles

9 AI Subscription Plans Compared: The Real Cost Per 100M Tokens Revealed
Bilibili creator tests 9 AI subscription plans from Volcano, Alibaba, Tencent, Baidu, Zhipu, Xiaomi, MiniMax and more, converting them all to real cost per 100M tokens, breaking down fixed-quota vs. three-tier coefficient billing and how caching, time-of-day discounts, and window limits affect actual quota.

Vibe Coding for Beginners: Expressing Intent Instead of Handwriting Code
What is Vibe Coding? A 137-episode Bilibili course defines it: the core is expressing intent, not writing code. This article analyzes Vibe Coding's productivity logic, target audience, and entry expectations to help beginners decide if it's worth learning.

LangChain Beginner's Guide: An Agent Development Roadmap from LangGraph to Deep Agents
Clarify the encapsulation relationship among LangChain, LangGraph, and Deep Agents, and master the learning path and selection logic for agent development frameworks—suitable for beginners in large model development.