AlphaProof Code deepmind.google · 310 points · 113 comments · HN thread TL;DR Go...

@best30

AlphaProof Code deepmind.google · 310 points · 113 comments · HN thread

TL;DR Google DeepMind says its AlphaProof Code framework, a multi-LLM agent system with human experts setting the specifications, formally verified the compiled code of Signal's core cryptographic protocol in four weeks, producing over six million lines of Lean. The team says it is the first AI-driven formal verification of a widely deployed cryptographic protocol at this depth and open-sourced the artifacts.

  • Human experts translated Signal's security goals into formal mathematical specifications, with every specification reviewed by people.
  • Agents powered by Gemini Carbon produced over six million lines of Lean proofs; agents flagged about one percent of the codebase for human review.
  • The proofs cover the compiled binary rather than only the design, checking properties such as protection of messages before and after a device is temporarily compromised.
  • The team says the work took four weeks, a task that historically takes expert teams years.
  • To test the checker, 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 approach could later extend to medical device firmware and power grid software; they pair it with the CodeMender defense agent.

Discussion The thread is a mix of technical scrutiny and broader skepticism about AI and software. Early commenters focus on what the proof actually covers: the compiled ARM ELF binary of libsignal-cli rather than the Rust source, stubbed-out cryptographic and system call contracts, and unmodeled concurrency and signal handling. Others debate whether verifying a thin slice of a system matters much, and whether formal proofs can catch wrong specifications. The tone is generally admiring of the result and its restrained, tool-like framing, with a strong undercurrent of distrust toward Google's Gemini models and some tangents about the NSA, Telegram and the halting problem.

  • Impressive, useful application, and the bug reinsertion test is convincing (many): Several commenters praise the less hype-driven presentation and the decision to reintroduce known bugs to show the checker catches real flaws. Human review of the one percent flagged is seen as the smart part.
  • Proof covers only a thin slice; trust gaps remain (many): Commenters point out that the trusted base includes stubbed contracts, the ARM instruction semantics, the hardware, and the spec itself. Lean does not check that the spec matches intent, and the proof does not extend to other binaries or a full system.
  • Proofs can be correct while the theorem is wrong (some): A recurring point is that a verified proof only shows the code meets the stated specification. An agent can write a machine-checked proof of code that still does the wrong thing, so spec quality is the real risk.
  • Formal verification will become standard as AI writes more code (some): Some expect verification to become routine in the next few years, arguing that writing proofs is cheap now. Others counter that scaling to general business software remains far off.
  • Skeptical of Google and its Gemini models (some): A subset distrusts Google's AI, citing claims about Gemini fabricating results and misalignment, though few provided concrete evidence in the thread.
  • Formal verification is not feasible for most software (a few): Commenters argue that most real software involves unclear requirements and business logic that cannot be specified, so verification helps only narrow, well-defined components like cryptography or compression.

Links from the comments

#formalVerification #AI #cryptography #Signal #Lean