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.
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.)
I don't know anything about the diversity of the code in solvers, but if it's anything like browsers (besides Firefox) "multiple" doesn't give you much given that they're all just Chrome in a trench coat.
They're (almost all?) independently written kernels, not forked from each other. There's ongoing work developing a complete specification of Lean's type theory so the de Bruijn criterion can be truly satisfied.
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.
100 in 20 years means new one every other month. Which seems frequent enough to be quite sure that at all time there is at least one or few of them possibly undiscovered. Which is enough for misaligned AI to prove false statements. That's already not great.
But if you look at the trend. It's on logarithmic scale. With all the lines being curved up. Amount of bugs found was already growing exponentially years before being accelerated by current AI trends. To me a more likely explanation seems not that there were barely any bugs in previous decades, but that barely anyone was looking for them or considering it serious problem.
A lot of the issues found were in known-suspicious corners of the underlying type theories. It was previously fine to have certain convenient kludges around since proofs were written by humans, for whom the likelihood of accidentally completing a proof by triggering a bug was basically 0. These are being removed or their foundations reworked to deal with AI now writing proofs at unprecedented scale. It's actually remarkable how well the current crop of proof assistants has dealt with the instant orders-of-magnitude increase in the volume of proof thrown at them. So taking prior design considerations and skyrocketing usage together, it's not too surprising to see a few more soundness bugs in the past several months.
If you want a scare, take a look at how many soundness bugs the borrow checker has had. Nobody would deny its usefulness for correctness.
I mean I haven't looked at any of these issues too much in detail, any soundness bug is probably enough to get a proof of false (kinda by definition?), and from there all bets are off really, especially if we're talking about potentially adversarial llm generated proofs (basically any industrial proof at the end of 2026).
It's the same situation as the borrow checker, which has also had soundness issues. You're really, really unlikely (even with LLMs generating programs/proofs) to stumble across them.
It is relatively easy to check against multiple lean kernels right now and even fairly trivial to reformalize proofs in different proof languages entirely. The idea
that this is a real problem is nonsense.
I have been working with lean and other theorem provers professionally for many years. Soundness bugs are very far down my list of worries, but they are absolutely a real thing that should be taken seriously.
With that said the combo of con-leche, con-ron, and con-agua that has emerged since the summer is quite confidence inspiring, and I do expect that we will probably flush the vast majority of soundness bugs out of the major systems over the next year or two.
The concern is that the llms would reward hack their way to the goal by discovering and exploiting a soundness bug, and nobody would notice because for lots of use cases nobody reads proofs anymore.
They have virtually infinite compute though. We, the general public can throw random desktop compute random people have spare, but that's not the same thing as being able to run an internal proof on an GB200 system. An unreleased AI with the right system prompt and unlimited subagents could check it for embarrassing errors. It's been days since it was released and while there's still possibility of an error, it's definitely less embarrassing for the Internet to take weeks or months to find the error.
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.
You can't have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn't sound very deep.
There are at least 36 different Lean type checker implementations in various languages, with different people and ideas behind them. See the Lean Kernel Area https://arena.lean-lang.org/
Also, what exactly do you mean by simplicity? The core of nanoda_lib is about 7,000 lines of code, much smaller than HOL Light as far as I can tell.
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.
For lean, a recent one is basically "if you edit the precompiled files -not the sources- before passing them on to leanchecker you can prove False".. I wouldn't count that personally.
> Some initial observations:
1) the exception is not reported by check_example because stack_space_exception is not a lean::exception
2) It's then caught by task_queue::execute but never reported, apparently
This is (was? it predates Lean 4 by several years) an issue with `example` checking, which isn't relevant to soundness.
> it was later clarified that the person who originally posted the proof was already aware that it was buggy, and chose not to be clear about this up front, as a humorous way to file a bug
So not quite an accident. In the aftermath of this one of the Lean maintainers wrote a verified kernel, con-leche, that comparator uses.
I recently checked if this rabbit hole bottoms out and it kinda does?
ARM appears to be publishing a formal language specification of their ISA as the normative version, but Intel's version is only nonnormative. For CakeML, the semantic correspondance for ARMv8 was proven.
So you have ARMv8 -> CakeML -> Candle (i.e. HOL Light) fully certified supposedly.
Not freestanding though, so OS shenanigans may still bite. Even in freestanding, UEFI shenanigans might too, not sure.
If anyone knows the remaining gaps (excl. the virtual <-> physical boundary), would be happy to hear.
and then you can tie a reflective knot with HOL4/Candle and start crawling your way back up to showing the bootstrap HOL4 kernel is correct (this will be several OOM harder than CakeML itself was), and send yourself off into selfimproving lalaland: https://github.com/emberian/svenvs
I think Lean kernel correctness is a distraction, it's like arguing a Rust program can have bugs because its memory safety guarantees may be faulty.
But rust programs are full of bugs unrelated to memory safety, if you go down this argument line you are furthering the argument that the programming language's safety mechanism prevents all bugs, it doesn't there can still be bugs in the application code, not in the compiler.
I think this review is unfair given he doesn't compare those observations to:
1. The number of bugs in unverified programs of similat complexity. By average and good coders. Think CompCert's middle end having no bugs in the evaluation against other compilers.
2. The number of bugs in those vs verification tools in general. If proof and simplicity works, we should see a huge drop vs larger provers or solvers.
3. How much the proof helped prevent bugs in verified software and their severity vs the number and severity of bugs in the provers.
4. An empirical argument where common, coding strategies in battle-tested compilers normally run withiut errors. Therefore, a verified checker implemented with those patterns in a simple, coding style will probably run correctly or with few bugs. But, he just says a large binary checking a large binary which makes both programs sound equally reliable.
So, I support developing and using these tools. We should have them tested on many, small programs and properties like we do static analyzers. Then, use David A. Wheeler's diverse, double compilation on their checkers with GCC and LLVM. Run other verified tools through that.
That's what's so often forgotten in the AI slop era. Less complexity and by extension less code, mean less room for errors.
I maintain multiple large authentication packages and this is the reason I reject almost all feature requests. Not because I am an d*ck, but I need to be able to verify their safety and I am only human.
Less complexity and less code has been a Daniel J. Bernstein theme since the 1990s. As well as reflections based upon experience on how easy that is to achieve. (-:
Having met him in person, he is certainly legendarily weird. (And not in a positive or charming way. I don't quite know how to describe it, let's say somewhere around "sure of himself and dismissive".) I've had no reason to clash with him, but I certainly see how that would go badly.
Berstein's claim to fame in that area is being one of the most prominent advocates of avoiding some of the sadly still even today common design and development patterns that lead to very insecure C code.
But the sole person, or the person who is closer than anyone else? I wouldn't really agree with that, on the simple grounds that there are other people taking the same approach to systems architecture. Look up Laurent Bercot, for starters.
I do not doubt that there must exist plenty of other people who might have written secure and efficient C code, but most of them must have kept that code for themselves or for their employers, so it has remained unknown.
There are many programs written by DJB, which I have been using continuously 24/7 for several decades, day and night, year after year, on many kinds of server computers and many successive generations of computer hardware, and they have always worked perfectly, without the slightest problem.
There are no programs written by any other individual that I have seen in continuous use for so many years, without having to be replaced with other versions or with other completely different programs, if not for fixing bugs in them, at least because of the need to enhance them with new features.
So I am certainly very grateful for his high-quality work shared publicly.
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.
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.)
How much of the kernels is written by Claude et al? You need both diversity in implementations and contributors, I suppose.
I don't know anything about the diversity of the code in solvers, but if it's anything like browsers (besides Firefox) "multiple" doesn't give you much given that they're all just Chrome in a trench coat.
They're (almost all?) independently written kernels, not forked from each other. There's ongoing work developing a complete specification of Lean's type theory so the de Bruijn criterion can be truly satisfied.
This s a valid point, especially since the type theory lean does not have a clear specification. They do have a large collection of tests though.
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.
100 in 20 years means new one every other month. Which seems frequent enough to be quite sure that at all time there is at least one or few of them possibly undiscovered. Which is enough for misaligned AI to prove false statements. That's already not great.
But if you look at the trend. It's on logarithmic scale. With all the lines being curved up. Amount of bugs found was already growing exponentially years before being accelerated by current AI trends. To me a more likely explanation seems not that there were barely any bugs in previous decades, but that barely anyone was looking for them or considering it serious problem.
A lot of the issues found were in known-suspicious corners of the underlying type theories. It was previously fine to have certain convenient kludges around since proofs were written by humans, for whom the likelihood of accidentally completing a proof by triggering a bug was basically 0. These are being removed or their foundations reworked to deal with AI now writing proofs at unprecedented scale. It's actually remarkable how well the current crop of proof assistants has dealt with the instant orders-of-magnitude increase in the volume of proof thrown at them. So taking prior design considerations and skyrocketing usage together, it's not too surprising to see a few more soundness bugs in the past several months.
If you want a scare, take a look at how many soundness bugs the borrow checker has had. Nobody would deny its usefulness for correctness.
I mean I haven't looked at any of these issues too much in detail, any soundness bug is probably enough to get a proof of false (kinda by definition?), and from there all bets are off really, especially if we're talking about potentially adversarial llm generated proofs (basically any industrial proof at the end of 2026).
It's the same situation as the borrow checker, which has also had soundness issues. You're really, really unlikely (even with LLMs generating programs/proofs) to stumble across them.
It is relatively easy to check against multiple lean kernels right now and even fairly trivial to reformalize proofs in different proof languages entirely. The idea that this is a real problem is nonsense.
I have been working with lean and other theorem provers professionally for many years. Soundness bugs are very far down my list of worries, but they are absolutely a real thing that should be taken seriously.
With that said the combo of con-leche, con-ron, and con-agua that has emerged since the summer is quite confidence inspiring, and I do expect that we will probably flush the vast majority of soundness bugs out of the major systems over the next year or two.
Why would a lab release an adversarial proof? The PR would be awful.
The concern is that the llms would reward hack their way to the goal by discovering and exploiting a soundness bug, and nobody would notice because for lots of use cases nobody reads proofs anymore.
How would they even know if there are 17 million lines of code? I do not think they have the expertise to check every line themselves.
They have virtually infinite compute though. We, the general public can throw random desktop compute random people have spare, but that's not the same thing as being able to run an internal proof on an GB200 system. An unreleased AI with the right system prompt and unlimited subagents could check it for embarrassing errors. It's been days since it was released and while there's still possibility of an error, it's definitely less embarrassing for the Internet to take weeks or months to find the error.
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!
You can't have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn't sound very deep.
specs and theorem statements are for humans, everything else is for the robots :)
That shows the importance of very simple proof checkers, like HOL Light.
Cross verifying proof checkers with different implementations, different algorithms is also important.
There are at least 36 different Lean type checker implementations in various languages, with different people and ideas behind them. See the Lean Kernel Area https://arena.lean-lang.org/
Also, what exactly do you mean by simplicity? The core of nanoda_lib is about 7,000 lines of code, much smaller than HOL Light as far as I can tell.
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.
For lean, a recent one is basically "if you edit the precompiled files -not the sources- before passing them on to leanchecker you can prove False".. I wouldn't count that personally.
Soundness issues generally get fixed very quickly.
This one doesn’t seem to be: https://leanprover-community.github.io/archive/stream/113488...
> Some initial observations: 1) the exception is not reported by check_example because stack_space_exception is not a lean::exception 2) It's then caught by task_queue::execute but never reported, apparently
This is (was? it predates Lean 4 by several years) an issue with `example` checking, which isn't relevant to soundness.
If the page does not instill fear in formal proofs and scare people away from Rocq/Lean/HOL, why even have it?
if this is such a big problem, have any LLM proofs been found to use an unsoundness bug?
Yes, most notably was a proof of the Collatz Conjecture that exploited a soundness bug in Lean:
https://infosec.exchange/@0xabad1dea/117002106099986943
Notably:
> it was later clarified that the person who originally posted the proof was already aware that it was buggy, and chose not to be clear about this up front, as a humorous way to file a bug
So not quite an accident. In the aftermath of this one of the Lean maintainers wrote a verified kernel, con-leche, that comparator uses.
Here's dozens of exploitable flaws in ACL2: https://github.com/emberian/common-lisp-compiler-audit
Cool resource.
I recently checked if this rabbit hole bottoms out and it kinda does?
ARM appears to be publishing a formal language specification of their ISA as the normative version, but Intel's version is only nonnormative. For CakeML, the semantic correspondance for ARMv8 was proven.
So you have ARMv8 -> CakeML -> Candle (i.e. HOL Light) fully certified supposedly.
Not freestanding though, so OS shenanigans may still bite. Even in freestanding, UEFI shenanigans might too, not sure.
If anyone knows the remaining gaps (excl. the virtual <-> physical boundary), would be happy to hear.
and then you can tie a reflective knot with HOL4/Candle and start crawling your way back up to showing the bootstrap HOL4 kernel is correct (this will be several OOM harder than CakeML itself was), and send yourself off into selfimproving lalaland: https://github.com/emberian/svenvs
I think Lean kernel correctness is a distraction, it's like arguing a Rust program can have bugs because its memory safety guarantees may be faulty.
But rust programs are full of bugs unrelated to memory safety, if you go down this argument line you are furthering the argument that the programming language's safety mechanism prevents all bugs, it doesn't there can still be bugs in the application code, not in the compiler.
I think this review is unfair given he doesn't compare those observations to:
1. The number of bugs in unverified programs of similat complexity. By average and good coders. Think CompCert's middle end having no bugs in the evaluation against other compilers.
2. The number of bugs in those vs verification tools in general. If proof and simplicity works, we should see a huge drop vs larger provers or solvers.
3. How much the proof helped prevent bugs in verified software and their severity vs the number and severity of bugs in the provers.
4. An empirical argument where common, coding strategies in battle-tested compilers normally run withiut errors. Therefore, a verified checker implemented with those patterns in a simple, coding style will probably run correctly or with few bugs. But, he just says a large binary checking a large binary which makes both programs sound equally reliable.
So, I support developing and using these tools. We should have them tested on many, small programs and properties like we do static analyzers. Then, use David A. Wheeler's diverse, double compilation on their checkers with GCC and LLVM. Run other verified tools through that.
That's what's so often forgotten in the AI slop era. Less complexity and by extension less code, mean less room for errors.
I maintain multiple large authentication packages and this is the reason I reject almost all feature requests. Not because I am an d*ck, but I need to be able to verify their safety and I am only human.
Less complexity and less code has been a Daniel J. Bernstein theme since the 1990s. As well as reflections based upon experience on how easy that is to achieve. (-:
Why did you feel the need to self censor?
That's a crazy nice domain hack... reminds me of g.ho.st which at least for a short time was some kind of web based OS/workspace...
exists for a long time, Daniel J Bernstein is a legend
Having met him in person, he is certainly legendarily weird. (And not in a positive or charming way. I don't quite know how to describe it, let's say somewhere around "sure of himself and dismissive".) I've had no reason to clash with him, but I certainly see how that would go badly.
> I don't quite know how to describe it, let's say somewhere around "sure of himself and dismissive".
I don't know, either, but history suggests that when djb claims X and other experts disagree, the safer bet is usually on X being right.
Claim to fame "The only person in the world who can write secure C code". I made that up, but he's closer than just about anyone.
Berstein's claim to fame in that area is being one of the most prominent advocates of avoiding some of the sadly still even today common design and development patterns that lead to very insecure C code.
But the sole person, or the person who is closer than anyone else? I wouldn't really agree with that, on the simple grounds that there are other people taking the same approach to systems architecture. Look up Laurent Bercot, for starters.
I do not doubt that there must exist plenty of other people who might have written secure and efficient C code, but most of them must have kept that code for themselves or for their employers, so it has remained unknown.
There are many programs written by DJB, which I have been using continuously 24/7 for several decades, day and night, year after year, on many kinds of server computers and many successive generations of computer hardware, and they have always worked perfectly, without the slightest problem.
There are no programs written by any other individual that I have seen in continuous use for so many years, without having to be replaced with other versions or with other completely different programs, if not for fixing bugs in them, at least because of the need to enhance them with new features.
So I am certainly very grateful for his high-quality work shared publicly.