The Proof Checked the Code. Who Checked the Specification?

Two bugs that Signal had already found and fixed were deliberately put back into an isolated copy of its code. One let a prekey message that failed to decrypt on a new session get tried again against older sessions, silently copying a secret key if that worked. The other let a replayed handshake with a mangled key trick two devices into sharing one session secret. Google DeepMind's new verification system was handed the damaged code and asked the only question that matters for a tool built to find flaws. Did it notice? In both cases, it produced a complete, machine-checked mathematical proof that the broken version was insecure.

That system, AlphaProof Code, had just finished a bigger job. Over four weeks, teams of AI agents produced roughly 6.5 million lines of machine-checked Lean proof. It established forward secrecy, authentication, post-compromise security and handshake secrecy for libsignal, the real, compiled code behind Signal's encryption, not a simplified textbook description of it. Published 10 November 2026, it is the largest formal-verification result this series has had material for. The honest, less exciting half of the announcement sits in the same release: across everything it checked, the system found no new vulnerabilities. A verification system that cannot fail is not a verification system. This one was shown failing, on cue, before anyone was asked to trust the result that mattered.

The architecture is the argument

AlphaProof Code's design answers a question every AI-assisted verification claim eventually has to answer: why should anyone trust the machine that did the checking? The answer, by construction, is that nobody has to.

A human-guided specification-writer agent drafts the Lean theorem statements and definitions describing what "forward secrecy" or "authentication" is supposed to mean for this protocol. A pool of critic agents reviews it along the way, checking it against the cryptographic literature and the implementation. A human reviews, revises and approves that specification before a single proof is attempted. The approved version becomes the fixed target; nothing downstream is allowed to redefine it.

Separately, teams of 40 to 80 autonomous prover agents run for 24 to 72 hours per attempt. They try to produce a Lean proof that the compiled AArch64 machine code of libsignal actually satisfies the approved specification. A gatekeeper accepts a proof only if Lean's own kernel verifies it against that specification. The kernel is a small, independently auditable piece of software that checks a proof's logical steps one at a time. The paper states its own design principle plainly. Because the proof is checked by the kernel, the result's reliability does not depend on the reliability of the agents that produced it.

That is why the trusted part of the system is kept deliberately small. Roughly 18,000 to 19,000 lines of specification, plus about 8,000 lines describing the AArch64 machine's own semantics, have to be read and believed by a human. Everything else, all 6.5 million lines of proof, is mechanically checked. It is therefore untrusted in the strict, useful sense: nobody has to take anyone's word that it is correct, because the kernel either accepts it or it does not.

As I wrote in The Manifesto of the Humanist Party, Professor Horst Wessel taught this discipline at Humboldt University as "concerned not with conclusions but with the validity of reasoning": it asks only whether a conclusion follows from its premises, never whether those premises are true. A Lean kernel enforces exactly that distinction, mechanically and without exception. It will tell you, with total reliability, whether a proof's conclusion follows from its stated premises. It will tell you nothing about whether those premises, the specification, correctly describe forward secrecy the way the cryptographic literature actually defines the term. That second question has a name in my own architecture. AlphaProof Code's own authors arrive at the same shape independently, from cryptography rather than logic.

It failed loudly, and that is the point

The negative control described above is not a footnote. Both reinserted bugs were real, originally found by Cheval, Jacomme and Richards at IEEE Security and Privacy 2026. The first was a weak state flaw: a prekey message that failed to decrypt on a new session was retried against older sessions, storing a copy of a signed prekey's secret if the retry succeeded. The second was a small subgroup flaw: the PQXDH responder failed to check that the initiator's key was torsion free, letting a replayed, mangled handshake force two sessions to share one secret. Both fixes already shipped in libsignal. AlphaProof Code was handed the pre-fix code and asked to prove it secure. The paper states the result without hedging. For both bugs, the system produced complete Lean proofs that the symbolic security theorem did not hold of the bug-injected binary.

The honest other half belongs in the same breath, not three paragraphs later. Across the portions of the protocol it actually examined, AlphaProof Code found no new vulnerabilities. No undiscovered flaw in the current, shipped code. That is not, on its own, a dramatic result. This is what a working verification system does. It finds damage when damage is there, and finds nothing when there is nothing to find. That is the behaviour of a working instrument, not a biased one.

The two results together are the actual evidence. A tool that can be shown catching a planted, known defect, and that does not also manufacture a defect where none exists, has earned the next question. That question is narrower than "is Signal verified": what, precisely, was checked, and against what?

What was proved, and what was not

That narrower question has a precise answer, because the paper states its own scope in a table rather than a sentence of marketing.

In the symbolic model, ten theorems hold on every reachable trace of the protocol: forward secrecy, post-compromise security, handshake authentication, and resistance to key-compromise impersonation. They also cover handshake secrecy even against a future attacker who eventually breaks ordinary Diffie-Hellman using a quantum computer. The assumptions underneath are idealised cryptographic primitives, the standard simplification formal protocol analysis has always made. Explicitly excluded from this model: computational secrecy itself, sessions involving more than two parties, and SPQR's own post-quantum healing property.

In the computational model, which drops the idealisation and bounds an attacker's advantage directly, the proofs cover confidentiality and authenticity of messages with forward secrecy and post-compromise security. That is stated as a concrete bound against a classical, non-quantum attacker. Explicitly excluded here: quantum attackers, multi-device state, and an adversary who sends the first message of a session that later gets promoted into the ongoing ratchet. Large scale is excluded too, since the bound itself becomes meaningless once many long sessions run through many key-rotation epochs.

The verification target is one-to-one sessions of a specific, named release, libsignal version 0.105.4 paired with spqr version 1.6.0. The authors are plain about what this does not yet reach. Group messaging is left as future work entirely. The Triple Ratchet theorems let the attacker choose SPQR's own keys, which shows the ratchet is no weaker than its predecessor, the Double Ratchet. That is not the same as showing it delivers the post-quantum healing property SPQR is supposed to add.

None of this is a weakness in the result. It is the result. A proof that quietly claimed more than this would be worth less, not more, because a claim's value in this kind of work comes entirely from how precisely its edges are drawn. "Signal is verified" is not a sentence this paper's own table supports. "These ten theorems hold, under these assumptions, for this version, for one-to-one sessions" is the sentence it supports. It is a considerably more useful one to a security architect deciding what a procurement claim is actually allowed to say.

The check moved, it did not disappear

Writing a formal specification against real, compiled code was, in the authors' own words, a stress test for the literature. The literature did not pass cleanly.

The paper discloses, in detail, specific repairs it had to make to the peer-reviewed academic work it was extending. Fifteen separate gaps or bugs turned up in the computational analysis of the Double Ratchet published by Alwen, Coretti and Dodis at EUROCRYPT 2019. They include missing hypotheses and security-game conditions that allow a trivial win for the wrong side. On the symbolic side, the printed queries from Cheval, Jacomme and Richards' own IEEE Security and Privacy 2026 paper look up skipped message keys at the wrong position in the ratchet. That makes receiver-side forward secrecy false exactly as printed. They also leave a variable unbound, and bracket post-compromise security in a way that lets exposing a party's own key excuse a message regardless of when the compromise actually happened. In the PQXDH analysis from Bhargavan and colleagues at USENIX Security 2024, reading one clause literally makes a stated corollary impossible to prove at all. AlphaProof Code's own authors bind it more tightly, matching what the original authors' own formal tool actually checked rather than what their prose said.

None of this means the earlier authors were careless, and the paper does not frame it that way. These are expert cryptographers, publishing in the field's own top venues. Their work is what a nine-author Google DeepMind and Google team spent real effort extending rather than discarding. The finding is structural, not personal. Formally specifying a real cryptographic protocol, precisely enough that a machine can check code against it, is hard. Even expert authors working from peer-reviewed sources get pieces of it wrong. The paper states its own lesson directly: "the specification of a nontrivial software artifact is itself a nontrivial software artifact."

This is the construct-validity check this series named at Episode 32, run at a scale nobody had material for before. A proof layer built on Lean's kernel is, by construction, immune to an entire class of error. Nothing short of a kernel bug or a false axiom lets a flawed proof through, so the old worry, did the machine make an arithmetic slip, mostly stops applying. AlphaProof Code demonstrates, more convincingly than an abstract argument ever could, that the worry does not disappear when the machine gets more reliable. It moves up one level, onto the sentence a human wrote describing what the code is supposed to guarantee in the first place. A theorem that "forward secrecy holds" is only as good as whatever forward secrecy was defined to mean in the approved specification. Checking that definition against what the cryptographic literature actually means by the term is a job no proof, however large, performs on its own behalf.

Handling the model, correctly

The prover agents that produced all 6.5 million lines of proof ran on Gemini 4 Carbon. This project's own research tracking separately records that model at an unstable figure on an external reasoning benchmark, depending on how much effort it is allowed to spend. The specification work drew on Claude Opus 5.5 as well, and the paper states plainly that none of the authors wrote any proof code themselves.

Read that the wrong way and it sounds like a problem. Read it correctly, and it is the argument for why the architecture in the opening section matters. A prover model's reliability, or lack of it, becomes a property of how quickly and cheaply a correct proof gets found, never a property of whether an accepted proof is actually correct. If the model hallucinates a proof step, Lean's kernel simply rejects it: the attempt fails to produce a proof at all, rather than producing a false one that happens to pass. A system where the AI's own instability cannot leak into the trusted result is built around one assumption: the model will sometimes be wrong. The one component that must not be wrong, the kernel, is positioned exactly where that matters. This is the shape my own V.E.R.A. architecture takes for a different kind of claim entirely. Let the generative layer be as fast and as fallible as it needs to be. Put the one component that cannot fail, a deterministic check against an external referent, where nothing downstream can talk it out of a rejection.

The question nobody has answered yet

The authors are careful about their own limits. DeepMind's own announcement states plainly that scaling these techniques requires continued research. The paper's Discussion section names its own specification as, in its own words, itself a nontrivial software artefact. The clearest next step is an expansion of scope beyond one-to-one sessions, toward Signal's group messaging, sealed sender and server-side protocols.

What I could not find, after a direct search for it, is more telling than what I did find. No independent cryptographer's published assessment yet exists of whether AlphaProof Code's specification actually captures the security properties the way the cryptographic literature itself defines them. The people best placed to check the checker, the named authors of the formal analyses this paper extends, Cohn-Gordon, Cremers, Cheval, Jacomme and Bhargavan among them, have not yet published that assessment. Signal's own protocol designers are thanked in the paper for feedback on the specifications, which is useful and is not the same thing as independent review. Google DeepMind's Swarat Chaudhuri put the honest version of the open problem on the record himself, telling one outlet that "verification is the hard bit," before adding that the next frontier is specification, not proof. One technologist writing under his own name, not a cryptographer, made the practitioner's version of the same point in a developer's checklist: hire and train for the specification, not the proof.

A proof is exactly as good as the proposition it proves. Google DeepMind did not solve that problem. It moved it, cleanly and at a scale that makes it impossible to ignore. That move went from a place almost nobody could check to a place where the people who can check it have not yet done so. That gap sits in the specification nobody independent has checked, not in the 6.5 million lines of proof.

My own architecture draws the identical line, independently. NTP's separation of existence from predication puts a claim's logical validity and its real-world truth in two different boxes on purpose. AlphaProof Code's own trusted-specification, untrusted-proof split lands on the same boundary from a completely different direction: cryptography, not logic. Nothing here is V.E.R.A. verifying its own reasoning, and nothing in this episode should be read as Lean, DeepMind or AlphaProof Code having referenced, measured or validated my own framework. It is a structural parallel, independently arrived at.

Before anyone in your organisation repeats the headline, "Signal is now mathematically proven secure," make them answer three questions instead. Proved against what, exactly? Who wrote the specification that answer depends on? And who, other than the people who wrote it, has checked that it says what they think it says?

The tool that did the actual checking in this story is itself open source. Lean, the proof assistant and kernel AlphaProof Code built on, is maintained by the non-profit Lean Focused Research Organisation. It is published for any researcher to install and run against the same development, not to take Google DeepMind's word that the kernel said yes. That is the same model behind my own V.E.R.A. codebase, released under the GNU General Public License version 3 on GitHub. A verification result nobody else can rerun is an assertion with better production values, not a different category of claim. The implication on the sovereignty side follows directly, because defence and national-security procurement already has a name for refusing to take a vendor's own word for a security claim.

The Common Criteria scheme, ISO/IEC 15408, is that name. It is the framework NATO members and allied governments use to certify security-critical hardware and software. At its highest assurance level, Evaluation Assurance Level 7, it requires a vendor's formal model of a security policy to be checked against a formal specification of the system under evaluation. That check is done by an accredited, independent evaluation facility, rather than by the vendor who wrote the model. A proof a vendor grades itself is not a Common Criteria evaluation, in that scheme's own terms, any more than a specification nobody outside its authors has examined is evaluated. Allied procurement arrived at this requirement for the same reason this week's finding matters commercially. A formally verified claim and an independently checked specification are not the same guarantee. Only one of the two should change a procurement decision.

If the honest answer to that third question is "nobody yet," say that in the board paper instead of "proven." What is the equivalent specification sitting unchecked in your own organisation's highest-stakes AI claim, and who, today, could actually tell you if it is wrong?

If your board or legal team needs a technical verification of an AI system's runtime logic or retrieval pipeline, message me and I will send the scope and the fixed fee.


The views expressed in this article are entirely my own, informed by morethan 30 years of professional experience in architecture, security, andtechnology leadership in New Zealand. I write as director of Te PonoLimited; the views are personal and do not represent the position of anyclient, any government agency, or the New Zealand government. My commentaryon legislation and policy is analytical, drawing on publicly availablesources and my professional expertise in architecture, security, and AIgovernance, and it is politically neutral.


Andreas Hamberger is a New Zealand leader in Architecture and Security and Associate Member of the Institute of Directors. V.E.R.A. (Verified Existence and Reason Architecture) is an open-source logic engine available on GitHub. My book for this series is The Hallucination Economy. Through Te Pono I provide technical verification of AI runtime logic and retrieval pipelines for boards and legal teams; contact contact@thehambergerreport.com for the scope and fixed fee.


This article was produced with AI assistance under my direction. Research,drafting and images pass through a pipeline I built and govern: automatedgates for source verification, forbidden language and political neutrality,and my own review before anything is published. The tools include Claude,Gemini and Openart. The frameworks, arguments and editorial judgements aremine and are the same discipline I apply to the AI systems I audit forclients. AI accelerated the work; the thinking, and the responsibility forit, are mine.


[1] Chaudhuri, S., Ferraiuolo, A., Kovsharov, A., Chajed, T., Schlesinger, S., Seth, K., Katz, J., Sutton, C. and Kohli, P. "AlphaProof Code: Verifying Signal's Security at the Machine-Code Level." Google DeepMind and Google, 10 November 2026. https://storage.googleapis.com/gdm-deepmind-com-prod-public/media/documents/Formal_Verification_of_Signal_4.pdf

[2] Google DeepMind. "Introducing AlphaProof Code." DeepMind Blog, 10 November 2026. https://deepmind.google/blog/introducing-alphaproof-code/

[3] Google DeepMind. "Code Verification." Public Lean development, accessed 25 November 2026. https://google-deepmind.github.io/code-verification/

[4] The Next Web. "Google DeepMind Used AI Agents to Formally Verify Signal's Encryption." 12 November 2026. https://thenextweb.com/news/google-deepmind-alphaproof-code-signal-encryption-formal-verification

[5] Schneier, B. "Formal Verification of the Signal Protocol Using AI." Schneier on Security, 17 November 2026. https://www.schneier.com/blog/archives/2026/11/formal-verification-of-the-signal-protocol-using-ai.html

[6] The Register. "Google DeepMind Melds Humans and AI Agents to Vet Signal's Secure Messaging Techniques." 10 November 2026. https://www.theregister.com/ai-and-ml/2026/11/10/google-deepmind-melds-humans-and-ai-agents-to-vet-signals-secure-messaging-techniques/5308625/

[7] Kumar, S. "AlphaProof Code: A Developer's Checklist Before You Trust an AI-Verified Codebase." dev.to, accessed 25 November 2026. https://dev.to/shivaysinghrajput/alphaproof-code-a-developers-checklist-before-you-trust-an-ai-verified-codebase-3ooi

Next
Next

AI Verification: Peer Review Is Not a Verification Step