Google DeepMind reports AI-written Lean proofs of Signal protocol security properties for compiled machine code
Google DeepMind's AlphaProof Code report of 10 November describes agents writing about 6.5 million lines of Lean in four weeks to prove forward secrecy, authentication, post-compromise security and handshake secrecy for a compiled AArch64 build of libsignal v0.105.4 and its post-quantum ratchet, covering the PQXDH handshake and the Triple Ratchet. The proofs rest on about 26,000 trusted lines of statements, definitions and processor semantics, and treat 39 routines, including the hash, cipher, curve and ML-KEM implementations, through contracts, so the primitives' own code is not verified and the results are conditional on standard cryptographic assumptions. The statements concern DeepMind's own command-line harness, not the Signal apps; when the authors reintroduced two previously fixed bugs, Lean proofs showed the security theorem fails on the modified binaries. The Lean sources are public, but the technical report is not refereed and DARC found no public build log and has not rebuilt them.
- Source Google DeepMind, Introducing AlphaProof Code (deepmind.google) ↗
- Source Chaudhuri and coauthors, AlphaProof Code: Verifying Signal's Security at the Machine-Code Level (PDF) (deepmind.google) ↗
- Source google-deepmind/code-verification (Lean sources) (github.com) ↗
Why it matters
Most security proofs are about a protocol's design on paper. This one is about the machine instructions a compiler produced, checked against a formal model of the processor, which closes the gap where implementation bugs live. What stays on trust is the short list of definitions and assumptions the proofs start from, so reading those 26,000 lines is where outside review will concentrate.