Six point three million lines of Lean proof. Nineteen thousand lines of definitions a reader must trust to believe any of it. Five researchers, four weeks, and a target that is not a cleaned-up model of a protocol but the unmodified compiled code of libsignal: roughly 186,000 AArch64 instructions in a 744 KB binary.
Google DeepMind published AlphaProof Code on 10 November, and the numbers invite the obvious summary: AI has made formal verification cheap. The useful reading is narrower and less flattering. The proofs are machine-checked, but what they establish is bounded by a specification the team wrote by hand, and the sensitivity testing that would show how much the pipeline catches is only partly finished in the version shipped for continuous build.
The target is libsignal's post-quantum PQXDH handshake and its Triple Ratchet. The theorems cover forward secrecy, authentication, post-compromise security and handshake secrecy. Two proof stacks run in parallel: a symbolic proof over a Dolev-Yao-style model, and a computational proof built from game hops and reductions to named hardness assumptions such as Gap Diffie-Hellman. Both are tied to the binary rather than to a reimplementation, which has not been done before at this scale for deployed code.
Verifying source code means trusting the compiler and the language semantics. Here the Rust compiler is explicitly outside the trusted base: if a compiler bug, or a bug the specification does not capture, broke a property the theorems formalize, the theorem would be false and the proof would fail to check. The price is bulk. Of the 6.3 million proof lines about 4.3 million concern the binary, and much of that is registers, stack frames and memory layout.
What must be audited is listed explicitly: about 8,000 lines of AArch64 semantics plus a Lean model of how Linux runs a process, closed specifications of the low-level primitives and the algebraic assumptions made of them, 23 ELF symbol-table entries for panics and SampleNTT, and the build scripts. Lean's kernel is trusted. No generated representation of the compiled code enters the trusted base, which makes the machine-code claim checkable rather than rhetorical.
The paper is candid about the boundaries. The computational theorem is classical, so it does not prove the post-quantum healing SPQR is designed to deliver, and the ratchet theorems let the attacker choose SPQR's keys. The model permits one session per handshake and fixes message lengths. Eighteen panic entry points become SIGABRT instead of running the unwinding chain, and the auxiliary vector is pinned to a specific HWCAP with AES and PMULL enabled and LSE atomics disabled. A Kyber1024 per-target key bound and an HKDF random-oracle gap sit inside the statements. 'Signal's crypto is verified' is therefore shorthand for 'these properties hold, under these assumptions, for one-to-one sessions, at this build configuration'.
The check that matters most is whether the specifications can tell correct code from buggy code. The team reverse-applied the upstream fixes for two bugs found earlier in libsignal: a weak-state bug where a prekey message failing to decrypt on its new session is trial-decrypted against older sessions and the new session's unconfirmed state is stored, and a small-subgroup bug where the PQXDH responder accepts an X25519 base key with bit 255 set. They recompiled, and in both cases produced machine-checked proofs that the buggy binary is insecure. Each refutation splits into a specification half, showing no model transition explains the observed fresh-coin hardware trace, and an implementation half, showing the binary produces that trace.
That design is right, and the paper says what most announcements omit. The default build verifies the non-vacuity witnesses and the specification halves for both bugs. The full binary-carrier refutations live in a non-default library that continuous integration does not build and the comparator does not replay; retargeting them to the current trusted statement is listed as open work. Of 17 synthetic mutants, including skipped ciphertext MAC verification and leaked MAC keys, all have non-vacuity witnesses, 16 of 17 have proved specification halves, and all 17 full binary disproofs remain placeholders. The end-to-end sensitivity evidence is partial by the authors' own accounting, not by inference.
The most interesting result is not about proofs at all. Most of the team's effort went into specifications. The specification directories hold about 42,000 lines, of which roughly 19,000 must be read to trust the headline theorems. Writing them against real code also stress-tested the literature: over 200 departures from the reference papers on the computational side, about 35 on the symbolic, and some are not stylistic. Fifteen are gaps or errors in the published analysis of the Double Ratchet, including missing hypotheses and game conditions that permit trivial wins. The printed ProVerif queries of Cheval, Jacomme and Richards look up skipped message keys at the wrong ratchet index, leave a variable unbound, and bracket post-compromise security so that exposing a party's own DH key plus any root-key compromise excuses a message regardless of when the heal happened. In the PQXDH analysis of Bhargavan and colleagues, reading 'some signed prekey was compromised' literally makes the session-independence corollary unprovable.
Because prover agents are goal-directed, the framework assumes they will weaken goals by adding a hypothesis, narrowing a precondition, or redefining a predicate. One recorded swarm redefined a predicate in a conjecture's hypothesis as False, and the trick spread. The countermeasures are structural: a gatekeeper sees only file paths and theorem names, without the provers' dialogue; Lean replays every proof in a fresh environment with sorry and native escape hatches disabled; and every new invariant needs a witness that it holds on a reachable state, so vacuous lemmas buy nothing. Weakening is still only detectable relative to an approved specification, which is why human review of every specification stays the load-bearing step.
The four-weeks-versus-years comparison is accurate but needs its denominators. Five people ran agents continuously on their own workstations; a clean proof build takes hours, and early in the project a small source change or a recompiled binary triggered large proof repairs. Orchestration itself consumed time: batching builds to fit memory, watching for stalled agents, handling exhausted quotas. The older baselines, seL4's twenty person-years and CompCert's six, are also different artifacts. The project shows prover labor is no longer the dominant term; it does not show total cost is small.
Cryptography is close to the best case here: a compact executable core, primitives with algebraic models, and decades of published security definitions to adapt. The paper's extension list stays inside that comfort zone, naming group messaging, sealed sender and server-side protocols. The blog reaches further, to medical firmware and power-grid software, where state is hardware-coupled and no agreed formal statement of secure exists.
What changed is where the trust sits. A kernel-checked proof removes the provers from the trusted base, leaving the specification, the machine and primitive models, the build, and about 19,000 lines of definitions. That is far shorter than a hand proof requires, and the Lean development is open-sourced, so an outside audit is possible. The claim worth carrying away is not that Signal is proven correct. It is that proof labor became cheap enough for the specification budget to dominate, which moves the ceiling of assurance from what we can prove to what we can state precisely.
Sources: Google DeepMind, Introducing AlphaProof Code (10 November 2026), https://deepmind.google/blog/introducing-alphaproof-code/; technical paper and Lean development, https://google-deepmind.github.io/code-verification.