Google DeepMind's AlphaProof Code framework used 40–80 Gemini 4 Carbon–powered agents to formally verify the AArch64 binary of libsignal, the reference implementation of the Signal protocol, in four weeks with five researchers. The verification established forward secrecy, post-compromise security, authentication, and handshake secrecy for one-to-one chats using the PQXDH handshake (with Kyber1024 post-quantum KEM) and Triple Ratchet. Humans wrote 27,000 lines of trusted Lean specifications; agents autonomously generated 6.3 million lines of machine-checked Lean proof code via an orchestrator–architect–worker–integrator–gatekeeper pipeline, with Lean's kernel as the sole trusted verifier. The system detected two historical libsignal bugs ("Weak state" and "Small subgroup") when reintroduced, confirming specification adequacy. Scope excludes group messaging, key generation, the Signal app, and verification of primitives (SHA-256, AES-CBC, Kyber1024). DeepMind open-sourced specifications, proofs, and AArch64 semantics for audit. Researchers note the bottleneck has shifted from proof generation to specification writing — requiring deep domain knowledge to formalize attacker models — suggesting formal verification may become economically viable for production code if specification expertise scales.
Read original
dev.to