Google DeepMind Unveils AlphaProof Code: End-to-End Formal Verification of Signal Machine Code
Google DeepMind's AlphaProof Code produced Lean 4 proofs for the Signal protocol, checked against compiled AArch64 binaries of over 140,000 instructions, with about 6.5 million proof lines and no sorry escapes.
Google DeepMind's Formal Methods and AI Research Group has released AlphaProof Code, an agentic AI framework built for end-to-end formal mathematical verification of mission-critical software. The key claim is where the proofs land. They are checked against unmodified binary machine code, not against an abstract model or a handful of isolated source snippets.
The Signal protocol milestone
DeepMind's flagship demonstration covers the reference implementation of the Signal protocol, specifically the `libsignal` and `spqr` code bases. AlphaProof Code generated complete, machine-checked proofs in the Lean 4 interactive theorem prover. The proofs target compiled AArch64 Linux executables and span more than 140,000 compiled machine instructions.
DeepMind stresses the difference from earlier academic work. Prior verification attempts typically evaluated high-level abstract models or isolated pieces of source code. That leaves a gap: a proof about the source or the model does not automatically hold for the machine code a compiler finally produces. By proving properties directly on the binary, AlphaProof Code aims to close that gap, so the result describes the program that actually runs on a device.
Architecture: multi-agent proof synthesis
According to the announcement, the framework deploys specialized teams of agents powered by Gemini Carbon reasoning models. These teams break a top-level verification goal into three kinds of smaller proof obligations: inductive invariants, frame conditions and memory-safety lemmas. This decomposition helps systematically organize and discharge proof obligations across more than 140,000 compiled machine instructions.
Zero-sorry Lean 4 proofs
Over a four-week automated verification campaign, AlphaProof Code produced roughly 6.5 million lines of Lean 4 proof code. DeepMind says every proof was verified strictly through the standard Lean kernel, with no axiom overrides and no unproven `sorry` escapes. In Lean, `sorry` marks a gap that has not been proved, so a "zero-sorry" result means the chain of reasoning has no unproved holes. It also means trust rests on the small Lean kernel, not on the AI model that wrote the proofs. If the model made a mistake, the kernel would reject the proof.
Cryptographic guarantees that were verified
The announcement lists three groups of properties:
- Handshake secrecy and peer authentication for the post-quantum extended Diffie-Hellman (PQXDH) handshake.
- Forward secrecy and post-compromise security for the Triple Ratchet under continuous state mutation.
- Complete side-channel immunity for constant-time cryptographic primitives.
The source text does not spell out the formal definition of each property or its exact boundaries. Readers should consult DeepMind's full technical material before deciding what, precisely, "complete side-channel immunity" covers.
Testing the prover against known bugs
To check that the proofs are sound, the researchers reintroduced historical vulnerabilities that had already been patched into the code base. DeepMind reports that in 100% of the injected-flaw cases, the AlphaProof Code solver rejected the vulnerable code and synthesized formal counterexamples that illustrate the safety violation. This test answers a practical question: will the prover also "prove" broken code? The announcement does not say how many flaws were injected or what types they were, so the sample size behind the 100% figure is not public.
Human-in-the-loop governance
Human cryptographers were required to inspect and approve only the top-level formal specification contracts. That is less than 1% of the total proof volume. The AI agents autonomously derived all intermediate invariant proofs and the machine-code lifting derivations.
This split has a clear consequence. The meaning of the whole verification now depends on whether the specification states "secure" correctly. A flawless proof of a wrong statement is still a wrong result. The small amount of human review therefore carries the responsibility for requirements, which is the part machines cannot judge for themselves.
What to watch
The release shows one possible division of labor: AI does the labor-intensive part of formal proof, and people decide what must be proved. For messaging encryption, where a flaw is costly, that is an attractive model. Still, the evidence published so far is limited to two Signal code bases. The announcement does not say whether the method scales to larger or messier industrial software. A four-week campaign and 6.5 million lines of proof also hint at a real cost in compute and engineering effort. Independent evaluation of those questions will matter more than the headline numbers.
Sources
FAQ
What did AlphaProof Code actually verify?
It generated machine-checked Lean 4 proofs for the Signal protocol reference implementation, libsignal and spqr. The proofs target compiled AArch64 Linux binaries covering over 140,000 machine instructions, not an abstract model or isolated source snippets. The target is the program that really runs.
What does zero sorry mean here?
In Lean, sorry marks an unproved gap. DeepMind says about 6.5 million proof lines passed only the standard Lean kernel, with no axiom overrides or sorry escapes, so trust rests on the small kernel and not on the AI model that wrote the proofs.
What did humans have to review?
Human cryptographers had to inspect and approve only the top-level formal specification contracts, under 1% of the proof volume. AI agents derived all intermediate invariant proofs and machine-code lifting, so the accuracy of those specifications carries the weight of the whole result.