THE CRUNCH
A Google DeepMind team has produced a complete formal proof of the code implementing Signal's encryption, using a workflow it calls AlphaProof Code. The work checked an Arm-compiled version of libsignal, the library Signal uses, with minimal scaffolding around it. Crucially, the verification ran against an AArch64 binary rather than the source code, which the team says makes the method reusable for verifying other software.
The bulk of the work was done in Lean, a language built for formal proofs. Rather than proving only the underlying mathematics of Signal's encryption specification, the researchers generated millions of lines of Lean proofs against the actual implementation, checking that the final executable corresponds to the initial specification. The agentic stage produced 5.3 million lines of Lean to verify that each binary instruction matched previously defined AArch64, CPU and process behaviours, and agents flagged one percent of the codebase for humans to review.
The researchers stress that specifications, not proofs, took most of the effort. "Once proofs become cheap, the hard question is what to prove," they write, adding that writing specifications against real code also stress-tested the literature. Tom's Hardware notes an important limit: the proof shows libsignal works as advertised, but it would not necessarily catch malicious code added to an app to copy messages, and a third-party app implementing the Signal protocol does not automatically offer full privacy.
The team points to earlier formal-verification efforts as context: the seL4 microkernel reportedly took twenty years to prove and the CompCert C compiler six. Those programmes are described as effectively bulletproof against code flaws for the inputs they control. DeepMind's result suggests such verification could become practical for mission-critical code, though the source does not establish how long this proof took or how it compares like-for-like with those earlier projects.
Earlier on this story
Crunchy Tech briefs on this story.


