An unofficial, read-only Hacker News reader. Join the beta →

Much shorter version of GRH Lean verification from Anthropic (opens external site)

563 points by nb-t 2 days ago | github.com | 363 comments on HN

View full thread · View on Hacker News

Comment thread (10)

  1. "It is many people independently re-running the same official build"

    Indeed, what is the point of that? This is not an audit in any way.

    Audit the instructions, build with ASAN, run Valgrind, build manually without lake. Anything to actually audit rather than engaging in a performative action.

    Replies (3)
    1. The proof has been verified with and without lake, with comparator, with alternative lean kernels, etc. There have been many independent verifications of the proof using different implementations of lean. The lean community is 100% confident that the proof is valid.
      Replies (1)
      1. Thank you for guiding the flock in the right direction without delay!

        Now what does that have to do with established audit practices?

        Replies (1)
        1. I have no idea what you’re talking about, however the statement of the lean prover community[0] follows the exact 4 steps that Kevin Buzzard said you should check when someone posts that a proof is checked in lean [1] so to the extent that there are established audit practices, that’s what has been followed.

          I would say in this case because this is arguably the most important proof for over 100 years there hasn’t just been one effort to validate it, so people have gone above and beyond those steps, validating it with multiple independent lean kernels (that’s con-ron, lean4lean, con leche that are mentioned in the grh page on the validation effort[2]). These independent kernels are what caught the “dishonest” proofs that exploited old bugs in lean to claim a proof of the Collatz conjecture around 18 months or so ago so here we have a situation where a dishonest proof would need to exploit not only lean itself but 3 other clean room implementations of the language somehow and also evade the human scrutiny that is involved in this effort. This is vanishingly unlikely given the level of effort that is being put in.

          I think where you are perhaps being confused by the wording is just because people are rerunning the same official build doesn’t mean that they are checking the exact same thing. They are running the same versions of lean, mathlib and the proof, checking that compiles without issue as a baseline and then running whatever other checks they want to run. It wouldn’t be reasonable to (say) blame the proof if I have a problem when I run it on my machine with say a version of mathlib that I had locally broken somehow.

          The grh validation page steps are “If you do these exact steps you should get exactly what we get” (ie a very high standard of scientific reproducibility to justify the confidence that they have that the original long proof is correct). Everything that’s being done on shorter versions of the proof builds on the fact that the long version works.

          [0] https://leanprover-community.github.io/blog/posts/riemann-hy...

          [1] https://xenaproject.wordpress.com/2026/11/12/and-the-proof-i...

          [2] https://math.mit.edu/~drew/grh/

          Replies (1)
          1. Bugs in software aren't found by following four step blog posts by a guru.

            It is a fuzzy process that requires patience, creativity and perseverance. If Torvalds posted a four step blog post how to audit the Linux Kernel, everyone would laugh.

            What Buzzard posted is the bare minimum.

            Replies (1)
            1. …and indeed they are doing far more than just the 4 steps. The point is this is an enormous effort where a ton of people have done a ton of things. Included in those things are the standard 4 things they say everyone should do.

              What Linus would do in a given situation doesn’t seem super-relevant here, and the word “audit” which keeps coming up in this thread is a strange one. This isn’t an audit- It is a verification of a mathematical proof. There have separately been several efforts to audit the lean kernel and to make cleanroom implementations of the kernel. This effort isn’t that though, it’s verifying that the proof is correct and proves what the author says it does.

              It’s not necessary or helpful to audit a lean proof in the traditional sense of a software audit. “Bugs” don’t invalidate an honest proof - they cause it either to prove a different thing from what it intended or to fail to prove the thing they do intend. So all that’s needed is to check whether it proves the correct statement and the proof is honest (in the sense of not constructed to deliberately exploit a bug in lean). People are doing a lot of checks on all aspects of that and are satisfied.

    2. why not?

      Also that it builds was point #4 of this letter from the Lean community: https://leanprover-community.github.io/blog/posts/riemann-hy...

      If there’s steps you want to add, submit a PR!

    3. “Audit the instructions, build with ASAN, run Valgrind, build manually without lake”

      Are these steps worth adding to Riemann@home. Let me know!

      Replies (1)
      1. No valgrind and ASAN aren’t worth adding. Running valgrind for example is for detecting memory leaks in software - that’s totally irrelevant to whether or not the proof is valid. Asan finds memory leaks and reuse bugs in C/C++ software - again completely unhelpful if your goal is to figure out whether this does prove the Riemann hypothesis. Those are things you might do if you thought the lean4 compiler had a memory leak and if you found such a thing may help performance but they don’t affect proof correctness.

        In the spirit of what they are getting at (getting people to try different things) you could look at the grh page and the steps they did (eg using con-ron, con leche and lean4lean) as extra things people can try. I also don’t know whether you include this, but pointing people at how they verify the axiomatic basis[1] used would be helpful.

        [1] https://lean-lang.org/doc/reference/latest/ValidatingProofs/ Is the official documentation, but ‘#print axioms’ is what people need to know how to do and it needs to return ‘propext, Classical.choice, Quot.sound’. Hypothetically, if it were to return fewer axioms that would be fine but more is definitely not fine. So for example if it didn’t have Classical.choice that would just mean that it didn’t rely on the axiom of choice. If it includes ‘sorryAx’ that means the proof is incomplete and has a ‘sorry’ declaration somewhere, which is what you do to ‘stub out’ a proof while you’re working on it. If it includes something else that it’s only true relative to the soundness of those axioms. So if it said say ‘Classical.em’ that would mean it includes the law of the excluded middle so it would not be a valid proof in purely intuitionist logic but is fine in classical logic.

        Replies (1)
        1. My advice is that when you haven’t got a clue you should shut up rather than broadcast your cluelessness.

          “Running valgrind for example is for detecting memory leaks in software.”

          Valgrind does detect leaks (or at least, the memcheck tool does). That is not the most important thing that it does - so much so that leak reporting is not even turned on by default.

          The two most important things that it does is check memory addressability and initialisedness. Errors of those kind are Undefined Behaviour (in some cases a more recent official classification is Erroneous Behavior). Other tools like Dr Memory and address/memory sanitizers also perform similar verification.

          Once an application has encountered UB or EB you can no longer reason about its behaviour. From the perspective of a formal proof tool that would be a big problem.