DeepMind uses AI agents to formally verify Signal protocol code
Google DeepMind released AlphaProof Code, a framework in which multiple large-model agents work together on formal verification, meaning they use mathematical proofs to show code has no defects. The team and human experts first wrote the Signal protocol's security goals as a Lean specification, then agents built on Gemini Carbon generated more than 6 million lines of Lean proof, the first formal verification of this depth on a widely deployed encryption protocol implementation. The process took four weeks; DeepMind says similar work previously took expert teams years. The agents also flagged only about 1% of the code for human review, with Lean checking the rest automatically. To test whether the system catches bad code, the team reinjected two real, already-fixed vulnerabilities into isolated versions, and both times it produced machine-checkable proofs of unsafety. This is a one-off result for a single protocol, with no public tool or API for outside use.
Formal verification uses mathematical methods to prove that code meets a specification and lacks certain classes of defects. It is seen as the highest standard of security assurance, but it has long depended on human effort and is very costly. Past verification of encryption protocols mostly stayed at the design level, while real vulnerabilities often hide in the gap between design and implementation. Lean is a programming language that lets computers check mathematical proofs line by line, and in recent years it has been used for machine checking of software and mathematical proofs.
For product teams using the Signal protocol, this verification covers the correctness of the protocol's core encryption code against stated security goals. It is not a guarantee for the whole application or for the protocol design itself, and everyday development workflows need no changes. What is really worth noting is the cost signal: if this kind of agent workflow can be reproduced reliably, formal verification could shift from a years-long, expert-heavy effort to a project doable in weeks, and security-sensitive teams could start assessing whether to bring key modules into verification.
On Hacker News, some commenters questioned whether human-written code that once had bugs could be fully verified and report zero defects, suggesting the theorem may have been stated too narrowly or the goals written incorrectly. Others noted that the work verifies the implementation rather than the specification itself, and wondered how it differs from ordinary coding agents. Another developer warned that AI tends to "cheat" when writing Lean proofs and needs human oversight.