cd ~/series/demystifying-ai
AlphaProof Code: Signal Verified at Machine Code
EP 62 DeepMind blog Paper PDF Nov 25, 2026 5 min

AlphaProof Code: Signal Verified at Machine Code

DeepMind agents wrote ~6.5M Lean lines proving PQXDH + Triple Ratchet properties on unmodified libsignal AArch64 - in four weeks.

Share:
// TL;DR

On Nov 10, 2026, Google DeepMind (Chaudhuri, Ferraiuolo, Kovsharov, Chajed et al.) introduced AlphaProof Code: humans approve Lean specs; Gemini 4 Carbon agents write proofs; Lean accepts or rejects. A five-person team spent four weeks on stock libsignal v0.105.4 → AArch64, producing ~6.5M machine-checked lines for PQXDH + Triple Ratchet. Specs are trusted; agents are not - and crypto primitives were hooked via contracts, not proved from AES upward.

~6.5M
Lean proof lines
4 wks
Team of five
~26k
Trusted base LOC
~140k
AArch64 instructions

# Not the IMO AlphaProof

Same Lean lineage. Different job.

ALPHAPROOF (2024)

RL system that proves math olympiad problems in Lean. Contest theorems. No shipping binaries.

ALPHAPROOF CODE (2026)

Multi-agent software verification. Prove properties of real compiled code against human-approved specs.

# System Architecture

The trust story is the architecture. Humans own specs. Agents propose proofs. Lean decides.

TRUST BOUNDARY
TRUSTED
Human specs + AArch64 semantics + crypto contracts
UNTRUSTED
Gemini 4 Carbon agents write ~6.5M proof lines
JUDGE
Lean kernel accepts or rejects
WHY THIS SPLIT MATTERS

Wrong agent output fails the kernel. Wrong spec still "proves" the wrong thing. Read the trusted base.

TRUSTED BASE SIZE

~26k LOC total (~18k specs + ~8k AArch64 semantics) vs ~6.5M proof lines. Humans review the small pile.

# From Rust Crates to AArch64 Proofs

The target is not a toy model. It is stock libsignal through a normal compiler.

01
libsignal v0.105.4

Unmodified Rust crates

02
Stock rustc → AArch64

~140k instructions

03
CLI harness

Not the mobile Signal app

04
Lean over AArch64 semantics

Machine-checked proofs

DeepMind frames this as the first proofs linking protocol-level guarantees to an unmodified, widely deployed crypto implementation - not only an abstract model.

# What Was Actually Proved

Protocols: PQXDH + Triple Ratchet (SPQR) inside libsignal. Dual tracks: symbolic (~10 theorems) + computational.

FS
Forward secrecy
AUTH
Authentication
PCS
Post-compromise security
HS
Handshake secrecy
TWO TRACKS
SYMBOLIC

~10 theorems. Idealized primitives. Protocol logic under perfect crypto assumptions.

COMPUTATIONAL

Reduces guarantees to hardness of the hooked primitives - still not a full AES proof.

# Sanity Check: Bug Injection

DeepMind reintroduced two prior libsignal bugs. The system produced machine-checked insecurity proofs - so the harness can say "broken" when the code is broken.

CLEAN BUILD

Proofs of the stated security properties go through against the unmodified crates.

BUGS REINSERTED

Machine-checked proofs that the properties fail - not silent green.

# What This Does Not Prove

Read this section before tweeting "Signal is fully proved secure."

IN SCOPE

CLI harness, PQXDH + Triple Ratchet 1:1, Lean-checked proofs under contracts.

OUT OF SCOPE

Mobile app, groups, sealed sender, keygen, full primitive impl proofs, wrong-spec risk.

Signal CTO Ehren Kret endorsed the methodology in DeepMind's blog. That is praise for the approach - not a warranty for every Signal surface.

# Why Engineers Should Care

Formal verification of real crypto used to take years. This campaign took a small team four weeks with agent-written proofs. The bottleneck moves to spec quality.

Take this

Agentic provers + a tiny trusted base can scale Lean proofs over compiled crypto. Specs + TCB remain the human job.

Leave this

"All of Signal is proved." "No remaining bugs." "AES itself is verified here."

ONE-LINE MENTAL MODEL
humans write/approve specs
agents  propose           proofs
Lean    checks            proofs
wrong specs still "prove" the wrong world
// Bottom Line

AlphaProof Code moves formal verification from olympiad math to shipping crypto binaries. ~6.5M Lean lines over unmodified libsignal AArch64 in four weeks is a real step - with hooked primitives, a CLI harness, one-to-one only, and a human-owned trusted base. Treat it as a new verification workflow, not a blanket "Signal is done."

NEXT EPISODE
Coming Soon

Next episode dropping soon

New episodes every Mon, Wed, Sat. Follow on LinkedIn to get notified.

Enjoyed this?

New episodes Mon, Wed, Sat.