Not “Signal Security in General”: What AlphaProof Code Proved at the Machine-Code Level

December 5, 2026

We examine the proof chain from protocol properties to a specific AArch64 ELF binary, the boundaries of the trusted computing base, and the practical implications of agent-driven formal verification.

The claim that “AI proved Signal is secure” is compelling—but inaccurate. AlphaProof Code did not verify Signal’s applications end to end, its server infrastructure, group chats, users’ operating systems, or the hardware implementation of cryptography.

The result is both narrower and stronger: the team connected formal protocol properties to a specific AArch64 ELF binary, pinned by SHA-256. The proof covers not just Rust source code, but the output of compilation, linking, and instruction layout in an ELF binary. The resulting proof terms are checked by the Lean kernel—a small part of the system that does not need to trust the reasoning of AI agents.

But the theorem remains conditional. It holds relative to human-approved specifications, models of AArch64 and Linux, contracts for cryptographic primitives, cryptographic hardness assumptions, and a tightly specified process environment.

This combination—the link between protocol properties and a real binary, together with explicit limits on applicability—is more important than the headline claim that Signal security has been “proven.”

What was actually announced

Google DeepMind introduced AlphaProof Code on November 10, 2026. Its technical report is titled AlphaProof Code: Verifying Signal’s Security at the Machine-Code Level. The name Formal_Verification_of_Signal_4.pdf, which also appears in circulation, is a filename rather than the title of a separate research paper.

AlphaProof Code should not be understood as an autonomous model that accepts an arbitrary repository and produces a security certificate. It is a human-governed, multi-agent system for producing formal proofs.

The main theorem did not cover all of Signal either. The team verified a dedicated CLI interface, libsignal-cli, built with stock rustc from the unmodified libsignal version 0.105.4 and SPQR components. The build output was a statically linked ELF for AArch64 Linux. The work is limited to one-to-one messaging; group messaging was left outside the study.

That distinction is fundamental. The theorem does not automatically support conclusions about:

  • Signal applications for Android, iOS, and Desktop;

  • server infrastructure;

  • group chats;

  • the user interface or endpoint compromise;

  • metadata and denial of service;

  • third-party libraries and functions not included in the CLI interface;

  • microarchitectural side channels and hardware faults.

The public repository contains proof artifacts, AArch64 semantics, comparison tools, and a map from the report to the code. This makes it possible in principle to replay the build and audit it. However, the research materials do not identify an independent academic replication of the entire campaign or a full audit of the trusted computing base. For now, practical performance claims should be treated as author-reported.

There is also a documentation issue: different official pages and report versions give inconsistent sizes for the Lean corpus, trusted base, instruction set, and mutation tests. Estimates of roughly 6.0, 6.3, and 6.5 million lines of Lean all appear. Without a date and SHA for a specific revision, these numbers should not be used as stable measures of project performance.

The chain from protocol property to ELF binary

The main value of the work lies not in a single theorem, but in connecting multiple layers of reasoning.

In simplified form, the chain is:

  1. Define protocol security properties and an attacker model.

  2. Prove properties of symbolic models of PQXDH and Triple Ratchet.

  3. Use a computational theorem to connect those properties to cryptographic games and primitive-hardness assumptions.

  4. Use a refinement proof to connect model operations to execution of a specific ELF binary.

  5. Have the Lean kernel check the proof terms against imported definitions and axioms.

Each transition introduces its own assumptions. That is why the statement “Lean accepted the proof” matters, but is incomplete without asking what, exactly, Lean accepted and on what basis.

The symbolic layer

At the symbolic layer, PQXDH and Triple Ratchet are considered under a Dolev–Yao attacker model. Such an attacker controls the network: it can intercept, modify, delay, replay, and construct messages within the model’s capabilities. In the scenarios considered, it can also control the server and compromise keys or session state.

The stated properties include:

  • confidentiality;

  • authentication;

  • forward secrecy—the protection of past messages after a later key compromise;

  • recovery of security after session-state compromise.

These are not informal labels. They are properties of a formal model with defined events, states, and attacker capabilities. If a real-world threat is not expressed by that model, the theorem says nothing about it.

The computational layer

Real cryptographic functions cannot simply be treated as ideal symbols. The next layer therefore uses proofs through cryptographic games and reduces protocol security to assumptions about the strength of primitives.

This means that the theorem does not claim unconditional mathematical security for real cryptography. Its form is: if the specified assumptions about primitives and the model hold, then certain protocol properties follow.

The authors note two limitations explicitly. The computational theorem remains classical, and the model in which the attacker chooses SPQR keys does not prove post-quantum recovery of SPQR security. Therefore, the word “post-quantum” in the component’s name cannot automatically be extended to every property of the final theorem.

The machine-code refinement layer

The final link connects abstract operations to an executable file. For inputs within specified bounds, the binary must implement the model operations:

  • keygen;

  • init;

  • send;

  • recv.

The formalization covers more than successful results. The refinement describes observable process behavior:

  • a successful call returns the model result and the expected file state;

  • a rejected call exits with code 1, produces no output, and leaves files unchanged;

  • a panic terminates through SIGABRT.

In other words, this is not a superficial correspondence between functions. The proof connects instruction execution, memory state, and file state to events in a high-level model.

What “machine-code level” means

When source code is verified, a gap usually remains between the proven program and what the processor actually runs. A compiler may optimize code, a linker may change object layout, and a build configuration may select a different execution path.

That gap can be addressed in different ways—for example, by trusting the compiler or using a verified compiler. AlphaProof Code took a different route: the direct object of proof is the already-built binary.

The Lean machine-execution model includes:

  • a single-threaded, statically linked AArch64 process;

  • an ELF loader;

  • processor registers;

  • byte-addressable memory and page permissions;

  • the system-call subset used;

  • file state;

  • ELF symbol addresses;

  • observable process results.

Instruction semantics follow Arm ASL. As a result, for this specific build, the proof does not need to assume that rustc, the linker, and code layout preserved the desired properties: it checks the actual instructions of the pinned ELF.

That is stronger than saying, “we proved the source code and trust compilation.” But the benefit comes with a tight dependency on the artifact. A new library version, compiler, build option, architecture, or even a different CPU feature set creates a new proof target.

The binary is not proven in an arbitrary environment

The theorem applies to a particular execution model:

  • a fresh, non-setuid process;

  • a fixed load address without ASLR;

  • specified stack and memory limits;

  • an empty process environment;

  • a restricted set of open files;

  • a fixed AT_HWCAP value;

  • a specific CPU feature-probing path;

  • single-threaded execution.

The authors do not extend the result to different CPU feature sets, a different environment, or machines with less available memory.

Moreover, the correspondence between the formal semantics and a real processor or Linux kernel is not separately proven: physical hardware and the kernel are not formal objects in this development. If an instruction or system-call model diverges from actual platform behavior, Lean can flawlessly prove a theorem about the wrong model.

So, “machine-code verification” here does not mean that all trusted layers below the program have disappeared. It means that the specific ELF bytes are part of the formal reasoning chain rather than being assumed correct outputs of the source program by default.

AlphaProof Code is not an autonomous verifier

The word “AI” suggests that agents independently selected security properties, built the Signal model, and issued a final certificate. The actual process was much more controlled.

Humans:

  • selected the verification scope and reference models;

  • designed the specification structure;

  • defined the overall proof strategy;

  • created agent skills and roles;

  • approved trusted statements and specification changes;

  • reviewed reports of specification issues and potential defects.

According to the authors, humans did not write the proof code itself.

The agent system divided responsibilities. An architect changed the task decomposition, an integrator combined proven modules, lead agents coordinated worker agents, and support agents planned expensive Lean builds and managed resources.

A typical campaign is described as 40–80 agents working on one machine for 24–72 hours. The overall Signal campaign took a five-person team four weeks. These figures are interesting evidence of potential acceleration, but they cannot be compared directly with person-years in conventional verification projects.

A sound economic comparison would require data on:

  • compute and inference cost;

  • token counts;

  • hardware characteristics;

  • the rate of failed attempts;

  • the number of human interventions;

  • time spent on individual proof obligations;

  • the cost of updating proofs after a binary changes.

The project also relied on existing protocol results and substantial formal-semantics infrastructure. “Five people in four weeks” does not mean that an equivalent system could be verified from scratch in the same time.

Why an agent hallucination does not become an accepted theorem

Lean separates proof search from proof checking. An agent can propose an invalid tactic, get lost in intermediate goals, or generate meaningless code. But the final term must be accepted by the Lean kernel.

In that sense, a formal verifier provides a much stronger boundary than ordinary AI code analysis: there is no need to trust the model’s reasoning. The kernel checks that the formal claim follows from the available definitions, theorems, and axioms. This model is described in the Lean reference and its section on axioms.

But the kernel answers a narrow question: was the written statement proved correctly? It does not determine whether the statement corresponds to the real system or whether its assumptions were chosen appropriately.

An incorrect specification can be proven perfectly. An overly weak property can also be proven perfectly. A user-provided axiom remains a foundation of the theorem even if it models reality poorly.

Defenses against specification gaming

For an agent optimized to complete a task, weakening a claim may be easier than proving the original one. This is a form of specification gaming: the task is formally solved, but the substantive guarantee disappears.

AlphaProof Code applied specific safeguards:

  • agents could not arbitrarily modify specifications;

  • a change required justification and approval;

  • a separate gatekeeper ran Lean in a fresh environment;

  • builds were rejected if they contained sorry or native_decide;

  • new invariants required a witness of a reachable state.

The last condition helps prevent vacuous proofs. If an invariant describes an impossible state, it is often easy to derive the desired claim from it, but such a proof has little practical value. A reachability witness requires demonstrating that the invariant applies to at least one real state of the model.

These mechanisms reduce the risk of manipulation, but they do not replace independent review of specifications. A gatekeeper can confirm that prohibited constructs are absent and that Lean checked the build; it cannot establish on its own that an attacker model is complete.

What belongs to the trusted base

Reducing trust to “the Lean kernel” would be as misleading as claiming that all of Signal has been proven secure. The final result depends on a broader trusted computing base.

It includes:

  • formal theorem statements and specifications;

  • the DyLean protocol model;

  • the event and refinement layer;

  • AArch64/Linux process semantics;

  • closed specifications of cryptographic primitives;

  • algebraic assumptions and computational-hardness assumptions;

  • addresses from the ELF symbol table;

  • reproducible-build scripts;

  • the Lean kernel.

The authors estimate the transitive reading volume for the main theorems at roughly 19,000 lines of code, plus documentation and AArch64 semantics. This estimate should also be read in the context of a particular revision of the materials.

It is useful to separate three kinds of trust.

1. Correctness of formal derivation

The Lean kernel is responsible for this. It does not accept a proof merely because an agent presented it confidently.

2. Adequacy of the model

This requires human expertise. Reviewers must check whether the protocol, file state, attacker capabilities, system calls, and observable behavior are represented correctly.

3. Correspondence between the model and the real world

Even a correct model may not cover the real environment: different CPU capabilities, failures in the random-number generator, a compromised OS, hardware faults, or side channels.

The main engineering value of formal verification is not eliminating trust altogether, but localizing it. Instead of an implicit assumption that “the whole system probably works correctly,” there is a list of specific claims, models, and boundaries that can be reviewed separately.

What historical defects and mutations showed

The authors tested the meaningfulness of the specifications against two reconstructed historical defects and a set of artificial mutations. Example mutations include skipping MAC verification, leaking a MAC key, and retaining old ratchet private keys.

The two historical cases involved:

  • non-canonical X25519 encoding and a small-subgroup issue;

  • combining a PQXDH header with skipped message-key state.

For these cases, the team constructed traces that do not agree with the symbolic specification. This is a useful check: the specification does reject some known insecure behaviors rather than merely providing a formal description of any implementation behavior.

But the result should not be read as a measurement of the agents’ ability to find new vulnerabilities. It shows this:

Given a specific trace that violates a modeled property, the system can formally show that the trace is incompatible with the specification.

It does not show this:

The system will automatically find every unknown attack trace and every defect class in the real product.

Reconstructed defects and artificial mutations test the sensitivity of chosen properties, not the completeness of vulnerability discovery. Because official-material versions also differ, one should not cite a total number of rejected mutations without identifying the SHA of the exact revision.

Why a correct implementation does not automatically guarantee a correct protocol

Before AlphaProof Code, the PQXDH protocol had already been studied with ProVerif and CryptoVerif. A peer-reviewed 2024 paper identified issues in the formal specification and potential vulnerabilities that were not exploitable in Signal because of implementation-specific choices. The analysis also required an additional KEM-binding property.

This example shows the two-way nature of verification:

  • the implementation must conform to the protocol model;

  • the protocol model must adequately capture the intended security properties and the implementation’s real behavior.

One direction is not enough. A weak specification can be implemented perfectly. A strong specification can have an implementation that accidentally deviates from it. AlphaProof Code’s strength lies in attempting to connect these levels—but the quality of that connection still depends on human review of the models.

How the result differs from other methods

AlphaProof Code does not replace source-level verification, fuzzing, symbolic execution, or AI code analysis. These methods answer different questions.

Method Primary question Strength Typical boundary
Source-level formal verification Does the program conform to its specification? Well suited to invariants and high-level abstractions Requires an argument for compilation and build correctness
Fuzzing Can an input be found that causes an observable failure? Good at finding crashes, hangs, memory bugs, and violations of tested conditions Does not prove properties for all permitted executions
AI code analysis Is there a plausible hypothesis of a defect? Quickly broadens the search and helps prioritize work Hypotheses require validation; completeness is not guaranteed
Symbolic execution Which paths and constraints are reachable? Produces counterexamples and analyzes many paths Faces path explosion, loops, and solver limits
AlphaProof Code machine proof Do all permitted executions of the formal model satisfy the property? Provides a kernel-checkable universal theorem for a specific binary Depends on the specification, semantics, assumptions, and fixed environment

Fuzzing and AI analysis remain necessary

Fuzzing searches for evidence of defects: unexpected inputs, crashes, hangs, memory errors, or failures of defined checks. AI analysis generates hypotheses about suspicious code.

Neither method alone proves that all valid executions preserve forward secrecy or authentication. But both can find a problem that was never included in the formal model. Fuzzing is also useful for validating assumptions, testing integration, and preventing regressions.

Formal proof should not displace these methods. It closes selected properties; exploratory methods help uncover properties that were never selected.

Symbolic execution is closer, but the goal differs

Symbolic execution also explores program paths and input constraints. Its practical limits are well known: the number of paths grows rapidly, while loops, recursion, and solver-budget limits force exploration to be bounded or require invariants. This is visible in systems such as KLEE and S2E.

AlphaProof Code uses symbolic execution locally within a compositional proof. But the end goal differs: not a report of explored paths, but a universal theorem over formal semantics that is checked by the Lean kernel.

What is genuinely new in this work

Machine verification of cryptographic code existed before AlphaProof Code. For example, Vale formally verified correctness, safety, and certain security properties of optimized assembly implementations of SHA-256, Poly1305, and AES-CBC as early as 2017.

Formal protocol verification is not new either: PQXDH was studied in ProVerif and CryptoVerif before AlphaProof Code.

The novelty is not the invention of isolated components, but their scale and integration:

  • the properties apply to a stateful protocol, not just an individual cryptographic primitive;

  • the proof reaches a specific, unmodified ELF built from a production-oriented implementation;

  • process loading, memory, files, and system calls are included in the chain;

  • a multi-agent system produces a substantial volume of proof code;

  • final proof terms are independently checked by the Lean kernel.

This makes the work a significant research breakthrough. But it does not yet establish that the same approach can be transferred economically to an arbitrary distributed system, a rapidly changing SaaS platform, or the full set of Signal clients.

Applying this model in an engineering organization

The practical lesson of AlphaProof Code is not “replace testing with AI agents.” A more realistic model is human-governed automation in which proofs become verifiable release artifacts.

1. Start with a specific property

“Prove the product is secure” is not a usable engineering task. You need observable properties, an attacker model, and an exact system boundary—for example, authentication of a defined exchange or the absence of key-material leakage through a specified interface.

2. Pin the artifact and its environment

For a binary proof, preserve:

  • the executable hash;

  • source-code version;

  • build parameters and scripts;

  • architecture;

  • CPU capabilities;

  • execution model;

  • revisions of specifications and semantics.

Without this, a proof cannot be unambiguously linked to a released artifact.

3. Keep specifications under human ownership

AI can accelerate decomposition and proof writing, but property selection and approval of specification changes must have explicit human owners. It is desirable to separate the roles of specification author, implementation developer, and auditor.

4. Check for non-vacuity

A green Lean build is not enough. Invariants need reachability witnesses; properties need negative examples and mutations; and the threat model needs scenarios it is required to reject.

5. Automate clean replay

Verification should run in a fresh environment, forbid unfinished proof placeholders, and produce an artifact tied to a specific revision. This turns a theorem from a one-off research result into part of the release process.

6. Do not abandon other methods

Formal proof should be combined with fuzzing, manual review, AI analysis, integration testing, and operational monitoring. The proof deeply covers selected properties; the other methods broaden the search space for unknown problems.

7. Measure the cost of change in advance

For production use, the cost of the first proof is not the only relevant number. Teams need to know the cost of rebuilding it after changes to a library, compiler, build parameters, architecture, or environment model. Those data, along with independent replication, are still absent for drawing confident conclusions about AlphaProof Code’s scalability in production.

AlphaProof Code convincingly demonstrates that AI agents can produce a large volume of machine-checkable proof code under human direction. A more precise name for this model is not “AI proved security on its own,” but human-directed, proof-carrying automation: humans are responsible for the meaning and boundary of the claim, agents construct proofs, and a formal kernel checks the result.

For engineering practice, that is already a substantial shift. But moving from an impressive research result to a standard release process will require independent audits, reproducible cost measurements, and evidence that the chain withstands regular changes in real systems.

— we'll discuss the project, estimate timelines and suggest a format
Need help with your project?

We'll figure it out together—
and show you how to solve
the problem quickly and effectively