What formal verification is in reality formalverification.fail · 25 points · 11 ...
HN Best 200 @best
What formal verification is in reality formalverification.fail · 25 points · 11 comments · HN thread
TL;DR formalverification.fail is a satirical-style collection of tweets and reports arguing that formally verified software still gets broken, citing a Percolator bounty drained within a day, a Raft implementation bug, CompCert miscompilation bugs, and a Lean kernel exploit. The site presents these as evidence that formal verification is not the bug-free guarantee its proponents sometimes imply. The thread discusses whether the critique targets a strawman, with most commenters agreeing that proofs cover only their specifications.
- Quotes a toly post claiming a Rust Percolator could not be hacked, followed by a bounty where the 70 USDC pot was claimed through a close/revive type confusion bug.
- Cites the Antithesis finding of critical safety and liveness bugs in formally verified Raft implementations, noting the specs omit details like installSnapshot.
- Cites Cantina's Apex finding three bugs in CompCert's unverified code after six CPU years of stress testing found none in its verified core.
- Cites Trail of Bits proving Fermat's Last Theorem in 20 lines by exploiting a bug in Lean, compared with Anthropic's 13 million line formalization.
- Cites Zip CPU finding a bug in supposedly formally verified Verilog, and Hari's claim of severe miscompilation bugs in CompCert.
Discussion The thread is a technical and mostly measured debate about what formal verification actually guarantees. The top comment argues the site attacks a strawman that formal verification eliminates all bugs, and the author's own CompCert example shows the verified parts held up. Other commenters agree that proofs are only as good as their specifications, and that requirements are hard to write, while some point to the value of proof kernels being double-checked and to the broader trend of using statically typed languages. The mood is skeptical of hype but not hostile to the field.
- Critique targets a strawman; FV was never claimed to mean zero bugs (most): Several commenters say formal verification experts are careful about what is proven, citing seL4's FAQ. They argue the site's examples come from Twitter hype rather than the field's own claims.
- Specifications and requirements are the real weak point (many): Commenters note that a proof only covers the stated spec, and that writing complete requirements is very hard. Errors in the specification or assumptions about the environment are a common source of failure.
- Verification still beats the alternatives despite gaps (some): Some argue that removing whole classes of bugs is worthwhile, comparing it to Rust's borrow checker and the static typing now widely adopted. The remaining bugs in trusted components do not negate the reduced attack surface.
- Accidental complexity is reduced, business complexity remains (some): One view splits software complexity into intrinsic business-domain complexity and accidental tool complexity. Formal verification helps with the second but not the first, which explains why rewrites often fail.
- Trusted kernels and toolchains still carry residual risk (a few): A commenter who built Lean notes the huge compiled bootstrap chain and questions how certain anyone can be of its correctness. Another replies that cross-checking with independent kernels reduces but does not eliminate this risk.
Links from the comments
- seL4 FAQ explaining exactly which properties its formal verification proves
- Antithesis write-up on bugs found in Raft implementations and the limits of the TLA+ spec
#formalVerification #security #smartContracts #compilers #bugBounty