Signal: DeepMind just did formal verification at scale
Google DeepMind published AlphaProof Code, an agentic framework for formal verification, and used it to prove key security properties of Signal’s actual cryptographic code. DeepMind claims this is the first time the implementation of a widely deployed cryptographic protocol has been formally verified by any method — a claim the paper supports by noting that prior work either verified protocol designs rather than compiled code, or verified codebases written from scratch for verification (like the seL4 microkernel or the CompCert compiler, which DeepMind itself cites as having taken “twenty person-years” and “six” respectively). Previous Signal verification work (Cheval, Jacomme, & Richards) proved design-level properties of the ratchet protocol; this paper goes further by connecting those guarantees to the unmodified compiled binary.
The paper AlphaProof Code: Verifying Signal’s Security at the Machine-Code Level actually did, in numbers:
- About 6.5 million lines of Lean proof — the machine-checked proof artifacts generated by autonomous prover agents (agent teams powered by Gemini 4 Carbon, per the paper) running under a specification-writer agent and a gatekeeper. Every line is mechanically checked by the Lean proof kernel, so correctness of each proof step does not depend on trust in the model.
- Four weeks end-to-end — where expert verification teams historically took years (the seL4 microkernel took 20 person-years, per DeepMind’s own citation of Klein et al.; CompCert took 6).
- ~1% human review — the agents audited their own proofs and flagged only about one percent of the codebase for a second look by human experts, who reviewed all specifications and the flagged proof sections.
- Two real bugs, caught — the team reintroduced two previously fixed libsignal bugs into an isolated version. In both cases, the system produced a machine-checked Lean proof that the buggy version was insecure.
The framework splits verification the way a research team does. A specification-writer agent, under human guidance, turns models and security properties from the research literature into formal Lean specifications. Reviewer agents critique each draft. Once a human approves a specification (which becomes the baseline), a team of autonomous prover agents generates proofs. A gatekeeper agent accepts proofs only if Lean’s kernel checks them.
What actually matters here
Formal verification is the highest standard of software security assurance: you don’t test the code, you prove that specific properties hold for all possible inputs and execution paths. But it has always been painfully narrow in practice. Prior work on Signal verified the design-level protocol — proving that the cryptographic protocol’s specification satisfies certain security goals. That’s necessary but not sufficient: real-world vulnerabilities live in the gap between specification and compiled implementation.
DeepMind’s paper claims to have crossed that gap. It verifies that the compiled code fulfills key security properties — including keeping messages protected before and after a device is temporarily compromised — down to the compiled binary. That’s a genuine expansion of what formal verification can cover, if one trusts the paper’s own numbers.
The agentic-economy angle is clear: DeepMind reports that AI agents have collapsed formal verification from a multi-year endeavor to a four-week, ~1% human-review operation. This is a textbook example of AI-as-delegation: humans specify what to prove (the security properties), and agents write the proofs. If the model generalizes beyond Signal, it could reduce the bottleneck in verifying firmware, safety-critical infrastructure code, or any system where human expertise is the limiting factor — not the mechanical proof steps.
The caveat
This is DeepMind-reported. The paper does not present an independent third-party audit of the overall process, nor does it disclose computational cost in token-count or hardware terms. The 6.5 million lines of Lean proofs are mechanically checked by Lean itself, which is the important part — the proofs are either valid or they don’t compile. But the specifications that the agents translated remain a human-reviewed layer. The verification is only as good as the specification.
The verification covers AArch64 Linux machine code of libsignal only. Whether this pipeline generalizes to other cryptographic protocols, firmware, or power-grid software remains an open question.
What to watch
DeepMind is open-sourcing the verification artifacts. The independent verification community should test whether this pipeline can be applied to other deployed protocols — TLS implementations, other messaging platforms with known past vulnerabilities. If the agents can do it again within weeks on a different codebase, this shifts from a vendor milestone to a new standard in software assurance.
