News · SI
Google DeepMind's AlphaProof Code formally verifies Signal's protocol down to machine code
Google DeepMind has introduced AlphaProof Code, a multi-agent framework in which humans approve Lean specifications and Gemini Carbon agents write the proofs. It produced about 6.5 million lines of machine-checked Lean proving key security properties of libsignal's compiled AArch64 code in four weeks.

Google DeepMind has introduced AlphaProof Code, an agentic framework for formal verification, and used it to mathematically prove key security properties of the code behind the Signal protocol, which protects conversations in apps such as Signal and Google Messages[1]. DeepMind says it is the first time the implementation of a widely deployed protocol like this has been formally verified by any method, with or without AI[1].
01 / 04
How it works
AlphaProof Code splits the job the way a research team would. A specification-writer agent works with a human to turn security models and properties into a Lean specification, reviewer agents critique each draft, and the human approves the result[2]. The unmodified Rust code is compiled with the standard compiler and loaded into Lean alongside a formal semantics of AArch64 machine code. A team of prover agents then proves the specification, and a gatekeeper agent accepts a proof only if Lean's kernel checks it against a held-out copy of the specification[2].
DeepMind says agents powered by Gemini Carbon generated the proofs, then audited them and flagged about one per cent of the codebase for a second human look[1].
02 / 04
What was proved
Applied to libsignal, the agents produced about 6.5 million lines of machine-checked Lean proof code, resting on about 26,000 lines of trusted specifications and AArch64 semantics[2]. The proofs cover Signal's post-quantum PQXDH handshake and Triple Ratchet, establishing forward secrecy, authentication, post-compromise security and handshake secrecy, in both the symbolic and computational models of protocol security[2].
Most protocol verification stops at the design. Here the proofs reach the compiled code that runs on devices, where real vulnerabilities often hide. DeepMind says the verification took four weeks, against years for expert teams with earlier tools[1]. As a check, the team reintroduced two real, previously fixed bugs into an isolated copy of the code, and in both cases the system produced a machine-checked proof that the buggy version was insecure[1].
03 / 04
Limits and reproducibility
The results trust Lean's kernel, the approved specifications, the security of the underlying cryptographic primitives and the contracts of some routines the executable calls[2]. The target is libsignal linked into a small command-line harness and compiled for AArch64 Linux[2]. The full Lean development is on GitHub, and rebuilding and kernel-checking every proof takes several hours and about 15 to 34 GiB of RAM[3].
04 / 04
Why it matters
Formal verification has been the gold standard for security assurance but too costly for most software. If agents can write millions of lines of proof that a small, trusted checker accepts, the expensive part shifts to writing and reviewing the specification. That could make machine-checked guarantees practical for far more of the code that critical systems depend on.
FAQ
Frequently asked questions.
01What is AlphaProof Code?
A multi-agent framework from Google DeepMind for formal software verification. A human works with a specification-writer agent to produce a Lean specification, then a team of prover agents proves the code meets it, with every proof checked by Lean's kernel.
02What did it prove about Signal?
Key security properties of libsignal, Signal's reference Rust implementation, at the compiled AArch64 machine-code level, covering the post-quantum PQXDH handshake and Triple Ratchet: forward secrecy, authentication, post-compromise security and handshake secrecy.
03How big was the proof and how long did it take?
About 6.5 million lines of machine-checked Lean proof code resting on about 26,000 lines of trusted specifications and AArch64 semantics. DeepMind says the verification took four weeks.
04Which model did the proving?
DeepMind says agents powered by Gemini Carbon generated the proofs, after human experts reviewed every specification.
05What are the limits?
The results assume secure cryptographic primitives and rely on contracts for some routines the executable calls, the approved specifications and Lean's kernel. The proofs cover a libsignal command-line harness build rather than every Signal app.
06Can I check the proofs myself?
Yes. The Lean development is public on GitHub with instructions to rebuild and kernel-check the proofs, which DeepMind says takes several hours and roughly 15 to 34 GiB of RAM.
That’s the story
Building with what’s new?
Spectrum Web Co ships products, places talent, builds social narratives and builds custom business tools as monthly services.
Related stories