AlphaProof Code deepmind.google · 215 points · 86 comments · HN thread TL;DR Goo...

@best

AlphaProof Code deepmind.google · 215 points · 86 comments · HN thread

TL;DR Google DeepMind says its AlphaProof Code framework, a multi-LLM agent system with human experts reviewing specifications, formally verified the compiled code of the cryptographic core used by Signal (libsignal) in four weeks, generating over six million lines of Lean. The team says it is the first AI-assisted formal verification of a widely deployed cryptographic protocol at this depth and is open-sourcing its artifacts.

  • Human experts translated Signal's security goals into formal specifications, reviewed by humans; AI agents (Gemini Carbon, per the post) produced the proofs, over six million lines of Lean.
  • The agents flagged about one percent of the codebase for human review; Lean checks the rest automatically.
  • The proofs target the compiled code, not just the design, covering properties such as protection of messages before and after a device is temporarily compromised.
  • The verification took four weeks; the team says comparable expert work historically takes years.
  • To test the process, two previously fixed bugs were reintroduced into an isolated copy of Signal's code, and the system produced machine-checked proofs that the buggy versions were insecure.
  • The team says the work is a step toward securing other systems such as medical device firmware and power grid software, and will be paired with the CodeMender defense agent.

Discussion The thread is mostly admiring but skeptical in places. Many commenters praise the human-in-the-loop design and the bug-reintroduction test, and debate whether this generalizes beyond cryptography. Technical threads question what the proof actually covers: the compiled ELF binary rather than Rust source, the trust in the Lean model of the processor, whether the specification itself is correct, and what remains unverified such as key generation, server software and the OS. A side debate covers the halting problem and formal methods in general, and a long tangent touches on government and NSA involvement with Signal, which is largely unsupported speculation. The mood is impressed with a healthy dose of caveats.

  • Impressive achievement, and the human review step makes it credible (many): Several commenters see the human-expert specification and the review of the flagged 1% as a sensible use of AI, unlike typical hype. They also appreciate testing the system against reintroduced bugs.
  • Proofs cover only a narrow scope and cannot show absence of vulnerabilities (many): Commenters note the proof checks pre-chosen properties of one binary, not the absence of attacks. Server software was only simulated, and key generation and the OS were not covered, so the result is narrower than the headline suggests.
  • Verifying the model-to-implementation link is still the weak point (some): Questions were raised about whether the Lean model of the processor and the Lean specification match the real hardware and the real code. Replies clarified that the target was the ELF binary and the ARM ASL semantics were tested against two emulators.
  • Formal verification will become standard, possibly soon (some): Some expect unverified software to look reckless within a few years, and argue that cheap AI-written code makes verification affordable. Others counter that most software lacks clear specifications and that scaling is hard.
  • Skeptical of Google's AI claims and Gemini behavior (a few): One commenter claims Gemini models are misaligned and benchmark-gamed, though no concrete examples were given in the thread and the claim was challenged.
  • Signal's secure design is not the main risk; OS and endpoints are (a few): Commenters argue that the cryptography may be sound while the operating system, endpoints or metadata leakage remain the real threats, and that the NSA and government ties are speculative.

Links from the comments

#formalVerification #cryptography #AI #Signal #Lean #security