{"slug": "alphaproof-code-how-ai-agents-formally-verified-signal-s-encryption-in-four", "title": "AlphaProof Code: How AI Agents Formally Verified Signal's Encryption in Four Weeks", "summary": "Google DeepMind published AlphaProof Code, a multi-agent AI framework that formally verified the compiled AArch64 machine code of libsignal, Signal's open-source protocol implementation, in four weeks with a team of five researchers. The system generated 6.3 million lines of machine-checked Lean proof code, with 40 to 80 Gemini 4 Carbon-powered agents handling proofs while humans approved roughly 27,000 lines of trusted specifications. As a sanity check, the team reintroduced two previously fixed libsignal bugs and AlphaProof Code produced machine-checked proofs that both buggy versions were insecure.", "body_md": "Formal verification — mathematically proving that software does exactly what it claims — has long been the gold standard of software security. It is also notoriously expensive. Verifying the seL4 microkernel took twenty person-years. Verifying the CompCert C compiler took six. For most production software, that cost is simply out of reach.\n\nOn November 10, 2026, Google DeepMind published [AlphaProof Code](https://deepmind.google/blog/introducing-alphaproof-code/), a multi-agent AI framework that completed a comparable feat in four weeks with a team of five researchers — and none of them wrote a single line of proof code.\n\nThe target was [`libsignal`](https://github.com/signalapp/libsignal), the open-source reference implementation of the Signal protocol. Signal's cryptography protects billions of conversations in Signal, WhatsApp, Messenger, and Google Messages. The protocol has two main components: the **PQXDH handshake**, which establishes a shared secret between two parties (including a post-quantum key encapsulation step), and the **Triple Ratchet**, which derives a fresh encryption key for every single message.\n\nPrior formal verification work on Signal stopped at the design level — proving that the *protocol specification* was sound. AlphaProof Code went further: it proved that the *compiled machine code* of `libsignal` satisfies those security properties. The proofs are stated over the actual AArch64 binary, not the Rust source. That distinction matters because real-world vulnerabilities often hide in the gap between a correct design and its implementation.\n\nThe security properties established include:\n\nThe framework divides formal verification the way a research team would, separating the work into two distinct phases.\n\nHumans decide *what* to prove. A specification-writer agent works with researchers to translate Signal's security goals into formal Lean theorems. Reviewer agents critique each draft. Human experts approve the final specifications. This is the trusted part of the system — the specifications cannot be automatically checked, so they require human judgment.\n\nThe key insight here is that the specifications are small: about 27,000 lines of trusted Lean code. The proofs, by contrast, are enormous.\n\nOnce specifications are approved, teams of 40 to 80 autonomous agents — powered by Gemini 4 Carbon — take over. An orchestrator divides the proof work into subtasks. Proof workers tackle individual lemmas. An architect designs and revises the high-level proof decomposition. An integrator merges verified proofs into shared library modules and removes duplicate lemmas.\n\nEvery proof is checked by Lean's kernel, which serves as the ultimate arbiter. If an agent makes a logical error, Lean rejects the proof. The agents' work is untrusted by design — only the kernel's verdict counts. A gatekeeper agent accepts a proof only when Lean confirms it proves exactly the specification the human approved.\n\nThe result: [6.3 million lines of machine-checked Lean proof code](https://google-deepmind.github.io/code-verification/), generated in four weeks.\n\nTo validate that the specifications were strong enough to catch actual flaws, the team reintroduced two previously fixed bugs from `libsignal`'s history: a \"Weak state\" bug and a \"Small subgroup\" bug. In both cases, AlphaProof Code produced a machine-checked proof that the buggy version was insecure. The system found no new flaws in the portions it checked.\n\nThis is a meaningful sanity check. A formal verification system that cannot detect known bugs provides weak assurance. The fact that AlphaProof Code caught both historical vulnerabilities suggests the specifications are capturing the right properties.\n\nThe [technical paper](https://google-deepmind.github.io/code-verification/) is explicit about scope. The verification covers one-to-one chats in a specific build of `libsignal`, not the full Signal application. Group messaging, key generation, and the Signal app itself are out of scope. The proofs also assume that low-level cryptographic primitives — SHA-256, AES-CBC, Kyber1024 — behave as specified; they do not verify those primitives themselves.\n\nSignal's CTO Ehren Kret acknowledged the result while noting its limits: \"As AI-driven security threats grow, having the core Signal protocol rigorously verified with automated theorem proving gives us even greater confidence that our code delivers on its privacy guarantees.\"\n\nPerhaps the most interesting observation from the paper is about where the difficulty now lies. Swarat Chaudhuri, one of the lead researchers, told The Register: \"We really believe that the next frontier is not going to be proof but specification.\"\n\nWhen proofs become cheap to generate, the bottleneck shifts to deciding what to prove and writing precise formal statements of those properties. Specification writing requires deep domain knowledge — understanding what \"forward secrecy\" means in the context of a specific protocol, and translating that into a Lean theorem that captures the right attacker model. That is still a human-intensive task, and it is where most of the four weeks went.\n\nThis has practical implications for how formal verification might scale. If AI agents can handle proof generation reliably, the limiting factor becomes the supply of people who can write good specifications — a different skill set from traditional proof engineering.\n\nAlphaProof Code is a step toward making formal verification economically viable for production software. The seL4 microkernel verification took twenty person-years and required the code to be written with verification in mind. AlphaProof Code verified pre-existing, unmodified production code in four weeks.\n\nThe framework is not yet a general-purpose verification tool. The Signal project was carefully scoped, and the team had deep expertise in both cryptography and formal methods. But the trajectory is clear: AI agents are compressing the cost of formal verification by orders of magnitude.\n\nDeepMind has [open-sourced the verification artifacts](https://github.com/google-deepmind/code-verification) — the specifications, proofs, and AArch64 semantics — for community review. This matters because the value of formal verification depends on the community being able to audit the trusted computing base. Open-sourcing the work invites scrutiny of the 27,000 lines of trusted specifications, which is exactly where errors would be most consequential.\n\nFor practitioners, the near-term takeaway is not \"run AlphaProof Code on your codebase.\" It is that the cost curve for formal verification is bending, and the skills that will matter most — writing precise, auditable specifications of security properties — are worth developing now.\n\n*Primary source: [AlphaProof Code blog post](https://deepmind.google/blog/introducing-alphaproof-code/) and [technical paper](https://google-deepmind.github.io/code-verification/) by Google DeepMind (November 10, 2026). Additional reporting from [The Next Web](https://thenextweb.com/news/google-deepmind-alphaproof-code-signal-encryption-formal-verification) (November 12, 2026).*", "url": "https://wpnews.pro/news/alphaproof-code-how-ai-agents-formally-verified-signal-s-encryption-in-four", "canonical_source": "https://dev.to/prabhakar_chaudhary_7afe4/alphaproof-code-how-ai-agents-formally-verified-signals-encryption-in-four-weeks-aia", "published_at": "2026-11-23 17:04:06+00:00", "updated_at": "2026-11-23 17:12:46.165836+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-safety", "large-language-models", "ai-research"], "entities": ["Google DeepMind", "AlphaProof Code", "Signal", "libsignal", "Gemini 4 Carbon", "Lean"], "also_reported_by": [], "takeaway": "AlphaProof Code generated 6.3 million lines of Lean-checked proof over libsignal's compiled AArch64 binary in four weeks, with only ~27,000 lines of human-approved specifications treated as trusted and every agent proof gated by Lean's kernel.", "recommendation": {"advice": "Keep specifications small and human-approved, treat agent-generated proofs as untrusted, and gate acceptance on an independent kernel check; validate specs by re-proving known historical bugs as insecure.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/alphaproof-code-how-ai-agents-formally-verified-signal-s-encryption-in-four", "markdown": "https://wpnews.pro/news/alphaproof-code-how-ai-agents-formally-verified-signal-s-encryption-in-four.md", "text": "https://wpnews.pro/news/alphaproof-code-how-ai-agents-formally-verified-signal-s-encryption-in-four.txt", "jsonld": "https://wpnews.pro/news/alphaproof-code-how-ai-agents-formally-verified-signal-s-encryption-in-four.jsonld"}}