18 comments

  • twotwotwo5 hours ago
    It is true soundness bugs have been found, and the Lean community spends effort on it. But this page doesn&#x27;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 <i>all</i> of them, without the input looking implausible on informal review.<p>(For example, a DeepMind researcher created a &#x27;proof&#x27; 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&#x2F;c they can be assigned to review even very large volumes of Lean code) it would immediately say &quot;no, this isn&#x27;t real math.&quot;)<p>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. <i>And</i>, besides fixes for the specific bugs, it led to broader work on hardening and alternative and verified kernels: <a href="https:&#x2F;&#x2F;leodemoura.github.io&#x2F;blog&#x2F;2026-10-15-lean-now-ships-with-verified-kernels&#x2F;" rel="nofollow">https:&#x2F;&#x2F;leodemoura.github.io&#x2F;blog&#x2F;2026-10-15-lean-now-ships-...</a><p>So you have fewer avenues than at the start of the year to get a proof of False OK&#x27;d by one proof-checker kernel, and it&#x27;s much <i>much</i> harder to get one through the gauntlet invoked by `lake check --paranoid`.<p>(This is also interesting as a(nother) example of the difficulty of making truly correct software -- you&#x27;d hope for proof-checker kernels to be pretty high on the correctness scale but seems like we&#x27;ve found 16-32 soundness bugs in a bunch of these.)
    • stabbles4 hours ago
      How much of the kernels is written by Claude et al? You need both diversity in implementations and contributors, I suppose.
      • SkiFire131 hour ago
        Lean was created 13 years ago, Claude didn&#x27;t exist yet. Besides, kernels are relatively small, e.g. nanoda is less than 10k lines. They are small enough that independent humans can review them.
      • heavensteeth1 hour ago
        The article mentions that sometimes, multiple checkers happen to share soundness bugs; I wonder if one could devise a prompt that multiple LLMs consistently fail to find the flaw in. It&#x27;d be quite interesting if two models of entirely different families fell for the same very particular mistake.
    • quotemstr1 hour ago
      The latest &quot;thing&quot; in some circles is denying that the recent proofs, e.g. of the Riemann hypothesis, are proofs of anything. People point out pointless or tautological sections of these proofs as evidence that the proof itself might be ill-formed, but Lean and similar systems don&#x27;t work that way: absent a kernel bug, introducing unnecessary noise to a proof cannot make it prove something false.<p>Others are looking hard for kernel bugs. They exist, but there are good reasons (including multi-kernel validation) to be confident they don&#x27;t impair these recent proofs.<p>In a situation in which you have a cohort of people who &quot;want to believe&quot; in some unlikely thing, you have to take the evidence they present with a grain of salt. So it is, today: people &quot;want to believe&quot; we haven&#x27;t basically solved automated theorem proving when we have.
    • alfiedotwtf5 hours ago
      I don&#x27;t know anything about the diversity of the code in solvers, but if it&#x27;s anything like browsers (besides Firefox) &quot;multiple&quot; doesn&#x27;t give you much given that they&#x27;re all just Chrome in a trench coat.
      • gr_norm4 hours ago
        They&#x27;re (almost all?) independently written kernels, not forked from each other. There&#x27;s ongoing work developing a complete specification of Lean&#x27;s type theory so the de Bruijn criterion can be truly satisfied.
      • Jaxan4 hours ago
        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.
  • dwheeler3 hours ago
    I think this is misleading for the proof-checkers in systems where <i>multiple</i> provers must pass for the proof to be accepted.<p>In the case of Metamath, yes, soundness bugs have been found in the original &quot;metamath&quot; proof verifier, written in C. But to be accepted into the main proof databases (set.mm and iset.mm), proofs must pass &quot;5 independently-created verifiers in 5 different programming languages: metamath (a C verifier by Norm Megill), mmj2 (a Java verifier by Mel O&#x27;Cat and Mario Carneiro), smetamath-rs (a high-speed Rust verifier by Stefan O&#x27;Rear), checkmm (a C++ verifier by Eric Schmidt), and mmverify.py a Python verifier by Raph Levien).&quot; - <a href="https:&#x2F;&#x2F;us.metamath.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;us.metamath.org&#x2F;</a><p>To me, that&#x27;s a key countermeasure to the problem.
    • ratmice1 hour ago
      Not that I&#x27;ve put a lot of thought into it, but it also feels like a lot of constructive proofs should be easily checked by whether or not they produce the appropriate value when running them. E.g. an existence proof can testing that the value it proves to exist is given. When using soundness holes, one must imagine that this is short circuited.
      • legobmw9910 minutes ago
        I think your intuition is correct; consider than e.g. the Jacobian conjecture didn’t fall due to a gigabyte of lean, but to a single tweet with a counter example.<p>Of course, once you introduce a few common axioms (choice, but even something simple like functional extensionality IIRC) a lot of non constructive proofs become possible
  • gr_norm7 hours ago
    The call for further high-assurance work is good, but let&#x27;s not miss the forest for the trees: some of these have been around for decades, and all the soundness bugs they&#x27;ve ever had fit in a tweet! (Or close to it.)<p>Comfortably more than good enough for 99.9% of software, especially considering you&#x27;d still need to exploit such a soundness bug in a way that hides a further issue in the program being verified.
    • Karliss6 hours ago
      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&#x27;s already not great.<p>But if you look at the trend. It&#x27;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.
      • gr_norm6 hours ago
        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&#x27;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&#x27;s not too surprising to see a few more soundness bugs in the past several months.<p>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.
    • tkz13126 hours ago
      I mean I haven&#x27;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&#x27;re talking about potentially adversarial llm generated proofs (basically any industrial proof at the end of 2026).
      • gr_norm6 hours ago
        It&#x27;s the same situation as the borrow checker, which has also had soundness issues. You&#x27;re really, really unlikely (even with LLMs generating programs&#x2F;proofs) to stumble across them.
      • empath756 hours ago
        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.
        • tkz13125 hours ago
          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.<p>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.
      • derac5 hours ago
        Why would a lab release an adversarial proof? The PR would be awful.
        • Jaxan4 hours ago
          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.
          • solyin3 hours ago
            They have virtually infinite compute though. We, the general public can throw random desktop compute random people have spare, but that&#x27;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&#x27;s been days since it was released and while there&#x27;s still possibility of an error, it&#x27;s definitely less embarrassing for the Internet to take weeks or months to find the error.
        • tkz13123 hours ago
          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.
  • amelius2 hours ago
    Pardon my ignorance but why are these proof checkers so large? Can&#x27;t they be bootstrapped from a very small set of rules, which are easy to check?
    • DoctorOetker1 hour ago
      of course it can:<p>us.metamath.org
      • amelius57 minutes ago
        Then why aren&#x27;t they using it?
  • andai4 hours ago
    There&#x27;s a deeper problem — I&#x27;m assuming it doesn&#x27;t apply in the case of the math proofs because the problem itself has already been formulated in symbolic terms, by humans — but I&#x27;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!<p>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&#x27;s understanding of what it was supposed to be doing in the first place was wrong.<p>Communication is hard!
    • theteapot3 hours ago
      You can&#x27;t have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn&#x27;t sound very deep.
    • tkz13123 hours ago
      specs and theorem statements are for humans, everything else is for the robots :)
      • andai1 hour ago
        (responding also to sibling comment) &gt; You can&#x27;t have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn&#x27;t sound very deep. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50671040">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50671040</a><p>So expressing myself in the strictest mathematical terms is for the human, and being creative and trying a bunch of stuff out is for the machine.<p>Who is <i>responsible</i> for this mess!
  • u1hcw9nx4 hours ago
    That shows the importance of very simple proof checkers, like HOL Light.<p>Cross verifying proof checkers with different implementations, different algorithms is also important.
    • kachnuv_ocasek3 hours ago
      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 <a href="https:&#x2F;&#x2F;arena.lean-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;arena.lean-lang.org&#x2F;</a><p>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.
      • u1hcw9nx2 hours ago
        HOL Light trusted kernel is 400–500 lines of code.<p>HOL Light defines only 10 primitive inference rules.<p>HOL Light&#x27;s maximizes trustworthiness and manual auditability by humans or machines (YOU CAN DO IT). The kernel itself has been formally verified inside HOL Light.<p>There are at least 3 separate HOL light implementations: HOL Light, CakeML, HOLZero that implement the exactly same logic.<p>Lean&#x27;s kernel extends its primitive environment every time an inductive type or quotient primitive is declared. Once you import all of Mathlib it&#x27;s very large. That&#x27;s why you want to use something like HOL to verify those.
        • dist-epoch2 hours ago
          &gt; Once you import all of Mathlib it&#x27;s very large<p>This is why Riemann proof only used a tiny bit of mathlib. An I think the formalization of Fermat&#x27;s Last Theorem didn&#x27;t use it at all.
  • kadoban6 hours ago
    Nice page. It&#x27;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&#x2F;fixed&#x2F;merged.
    • olmo235 hours ago
      For lean, a recent one is basically &quot;if you edit the precompiled files -not the sources- before passing them on to leanchecker you can prove False&quot;.. I wouldn&#x27;t count that personally.
    • gr_norm6 hours ago
      Soundness issues generally get fixed very quickly.
    • spider-mario5 hours ago
      This one doesn’t seem to be: <a href="https:&#x2F;&#x2F;leanprover-community.github.io&#x2F;archive&#x2F;stream&#x2F;113488-general&#x2F;topic&#x2F;silent.20overflow.html" rel="nofollow">https:&#x2F;&#x2F;leanprover-community.github.io&#x2F;archive&#x2F;stream&#x2F;113488...</a>
      • gr_norm5 hours ago
        &gt; Some initial observations: 1) the exception is not reported by check_example because stack_space_exception is not a lean::exception 2) It&#x27;s then caught by task_queue::execute but never reported, apparently<p>This is (was? it predates Lean 4 by several years) an issue with `example` checking, which isn&#x27;t relevant to soundness.
    • warkdarrior6 hours ago
      If the page does not instill fear in formal proofs and scare people away from Rocq&#x2F;Lean&#x2F;HOL, why even have it?
  • dorianmariecom1 hour ago
    btw the page loads really slow for me
  • talon86352 hours ago
    Presumably AIs will attempt workaround cheats in Lean the same way they pursue workaround cheats on benchmarks
    • streetfighter642 hours ago
      Is it really cheating of it&#x27;s following the rules that were set up for it? <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Letter_and_spirit_of_the_law" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Letter_and_spirit_of_the_law</a><p>I prefer to see it as a failure of the specification. Tax avoidance isn&#x27;t illegal, tax evasion is. Getting acquitted on a &quot;loophole&quot; still means you&#x27;re free to go.
  • Palomides6 hours ago
    if this is such a big problem, have any LLM proofs been found to use an unsoundness bug?
    • jez6 hours ago
      Yes, most notably was a proof of the Collatz Conjecture that exploited a soundness bug in Lean:<p><a href="https:&#x2F;&#x2F;infosec.exchange&#x2F;@0xabad1dea&#x2F;117002106099986943" rel="nofollow">https:&#x2F;&#x2F;infosec.exchange&#x2F;@0xabad1dea&#x2F;117002106099986943</a>
      • gr_norm6 hours ago
        Notably:<p>&gt; 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<p>So not quite an accident. In the aftermath of this one of the Lean maintainers wrote a verified kernel, con-leche, that comparator uses.
    • abecedarius2 hours ago
      I assume you mean apparently-sincere proofs rather than obvious hacks.<p>There may be an important difference of regime from the kind of proofs mathematicians have cared about, to AI-coded proofs of correctness of very ambitious and consequential programs that no human has even read.
  • yababa_y5 hours ago
    Here&#x27;s dozens of exploitable flaws in ACL2: <a href="https:&#x2F;&#x2F;github.com&#x2F;emberian&#x2F;common-lisp-compiler-audit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;emberian&#x2F;common-lisp-compiler-audit</a>
  • perching_aix6 hours ago
    Cool resource.<p>I recently checked if this rabbit hole bottoms out and it kinda does?<p>ARM appears to be publishing a formal language specification of their ISA as the normative version, but Intel&#x27;s version is only nonnormative. For CakeML, the semantic correspondance for ARMv8 was proven.<p>So you have ARMv8 -&gt; CakeML -&gt; Candle (i.e. HOL Light) fully certified supposedly.<p>Not freestanding though, so OS shenanigans may still bite. Even in freestanding, UEFI shenanigans might too, not sure.<p>If anyone knows the remaining gaps (excl. the virtual &lt;-&gt; physical boundary), would be happy to hear.
    • yababa_y5 hours ago
      and then you can tie a reflective knot with HOL4&#x2F;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: <a href="https:&#x2F;&#x2F;github.com&#x2F;emberian&#x2F;svenvs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;emberian&#x2F;svenvs</a>
  • TZubiri4 hours ago
    I think Lean kernel correctness is a distraction, it&#x27;s like arguing a Rust program can have bugs because its memory safety guarantees may be faulty.<p>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&#x27;s safety mechanism prevents all bugs, it doesn&#x27;t there can still be bugs in the application code, not in the compiler.
  • nickpsecurity5 hours ago
    I think this review is unfair given he doesn&#x27;t compare those observations to:<p>1. The number of bugs in unverified programs of similat complexity. By average and good coders. Think CompCert&#x27;s middle end having no bugs in the evaluation against other compilers.<p>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.<p>3. How much the proof helped prevent bugs in verified software and their severity vs the number and severity of bugs in the provers.<p>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.<p>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&#x27;s diverse, double compilation on their checkers with GCC and LLVM. Run other verified tools through <i>that</i>.
  • codingjoe6 hours ago
    That&#x27;s what&#x27;s so often forgotten in the AI slop era. Less complexity and by extension less code, mean less room for errors.<p>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.
    • JdeBP6 hours ago
      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. (-:
    • tumdum_4 hours ago
      Why did you feel the need to self censor?
    • uzraa6 hours ago
      [flagged]
  • pelagicAustral7 hours ago
    That&#x27;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&#x2F;workspace...
    • wolfi17 hours ago
      exists for a long time, Daniel J Bernstein is a legend
      • eqvinox6 hours ago
        Having met him in person, he is certainly legendarily weird. (And not in a positive or charming way. I don&#x27;t quite know how to describe it, let&#x27;s say somewhere around &quot;sure of himself and dismissive&quot;.) I&#x27;ve had no reason to clash with him, but I certainly see how that would go badly.
        • tmoertel3 hours ago
          &gt; I don&#x27;t quite know how to describe it, let&#x27;s say somewhere around &quot;sure of himself and dismissive&quot;.<p>I don&#x27;t know, either, but history suggests that when djb claims <i>X</i> and other experts disagree, the safer bet is usually on <i>X</i> being right.
      • ahartmetz7 hours ago
        Claim to fame &quot;The only person in the world who can write secure C code&quot;. I made that up, but he&#x27;s closer than just about anyone.
        • JdeBP5 hours ago
          Berstein&#x27;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.<p>But the sole person, or the person who is closer than anyone else? I wouldn&#x27;t really agree with that, on the simple grounds that there <i>are</i> other people taking the same approach to systems architecture. Look up Laurent Bercot, for starters.
          • ahartmetz11 minutes ago
            Well, sure, I agree that my statement has the asterisk &quot;that the public knows of&quot;.
          • adrian_b4 hours ago
            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.<p>There are many programs written by DJB, which I have been using continuously 24&#x2F;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.<p>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.<p>So I am certainly very grateful for his high-quality work shared publicly.
        • andrewaylett1 hour ago
          Chuck Norris doesn&#x27;t need to write secure C code, he just roundhouse kicks all the bugs away.<p>Bruce Schneier doesn&#x27;t need to write secure C code, any vulnerabilities fix themselves out of embarrassment.<p>DJB is incapable of writing insecure C code, any vulnerabilities you think you may have found are because you&#x27;re using it wrong.
        • bl4ck-m4g1c6 hours ago
          [flagged]
          • Scarblac6 hours ago
            Oof, it makes me very sad to see some of the names on that list.
            • Vaushite5 hours ago
              For some reason you can&#x27;t post the list on HN, it just gets flagged
              • frumplestlatz4 hours ago
                It’s almost as if ideological enemy lists have a long, dark history and shouldn’t be encouraged.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Enemy_of_the_people" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Enemy_of_the_people</a>
                • cowlevel4 hours ago
                  You&#x27;re really comparing DDV saying &quot;this guy has weird politics&quot; with a Stalinist purge?
            • jazzyjackson5 hours ago
              It makes me sad to see people passing around lists of persona non grata
          • mitxela6 hours ago
            Interesting list.<p>3&#x2F;5
          • mjd6 hours ago
            People who publish Enemies lists are on my private Enemies List.
            • eqvinox6 hours ago
              In my experience, people who make &quot;enemies&quot; lists can recognise other people with the same mentality, so the best thing to do is add the author to the list and flag it as &quot;list of people to be cautious about &#x2F; careful around&quot;.
          • 15001009006 hours ago
            Drew is on my list, too. He once couldn&#x27;t understand why I don&#x27;t want my git client to be able to send email.
            • cowlevel4 hours ago
              Git was originally designed to manage patches by email. The push&#x2F;pull model we have today is an evolved one.
          • frumplestlatz4 hours ago
            I’d consider it a bit of an honor to be disliked by such a morally stunted and disingenuous gadfly as Drew Devault
          • qagsf-wwq6 hours ago
            For the crime of demanding due process instead of a witch hunt against an NSA critic that had similarities to the Assange Swedish accusations that were dropped.
  • qagsf-wwq6 hours ago
    [dead]