Unofficial Hacker News client - receive Push Notifications on replies.

False computer-checked proofs (opens external site)

250 points by _tk_ 3 days ago | cr.yp.to | 123 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (8)

  1. How much of the kernels is written by Claude et al? You need both diversity in implementations and contributors, I suppose.
    Replies (3)
    1. Lean was created 13 years ago, Claude didn'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.
      Replies (2)
      1. Not if Claude is able to write underhanded C++.
      2. Why is the creation date relevant? People are using the current versions to verify.

        In fact Lean is bloated hipster software that has no backwards compatibility whatsoever and forces you to use the latest version.

    2. 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'd be quite interesting if two models of entirely different families fell for the same very particular mistake.
      Replies (2)
      1. I think it'd be similar to writing a flawed argument (or buggy code, etc.) that would pass review with a lot of people. I bet just having a really subtle flaw is more robust than trying to find a quirky, specific chink in LLM armor that survives different models, angles on the prompt, etc.

        One thing I didn't spell out about why non-proof-checker 'informal' review is interesting is it means any exploits have to be hidden. Proof checkers don't care if the code they're looking at is weird in context, and it probably will be weird if it's a refcount-overflow exploit rather than a proof (to use an actual runtime-soundness bug from the August post on C++ Lean). But to an expert or LLM, exploit code and real math reasoning can look different. So the result is the challenge is no longer just 'exploit the bug(s)' but now also 1) make the exploit not suspicious to the informal reader and 2) make the argument also make sense to them.

        I think hardening the kernels and their diversity are the main defenses, but the informal-review thing is fun to think about because it's such a different challenge from the others.

      2. The other thing that would be interesting to know is how often the bugs show up in actual "real" proofs in the wild, rather than artificially constructed inputs, and when the bugs are fixed how many of the real proofs are invalidated. I suspect the answer is never and zero, although as AIs expend large efforts to search for proofs they may end up stimulating some bug (but the differential testing with all the kernels would then catch it.)
    3. The C++ Lean kernel and Rust nanoda were mostly written before they could be LLM-written, and by different people. Two recent LLM-written kernels, con-leche and con-ron, are interesting partly because there are proofs that go with the code.

      Maybe what's most interesting is from a page about a bug hunt: https://leodemoura.github.io/blog/2026-8-24-postmortem-for-t... -- at the time they shipped four kernels (C++ Lean, nanoda, lean4lean, and ind-models); most listed bugs only bit the first, and one bit two.