What was done

A team at Google DeepMind formally verified the Arm-compiled (AArch64) binary of libsignal, the library Signal uses for encryption, end to end. The method is called AlphaProof Code. The verification was deliberately run against the executable binary rather than the source code, which the team says makes the approach reusable for other software.

How the proofs were built

Most of the work was done in Lean, a language built for formal proofs. The process involved back-and-forth between humans and Gemini 4 Carbon agents: scope and infrastructure were defined first, agents were given roles, and then AArch64 instructions, memory, system calls and Linux process behavior were formalized in Lean. The team then generated roughly 1.2 million lines of Lean for libsignal's cryptography implementation and about 5.3 million lines to show that each binary instruction matched those formal definitions.

Human review

Agents flagged about 1% of the codebase for humans to review. At the end, the cryptographic engine in the binary was shown to match the generated proofs down to the last bit.

Why it matters

Formal verification differs from software testing: it mathematically guarantees that code behaves as specified for the inputs it controls. Past efforts were slow — the seL4 microkernel proof reportedly took twenty years and CompCert's C compiler six. The researchers note that once proofs become cheap, the hard question is what to prove.