DeepMind's AlphaProof Code Formally Verifies Parts of Signal's Machine Code
Six and a half million lines of proof, and no person will ever read them. That is the point, and also the problem.
On November 10, Google DeepMind announced AlphaProof Code, a system of AI agents that it says has formally verified the cryptographic heart of Signal: not the protocol as drawn on a whiteboard, but the compiled machine code, the actual AArch64 instructions that run when a phone wraps a message for the wire. The work took four weeks. The last time anyone did something of this weight by hand, the seL4 microkernel, it took about twenty person-years.
Either this is the week software stopped being a rumour about itself, or it is a very good press release. The technical paper lets you sort out which parts are which.
What a proof like this is
Testing tells you a program did the right thing on the inputs you tried. Formal verification goes further. You write down, in mathematics, what the program must never do. Then you prove that no input, no sequence of messages, no adversary playing by the stated rules can make it do that. A proof assistant, here Lean, checks every step. If a single inference is wrong, it refuses the whole thing.
That last step is what separates this from the usual AI story. The agents that wrote the proofs are language models, and language models make things up, but here that costs nothing. The team says so directly: the reliability of the result does not depend on the reliability of the agents, because nothing they produce is accepted until Lean's small, heavily audited kernel has checked it. A hallucinated proof just ends up as a rejected file.
So the machines did the labour and a small piece of old-fashioned logic did the believing, and that split is what is new here.
What was actually proved
According to the technical paper, the agents produced about 6.5 million lines of Lean covering Signal's post-quantum handshake (PQXDH) and its Triple Ratchet, and establishing four properties: forward secrecy, authentication, post-compromise security, and secrecy of the handshake. In plain terms: stealing a key today does not open yesterday's messages, the person you are talking to is the person you think, and a compromised device heals once the attacker is gone.
The target was libsignal, the reference implementation, written in Rust and compiled by the ordinary Rust compiler. The team did not modify the code to make it easier to prove. The earlier landmarks, seL4 and the CompCert compiler, were written from the start with verification in mind. And because the proof is about the binary, the compiler is not trusted. A compiler bug that broke security would break the proof.
The more important test was of the specification itself, since a specification can be too weak and a theorem that says nothing is easy to prove. The team took two real bugs that academic researchers had previously found in libsignal, both since fixed, reversed the fixes, recompiled, and asked the system about the result. In both cases it produced a machine-checked proof that the buggy binary violates the security theorem. So the specification is strong enough to catch at least two real bugs.
Signal's chief technology officer, Ehren Kret, called translating live code into valid Lean theorems "a major breakthrough". He would know what it costs to do by hand.
The 26,000 lines
Now the fine print, which to DeepMind's credit is in the paper in full.
Those 6.5 million lines rest on about 26,000 lines that are not proved, because they cannot be. About 18,000 are the statements and definitions of what "secure" means. The rest is a model of the machine: 467 processor instructions and 31 system calls, written out in Lean. A proof is only ever a proof that the code matches the specification. If the specification is wrong, the proof is a perfect answer to the wrong question. Humans reviewed every line of it, and humans also wrote every specification that has ever been wrong.
Donald Knuth put it best in 1977, in a note to a colleague: "Beware of bugs in the above code; I have only proved it correct, not tried it."
The paper's own list of limits is long and worth more than the announcement:
- The main guarantees are symbolic. They assume the underlying cryptography is perfect and say nothing about side channels: timing, power, what leaks from memory.
- The result concerns the team's own build of a command-line harness around libsignal, run as a fresh process. It is not a proof about the Signal app on your phone.
- The scenario is narrow: two honest parties in fixed roles, identity keys already pinned, no multi-device state. Signal's trust-on-first-use path is not exercised.
- The second, computational proof gives no guarantee against a quantum adversary, and its bound becomes meaningless at scale: by the paper's account, for a single session of roughly 25,000 messages in the worst case.
- One known attack class from the earlier academic work, a replay that costs forward secrecy, is explicitly not ruled out by these theorems.
There is no scandal in any of that; a hard, sharp claim with its edges marked is what honest verification looks like. The announcement says Signal was verified. The paper says selected properties of selected components were verified under stated assumptions. Both are true, but only the second is safe to repeat.
What to believe
The claim is checkable in a way AI claims almost never are. The Lean development is published. Anyone with the hardware and the patience can run the checker and see whether it accepts. That has not yet been done independently, as far as the public record shows on day one, and until it has, this is a strong claim from the party with the most to gain from it. But it is a claim built to be audited, and that is rare enough to notice.
The cost has also dropped sharply. Going from twenty person-years to four weeks is a large jump, even if the four weeks leaned on years of prior specifications by other researchers, which the paper acknowledges it adapted.
And the bottleneck has moved with the cost. If proofs are cheap, the scarce thing becomes the people who can say precisely what a system is supposed to do and can tell when a specification is too weak in ways that are hard to see. The agents flagged about one percent of the work for human eyes. The whole weight of the result sits on that one percent and on those 26,000 lines.
Trust is still required, but it has been compressed into something small enough that a few careful people could read it. For a field that has spent fifty years shipping code nobody fully understood, that matters. It may be the most interesting thing a language model has done yet, because nobody had to take its word for it.
Sources
- Google DeepMind: Introducing AlphaProof Code (announcement, November 10, 2026)
- Chaudhuri et al., "AlphaProof Code: Verifying Signal's Security at the Machine-Code Level" (technical paper; limitations in sections 5.1.6 and 5.2.5, trusted base in 5.3, the bug experiment in 6)
- The published Lean development