Security-critical code has a problem that ordinary testing cannot close: a test can show that a path works, but not that an entire class of bad paths is impossible. Formal verification addresses that gap, yet writing the specifications and proofs can demand years of expert labor.
Google DeepMind's AlphaProof Code release describes an agentic framework applied to libsignal, the reference implementation behind the Signal protocol. The company says the system proved key properties at the machine-code level and is open-sourcing formal verification artifacts for community use.
Let agents do the search, not the acceptance
The architecture separates roles. A human-guided agent writes Lean specifications, a formal semantics layer models AArch64 machine code, and autonomous prover agents search for proofs. The resulting proof is not trusted because an agent proposed it; Lean's kernel checks it against the approved specification.
The paper reports roughly 6.5 million lines of machine-checked Lean proof code resting on about 26,000 lines of trusted specifications and machine-code semantics. That scale is impressive, but the boundary matters: the source describes key security properties of libsignal, not a blanket proof of every property of the Signal product or its surrounding systems.
An agent can search the proof space. The trust boundary should remain a small checker and a specification people are willing to approve.
Build the acceptance layer first
For builders, the transferable pattern is to make generated work cheap and acceptance narrow. Define the property, keep the trusted semantics explicit, let agents explore, and reject anything the checker cannot validate. The hard product question is not how many proof lines an agent can write, but which specification the team is prepared to stand behind.
Google DeepMind says AlphaProof Code helped prove key security properties of libsignal at the machine-code level. The framework combines a human-guided agent for Lean specifications, formal AArch64 semantics, and autonomous prover agents whose proofs are accepted by Lean's kernel; the paper reports about 6.5 million lines of generated proof code over about 26,000 lines of trusted specifications and semantics.
Google DeepMind · AlphaProof Code ↗

