False computer-checked proofs cr.yp.to · 54 points · 21 comments · HN thread TL;...

@best

False computer-checked proofs cr.yp.to · 54 points · 21 comments · HN thread

TL;DR Daniel J. Bernstein's page catalogs reported soundness bugs in major proof checkers (HOL Light, Mizar, Metamath, Isabelle, Lean, HOL4, Coq/Rocq), sorted by count, with links to archived bug reports. It also reviews formal verification of HOL Light's kernel and argues for simpler trusted computing bases.

  • The page lists reported soundness bugs, i.e. cases where a false statement could be accepted as proven, for several proof assistants, with Internet Archive links to each report.
  • Coq/Rocq has the most entries (over 100 dated reports), followed by Lean (25), HOL4/HOL98 (27), Isabelle (19), Mizar (7), Metamath (9) and HOL Light (3).
  • Some bugs were demonstrated to be exploitable; the list excludes user-interface vulnerabilities that can also mislead readers about what was proven.
  • HOL Light's kernel is about 400 lines and has been formally proven correct in 2006; Candle, a HOL Light clone, was proven correct in 2022 under the assumption that the CPU implements its instructions as expected.
  • The author argues that relying on large proof-checking binaries checked by other large binaries is a security concern and calls for simplifying them.
  • The page is a versioned list (version 20261125) and the author asks readers for corrections and additions.

Discussion The thread debates how serious the soundness bugs are. Several commenters argue that the bugs are rare, quickly fixed, and not a practical threat, comparing them to borrow-checker issues and noting that multiple checkers can cross-verify proofs. Others counter that the rising count, combined with possibly adversarial AI-generated proofs, makes the problem more pressing, and point to a Collatz proof that exploited a Lean bug. The mood is mixed: skeptical but engaged, with some side discussion about the author himself.

  • Bugs are rare and fixed fast; risk is low (many): Commenters say the number of bugs is small relative to usage, that fixes arrive quickly, and that exploiting one would still require hiding further issues in the verified program. They see the risk as acceptable for almost all software.
  • Rising bug count is a real concern with AI proofs (many): Some argue that any soundness bug lets a false proof through, and that AI-generated proofs may find such bugs deliberately. They note the bug count grows steadily and that undiscovered bugs likely remain.
  • Growth reflects more scrutiny and AI load, not worse design (some): One view holds that bugs clustered in known-suspicious corners of type theories that were tolerable when only humans wrote proofs. The surge in volume from AI use is now exposing them, and designs are being reworked.
  • Simplicity and less code reduce risk (some): A maintainer of authentication software says fewer features make safety verifiable, echoing the author's argument for minimizing the trusted base.
  • Verification chain from hardware to kernel is nearly complete (a few): One commenter notes that ARMv8 semantics have been linked to CakeML and then Candle, leaving gaps mainly at OS and boundary layers, though not freestanding environments.

Links from the comments

#formalVerification #proofAssistants #soundness #theoremProving #security #HOLLight