Formal verification keeps failing in ways its proofs never predicted

What formal verification is in reality

Formal verification keeps failing in ways its proofs never predicted

A running catalogue of verified systems that still broke: Lean's kernel accepted proofs of False, CompCert miscompiled a switch, seL4 fixed crashes in verified configurations, and HashiCorp Raft replicas committed different data at the same log position. Anatoly Yakovenko's Lean-written Percolator exchange was drained through four bounties despite "literally cannot be hacked," and Trail of Bits produced a 20-line proof of Fermat's Last Theorem by exploiting a Lean string bug.

How can you find a bug in a compiler that has been mathematically proven to be correct? Instead of focusing on the proof, you look for issues in everything else connected to it.
  1. gr_norm

    This website seems to be responding to a strawman pitch for formal verification: that it eliminates all bugs. This would be a preposterous thing to say, and I've never heard it.

    Of course it's only as good as the specification you give it (and it's hard to write a good one!). And of course proof assistant kernels occasionally have bugs (so does the borrow checker, and yet it is enormously safer than writing C).

    By the author's own admission, they were unable to find any issues in the specified parts of CompCert. Is the claim that massively reducing your attack surface isn't worthwhile?

  2. dionnam

    hashicorp was never verified tho. only the protocol has a TLA+ spec. antithesis even says the spec "doesn't speak to details like installSnapshot, or replica replacement", and the bug was go handling heartbeats concurrently when the model assumes every op is atomic https://antithesis.com/blog/2026/finding-bugs-in-raft-implem...

  3. utopiah

    Not my domain but I'm speculating that a lot of "solutions" to complex problems at the moment exist because nobody cared enough to verify. I'm speculating even further than now that they are finally being verified it's mostly due to the landscape of problems, namely are genuinely complex and thus were ignored as too hard for a too low pay off, but when you have a LOT of resources that is perishable and constantly looking for more trust, this set of problems suddenly appear very interesting.

More from this day

2026-12-03