False computer-checked proofs
Daniel J. Bernstein, the legendary cryptographer, meticulously catalogs soundness bugs found in prominent computer-checked proof systems like Lean, Coq, and Isabelle. This deep technical dive into the fallibility of formal verification tools sparks lively debate on Hacker News about the practical implications of such flaws. The discussion probes whether these bugs are minor blips or significant vulnerabilities, especially in an era of AI-generated proofs.
The Lowdown
This article, authored by renowned computer scientist Daniel J. Bernstein (djb), compiles an extensive list of "soundness bugs" discovered in various computer-checked proof programs. These bugs, if exploited, could potentially allow false statements to be accepted as proven, undermining the very purpose of formal verification. djb's list aims to be more comprehensive than other existing compilations.
- The Problem: Computer-checked proofs are designed to verify every step of a mathematical or logical argument. However, soundness bugs represent flaws in the proof-checking software itself, which could lead to incorrect conclusions being validated.
- The List: The core of the article is a detailed, chronologically sorted list of reported soundness bugs for major proof-checking systems, including HOL Light, Mizar, Metamath, Isabelle, Lean, HOL98/HOL4, and Coq/Rocq. Each entry links to the bug report or commit.
- Mitigation Strategies: djb discusses standard security advice, such as minimizing the complexity of the trusted computing base (TCB). He highlights HOL Light's small kernel as attractive but cautions that size alone doesn't guarantee correctness or account for underlying language bugs. Running proofs through multiple checkers and formal proofs of checker correctness (e.g., Candle, OpenTheory) are also mentioned.
- Trust Concerns: A recurring theme is the recursive problem of trusting the tools that verify other tools. djb expresses concern about relying on large proof-checking binaries, where the trust in one binary stems from its supposed verification by another large binary, evoking the "Reflections on Trusting Trust" dilemma.
Ultimately, djb's work serves as a critical examination of the tools meant to provide ultimate certainty, reminding us that even the most rigorous systems are products of human (and thus fallible) design.
The Gossip
Bug Blips or Blatant Breaches?
Commenters extensively debate the practical significance of the listed soundness bugs. One camp argues that while bugs exist, they are usually fixed quickly, rare in practical exploitation, and mitigated by using multiple checkers or human review. They point out that these systems are still vastly more reliable than unverified code, drawing parallels to components like the Rust borrow checker. The other side expresses concern over the growing number of reported bugs, especially with the rise of AI-generated proofs, suggesting that even infrequent flaws could be problematic if undiscovered or exploited by misaligned AI.
DJB's Distinctive Design
Many users laud Daniel J. Bernstein (djb), the article's author, for his consistent advocacy of minimalism and simplicity in software development, particularly in security-critical contexts. His philosophy of reducing complexity and minimizing the trusted computing base is seen as highly relevant to the discussion of proof checker reliability. Commenters highlight his legendary status in cryptography and his reputation for writing exceptionally secure C code, with some also noting his famously idiosyncratic personality.
AI's Analytical Advantage
The discussion delves into the interplay between Large Language Models (LLMs) and formal proofs. Commenters ponder whether LLMs have already discovered or exploited these soundness bugs, noting that the sheer volume of proof code LLMs can generate increases the likelihood of encountering such flaws. Conversely, LLMs are also seen as powerful tools for actively hunting down these bugs, potentially leading to more robust and hardened proof systems, as demonstrated by recent efforts in the Lean community.
The Proof of the Proofer
This theme addresses the foundational question of how one can truly trust the proof checkers themselves – the recursive problem of "Who watches the provers?" Users discuss the ambitious goal of formally proving the correctness of a proof checker (e.g., Candle for HOL Light) and the complex chain of trust required, extending down to the hardware ISA level. The inherent difficulty of achieving absolute, undeniable correctness when the tools of verification also require verification is a central point, touching on the 'Reflections on Trusting Trust' dilemma.