Google DeepMind introduced AlphaProof Code, a multi-agent AI framework for formal software verification. It uses human-guided agents to write Lean specifications and autonomous agents to generate proofs. The team applied it to libsignal, Signal’s reference implementation. The proofs cover Signal’s PQXDH handshake and Triple Ratchet at machine-code level. They establish forward secrecy, authentication, post-compromise security, and handshake secrecy. The proofs are the first to connect protocol-level guarantees to unmodified, widely used code. The agents produced about 6.5 million lines of machine-checked Lean proof code. The work rests on about 26,000 lines of trusted specifications and AArch64 semantics. The results suggest AI can make formal verification practical for real-world systems. The Lean development is publicly available.
What changed
Formal verification of Signal’s security relied on abstract models, modified code, or narrower properties like crash-freedom.
What it unlocks
Proving protocol-level security properties for unmodified, widely deployed cryptographic code at machine-code level.
- 6.5 million lines of Lean proof code
- 26,000 lines of trusted specifications and AArch64 semantics
- 18,000 lines of trusted code
- 8,000 lines of AArch64 semantics
What you need to act on it
- Lean 4 environment
- AArch64 machine code semantics
- human-guided specification writing
Sources