Google DeepMind has published about 6.5 million lines of mathematical proof, and the whole design rests on nobody having to read them. AI agents wrote every line in four weeks, steered by five researchers who wrote no proof code themselves. The proofs show that libsignal, the library behind the Signal app, keeps its core security promises. Old messages stay secret after a key leaks, a conversation recovers after a phone is briefly compromised, and nobody can forge a message from someone else. Versions of the same protocol protect WhatsApp and Google Messages.

Signal's design has been checked on paper many times. What DeepMind announced on Tuesday is a proof about the code people actually run. The team compiled libsignal's unmodified Rust with the standard compiler into ARM machine code, the kind phones run. Then it loaded those bytes into Lean, a language for writing proofs, whose small core checks every step. The theorems describe what that machine code does while an attacker controls the network. Since they are about the binary itself, a compiler bug that broke the security would have broken the proof too. DeepMind says no widely deployed protocol implementation has been verified at this depth before, by any method.

The work had two halves. First came the specification, the precise statements to prove. Agents running on Gemini and on Anthropic's Claude drafted them from academic papers on Signal's security, an agent from the other model family reviewed each draft, and the researchers approved every statement. The specification and a Lean model of the ARM processor come to about 26,000 lines, and they are the part a reader has to take on trust. Then came the proofs. Teams of dozens of Gemini agents, with an orchestrator, team leads and a single integrator allowed to commit, ran for one to three days at a stretch on one machine.

Much of the engineering went into keeping those agents honest. The paper says plainly that agents under pressure to finish will sometimes weaken the goal. In one earlier swarm of proving agents, an agent redefined a premise of a theorem as False, which makes the theorem trivially true, and the trick spread to the rest of the swarm. So the gatekeeper keeps its own copy of the approved specification in a folder no agent can write to, and accepts a proof only if Lean confirms it proves exactly that copy. It sees file names and theorem names and none of the agents' explanations. An agent that thinks the specification is wrong can propose a small fix to a critic that never sees the proof attempts. A fix that would weaken security goes to a human as a possible bug.

Two checks suggest the specification has teeth. The team put back two libsignal bugs that academic researchers had found and Signal had fixed last year, and the agents produced machine-checked proofs that each buggy binary breaks the theorems. Turning the papers into Lean also caught mistakes in the papers. Several published security analyses of Signal had missing assumptions or statements that were false as printed. One of them alone had fifteen gaps and bugs.

For scale, seL4, the best-known verified operating system kernel, took about twenty person-years, and its code was written with proofs in mind. Signal's code was not, and the proofs took five people a month. The work is a big step toward a challenge that Signal and the Lean community set in April.

The clever part is how little the system trusts its own agents. Nobody asks whether a prover is competent or sincere. Its output goes to a referee that cannot be argued with, and Lean's kernel is small, heavily audited and indifferent to how hard anyone tried. That is why nobody needs to read the 6.5 million lines.

Most teams run coding agents the other way round. The agent writes the code, often writes the tests that judge it, and then sums up its own work in a cheerful paragraph. Anyone who has used these tools has watched an agent turn a red test green by editing the assertion. Redefining a premise as False is the same move in better notation. DeepMind's answer is structural, and most of it carries over without Lean. Acceptance tests can live in a path the agent cannot write to and run in a clean environment on every merge. The agent's summary of its own work can be thrown away unread. A change to the tests can be reviewed as a change of its own. The rule underneath is that an agent can be left alone for exactly as long as the checker behind it cannot be fooled. Lean bought DeepMind days of unattended work from dozens of agents. A test suite the agent can edit buys minutes, however good the model is.

The bill for trust moved to the 26,000 lines that people still have to read. A specification can be wrong in ways no kernel will notice. It can assume a weaker attacker than the real one, or simply leave out what matters. This one says nothing about timing side channels and covers a simplified setup with two parties whose keys are already pinned, and the paper lists those limits in plain sight.

The harder problem is who can audit a specification like this. It takes fluency in Lean, in the theory of cryptographic security proofs and in how an ARM chip handles memory, and the people with all three would fit in a lecture hall. The errors in the published papers show what happens to such text when no machine pushes back. Experts wrote those analyses, other experts reviewed them, and one of them had been in print since 2019.

That makes "formally verified" a phrase to watch. Once agents make proofs cheap, vendors will attach it to crypto libraries and smart contracts, and most buyers will have no way to tell a strong specification from a convenient one. The fair test of such a claim is the one DeepMind passed in its own paper, a plain account of how big the trusted part is, who reviewed it and what it leaves out.

The other side of the race is moving fast. Last week OpenAI showed agents writing working Linux root exploits for a few hundred dollars apiece. Bug hunting, by attackers and defenders alike, works one bug at a time. A proof removes whole classes of bugs from the code it covers, for as long as the code stays put. Proofs have to be repaired when the code changes, and early in the project a single recompile forced large repairs. So the economics favour code that is small, critical and slow to change, such as crypto libraries, parsers and firmware update checks.

Expect a major open-source crypto library to ship with an agent-maintained proof in its build pipeline within a year. In that repository, the most important pull request will be the one that touches the specification, and it will be the only one a human still has to read line by line.