Google DeepMind has introduced AlphaProof Code, an AI agent-based framework designed to tackle a task that, in security software, remains among the most difficult: mathematically proving that a program possesses specific properties, rather than merely verifying its behavior through tests and controlled executions.

The case chosen for the announcement is far from marginal. Researchers claim to have verified key security properties in the code implementing the Signal protocol, the cryptographic technology used by the Signal app and Google Messages. The work produced roughly three million lines of proofs in the Lean language, according to the summary released by DeepMind.

The critical distinction is between the protocol described on paper and the software that implements it. A protocol can be studied and analyzed theoretically, but the actual implementation introduces data structures, conditions, exceptions, conversions, and programming choices that can turn into vulnerabilities. Extending formal verification all the way to the code is therefore a much more ambitious goal than merely analyzing abstract cryptographic algorithms.

From testing to a verifiable proof

Traditional testing remains essential, but it has a structural limitation: it tests selected scenarios. Even an extensive suite can uncover critical bugs without being able to claim it has covered every possible execution path of the program. Formal verification takes a different approach. The properties the system must adhere to are precisely defined, the code's behavior is translated into a form suitable for mathematical reasoning, and a proof checked by an automated system is constructed.

In this context, Lean is not merely a programming language. It is a proof assistant—an environment capable of checking step by step that a proof is valid according to the adopted formal rules. Proofs can be extremely lengthy because they must make explicit steps that, in a human explanation, would be taken for granted. The three-million-line figure therefore reflects the documentary and technical scale of the project, not the amount of code in the Signal protocol itself.

However, formal verification does not warrant an absolute conclusion such as “Signal is unbreakable”. A proof only guarantees what has been expressed in the specifications and the analyzed model. If a requirement was not formalized, if an external component falls outside the scope of the analysis, or if the assumptions underpinning the model do not match operational reality, that guarantee does not automatically extend to those aspects. This is an essential clarification, especially when discussing systems designed to protect private communications.

The value of the announcement lies precisely in the reported progress regarding applicability. Formal verification has long been considered an exceptionally rigorous benchmark for software reliability, but it demands specialized skills, time, and a development discipline that is difficult to adopt at scale. For complex projects, the cost of translating code and requirements into verifiable objects can become prohibitive.

The role of agents: expanding the work of specialists

DeepMind describes AlphaProof Code as an agentic system combining human expertise and AI agents. The goal is not to reduce the entire verification process to automated text or code generation: the usable output must be verifiable by Lean. This marks a clear distinction from a coding assistant that merely suggests a plausible solution. In the case of formal proofs, any proposal that fails to meet the verifier's constraints is rejected.

Agents can be employed to break down an objective into sub-problems, search for intermediate lemmas, attempt proof strategies, and correct steps rejected by the system. Final control remains tied to the formal verifier, while the AI's contribution lies in exploring a space of possibilities that can be exceptionally demanding for a human team.

This is what makes the project compelling well beyond Signal. Software security does not depend solely on algorithm quality: it hinges on the ability to maintain the correctness of an implementation as code changes, is optimized, integrated with other libraries, and deployed across different platforms. If agentic tools reduce the cost of producing and maintaining proofs, formal verification can more frequently escape the highly specialized environments to which it has largely been confined.

The transition, however, will not be immediate. For a proof to be meaningful, engineers must first decide what to prove. Security properties must be formulated precisely, and this phase requires knowledge of the domain, the threat model, and technical assumptions. An agent can help build the formal path, but it does not eliminate the responsibility of choosing correct and sufficiently comprehensive requirements.

Why the Signal protocol is a relevant testbed

The Signal protocol is used to protect private conversations across services relied on by a vast number of people. Google DeepMind points to it as the technology underpinning communications in Signal and Google Messages. This widespread adoption ensures that any methodological improvement in its analysis affects a real-world use case, rather than an academic exercise tailored specifically for a benchmark.

Communications encryption is also a field where an implementation detail can have disproportionate consequences. The properties to preserve include, in general terms, the confidentiality of conversations and the integrity of the mechanisms governing exchanges between participants. DeepMind refers to “key properties” of the protocol's code; without further public details regarding the precise scope of the verification, it is prudent to stick to this wording and not extrapolate the result to every part of the app ecosystem.

For users and developers, the most practical takeaway is that security can also be approached as a proof problem, alongside review, testing, and incident response. These different layers do not replace one another. A formal proof does not on its own detect a device misconfiguration, an interface flaw that misleads the user into taking a risky action, a vulnerability in a component omitted from the analysis, or an endpoint compromise. However, it can strengthen a specific link in the chain, provided the scope is explicitly stated and maintained over time.

Upcoming verification efforts will focus on repeatability

DeepMind’s announcement is a company research statement and should also be read in this context. The result will be evaluated by the technical community through the dedicated paper, methodological details, an examination of the assumptions, and, above all, the ability to reproduce or apply the approach to different codebases. In a field like formal verification, quality does not depend solely on the size of the proof, but on which properties were covered, how they were modeled, and how easily the work can be updated as the software evolves.

Another element to watch will be the relationship between automation and human review. A system capable of generating numerous proofs can accelerate the work, but it also increases the need to organize libraries, specifications, and review processes that remain understandable to the teams tasked with managing them over the long term. Maintenance is crucial: verification that fails to keep pace with code changes risks quickly losing its operational value.

AlphaProof Code therefore does not, on its own, change the guarantees currently offered by messaging applications. However, it points to a tangible direction: using AI agents not just to write software faster, but to produce formal artifacts that a verifier can check. In the case of Signal, DeepMind claims to have applied this approach to the code of a cryptographic protocol used in the real world. The significance of the news will now depend on the technical depth of the result and its ability to become a viable method for other mission-critical software as well.

Sources