Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Google DeepMind's AlphaProof system produced machine-checked proofs that a compiled build of Signal's one-to-one chat protocol matches its security specification, covering about 140,000 machine instructions with roughly 6.5 million lines of Lean proof. The proof relies on human trust in about 18,000 lines of specifications and an ARM instruction description, and it does not cover the actual app binaries, group chats, side channels, or quantum attackers. The real achievement is the scale of automated proof generation, but the approach still requires humans to define correctness and trust the foundations.
Key points
AlphaProof generated 6.5 million lines of Lean proof verifying a compiled Signal binary against its security model.
The proof covers forward secrecy and post-compromise security for one-to-one chats with post-quantum protection.
The system detected two real bugs by proving the security theorem fails when the bugs are reintroduced.
The verification uses untrusted AI agents with a gatekeeper and Lean's kernel to check proofs against approved specifications.
About 18,000 lines of specifications and 7,578 lines of ARM description are trusted; the compiler and source are not.
Techniques
- formal verification in Lean
- symbolic security proof
- computational security proof
- agent-based proof generation
- binary-level verification
- lockstep testing against emulators
- specification-driven verification
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
I went into DeepMind's new signal paper asking who checks a proof that none of the authors wrote. When you hear Google's AI prove the code behind Signal's encryption, that's the proof
you're being asked to trust. In the same paper, the authors report that one agent cheated. Its trick was redefining a condition in a goal's assumptions as false, which makes that goal trivially
true and useless. Google DeepMind announced the work on November 10th as AlphaProof code. Its agents wrote about 6 and 1/2 million lines of proof in Lean, a language where
a program called the kernel checks every step. Headlines ran with a figure from DeepMind's own blog. Only 1% got a human look. So besides the paper, I read the
code repository and Signal's own fix commits to see what was proved and what still rests on trust. On X, the take that spread is that Google just made history in AI and software security. A
lot of that's fair. These proofs are machine checked and they reach all the way down to the compiled program's actual bytes, but 1% of the codebase is all the blog says with no word on what
was counted. The paper gives a firmer number. A person must read and trust about 18,000 lines and some pieces under those are simply assumed. One question waits for the end. If an agent can game
its goal, who makes sure the goal itself is right? By then, you'll also know what was proved, why millions of lines no human has to read can still count, and where the end of software bugs stops.
Start with what Signal's code means because the first surprise is in there. DeepMind's team took lib signal, Signal's own library at version 0.105.4 plus a companion library called SPQR.
Neither one was modified. They built both with the stock Rust compiler version 1.98.1 into a single self-contained program for 64-bit ARM Linux. Its verified library
code comes to about 560 kilobytes, roughly 140,000 machine instructions. Outcomes a command line harness that can set up a session, send, and receive. Its scope is one-to-one chats in two parts.
First comes the PQ DH handshake, which opens a session with post-quantum protection built in. Then the triple ratchet keeps moving to fresh keys as the conversation goes on.
Deep Minds Pushmeet Kohli, who co-wrote the announcement, calls this the actual production code of the protocol in his post on X. I took that to mean the app. What the paper verified is this Linux
harness built from unmodified production source with a real compiler. Your App Store's binary is a different build, and the proof covers this harness, not that one. Whether the results carry over to
Android, iOS, or desktop is an open question. The blog announcement calls this a first by any method. The paper says it more carefully. The first proofs tying protocol-level security to the
unmodified code of a widely used protocol. Its own related work section lists earlier code-level efforts. Either way, first is Deep Minds word. On size, the blog says over 6 million lines of
lean. In the paper, it's about 6 and 1/2 million lines of proof and nearly 7 million lines of lean in total. That little word over is carrying up to a million lines, which plenty of teams
would call a whole codebase. Most of the proof, 5.3 million lines, is about the binary itself, and both security proofs share it. Spread across 140,000 instructions, that works out to
about 38 lines of proof for everyone. First though, an obvious problem. To prove anything about raw machine code, you need a precise description of what every instruction does. Step one is that
description, and it's one of the few parts you simply have to trust. Their version covers user mode 64-bit ARM Linux, 467 instructions, and 31 system calls. The whole description is 7,578
lines of lean. A system call is the program asking the operating system for something, like writing to a file. A description you trust had better match how the
architecture really behaves, so they ran it in lockstep, instruction by instruction, against two references, the Unicorn emulator and the sale model of the ARM architecture.
Loading and system calls were checked against QEMU. 10 scenario runs, 15.6 million instructions in all, ended the same way in Lean as on the real binary. All of that is testing, so it builds
confidence without proving the description right. Some things are left out, too. Threads, signals, and files outside the current folder. As far as this proof knows, the rest of your disk
doesn't exist. Step two is the claim about the binary, and it's stricter than I expected. Its central definition says every run of the program from inputs that meet a
precondition ends in an outcome that meets a postcondition. Behind that postcondition sits a reference model of signals logic, also written in Lean. On a valid setup, send
or receive, if that model accepts, the program exits with code zero and prints exactly the model's output. If the model rejects, it exits with code one, prints nothing, and changes no files. If the
model would panic, the program aborts. Beyond that, the paper adds that no run faults, loops forever, or leaves a state the model wouldn't produce. In plain terms, on any valid setup, send or
receive, this build ends exactly the way the model says it should. Right exit code, the model's output, no stray file changes, no crash or hang on the way either. That covers every valid run,
including the ones no test would ever try. Coverage like that separates this from DeepMind's previous security agent, Code Mender, from October 2025. DeepMind says 72 of its security fixes have gone
upstream to open source projects, checked by automatic validation and human review. Tested, in other words, rather than proved. If your AI tools only test their patches, that's the gap
a proof closes for whatever its statements cover. I'd assume the compiler would sit on the trust list. The paper's trust table says otherwise. Its proofs need trust in Lean's kernel
and the Arm description, though not the Rust source or compiler because the claim is about the compiled bytes. A compiler bug that broke these properties would have broken the proof. Deep Mind
states the headline theorem about the ELF file itself, the program's actual bytes. Its name is libsignal c l i p q secure elf binary placed. Lean theorem names aren't written to be
read out loud, but matching a model is only as good as the model. If the reference model had a security flaw, the binary would reproduce it perfectly, and step two would still
pass. So step three proves the model itself is secure. There are 10 security theorems. You've probably heard of two, forward secrecy and post-compromise security.
Forward secrecy means a key stolen today can't unlock earlier messages. Post-compromise security means the conversation recovers after a leak. Others cover secrecy for each side and
authentication plus five about the handshake. One of those five is resistance to harvest now, decrypt later, where someone records your traffic today and waits for a quantum
computer to break it. Security is proved two independent ways. One proof is symbolic in the style of ProVerif, a protocol analysis tool that comes back later.
That style of proof treats messages as symbols and asks whether an attacker who can intercept, replay, and splice them can break a property. The other is computational, written as a game against
attackers with limited computing power who can use randomness. Stack the proofs and you get three layers. On top, the reference model is proved secure, about 350,000 lines
symbolic, 860,000 computational. In the middle, the binary matches that model. That's the 5.3 million shared lines. Under all of it sits the arm description
you have to trust. So who wrote all of this? Every proof came from agent teams running Gemini 4 Carbon specifications, meaning the statements to be proved were developed with Gemini 4 Carbon and
Claude Opus 5.5. Each team has a structure. An orchestrator splits up and schedules the work, but in the paper's words, never edits lean files itself. It's the one manager on the team whose
quick fix is banned in writing. Proof workers take the small subtasks, team leads own longer goals. An architect designs how the big goal breaks apart and revises that plan, and an integrator
merges finished proofs, removes duplicates, and generalizes lemmas. A team typically had 40 to 80 agents on a single machine running for 24 to 72 hours. On the human side, five people
over four weeks working on the symbolic and computational proofs in parallel. Now the opening question head-on. None of the authors wrote this proof and the paper reports that their agents cheated.
Deep Mind's own diagram marks the whole prover team as untrusted. Trust goes to the checks instead. Think of it as an exam. People decide what goes on the question sheet, which is the
specification, and review every question on it. Agents write the answers, then two graders mark them and neither one cares who wrote the answer. Grader one is a gatekeeper running a tool called
comparator against a held-out copy of the approved specification. One check, the statements and everything they depend on are unchanged. Another, the proof uses only Lean's standard axioms,
the few basic assumptions any Lean proof may use. No agent gets to slip in a convenient new one. A proof gets accepted only if it proves exactly the statements people approved. Grader
number two is Lean's kernel, which checks every step of every proof. Martin Kleppmann predicted this setup in December 2025. The checker rejects any invalid proof and forces the agent to
retry. A writer can be wrong as often as it likes. Only checked work gets through. That false trick had company. Section seven of the paper lists how agents weaken their goals, adding extra
assumptions, narrowing preconditions, and that condition redefined as false. A goal that only applies when something impossible holds is true about everything and useful for nothing. None
of that can reach the final result because what's accepted has to prove exactly the approved statements and the kernel checks it. A related trick, vacuous lemmas got its own rule. An
invariant is a fact meant to hold throughout a run. For each one, the agents had to show a witness, a reachable state where it actually holds. Other agents failed in plainer ways.
They stalled or ran out of model quota, which might be the least futuristic sentence in the paper. Our exam picture breaks in one important place. A real teacher knows the questions are
worth asking. These graders only guarantee that the answers match the questions as written. If the question sheet misses something, both graders pass it anyway. A fair
objection follows. A checker that only ever says secure would be useless. Can this system say insecure when it should? To find out, the team used two real signal bugs found earlier by Shival,
Jachum, and Richards with ProVerif, the tool from before. Signal had fixed both, so they reverse applied each fix to the same library version, putting the bug back.
It's the most respectable reason I can think of to revert a security patch. Bug one is called weak state. An attacker could attach the handshake header from one session to a message from another.
Signal's fix, co-authored by Rolf Schmidt, stops trying to decrypt that kind of handshake message with older sessions. Two files, 167 added lines, tests included.
Bug two is called small subgroup. A malformed base key, one with its top bit set, could let a replayed handshake open a second session with the same secret.
Signal's fix checks that base keys are well-formed and in range and rejects bad ones when a session is set up than the result. For both buggy programs, the system produced complete lean proofs
that the symbolic security theorem fails, about 140,000 lines of proof between them, checked by the kernel. It said insecure and it proved it. One system built both proofs of security
and proofs of insecurity, so these statements aren't empty. They rule out two real bugs that were once in Signal's library. If you only use Signal, this next stretch is the part that's about
you. When I traced the proof into the binary's lowest level code, the core cryptography turned out to be taken on trust. Routines that do the raw
cryptographic math from SHA hashing to the post-quantum key exchange are hooked. When the program calls one, the proof doesn't follow its instructions. Across
the whole binary, the paper counts 37 hooked routines that end up as contracts at its boundary. A contract states what a routine should do and the proof treats that as given. So whether those bytes
compute AES correctly, for example, sits outside the proof as an assumption. Not everything low level got a pass though. Mem copy and mem set, which copy and fill memory, are proved instruction by
instruction, so are HKDF, which derives keys and lib signals own HMAC code. Next comes the papers out of scope list and it isn't short. Key generation isn't verified. Keys are taken as part of the
setup. Side channels like timing are out along with other secrets in memory. Group chats, server side protocols, and multiple devices aren't covered. Only classical attackers appear in the
computational proof, so it doesn't prove recovery after a leak against a quantum attacker. It's bound also becomes vacuous, guaranteeing nothing for a single session of about 25,000 messages.
One of the two proofs in effect comes with a message allowance. A replay based loss of forward secrecy isn't ruled out either. All of this comes from the paper itself, which is what you want from a
proof paper. Time for the question I held for the end. Who makes sure the goal itself is right? People do and the paper says how much they have to read. They're looking at about 18,000 lines of
statements and definitions. Divide that by 6 and 1/2 million lines of proof and you get under a third of 1%. With documentation, those 18,000 lines grow to about 28,000. On top of that,
they trust about 8,000 lines of arm description and symbol names. A careful team can read that much. 6 and 1/2 million is another matter. One link between the binary and the proof stays
unexplained here. How the program's bytes become their lean form. The symbol names that step relies on are on the trust list too. People also did more than read. In the
headline version, only 1% got a human look. In the blog's wording, agents flagged about 1% of the code base for a second human look. People reviewed every specification, chose the scope and the
reference models, and ruled on any change to trusted assumptions. Kleptman's caveat lands right here. The challenge moves to correctly defining the specification. A post on Koto's blog
argues the same about this project. The 1% only worked because experts wrote the specifications first. Those planted bugs help a little. They show these specifications were
strong enough to catch two real known bugs. What they can't show is that the specifications cover every bug that matters. Leave a property out of the statement and a flaw in it passes every
check. So the answer is people who know the protocol reading about 18,000 lines very carefully compared with reading the proof, it's a much smaller job and it's where the risk now lives. Step back to
the scale because that's the part that changed. Take the SEL4 microkernel, 7,500 lines of C verified with about 200,000 lines of Isabelle proof. Its team puts the whole effort, design and
implementation included at about 25 person years. Kleitman's post says 20. Even the history of how long this used to take disagrees with itself by five person years. Either way, five people
for four weeks is 20 person weeks, which by my count is under half a person year. Treat that comparison as rough. Tools and properties differ and the SEL4 team says a redo would take less than 10
person years. Human time also leaves out the machines, teams of 40 to 80 agents running for days. The paper gives no compute cost. Signal has its own route too. An April post on Signal Shot
describes a public project from Signal, the Beneficial AI Foundation and the Lean FRO. Its plan is to translate lib signals rust source into lean using a tool called Aeneas. As of that post,
there was no finished verification yet. DeepMind went the other way and proved the compiled program, which is why the compiler isn't on its trust list. In DeepMind's post, Signal CTO Aaron Kreth
calls it a major breakthrough to have AI agents translate live code into valid lean theorems. The same post carries DeepMind's own caveat. Scaling these techniques requires continued research.
If you're hoping to point this at your own code, the model isn't the catch anymore. Gemini for Carbon went to a small group of cyber defenders on October 28th and on November 10th,
Google opened it to developers on the paid tier of its API. The catch is the rest of the setup. Teams of 40 to 80 agents running for days and specification someone has to write
first. Maths is getting the same lean-checked treatment. A May pre-print reports nine of 353 open problems resolved for a few hundred dollars each. You also don't have to take any of this
on faith. Deep Mind's repository pins lean version 4.34 running lake build kernel checks every proof in several hours using 15 to 34 GB bytes of peak memory. Comparator, the separate check
runs on Linux only. Licensing is Apache 2.0 while the copied lib signal code stays under the AGPL. One rule I take from this, when someone says AI proved some code, ask for three
things. First, the exact statements. Second, what's trusted without proof. Third, what's out of scope from the build to the attacks. My call, if you use signal, this is strong evidence that
the one-to-one protocol code in that version does what its specification says on that build. Your phone's app binary, your group chats and timing leaks aren't covered.
If you build software, copy the setup. Untrusted writers, a gatekeeper that compares statements, and a kernel that checks every step. If you review security, those 18,000 trusted lines are
now the job. And that agent from the opening, the one that redefined part of its goal as false, couldn't have slipped its cheat into the accepted result. End of software bugs, for one protocol,
one build and 10 written down properties, it's a real checkable proof. Everywhere else, someone still has to write down what correct means. So which piece of your own code would you want
proved first?