Hardik's Notes · AI, simply

AI helped prove Signal's code does what it claims

Google DeepMind used AI agents to prove that the code behind Signal keeps its security promises. A proof is not a test. Here is the difference.

What happened?

On 10 November 2026, Google DeepMind shared a paper and a blog post. They describe a system called AlphaProof Code.

Signal is a messaging protocol (a set of rules for sending private messages). Its reference code is called libsignal. The paper says variants of the protocol are also used in WhatsApp, Messenger and Google Messages.

The team used AI agents to prove that this code keeps some of its promises. The paper has not been peer reviewed yet.

What is the difference between a test and a proof?

A test

  • Runs the code on some chosen inputs
  • Finds bugs it was written to find
  • Passing says nothing about the inputs you skipped

A proof

  • Argues about every possible input
  • Rules out a whole kind of bug at once
  • A checker accepts it only if every step is valid

Think of a lock. A test tries ten keys. A proof shows that no key except the right one can open it.

How did the AI do it?

  1. People and AI agents wrote the promises in a precise language called Lean. A person approved each one.
  2. The code was compiled in the usual way, without being changed to make the proof easier.
  3. A team of AI agents wrote the proofs. They produced about 6.5 million lines of Lean.
  4. Lean checked every step. A wrong proof is rejected, however clever the agent was.

Two of the promises are forward secrecy and post-compromise security.

  • Forward secrecy: old messages stay private even if a key leaks later.
  • Post-compromise security: the chat can recover its privacy after a key leaks.

Did it find real mistakes?

The team put two real bugs, which Signal had already fixed, back into the code. The system produced proofs that the broken versions were not secure. So the promises are strong enough to notice a real mistake.

The paper says five people finished the work in four weeks. It compares this with twenty person-years for seL4, an earlier verified microkernel (the small core of an operating system). That is the authors’ own comparison.

What’s the catch?

  • A proof is only as good as its promise. A weak promise gives a weak proof.
  • The paper says human review cannot catch every error in a large specification.
  • Some results assume perfect cryptography. The machine-code result covers a narrower case than the full model.
  • The paper is a preprint, written by the people who built the system.

Try it

Pick a small function you wrote. Write one sentence that is true for every input, such as “the result is never negative”. Then try to break it. Each input that breaks it is a test you were missing.

Sources

Beyond the notebook

This is what we do in schools.

A year-long programme for classes 6 to 12. Creativity, taught as a skill, inside the classroom you already have, led by your teachers.

See the programme