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?
- People and AI agents wrote the promises in a precise language called Lean. A person approved each one.
- The code was compiled in the usual way, without being changed to make the proof easier.
- A team of AI agents wrote the proofs. They produced about 6.5 million lines of Lean.
- 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
- AlphaProof Code: Verifying Signal’s Security at the Machine-Code Level, Google DeepMind, technical paper, 10 November 2026
- Introducing AlphaProof Code, Google DeepMind blog, 10 November 2026
Keep reading
Three more from the notebook.
11 November 2026
Before AI can sort 'healthy food', you must decide
Google researchers built a tool that shows an AI's borderline cases to a person, so the person can finally say what they mean. Here is how it works.Read it10 November 2026
A robot that learns what you mean, not just what you say
MIT's FLEX lets a robot work out the idea behind your words. Tell it not to spill on a laptop and it also avoids your phone.Read it10 November 2026
A small AI board that flags odd water readings
WaterLens reads four water sensors and runs a small AI on the board itself. See what it does, and what it cannot tell you.Read it
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.