ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial3 min readDisconfirmAI Editorial

Google DeepMind Uses AI Agents to Formally Prove Signal's Encryption Code

DeepMind's AlphaProof Code framework used Gemini agents to generate millions of lines of Lean proofs, formally verifying the libsignal binary. This demonstrates a new capability for large-scale software verification.

2026-11-25

A team at Google's DeepMind AI labs has performed a complete formal proof of the code that implements the encryption mechanism for the Signal private chat application. The scientists call their procedure AlphaProof Code and claim it can be applied to other situations requiring complete end-to-end verification of computer code.

The team reviewed an Arm-compiled version of libsignal, the library that the Signal application itself incorporates and uses. Note that the verification wasn't done against the source code: it was purposely executed against an AArch64 binary, meaning the method can be reused for future verifications of other software.

In a similar vein to the AI labs' work on mathematics, the bulk of the work was done in Lean, a purpose-built language for formal proofs. However, what the scientists actually did was create millions of lines of Lean proofs that were run against the actual implementation, checking that the final binary executable corresponds to the initial specification.

The actual AlphaProof Code workflow comprised various stages of back-and-forth between humans and Gemini 4 Carbon agents. The first steps were laying out the groundwork and infrastructure. The team defined the base scope of work, and then created textual bot skills to prepare agents for their future tasks, among them specification writers, proof workers, and orchestration.

Then, it was time to have agents create the first set of Lean definitions for AArch64 instructions, how registers, memory, and system calls work, and how Linux processes operate. At this point, however, nothing is proven about Signal or any other application. That came next, as the team and its army of agents drafted fully revised specifications for libsignal's cryptography implementation. This then generated just over 1.2 million lines of Lean, for checking the mathematical reasoning behind the protocol.

Sign in / Sign up
ReadingResearchRadarInvestment framework

The bulk of the agentic work was generating 5.3 million lines of Lean to verify that each binary instruction matched the previously defined AArch64, CPU, and process formal behaviors. During this stage, the agent flagged one percent of the codebase for humans to review and verify. When it was all complete, the team had fully verified that the cryptographic engine in the binary did indeed match all the generated proofs, down to the last processed bit.

As the researchers point out: "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," and underscoring that this is particularly important for software topics like cryptography.

Interestingly, they mention that "writing specifications against real code also turned out to be a stress test for the literature," an insightful note on verifying that one did write the software's specifications properly to begin with.

With the disclaimer that this is a note about security in general and we think Signal is indeed top-notch as a private messaging application: Google's team "only" proved that libsignal works exactly as advertised. If a malicious actor were to booby-trap the Signal app — or any other one — with additional code to copy your messages, this sort of proof likely wouldn't catch it. Likewise, the fact that a third-party app implements the Signal protocol for encryption doesn't automatically mean it offers full privacy.

Sources

  • tomshardware.comTom's Hardware↗
Continue researching →