AI & Compute · 3 min read
DeepMind's AlphaProof Code formally verifies Signal's encryption in 6.5 million lines of Lean
Google DeepMind used its AlphaProof Code framework with Gemini 4 Carbon agents to formally prove Signal's AArch64 encryption binary, generating 6.5 million lines of Lean proofs verified to the last bit.
Key takeaways
- DeepMind formally proved the AArch64 binary of libsignal, Signal's encryption library, using 6.5 million lines of Lean proofs.
- The work split into 1.2 million lines of Lean for cryptographic specifications and 5.3 million lines verifying binary instructions against formal CPU models.
- Agents flagged one percent of the codebase for human review during verification.
- Prior formal verification efforts took far longer: seL4 took twenty years and CompCert's C compiler six.
- The proof covers libsignal matching its spec only — it would not catch malicious code added to the Signal app itself.

A Google DeepMind team has produced a complete formal mathematical proof of the binary that implements Signal's encryption, writing 6.5 million lines of Lean proof code in the process. The result, verified down to the last processed bit of the AArch64 executable, means the cryptography engine inside libsignal provably does exactly what its specification says it does.
That's a different beast from ordinary software testing. The team calls the procedure AlphaProof Code, and they've published the full paper plus a code repository so others can inspect the work. Crucially, the verification targeted the Arm-compiled AArch64 binary of libsignal — the library the Signal app actually incorporates — not the source code. The choice was deliberate: proving the shipped binary means the method can be reused to verify other compiled software in the future.
Why this matters
Formal proofs of software have historically been brutal slogs. The seL4 microkernel, often cited as a landmark, reportedly took twenty years to prove. CompCert's verified C compiler took six. DeepMind's scientists note previous efforts ran a year or more to prove relatively small pieces of software. Once proven, though, such programs are effectively bulletproof — they cannot fail due to a code flaw, at least for the inputs they control.
Nobody should formally prove every program on Earth; that would be a questionable use of resources. But mission-critical code like a private messaging protocol is exactly where this capability pays off.
How the humans and bots split the work
The AlphaProof Code workflow ran in stages of back-and-forth between humans and Gemini 4 Carbon agents. Humans laid the groundwork first: defining the base scope of work and writing textual "bot skills" to prepare agents for their roles — specification writers, proof workers, and orchestration.
The agents then built the first set of Lean definitions covering AArch64 instructions, how registers, memory and system calls work, and how Linux processes operate. At that stage, nothing about Signal had been proven yet.
Next came fully revised specifications for libsignal's cryptography implementation. This generated just over 1.2 million lines of Lean to check the mathematical reasoning behind the protocol.
The bulk of the agentic work followed: 5.3 million lines of Lean verifying that each binary instruction matched the formal behaviors defined for the AArch64 CPU and process model. During this stage, the agents flagged one percent of the codebase for humans to review and verify. When everything closed, the cryptographic engine in the binary matched every generated proof.
What did the researchers learn?
The team's own takeaway reframes the whole endeavor. "The most important lesson from our experience is that, once proofs become cheap, the hard question is what to prove," they wrote, adding that "the majority of our effort went not into proofs but into specifications" — a point they underline as especially important for cryptographic software.
They also found an unexpected benefit. "Writing specifications against real code also turned out to be a stress test for the literature," the researchers noted — a candid admission that the written specs themselves had to be checked against what the software actually does.
What the proof does not guarantee
The verification proves libsignal works exactly as advertised. It does not prove Signal the app is invulnerable. If a malicious actor booby-trapped the Signal client — or any other messaging app — with extra code to copy messages, this kind of proof would likely not catch it. And a third-party app implementing the Signal protocol for encryption doesn't automatically deliver full privacy either.
Still, the DeepMind team claims the AlphaProof Code method extends beyond this one case to any situation demanding complete end-to-end verification of computer code. If proofs that once took twenty years now take an agent-assisted project, the bottleneck shifts from proving to specifying — and that is precisely where the next round of competition in verified software will play out.
Tom's Hardware (Source)
More from Rebecca Stone
Show full bio
Correspondent covering technology and product news in Semiconductors, chip manufacturing, hardware, AI compute at Chip Dispatch.
1,318 articles