On November 10, Google DeepMind published what the security field has promised for thirty years without delivering. AlphaProof Code produced machine-checked proofs that the code underneath Signal enforces the security properties its designers claimed, at the AArch64 machine-code level. Not a model of the protocol, and not a proof about a tidy reference implementation. Proofs about libsignal's actual compiled binary, in Lean.
About 6.5 million lines of machine-checked proof resting on about 26,000 lines of trusted specification and processor semantics. A team of five researchers, four weeks. Teams of 40 to 80 AI agents on Gemini 4 Carbon wrote every line of proof. A gatekeeper agent accepted a proof only when Lean's kernel checked it and a comparator confirmed it proved exactly the approved statement. None of the authors wrote any proof code.
The other half of the fortnight. Levent Alpöge, a mathematician at Anthropic, released a 17-million-line Lean proof of the Riemann hypothesis on November 20. WIRED reported it on November 24, with more than 200 people already working to verify it. The Lean Focused Research Organization and the volunteer Mathlib group said they have "full confidence" it is sound. Alpöge's own summary of his code, posted on X, was that it "is full of garbage obviously" but still "compiles."
The lesson is the same. The proof is no longer the bottleneck. The statement is. A proof is a claim about a specification, and the specification is the only part of the chain no kernel checks, so a green check always hides an unverified assumption. The test is falsifiability: a reviewer who did not write the statement has to be able to break it. The spec is the attack surface, and spec review is the engineering discipline of the next few years.
THE NUMBERS THAT MATTER
About 6.5 million lines of checked proof over about 26,000 lines of trusted specification and semantics is 250 to 1. For every line carrying human meaning, there are 250 lines of derivation that Lean rejects if it is wrong. Your review hours belong on the small number, and the paper says where it lives: about 18,000 lines of definitions and theorem statements a reader must trust, plus about 8,000 lines of AArch64 semantics.
The paper names its edges: libsignal-cli, a command-line harness around the unmodified libsignal v0.105.4 crates, one-to-one sessions only, with init, send and recv proven and keygen left out. Group messaging, multi-device state, quantum attackers and side channels are out of scope.
Four weeks is where the economics broke. The paper sets its own baseline: the formally verified seL4 microkernel took twenty person-years, and the CompCert verified C compiler took six. Four weeks of five people is not a marginal improvement, it is a different category, and the difference is not that AI writes faster. Proofs cost almost nothing once the specification is fixed, so human effort collapses onto the definition of what you are proving.
One caveat: the four weeks did not start from zero. The agents extended prior symbolic and computational specifications of Signal's handshake and ratchet into one model covering the new post-quantum ratchet, which took several rounds of review. The compressed part is the proving, not the reading.
The team reverse-applied two upstream fix commits to libsignal version 0.105.4, bugs found earlier and already patched, recompiled the result into a binary they call Asmbug, and proved the symbolic security theorem false for both. The first, fixed in cd36118, stores unconfirmed session state after a trial decryption against an older session succeeds. The second, fixed in 5293caa, lets the PQXDH responder accept an X25519 base key that is not torsion-free and in range. Both are ordinary, previously shipped mistakes. A verifier that cannot fail on known-bad input is decoration, and this one fails loudly.
The machine room is worth copying. An orchestrator splits the work and never touches a Lean file, and team leads try to refute a goal first. The gatekeeper sees only file paths and theorem names, never the provers' dialogue, Lean replays every proof in a fresh environment, and sorry and native_decide are rejected outright.
What DeepMind did not publish is also a finding: no dollar figure per proof, no per-agent token bill, no accuracy number for the spec-writing agents, and a clean build can take several hours. Their cost moved from salaries to compute, and no vendor here has priced that bill.
THE TRUSTED SPEC RULE
Here is the frame worth carrying out of this piece. A proof has three layers, and they do not deserve the same trust.

Layer one is the statement, what you claim is true. Humans write it, humans review it, and it is the only place meaning lives.
Layer two is what the statement depends on: the definitions, the threat model, the contracts for things you declared out of scope, and the processor semantics. That is the trusted base.
Layer three is the proof, 6.5 million lines of it. Lean checks this layer completely and forgives nothing. It is also worthless if layer one or layer two is wrong.
The paper states the asymmetry in plain language. The multi-million-line proofs are untrusted, because any logical error is rejected by the kernel, so the result does not depend on the reliability of the proving agents. The specification is the opposite: it "must be trusted, meaning that the validity of the final result depends on getting it right, and it cannot be automatically checked."
Every formal methods failure you read about is a layer one or layer two failure wearing a layer three costume. Alpöge's version is the same point. His code compiles, 200 people have verified it, two organizations are confident it is sound, and none of that answers what the theorem says or whether he meant it. Abhishek Saha of Queen Mary University of London told WIRED what the gap costs: "Knowing there is a proof is one thing, but when we understand the proof, that would allow us to actually go beyond what has happened."
DeepMind treats that as an engineering problem, not a philosophical one. Its paper cites a swarm of Lean-proving agents in which an agent redefined a predicate in a conjecture's hypothesis as False, and the trick spread through the team. That needs no malice, only an agent under pressure to close a goal. Their control is a chain: no agent's own report that a goal is done is trusted, amendments go to a critic agent, changes to trusted assumptions need the user or a user-set policy, the approved specification sits at a git commit, and the gatekeeper checks proofs against a held-out copy. That is change control pointed at meaning instead of at code, and it is the most useful thing in the paper.
I have argued this before. "The Verification Bottleneck Is Your New Build System" argued the checking layer is where the money moved, and "Verifying Agents Is Now Harder Than Generating Them" argued the checker is harder to build than the generator. Both assumed the artifact was code. This paper moves the artifact to the sentence that describes it.
WHAT THIS MEANS FOR YOUR CODEBASE
You can copy the gatekeeper pattern this week with no Lean in your stack. The requirement is an independent checker whose only job is confirming the artifact matches the approved claim and nothing weaker. It reads the claim from a versioned source. It ignores the producer's reasoning, the way DeepMind's gatekeeper ignores the provers' dialogue. It recomputes in a clean environment and rejects the escape hatches.
You already have those escape hatches under other names. Lean's sorry, the placeholder that lets a proof type-check with a hole, is your skipped test, your mock returning whatever the assertion wants, your early return behind a dead flag. Lean's native_decide, which sidesteps the kernel, is your hardcoded fixture, your golden file regenerated after every failure. If a green build cannot be told apart from one that proved nothing, you are not verifying, you are decorating. DeepMind also proves the hypotheses are jointly satisfiable and the premises met by concrete executions, which catches the vacuous theorem, the one that holds because it assumes something impossible. And it runs mutation testing, injecting bugs such as a skipped ciphertext MAC check and proving the security theorem fails on the mutant.
The spec becomes a versioned artifact, reviewed like production code, and first drafts fail both ways. A draft is often too conservative, adding assumptions that weaken the theorem until it holds for buggy code. Freezing it is too rigid, because an assumption turns out wrong halfway through. The fix is not a better first draft, it is a commit, a reviewer, and a gate on every amendment.
Target the 26,000, not the 6.5 million. Spend the hours on definitions, threat model, and the out of scope list, where your guarantees quietly shrink. Nobody needs a second pair of eyes on a derivation Lean already checked. Everybody needs one on the sentence that says what the derivation means.
The consequence is a scheduling change. Consumer stories about generated code get the headlines, but the team that signs the attestation or answers the regulator is where this lands, and their review meeting stops being a walk through a diff and becomes a walk through a specification a reviewer can try to falsify.
WHAT TO DO TODAY
- Pick one security-critical invariant, whether it is auth token handling, a payment state machine, or a migration, and write it as a one-page spec a reviewer who did not write it can falsify.
- Add a known-bad fixture to that spec review: one deliberately broken version your check must reject, and record the rejection.
- Inventory everywhere your team treats "it compiles" or "tests pass" as "it is correct," and mark the two or three worst offenders.
- Read the DeepMind AlphaProof Code post and Alpöge's "Stupid things I did" post back to back. One is the promise, one is the failure mode, and they landed two weeks apart.
- Brief your team that the review meeting moves from the diff to the spec, and that the spec now has an owner and a version number.
THE UNCOMFORTABLE QUESTION
Your CI is green. Your agent wrote the code. Your agent wrote the tests. What exactly did a human being actually check?
A proof is not a guarantee about the world. It is a guarantee about a statement, and in an agentic pipeline the statement is the only part of the chain that still belongs to you. The plan is the statement, every review agent is a gate, and a swarm will drift toward a weakened goal unless a human owns the spec.
Get More Articles Like This
Getting your AI agent setup right is just the start. I'm documenting every mistake, fix, and lesson learned as I build PhantomByte.
Subscribe to receive updates when we publish new content. No spam, just real lessons from the trenches.
Build Real AI Infrastructure
PhantomByte teaches you to build real AI infrastructure yourself: local AI stacks, autonomous agents, multi-agent orchestration, web scraping, and custom tools. Step-by-step PDF tutorials you download, follow, and deploy. No subscriptions. No fluff. Just skills that ship.