Can AI Turn Fuzz Testing Into Formal Proof? Anthropic’s Claude Work
AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: Can AI Turn Fuzz Testing Into Formal Proof? Anthropic’s Claude Work on ThorstenMeyerAI.com

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

TL;DR

Anthropic’s Frontier Red Team and collaborator Theorem report that Claude generated machine-checked proofs for 239 fuzz-test entry points across 123 open-source libraries. The proofs cover specific compiled RISC-V programs under stated conditions, not every version or platform; the work also uncovered bugs, but cost and scope remain significant limits.

Anthropic’s Frontier Red Team and collaborator Theorem reported on October 22 that Claude produced machine-checked proofs for 239 fuzz-test entry points across 123 open-source libraries. The work verifies a narrowly defined no-crash property for compiled programs under specified conditions, and Anthropic says the process found bugs that years of fuzzing had not detected.

The team used existing fuzz tests as the starting point for formal specifications. Each library and its test were compiled into an instrumented RISC-V executable, with AddressSanitizer set to make certain memory errors crash the program. The property to prove was that, for every input smaller than 64 megabytes, the test would not crash because of an AddressSanitizer memory error or failed assertion, subject to the project’s assumptions.

Claude generated proofs in Rocq, a proof-assistant system whose checker verifies whether a proof follows from its specification. Theorem supplied formal models of RISC-V instructions and Linux processes. When a proof attempt exposed a failure, the team says Claude could identify a possible bug, patch the code, regenerate the specification and attempt a new proof.

The reported output totals about 180 million lines of Rocq proof, with a typical proof around 600,000 lines. Anthropic says those proof lines do not need to be reviewed individually: confidence instead depends on the theorem statements, the formal models and the Rocq checker, along with other components in the toolchain. The team says it is publishing proofs that did not require patches, some trusted components and specifications for tests it could not prove.

At a glance
reportWhen: Reported October 22, 2026
The developmentAnthropic and Theorem reported that Claude used the Rocq proof checker to verify no-crash properties for 239 entry points in 123 OSS-Fuzz libraries.
Thorsten Meyer AI
Anthropic × Theorem · Oct 2026

Infographic 01 · From test to proof

Existing fuzz tests became specifications. Claude proved them.

Over a few weeks, Claude proved at the machine-code level that hundreds of real fuzz entry points can no longer crash, after patching the bugs it found.

239fuzz-test entry points proved crash-free
123open-source libraries from Google’s OSS-Fuzz
~180Mlines of Rocq proof in total
<64 MBevery input below this size is covered

The pipeline

From an existing test to a checked proof

  1. Compile. The library and its existing fuzz test become a RISC-V executable, instrumented with AddressSanitizer.
  2. Specify. Theorem’s RISC-V and Linux process semantics plus the no-crash property mechanically yield the specification.
  3. Prove. Claude writes the proof in Rocq. A failed attempt points at a possible bug; Claude patches it and proves the new spec.
  4. Check. The Rocq proof checker verifies the proof. Virtually none of the proof needs human review.

Fuzzing vs. proof

Same entry point, different guarantee

FuzzingProof
InputsFuzzing: Generated samples, typically capped at 1 MBProof: Every input under 64 MB
PathsFuzzing: Guided by code coverage, no guaranteeProof: Every path reachable from the entry point
ResultFuzzing: Bugs found so farProof: No crash left to find on the modelled system

Typical proof: about 600,000 lines for a binary with a median length of 18,000 RISC-V instructions.

“If Claude can prove this spec, the fuzz test on RISC-V becomes superfluous.”Anthropic, 22 Oct 2026

Source: Anthropic, “LLMs are making formal software verification feasible at a much larger scale” (22 Oct 2026).
Powered by Thorsten Meyer AI

What Machine-Checked Tests Can Show

The result points to a possible change in how software teams use formal verification: rather than writing a complete correctness specification from scratch, they can start with a fuzz test developers already maintain and ask whether its defined safety property holds across all inputs in the model. Fuzzing samples inputs; a successful proof can cover every input within the stated scope, rather than only the cases a fuzzer happened to exercise.

That distinction matters for security because rare input combinations can evade testing yet still trigger defects. Anthropic says the effort found hundreds of bugs, including issues involving unusually large inputs, a particular sequence of calls, and deeply nested data. It also reports a logic flaw involving a restriction on which files an application could load. Such findings indicate that proof attempts may help surface weaknesses beyond straightforward memory errors, though the report does not establish that all identified issues are exploitable or present in software versions people use.

The cost remains a major qualification. Anthropic says some proofs consume hundreds of millions of tokens. If the process is to be used broadly, lower generation costs and reusable proofs will matter alongside the ability to check the final result mechanically.

Products Worth Considering

Bose QuietComfort Headphones (2nd Gen), Wireless Noise-Cancelling Over-Ear Headphones, White Smoke

Bose QuietComfort Headphones (2nd Gen), Wireless Noise-Cancelling Over-Ear Headphones, White Smoke

As an affiliate, we earn on qualifying purchases.

From Fuzz Tests to Rocq Proofs

Fuzzing feeds software many random or mutated inputs and watches for crashes or other failures. It is effective at finding defects but cannot, by itself, establish that an untested path is safe. The reported method turns the behavior tested by a fuzz harness into a formal claim about a particular compiled program. The claim is consequently limited to what that harness checks: a no-crash proof is not automatically a proof that the library behaves correctly in every respect.

Anthropic frames the project against the longstanding expense of formal verification. It cites the seL4 microkernel as an example for which verification took substantially more effort than implementation, and says the approach aims to reduce that burden by using AI to generate proofs while a separate checker validates them. Anthropic characterizes the work as, to its knowledge, the first large-scale use of AI formal verification on production software at the assembly-code level.

The study covers single-threaded, static RISC-V binaries linked against musl. That matters because many deployed builds use other processors and libraries, including x86 or ARM with glibc. A proof about the modeled RISC-V binary does not automatically transfer to those builds, or to other configurations and behaviors that the fuzz test does not specify.

“The report describes the method as, to the team’s knowledge, the first large-scale use of AI to apply formal verification to production software at the assembly-code level.”

— Anthropic

Where the Proofs Stop

The proofs establish properties only for the specified binaries and test entry points. They do not show that every bug is absent, that every library function is safe, or that another build has the same behavior. In particular, the report’s RISC-V and musl setup differs from common x86 and ARM deployments linked against glibc.

The source material does not provide a complete accounting of the bugs found, their severity, whether each has been patched or disclosed, or how many proof attempts failed or remained unfinished. It also does not give a single average cost per library. Anthropic says some proofs take hundreds of millions of tokens and that newer models and shared proofs can reduce the amount needed, but the scale of those savings is not specified.

Formal checking also depends on the accuracy and scope of the specification and trusted components. Rocq checks that a proof follows from the stated model; it does not independently establish that the model represents every relevant real-world behavior. A no-crash result for a fuzz test should not be confused with proof of complete functional correctness or security.

Publication and Broader Testing

Anthropic says it is releasing the proofs that required no patch, trusted components that were not already public, and specifications for tests it could not prove. Those materials will allow others to inspect the claims and assess how the method works across the covered libraries.

The next practical questions are whether independent researchers can reproduce the results, whether patches for the reported defects reach affected projects, and whether the approach can be extended beyond the stated RISC-V configuration. Lower proof-generation costs and reuse across builds or libraries will also shape whether this becomes a routine tool rather than a concentrated research effort. The source report does not specify a schedule for those developments.

Key Questions

What did Claude prove?

For 239 fuzz-test entry points in 123 libraries, the reported proofs establish that a specified compiled program does not crash on inputs under 64 MB because of an AddressSanitizer memory error or failed assertion, under the project’s assumptions.

Does this mean the libraries are bug-free?

No. The proof applies to a defined property, test entry point and compiled configuration. It does not rule out every kind of defect or prove that all versions and platform builds are safe.

How did the team check Claude’s proofs?

Claude generated proofs in Rocq, whose proof checker validates that they follow from the formal specification. The checker and the specification’s trusted models are central to the result.

Why did the work find bugs fuzzing missed?

Fuzzers test selected inputs and paths. A proof attempt must account for all paths reachable under its model, which can expose rare cases involving large inputs, unusual call sequences or specific data structures.

Do the results apply to software on common computers?

Not automatically. The reported proofs cover single-threaded static RISC-V binaries linked against musl. The report says many users instead run builds for x86 or ARM with glibc, which are outside this proof scope.

Source: ThorstenMeyerAI.com

You May Also Like

It’s The Memory Latency, Stupid

A PivotLake test of a 99-million-row GROUP BY found substantial memory stalls on one CPU core, illustrating a common database bottleneck.

Can Large Language Model Inference Be Made Provable?

A headline from Anthropic signals progress on provable LLM inference, but the method, results and practical scope are not available in the source material.

AI Beyond Earth: What Google’s Satellite Haiku Can Actually Tell Us

A small Google-Planet satellite generated a haiku with Gemma 4, testing an orbital AI chip while leaving cost, heat and networking challenges unresolved.

Best Wireless Gaming Headsets Compared

Compare 2.4 GHz and Bluetooth gaming headsets for latency, compatibility, battery, sound, and value. Find the right wireless setup for your games.