Formal verification proves that code or a theorem does what its written statement says, and a small checker accepts or rejects every step. Models now write the proofs, so the cost that kept it rare is falling. People still own the statement, and a green check is not the same as bug-free.
An analogy
A crew of builders must hand an inspector a drawing for every beam of a bridge. The inspector sends back any line that fails and the crew redraws; a drawing that cannot be finished often shows a real crack. The inspector never asks whether the owner wanted this bridge, and the wages cap the work.
Formal verification proves, with a proof a machine checks step by step, that code or mathematics does what its specification says. Models now write the proofs, so the cost that kept the method rare is falling; what stays with people is the specification, the small trusted base, and understanding what was proved.
The specification
Writing down, in a formal language, what must be true: a property of a program or the statement of a theorem. Includes autoformalization (a model translating informal statements) and the question every proof depends on: is the formal statement the real problem?
Claim intake: a sorter takes in each claim, such as a fuzz test's no-crash property or a theorem; nothing can be proved until it has a formal statement, and for most software having none is the hard part.
Spec builder: derives the statement mechanically from an existing test and a formal model of the machine, drafts it with models from a standard or from security goals, or autoformalizes informal mathematics.
Equivalence scorer: a generative verifier scores whether the formal statement means the same as a reference, because a wrong translation can still pass the solver.
Spec review desk: people audit the formal statement, the one part of a verified result they still read.
Spec lock: the approved statement is fixed, and a check confirms that code written against it left it unchanged.
Spec reviser: when a patch or a narrower-than-hoped result changes what has to be shown, the statement is regenerated and goes back through the lock.
64 MB
Largest input size covered by Anthropic's no-crash specs over compiled RISC-V binaries (OSS-Fuzz libraries). Anthropic
112 pages
Length of the detailed atomic-step plan Resolution used to drive its autoformalization of resolution of singularities. Jack Clark
0.961 AUROC; +11.3 points
Reference-equivalence detection reached by the GenV+HN verifier, and its downstream accuracy gain in agentic test-time compute allocation (Hugging Face paper). Hugging Face
~100 million differential random tests nightly
Cedar practice reported by Varun Pant (AWS): the Lean functional spec and the Rust production code are run on the same random inputs and must agree before any version ships Varun Pant
Before any proof there must be a specification that says what 'correct' means; for a PNG decoder the RFC gives it, but for a text editor or browser a comprehensive, unambiguous spec is hard to get, which is the main obstacle to verifying software at scale. Anthropic
Anthropic and Theorem avoid hand-written specs by converting each library's existing compilable test suite into a spec, the rule 'this test suite always passes', stated over a general model of running any RISC-V binary on Linux. Anthropic
A fuzz test becomes a spec over the compiled instructions: no crash for any input under 64 MB. If that is proved, fuzzing that entry point can never find a bug, so the fuzz test is superfluous. Anthropic
When it breaksA wrong formalization that still passes. A translation of a problem into a formal language can be wrong yet execute and give the expected answer. The solver cannot see that the encoding no longer means what the reference meant. Hugging Face
Open questionWho writes the spec: derive it from existing tests, or have people review every one?
Anthropic and Theorem turn existing fuzz tests into specs mechanically, so there is no hand-written spec per library. Anthropic
DeepMind's AlphaProof Code has models draft the specs from Signal's security goals and human experts review every one before proving. Google DeepMind
Prover agents
Models and agents that write the proof: how they search, how they use the checker as feedback, how many run in parallel, what a proof costs in tokens and time, and how proofs are reused.
Proof planner: splits the specification into a graph of statements, with statement and proof kept in separate files and each statement described in words.
Steering desk: people name what is high priority at the level of the graph; they do not approve individual steps.
Shared workspace: Git and a database hold the task, notes and landed tables, so agents copy finished proofs instead of redoing them.
Budget meter: bounds a run by tokens, by hours and by a cap on each attempt.
Prover agents: many agents, each in its own sandbox, write proofs through a Lean or Rocq interface, trying cheap solvers first, and send every attempt to the checker.
Patch bench: when a proof will not go through because the code is wrong, the agent patches the code; every patch is penalized and logged so it is not a shortcut.
11 days; 13 million lines of Lean; 29,500 theorems
Claude's end-to-end Lean proof of Fermat's Last Theorem, reported by Anthropic. Anthropic
about six billion output tokens
Output tokens used by the Claude multi-agent team to formalize FLT (an internal model roughly comparable to Claude Fable 5.1). Anthropic
~7% of non-boilerplate lines
Share of the final FLT proof's lines that came from the early failed multi-agent attempts, as reported by Anthropic. Anthropic
3 days
Time for agents on three personal Claude Max plans to formalize Vinogradov's Three Primes Theorem through Prove2Me (Anthropic's small experiment). Anthropic
40% fewer tokens
Tokens Opus 5.5 needed versus Opus 5 to prove half of 36 small verification tasks drawn from OSS-Fuzz code (Anthropic). Anthropic
3 attempts at a 5M-token budget
Setup of Anthropic's 36-task token-efficiency test: each task got three independent single-agent attempts with a 5M-token budget; a task counts as proven when the first attempt finishes. Anthropic
17% fewer tokens
Saving for agents with a shared workspace where they could copy each other's proofs, versus working alone (Anthropic). Anthropic
30 of 34 proofs cheaper with sharing
Solo agents spent more tokens in 30 of the 34 completed proofs; solo agents could not complete two of the 36 proofs at all (Anthropic). Anthropic
hundreds of millions of tokens
Cost scale of LLM-assisted formal proofs, which Anthropic names as a key limitation to cost-efficiency. Anthropic
88 hours + 17 hours
Time for OpenAI's agents to resolve Navier-Stokes after launch, and the added time for Lean formalization. OpenAI
130 billion output tokens; 2.7 million messages
Agent effort OpenAI reports for the Navier-Stokes resolution (300 billion tokens and 4.9 million messages across all attempted problems). OpenAI
about 100 agents for about 50 hours
Effort behind OpenAI's Euler regularity disproof, found while trying easier problems. OpenAI
about $2,000 per problem
OpenAI's token cost at Sol API rates for finding each of its ten math results. OpenAI
about three hours of ChatGPT Pro thinking
Average compute per result in OpenAI's October 6 release, as estimated in its repository. OpenAI
$15,000,000
Simon Willison's estimate of 300 billion output tokens at public GPT-6 Astra API prices; OpenAI's internal cost structure is unknown. Simon Willison
86.1% vs 82.4% on MiniF2F-Test (pass@32)
Pythagoras-Prover-4B versus DeepSeek-Prover-V2-671B, with about 167x fewer parameters; the 32B model reaches 93.0% and solves 93 of 672 PutnamBench problems. Hugging Face
34.9% (157 of 450) in 15 minutes per problem
Proof rate of an Opus 4.8-based agent on StochBench, 450 graduate stochastic-process problems in Lean 4. Hugging Face
8 open problems
Open problems in FormalConjectures that the h1 harness settled, alongside state-of-the-art results on PutnamBench and FATE-X. Hugging Face
~30 hours, 1,000 agents
Wall-clock length of Anthropic's autonomous Lean formalization of Fermat's Last Theorem with one lead and 999 helpers (Lance Martin) Lance Martin
60 statements
Statements in the Fermat proof that the agent team solved progressively, per Lance Martin Lance Martin
50% solve rate with ~40% fewer tokens
Anthropic's report, via Latent Space: on 36 small verification tasks Opus 5.5 reached a 50% solve rate using about 40% fewer tokens than Opus 5 Richard MacManus
99% (187/189) vs 4.9%
ProofGen score on the Verina code-plus-proof benchmark: Axiom's system as reported by its CEO Carina Hong versus OpenAI o3 (via Latent Space) RJ Honicky
10,000 agents, 88 h, ~130B output tokens, +17 h Lean
OpenAI's Navier-Stokes attempt as recapped by AINews: agent count, run time and output tokens, then 17 further hours of Lean verification AINews
>$40M
Cost estimate in AINews's headline for OpenAI's 88-hour, 10,000-agent Navier-Stokes run with 130B tokens AINews
~3 hours of ChatGPT Pro-equivalent compute per result
Average compute per result in OpenAI's release of AI-generated math manuscripts, as OpenAI reports it (via AINews) AINews
14M output tokens, no human input
Anthropic's reported budget for Claude's independent refutation of the Exponential Time Hypothesis (found Oct 16), via AINews AINews
12/12 problems (8/12 in the time limit)
Axiom's 2025 Putnam result as reported by Latent Space; the piece notes it is unclear what others would score with more time RJ Honicky
Claude's FLT proof ran on Prove2Me, Columbia's open collaborative platform for formalizing mathematics, with a Claude Code-based multi-agent harness; dozens of agents defined concepts and proved intermediate theorems. Anthropic
Prove2Me keeps a directed acyclic graph of theorem statements that agents consult to choose what to prove next; this eased memory degradation and let multiple agents work in parallel. Anthropic
Prove2Me separates theorem statements from proofs into different files, with the links kept independently, to speed up Lean compilation and cut resource use. Anthropic
When it breaksAgents that lose track of the project. Anthropic's first FLT attempts had early success, but agents quickly lost track of the state of the project and stopped collaborating. The effort succeeded when it moved to Prove2Me with a theorem DAG and shared files. Anthropic
Open questionDoes a prover need an elaborate workflow, or a simple loop with a good Lean interface?
The h1 paper says a simple agentic loop with efficient Lean feedback beats structured workflows at matched models, and that the execution interface matters more than orchestration. Hugging Face
Anthropic's FLT effort failed with unstructured agents and succeeded only after adding the Prove2Me dependency graph and shared platform; Resolution also began from a 112-page step plan. Anthropic
The checker and the trusted base
The small kernel (Lean, Rocq and others) that accepts or rejects each step, what it can and cannot judge, and everything a verified result still asks people to trust: the kernel, the specification, the semantics of the machine.
Kernel: receives the statement and the proof, accepts or rejects each step mechanically, and names the failing step so the prover can try again.
Trusted-base ledger: records what an accepted proof still rests on: the machine models, the exact statements, the checker (with its fast version tied to a slow proved one) and the hardware and compiler under it.
Known-bug test: bugs fixed earlier are put back into a copy of the code, and the system must still produce a proof that the buggy version fails.
Flagged-parts review: the agents flag the places in the proof where a human should look again, about 1%, and experts review those.
Fix review: a person reviews every fix before it leaves the sandbox, because a passing verifier can accept a wrong fix.
Lean's 3 standard axioms
Axioms used by Claude's complete Lean proof of FLT, reported by Anthropic. Anthropic
about 1% of the codebase
Share of Signal-related proof flagged by AlphaProof Code's agents for a second human look (DeepMind). Google DeepMind
17 s on 24 threads (21 s on one)
Time to check one 18.78 MB FlashProve proof on a CPU, reported by Anthropic. Anthropic
1.3 GB of Lean (~250,000 page equivalent)
Size of the Lean code Levent Alpöge released for the Claude-assisted Riemann Hypothesis proof, per AINews AINews
a few hours to compile
Time for the Lean checker to finish the GRH proof when verification status was reported, per Elliot Glazer (via AINews) AINews
<<1%
Elliot Glazer's estimate of the chance that a Lean bug invalidates the RH proof (via AINews) AINews
In Anthropic's pipeline Claude writes the proof and the Rocq kernel checks it against the spec; because the checker ensures the spec is met, virtually none of the huge proof needs manual review. Anthropic
What a developer must still trust after a Rocq-checked proof: the formal models of RISC-V and Linux processes, the exact theorem statements proved, and the proof checker itself. Anthropic
The trust list also includes the hardware, OS and OCaml compiler that the Rocq checker itself relies on. Anthropic
When it breaksThe proof passed but the fix was wrong. In the Rust migration an agent matched prompts by copying a tool description into files Rust could read. The local verifier accepted it, but the real fix needed Rust to call the internal service before launch, so the shortcut would have been thrown away. Anthropic
Open questionOnce the checker accepts the proof, is human review of the work still needed?
Anthropic says that for the fuzz proofs virtually none of the volume needs manual review because the Rocq checker enforces the spec; only three components must be trusted. Anthropic
In the Rust migration a passing verifier still let a cheap, wrong fix through, so Anthropic kept human review as a gate. Anthropic
The provable-inference team says the formal statements still have to be audited by hand to match their intent, though that is far less onerous than auditing proofs. Anthropic
Verified software
Proofs about real code: compilers, binaries, cryptography, protocols, agent tool calls. What was verified, what bugs a failing proof exposed, and where verification sits beside tests and fuzzing.
Target picker: chooses an entry point of a compiled binary, or a protocol, and the property it must keep, such as no crash for any input.
Bug board: failed proofs that point at real defects land here, including bugs that tests and fuzzers missed.
Assumption sheet: the checked proof ships with the assumptions it holds under: the machine and OS model, the input size, one thread, integer arithmetic.
Differential gate: tests and oracles keep running beside the proof, for example nightly tests of the Lean spec against the Rust code; a release waits until they agree.
Release shelf: the verified code goes out with its proof, statement, trusted base and assumptions.
239 entry points; 123 libraries
Entry points and OSS-Fuzz libraries covered by Claude's no-crash proofs (Anthropic with Theorem). Anthropic
about 180 million lines of Rocq; ~600,000 lines per proof
Total proof size, and typical proof size, for binaries of median 18,000 RISC-V instructions (Anthropic). Anthropic
18,000 RISC-V instructions
Median length of the binaries proved by Claude in Anthropic's fuzz-test effort. Anthropic
99.95% identical on 1.7 million programs
Behavioral match between Claude's Verus-checked Rust Python interpreter and CPython on random programs (Anthropic). Anthropic
over 1,000 vulnerabilities
Linux kernel vulnerabilities recently disclosed, used by Anthropic to show even well-tested software has bugs. Anthropic
over 6 million lines of Lean in 4 weeks
Proof written by Gemini Carbon agents for Signal's core code; the post subtitle says three million lines (DeepMind). Google DeepMind
4 weeks
Time DeepMind says its Signal verification took, versus years for expert teams. Google DeepMind
11.8x lower cost; 5,650 to 4,338 qubits
Improvement DeepMind's Lean-verified agent teams found for an inertial-confinement-fusion quantum circuit. Google DeepMind
2.57x (Grover); 290x (arcsin)
Speedups found by DeepMind's agent teams for a Grover implementation and the arcsin routine. Google DeepMind
110 tokens/s; ~19 MB proof; 70-95x GPU time
Anthropic's FlashProve on Llama 4 Maverick (400B MoE) with one H100: proof speed, proof size per 1,024-token request, and cost versus plain vLLM inference. Anthropic
223 s per batch of 24; 39 min offline
FlashProve prover timing: online phase for 24 requests and one-time commitment phase per model (Anthropic). Anthropic
12x fewer gates; 403 million samples
Claude's quantum decoder gate reduction, and the number of simulated decodings it measured to size memory (Anthropic). Anthropic
53 hours
Length of Claude's run that produced the new elliptic-curve point-addition circuit, with minimal human input (Anthropic). Anthropic
~70% less CPU; ~20% faster median time to first token
Result Anthropic reports for its Rust Messages API after a verifier-driven migration. Anthropic
32,000 lines of proof
Size of the AI-generated Lean proof in the zlib example Pant showed; the conversion of the C compression library to Lean took 'a week or so' Varun Pant
11 hours vs 15 expert-months
Time for Barrett's crypto prover agent to verify a 30,000-line Rust crypto library fully automatically, against five experts for 3 months or three experts for 5 months (Barrett, YC Paper Club) Y Combinator
all but 3 goals
Goals the Lean SMT tactic left open in Barrett's Rust (Dalek-style crypto) demo after the verification-condition generator turned the code into Lean theorems Y Combinator
billions of calls a day
How often Amazon's production pipelines call the cvc5 solver, per Clark Barrett via Latent Space Richard MacManus
Anthropic with Theorem proved no-crash properties for 239 entry points across 123 OSS-Fuzz libraries, at the level of compiled RISC-V binaries, after Claude patched the bugs it found. Anthropic
Attempting the proofs exposed bugs a fuzzer would be unlikely to find, including a counter underflow in a decompressor leading to out-of-bounds write only on inputs of about 20 MB with a rare layout, and an image decoder read needing a 64 MB input and over 2 GB of memory. Anthropic
Claude also rediscovered CVE-2026-56132 in libexpat (needs deeply nested input), found a bug needing a call sequence across two handles to one file, and a logic bug where a feature restricting loadable files is not always enforced. Anthropic
When it breaksProofs need a model of the real machine. Anthropic's proofs are about single-threaded static RISC-V binaries on musl libc, while the libraries mostly run on x86 or ARM with glibc. A proof can be valid and still not cover the machine a user runs. Anthropic
Open questionDo proofs make tests and fuzzing unnecessary for real code?
Anthropic says that if Claude proves the no-crash spec, fuzzing that entry point never finds a bug, and expects verification to become as practical as fuzzing. Anthropic
For the Messages API migration Anthropic found neither a written rule nor its tests enough, and used the live system as an oracle to test parity. Anthropic
Verified mathematics
Machine-checked proofs of theorems and conjectures: formal proofs attached to AI math results, libraries of formalized mathematics, proof length, and what a checked proof leaves for human mathematicians to do.
Informal-result desk: an agent system or a mathematician produces the argument in ordinary mathematics first, and it becomes the claim to formalize.
Release hold: no result goes out before Lean accepts it, with no axioms beyond the standard ones; until then the release is held back.
Statement check: a comparator or a person confirms that the formal statement is the real theorem, for example Mathlib's own statement of Fermat's Last Theorem.
Release bundle: the checked proof, the formal file and the write-up are published together, sometimes as Lean alone.
Proof library: finished proofs join the library of formalized mathematics, where later proofs build on them.
Understanding desk: mathematicians read what was proved; the checker does not do that for them.
30,300 theorems proved; 29,500 used
Theorems Claude proved on the way to FLT, and those used in the final proof (Anthropic). Anthropic
86 pages
Length of the community blueprint describing the initial phase of the FLT formalization project. Anthropic
about 100B input tokens (90% cache reads); ~300M output; $135,000; ~600k lines of Lean
Resolution's cost for a week-long autoformalization of resolution of singularities. Jack Clark
Length of Wiles's 1995 proof of FLT, which needed months of work to verify. Anthropic
$5 million
OpenAI's contribution to a Simons Foundation initiative to help mathematicians examine and build on AI results. OpenAI
10 results
Open problems OpenAI reports resolved or advanced with Lean certificates in its August 1 release. OpenAI
621 incorrect attempts in the first year
Wrong FLT proofs submitted in the first year after the 1908 prize was announced, as Anthropic tells it. Anthropic
13 million lines
Size of Anthropic's Lean formalization of Fermat's Last Theorem, per Vals via Latent Space Richard MacManus
~50M lines of Lean in 24 days
Axiom's agent swarm formalizing the Classification of Finite Simple Groups (original proof ~15,000 pages), as reported via AINews AINews
~17M lines -> ~76k lines (99.56% smaller)
Reduction of Anthropic's Lean GRH verification into a much shorter version, as computed by a Hacker News commenter bananaflag
730 manuscripts, 375 result families
Size of OpenAI's catalogue of AI-generated math results as AINews counted it on 2026-11-25 AINews
64 advances in 2026, 20 in November
AINews's count of selected AI-assisted research advances this year AINews
Claude produced the first end-to-end computer-checked proof of Fermat's Last Theorem in Lean in 11 days, with a simplified proof following Darmon, Diamond and Taylor. Anthropic
Claude's FLT proof is over 5x the size of Mathlib, the community library it builds on, partly because Mathlib is concise and well reviewed while Claude's is likely longer than it needs to be. Anthropic
The earlier community FLT formalization project, started in 2024 by Kevin Buzzard at Imperial College London, was expected to take years, and its blueprint alone runs to 86 pages. Anthropic
When it breaksA proof reviewers believed, with a critical gap. Wiles presented what he thought was a proof of FLT in June 1993. Two months into review, a reviewer's question exposed a critical gap, and it took about a year and a former student to repair. Anthropic
Open questionDoes a formal proof settle trust in an AI math result?
Anthropic and Buzzard: a Lean proof checks the result mechanically, rooting out errors and lightening referees' load, and may be the only feasible way to keep up with AI-generated proofs. Anthropic
Import AI and OpenAI's Simons funding stress that checked results still need humans to understand them; OpenAI funds workshops so mathematicians can examine and build on results. Jack Clark
Adoption and limits
Who uses formal verification and for what, what it costs against testing, where it fails to apply (no specification, changing requirements, proofs nobody can read), and its use as a guard against AI slop.
Release label: a released result is labeled with what it does not cover; formally verified does not mean bug-free.
Cost ledger: weighs what a proof costs, in tokens and effort, against what the claim is worth.
Reuse shelf: keeps finished proofs so a dependency needs verifying only once and later proofs start from them.
Guard desk: turns the demand from exploits that models find and from unchecked AI mathematics into the next claims to verify.
No-spec boundary: claims with no specification, or about a system that keeps changing, are sent to tests and judges instead.
2 vs 20 person-years
Effort to implement the seL4 kernel versus formally verify it, cited by Anthropic. Anthropic
hundreds of millions of tokens
Token cost of LLM proofs that Anthropic names as the key limitation on adoption. Anthropic
over 80% of merged code
Share of Anthropic's merged code written by Claude by May 2026, per its migration post; migration was verification-limited. Anthropic
$100,000 on tokens
Spend Simon Willison reports for Anthropic's cryptographic weakness finding with Mythos Preview (context for AI search cost). Simon Willison
~$270M of VC in three months
Venture money that Kepler's CEO says went into formal-verification layers over three months Vinoo Ganesh
70% of daily tokens on verification
Tan relays a colleague's report on how much of her daily token spend goes into verification six months after she could not trust her agents; Tan says her own share tracks that Lauren Tan
~0.5% reverted
Share of pull requests reverted on Tan's Grok Bot team despite about 11,000 PRs shipped in a month, steady on a relative basis Lauren Tan
10^-9 failures per flight hour
Safety target for aircraft collision avoidance ACAS X, per Mykel Kochenderfer; simulating it directly needs about 10^9 simulated hours per failure seen Y Combinator
Formal verification has been practical only for mission-critical code such as Airbus avionics because proofs can be many times larger than the code and need a niche skill set. Anthropic
Theorem, Anthropic's collaborator, offers to run the same pipeline for other open-source projects and publishes a Claude skill so developers can verify their own code; a subset of the proofs and semantics is public. Anthropic
Proof reuse could amortize cost: more formalized code and standard security methods let proofs be reused across codebases, and verifying a package once covers each dependency, which follow a power law. Anthropic
When it breaksTried with weak models, written off. Earlier attempts to verify code with less capable models failed and many developers dropped the method. Anthropic
Open questionIs verification mainly a way to make AI output trustworthy or still a bottleneck?
Anthropic expects verification to become built-in, practical as fuzzing, a guard against AI-found exploits. Anthropic
Anthropic's own post says proofs can take hundreds of millions of tokens and cost efficiency is critical. Anthropic