Community Practice

Proved, Not Just Tested — DeepMind's AI Mathematically Verified Signal's Encryption Code

Hello, I’m Kurashiki Bouzu (kurashiki-bouzu). Born in 1971, I used to work in the funeral business. I now live in an old Japanese house in Kurashiki, Okayama, and work together with Moka, my AI butler.

Contents

The result first

Google DeepMind’s AI agents mathematically proved that the core of libsignal — the code underlying the Signal protocol — keeps its security promises, and they proved it for the actual machine code that runs on devices, not just the design. The framework is called AlphaProof Code. A team of five finished the proof work in four weeks, a task that historically takes expert teams years. But the proof does not cover the whole Signal app. This article lays out both sides of that line, checked against DeepMind’s official blog post and technical paper.

Hello, I’m Kurashiki Bouzu. Born in 1971, I am a former funeral director, and I now live in an old folk house in Kurashiki, Okayama, working together with Moka, my AI butler.

What formal verification is — “proved,” not “tried”

First, the term. Formal verification means showing, in the form of a mathematical proof, that a program keeps the promises (the specification) set for it.

The usual way to check software is testing: run it, try many inputs, and look for strange behavior. In terms of a key, it is like inserting many keys into a lock and turning them to see if it opens. You learn about the keys you tried — but not about the combinations you did not try.

Formal verification is the reverse. You write the rules of the key and the lock themselves as formulas, and prove that in every case, no movement that breaks the promise can happen. Not one case at a time, but all of them together. That is why DeepMind’s blog calls it the highest standard of security assurance.

There is a reason such a strong method has been used so rarely: writing the proofs takes an enormous amount of work. The technical paper gives past examples — verifying the small operating-system kernel seL4 took twenty person-years (twenty years of work for one person), and developing the verified compiler CompCert took six years. The cost was so high that only the most critical places could afford it. This announcement is about whether AI agents can take over that heavy lifting.

What was verified — the core of Signal’s foundation

The target was libsignal, the library at the foundation of the Signal messaging app. The rules of this foundation (the Signal protocol) are also used by WhatsApp and Google Messages, and they protect a great many people’s conversations.

But it was not all of libsignal, and not the app as a whole. What was verified is two core mechanisms:

And what was proved was not the design on paper, but the machine code itself — the code in the form that actually runs on devices after conversion. A design can be right while the running code differs from it; that gap is where weaknesses hide, the blog says. For a widely used cryptographic system, this is the first time the actual running code has been formally verified at this level, according to the blog.

The properties proved include:

How it was done — humans decide what to prove, AI writes the proof, a machine checks it

AlphaProof Code splits the work the way a research team would.

First, human experts work with AI to write down what is to be proved — the promises (specification) — in Lean, a language for writing proofs that a machine can check. The experts read and approve every one of these promises. This is the foundation: if a promise is written too loosely, the whole proof means less. According to the technical paper, the models used for this specification work were Gemini 4 Carbon and Claude Opus 5.5.

Next, a team of AI agents writes the proofs against the approved specification. The paper names the prover model as Gemini 4 Carbon (the blog post writes it as “Gemini Carbon”). The finished proofs came to about 6.5 million lines.

Finally, whether a proof is correct is decided by Lean’s own machinery, which checks it mechanically. A proof that fails the check is not accepted. The point is not “an AI wrote it, so it is right,” but “it passed the machine’s check, so it is right.”

After proving, the agents audited their own work and flagged the places that needed a second look by a human. That was just one percent of the codebase, according to the blog. The rest was covered by the machine check.

One comparison for scale: the proofs are about 6.5 million lines, but the part humans must read and trust — the specifications and related foundations — is about 26,000 lines. The proofs are roughly 250 times that. Keep what humans must read small, and leave the volume to the machine: that division is the idea behind the framework.

Can it tell right from wrong? — They put fixed bugs back in

Proving correct code correct is only half the job. Can it tell wrong code apart?

The researchers reintroduced two real, previously fixed libsignal bugs into an isolated version of the code. In both cases, the system produced a machine-checked proof that the buggy version was insecure. What is wrong can be proved wrong. Checking that too is the careful part of this announcement.

The honest limits — what was not proved

The limits, following the official materials:

Saying “Signal has been mathematically proved” would go too far. Precisely: for the core of Signal’s foundation, it was proved — on the code that actually runs — that the stated promises hold.

What comes next — the artifacts are open, and the next targets are named

The specifications, proofs, and related artifacts have been open-sourced for anyone to inspect (the address is in the sources below).

The blog names the next kinds of targets: firmware for medical devices (the programs running inside the equipment) and software for power grids — places where a mistake can become a serious accident, and where this kind of checking is needed most. Combining it with AIs that find and fix bugs, such as CodeMender, is also mentioned in the same announcement.

In closing

Most AI stories are about making things — text, pictures, code. This one is about the opposite side: AI agents entering the work of proving that stated promises hold in the code that actually runs. Reading this announcement well means keeping the two apart: what was proved, and what has not been proved yet. We have put both, with the line between them, in this article.

Sources


Community Practice / Back to the top page