D. J. Bernstein Catalogs Dozens of Soundness Bugs That Let False Proofs Slip Past Major Proof Checkers
False Computer-Checked Proofs
D. J. Bernstein has compiled a running list of soundness bugs across the major computer proof checkers — Coq/Rocq, Lean, Isabelle, HOL Light, HOL4, Mizar, and Metamath — many demonstrated to be exploitable, meaning false statements could pass as verified. He argues that minimizing the trusted kernel isn't enough, since bugs can be shared across checkers, and calls for more work on simplifying proof-checking binaries and on formally verifying the checkers themselves.
The question "Who watches the provers?" is better answered by a proof saying that a checker works correctly.
- twotwotwo
It is true soundness bugs have been found, and the Lean community spends effort on it. But this page doesn't convey the gap between one incorrect verification and successfully misleading mathematicians about what is true: there are multiple checkers and you need bugs in all of them, without the input looking implausible on informal review.
(For example, a DeepMind researcher created a 'proof' that passed Lean and (a then-week-old version of) nanoda by exploiting a different bug in each. But if you fed that into a regular old LLM (or to a human expert, but I mention LLMs b/c they can be assigned to review even very large volumes of Lean code) it would immediately say "no, this isn't real math.")
The increase in soundness bugs found this year is notable, because LLMs are good at finding ways to their assigned goals, and they found some funny ones. And, besides fixes for the specific bugs, it led to broader work on hardening and alternative and verified kernels: https://leodemoura.github.io/blog/2026-10-15-lean-now-ships-...
So you have fewer avenues than at the start of the year to get a proof of False OK'd by one proof-checker kernel, and it's much much harder to get one through the gauntlet invoked by `lake check --paranoid`.
(This is also interesting as a(nother) example of the difficulty of making truly correct software -- you'd hope for proof-checker kernels to be pretty high on the correctness scale but seems like we've found 16-32 soundness bugs in a bunch of these.)
- dwheeler
I think this is misleading for the proof-checkers in systems where multiple provers must pass for the proof to be accepted.
In the case of Metamath, yes, soundness bugs have been found in the original "metamath" proof verifier, written in C. But to be accepted into the main proof databases (set.mm and iset.mm), proofs must pass "5 independently-created verifiers in 5 different programming languages: metamath (a C verifier by Norm Megill), mmj2 (a Java verifier by Mel O'Cat and Mario Carneiro), smetamath-rs (a high-speed Rust verifier by Stefan O'Rear), checkmm (a C++ verifier by Eric Schmidt), and mmverify.py a Python verifier by Raph Levien)." - https://us.metamath.org/
To me, that's a key countermeasure to the problem.
- gr_norm
The call for further high-assurance work is good, but let's not miss the forest for the trees: some of these have been around for decades, and all the soundness bugs they've ever had fit in a tweet! (Or close to it.)
Comfortably more than good enough for 99.9% of software, especially considering you'd still need to exploit such a soundness bug in a way that hides a further issue in the program being verified.
- andai
There's a deeper problem — I'm assuming it doesn't apply in the case of the math proofs because the problem itself has already been formulated in symbolic terms, by humans — but I've had this problem where, an agent proved the correctness of an implementation (within reason), but it proved it against its own incorrect understanding of what needed to be done. So in one case, what it built ended up being the exact opposite of what needed to be done!
I found it amusing in that case l, that even if it had supplied me with a formal proof of correctness, the proof would also have passed, and the implementation would still have been completely useless! Because the LLM's understanding of what it was supposed to be doing in the first place was wrong.
Communication is hard!
- amelius
Pardon my ignorance but why are these proof checkers so large? Can't they be bootstrapped from a very small set of rules, which are easy to check?
- u1hcw9nx
That shows the importance of very simple proof checkers, like HOL Light.
Cross verifying proof checkers with different implementations, different algorithms is also important.
- kadoban
Nice page. It'd be nice if it showed which ones are closed vs still open. I clicked through a decent number of the lean ones and they were closed/fixed/merged.
- Palomides
if this is such a big problem, have any LLM proofs been found to use an unsoundness bug?