Separating AI hype from reality.

Google DeepMind completes formal proof of Signal encryption protocol using AlphaProof

November 25, 2026 · DeepMind · Google · Security

Google DeepMind researchers have used an agentic AI framework called AlphaProof Code to produce a machine-checked formal proof of the binary implementing Signal's core encryption library, libsignal. The work, conducted over approximately four weeks using agents running on Google's Gemini 4 Carbon and Anthropic's Claude Opus 5.5, generated more than six million lines of Lean proof code that was verified by the Lean theorem prover. The proof covers selected cryptographic guarantees—forward secrecy, post-compromise security and authentication—for the PQXDH post-quantum handshake and Triple Ratchet, but it applies to a specific Google-built AArch64 binary with a command-line harness, not to Signal's shipped applications.

What was actually verified

The team applied AlphaProof Code to an Arm-compiled version of libsignal, the reference implementation of the Signal protocol used by Signal, Google Messages, WhatsApp and other platforms. Rather than verifying source code, they verified the final executable binary against formal specifications written in Lean. According to the researchers, the effort produced just over 1.2 million lines of Lean for the mathematical reasoning behind the protocol and a further 5.3 million lines verifying that each binary instruction matched the defined formal behavior of the AArch64 architecture, CPU and processes [3]. An independent count later reported 7,546,996 total lines across 11,377 files including proofs, specifications, semantics and supporting material [2].

The verified properties address the headline guarantees that make Signal's design notable among cryptographers: forward secrecy (whether an attacker who steals today's keys can read yesterday's messages), post-compromise security (whether a conversation heals after a key leak) and authentication (whether you are talking to the intended party) [2][3]. A fourth property is reported differently across coverages: shattered.io mentions handshake secrecy in connection with the PQXDH handshake [2], while verisq.ai cites message integrity as the fourth verified property [4]. The Lean checker rejected invalid proofs produced by the agents, meaning only mathematically correct proofs remain in the final artifact [2].

Scope and limitations

Several caveats bound the result. The verification covered Google's own build of libsignal linked into a command-line harness and compiled with stock rustc for AArch64—it did not cover Signal's own mobile or desktop applications, nor does it prove that every libsignal version or third-party integration is bug-free [2][3]. The proofs hold relative to a model of the hardware, compiler, operating system and attacker; side channels, implementation choices outside the proved code and user behavior sit beyond the boundary [2]. As the researchers noted, the proof would not catch additional malicious code in an app designed to copy messages, and a third-party app's use of the Signal protocol does not automatically confer full privacy [3].

The trusted base consists of approximately 26,000 lines of human-reviewed specifications and AArch64 semantics [2]. Agents flagged roughly one percent of the codebase for human review during the process [3]. No named individual gave an on-record quotation in the available coverage [2].

Methodology: agents propose, Lean decides

AlphaProof Code is an agentic framework where humans or agents write precise specifications, agents generate machine-checkable proofs, and the Lean proof checker accepts or rejects each proof without appeal to model confidence [2]. The researchers used agents running on both Gemini 4 Carbon and Claude Opus 5.5 to develop specifications and proofs; the public record does not say how the work divided between the two models [2]. DeepMind has released the formal specifications, Lean proof artifacts and a technical paper publicly, inviting community review and extension [4].

The approach builds on a long history of formal verification—seL4's microkernel proof took twenty years, CompCert's C compiler six—but attacks the bottleneck of human proof labor by handing proof writing to agents while keeping the checker as a safety net [3]. The researchers described the main lesson as: "the most important lesson from our experience is that, once proofs become cheap, the hard question is what to prove," adding that "the majority of our effort went not into proofs but into specifications" [3].

Significance and context

This represents a concrete advance in AI-assisted formal verification of critical cryptographic infrastructure. Previous efforts required years of specialist human effort; the AlphaProof Code pipeline compressed the proof-writing phase to weeks while maintaining machine-checked rigor. The result also demonstrates a generate-then-check pattern where an unreliable generator (the language model) is made trustworthy by an exact verifier (Lean)—a pattern that generalizes to any domain with a cheap, exact checker such as compilers or type systems [2].

However, the work remains a research demonstration on a well-maintained, open-source cryptographic library with precise security claims. Whether agents can repeat it on messier, proprietary codebases is unproven. The introductory pricing for Gemini 4 Carbon ($2 per million input tokens, $10 per million output tokens through November 30, 2026, doubling thereafter) suggests Google is positioning this as a commercial capability for enterprise verification workloads [2], but no separate AlphaProof Code product, API or standalone price has been confirmed [2].

For security teams, the practical takeaway is that agent-generated verification is moving from lab demonstration toward something a well-funded team can trial on small, high-consequence components such as token validation, key derivation or session state machines. The specification work remains the human part, and honest scoping—documenting what the proof covers and what it leaves out—separates a useful assurance artifact from marketing [2].

Sources

  1. DeepMind Agents Find Cheaper Quantum Algorithms (technology.org)
  2. Gemini 4 Carbon: 6.5M Lean Proof Lines Verify Signal [2026] (shattered.io)
  3. Google DeepMind team formally verifies Signal's libsignal encryption binary (mezha.net)
  4. AI‑Powered Formal Verification Confirms Signal Protocol's Cryptographic Guarantees (verisq.ai)
  5. Finding faster quantum algorithms with agents and formal verification — Google DeepMind (deepmind.google)
  6. GitHub - google-deepmind/formal-quantum-computation: A Lean 4 library for formally specifying and verifying quantum programs, grounded in quantum Hoare logic with classical variables. · GitHub (github.com)