
AlphaProof Code: How DeepMind's AI Agents Formally Verified Signal's Code
AlphaProof Code is a new Google DeepMind system in which AI agents write mathematical proofs that real software is secure, and its first big result is Signal. DeepMind announced on 10 November 2026 that it had proved key security properties of libsignal, the code behind the Signal protocol, down to the compiled machine code. The agents ran on Gemini Carbon and produced about 6.5 million lines of proof in Lean. A team of five did the work in four weeks.
What AlphaProof Code is
Formal verification means proving with maths that code always does what a written specification says, instead of only testing some cases. It is the strongest kind of security assurance, but usually so slow and costly that only a few systems ever get it. DeepMind's technical paper splits the work into three parts:
- Specification: a human-guided agent turns security goals from the research literature into a Lean specification. Reviewer agents critique the drafts and a human approves the final version.
- Machine-code model: the unmodified Rust code is compiled with the normal compiler, and the resulting ARM (AArch64) program is loaded into Lean together with a formal model of how that processor runs it.
- Proof: a team of prover agents, organised under "team lead" agents, writes the proofs. A proof only counts if Lean's kernel checks it, so the result does not depend on trusting the AI.
What was proved about Signal
| Item | Detail (from DeepMind's paper) |
|---|---|
| Code verified | libsignal v0.105.4, compiled for AArch64 Linux |
| Protocol parts | PQXDH post-quantum handshake and the Triple Ratchet |
| Properties | Forward secrecy, authentication, post-compromise security, handshake secrecy |
| Proof size | About 6.5 million lines of Lean proof, resting on about 26,000 lines of trusted specifications and processor model |
| Human review | Agents flagged about 1% of the work for a human second look |
| Time and team | Five people, four weeks |
| Bug check | Two real bugs that had been fixed before were put back in a test copy; the system proved that copy insecure |
| Open source | Lean development published on GitHub |
DeepMind says this is the first time the code of a widely deployed cryptographic protocol, not just its design, has been formally verified by any method. Signal CTO Ehren Kret said the work gives Signal "even greater confidence" in its privacy guarantees. The Register notes it is a step towards a challenge the Beneficial AI Foundation set in April 2026 to verify the Signal protocol and app in Lean.
What it does not prove
- Not the Signal apps. The results cover DeepMind's build of a libsignal command-line tool, not Signal's own phone or desktop apps.
- One-to-one chats only. Group messaging is left for future work.
- Perfect crypto assumed. The proofs assume the underlying primitives (such as the encryption and key-agreement functions) are as strong as believed. The Register points out that this makes the result partly theoretical.
- Processor model limits. The machine model does not cover threads, signals or dynamic linking, so programs that rely on them cannot be verified this way yet.
What it means for builders
- Proofs are getting cheaper. Big verification projects used to take years: the seL4 microkernel took about twenty person-years. If AI agents keep cutting this cost, "proven secure" could reach normal libraries, not just aerospace and chips.
- This is a trend, not a one-off. Anthropic recently used Claude to prove 123 open-source libraries crash-free, and &Truth raised $70M for AI formal verification. Gemini Carbon, the model behind these agents, is now available to paying developers; see our Gemini 4 Carbon explainer.
- For your own app today: formal proofs are still out of reach for most teams, so start with the basics in our vibe coding security checklist.
Sources
- Google DeepMind: Introducing AlphaProof Code
- Google DeepMind: AlphaProof Code technical paper
- The Register: Google DeepMind melds humans and AI agents to vet Signal's secure messaging techniques
- GitHub: google-deepmind/code-verification
FAQ
What is AlphaProof Code?
It is a Google DeepMind framework (AlphaProof Code kya hai: AI agents that write maths proofs about code) in which humans and AI agents write a formal specification and AI agents then prove, in Lean, that the compiled code meets it.
Did AlphaProof Code prove Signal is unhackable?
No. It proved specific security properties of libsignal's one-to-one protocol code, assuming the cryptographic primitives are sound. It does not cover the Signal apps, group chats or attacks outside that model.
Is AlphaProof Code open source?
DeepMind has published the Lean proofs and specifications on GitHub (google-deepmind/code-verification). It has not announced AlphaProof Code as a product you can sign up for.
Which AI model did AlphaProof Code use?
DeepMind says the proof agents were powered by Gemini Carbon, with a mix of models helping to write the specifications.