False computer-checked proofs

(cr.yp.to)

73 points | by _tk_ 2 hours ago

8 comments

  • twotwotwo 1 minute ago
    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.)

  • gr_norm 1 hour ago
    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.

    • Karliss 50 minutes 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'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.

      • gr_norm 42 minutes 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'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.

    • tkz1312 1 hour ago
      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).
      • gr_norm 57 minutes ago
        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.
      • empath75 56 minutes 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.
  • kadoban 1 hour ago
    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.
    • olmo23 5 minutes ago
      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.
    • spider-mario 3 minutes ago
    • gr_norm 1 hour ago
      Soundness issues generally get fixed very quickly.
    • warkdarrior 32 minutes ago
      If the page does not instill fear in formal proofs and scare people away from Rocq/Lean/HOL, why even have it?
  • codingjoe 51 minutes ago
    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.

    • JdeBP 13 minutes 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. (-:
    • uzraa 47 minutes ago
      [flagged]
  • Palomides 40 minutes ago
    if this is such a big problem, have any LLM proofs been found to use an unsoundness bug?
    • jez 30 minutes ago
      Yes, most notably was a proof of the Collatz Conjecture that exploited a soundness bug in Lean:

      https://infosec.exchange/@0xabad1dea/117002106099986943

      • gr_norm 24 minutes ago
        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.

  • perching_aix 44 minutes ago
    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.

  • pelagicAustral 1 hour ago
    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...
    • wolfi1 1 hour ago
      exists for a long time, Daniel J Bernstein is a legend
      • eqvinox 18 minutes ago
        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.
      • ahartmetz 1 hour ago
        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.
        • bl4ck-m4g1c 1 hour ago
          [flagged]
          • Scarblac 57 minutes ago
            Oof, it makes me very sad to see some of the names on that list.
            • jazzyjackson 2 minutes ago
              It makes me sad to see people passing around lists of persona non grata
          • mitxela 57 minutes ago
            Interesting list.

            3/5

          • mjd 20 minutes ago
            People who publish Enemies lists are on my private Enemies List.
            • eqvinox 15 minutes ago
              In my experience, people who make "enemies" 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 "list of people to be cautious about / careful around".
          • 1500100900 37 minutes ago
            Drew is on my list, too. He once couldn't understand why I don't want my git client to be able to send email.
          • qagsf-wwq 53 minutes 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-wwq 51 minutes ago
    [dead]