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

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

567 points by nb-t 2 days ago | github.com | 369 comments on HN

View full thread · View on Hacker News

Comment thread (13)

  1. waste of time, look for the issue in the .lean files .

    during revision some researchers found there was a function called anyGeometry which returned True for any parameter. This is a work in progress that is crowdsourcing the proof building work to mathematicians under the false pretense that it was solved.

    there’s a lot of valid math proofs being released right now (mostly by OpenAI), but they are less grandiose than a milennium problem (except for navier stokes), if you have enough nuance you can see between “AI is fake” and “The riemann hypothesis is solved”

    Replies (2)
    1. > during revision some researchers found there was a function called anyGeometry which returned True for any parameter

      During further revision, they found that was immaterial to the proof, it was dead code.

      Also, Lean doesn't work like this. You can't get a Lean program to compile by asserting that false is true.

      Replies (3)
      1. He’s a crackpot and wrong.

        But you CAN get Lean to compile if you define 1+2=4 and define 2=3. It just won’t pass comparator checks.

        Replies (1)
        1. Why wouldn't it pass comparator checks? Maybe if the math libraries where imported from elsewhere so a comparator or other verifier can map the mathes, but as it stands this proof kind of reimplements a lot of existing math on its own, so it's not possible for a static checker to know wtf 'anyGeometry' means, since it's a new symbol. It's not like it can verify that anyGeometry has been corrupted as it would with the add/+ binary function.

          I feel math is having its rust or static typing moment where they discovered some techniques to avoid some type of bugs, but they don't realize you still can have semantic bugs and there's no static checker that will avoid those.

          Replies (1)
          1. You realize that’s exactly what comparator is designed to catch?
      2. You can totally get a Lean program to compile by asserting that false is true as an axiom

          axiom false_is_true : False
        
        Then you can prove anything by

          exact False.elim false_is_true
        
        However, the Lean proof for the Riemann Hypothesis didn't add any axioms. Instead, the `anyGeometry` objection was that the proof used true assumptions, which would supposedly render it invalid. This is of course complete nonsense, because all assumptions of a valid proof should be true, and it's only a problem if they're false (as in the axiom above).
        Replies (1)
        1. Fair enough, yes, thank you for the additional explanations.
      3. >During further revision, they found that was immaterial to the proof, it was dead code.

        First of all that's incorrect, anyGeometry was used in 8 places which linked to the main hypothesis. There was a github showing this, but github is currently unavailable (surprise), but this is verifiable.

        Second of all, if it is used by the main hypothesis (which it is) it's not necessary for it to directly invalidate the proof to show that the proof is invalid. Since a mistake like this shows that the original proof was relying on unproven assumptions. That the mistake was fixed and the new updated proof fixes this issue by making the assumptions explicit only means that the new proof is valid, but the old proof is still invalid!

        Make no mistake, the new repo by Apolge is not just a compacted version, it contains both a compacted version and a big version, but the big version contains a fix for this issue! And the repo is presented as new from scratch, it doesn't contain the fix for the issue as a commit or anything, it just pushes it under the rug!

        QED stop being nerd sniped into this.

        EDIT: The issue is not fixed on the shorter version from https://github.com/lsernau/grh-lean/ according to Nielsen

        " 12 No Escape in The Shorter Code Version; Same Height, Same Tautology, New Disguise The shortened formalization retains the same definitional height The same definitional construction of the height appears, under changed labels, in the short ened Lean formalization of Sernau et al.[6] (the compact edition of lsernau/grh-lean). In grh-compact/src/New/Endgame/ShortAndEnough.lean, line 32: /-- The main term h_main = mkU of the height, with U = ‘Data.dirCost‘ the cost of one direction.-/ noncomputable def Data.mainHeight := D.m * D.k * D.dirCost Where does this height come from? In AdmissibleData.lean, line 151: def dirCost := sum sigma, (D.jetSize (D.w 0 sigma)- D.primeSum (D.nominalWeight sigma) sigma) (In mathematical notation: ∑ dirCost := ) σ (jetSize(w0(σ)) − primeSum(nominalWeight(σ),σ)). 15 The main height is defined directly from the row-side (if we already proved it) numerical expressions containing prime sums. It is not obtained by independently measuring a geometric object. The subsequent comparison takes the form d(H −3L) ≤d(H −mR+L+E). The code then explicitly states:-- divide by d; h_main cancels (fine) The specific H required for the comparison is constructed from the very analytic data the argument purports to constrain. The shortened version retains this definitional construction under the labels mainHeight and dirCost. In plain English: Even in the much shorter rewrite, the height that is compared is not measured from geometry. It is built by multiplying together quantities that already contain the prime-sum expressions the argument is supposed to control. When the code divides by d, that height cancels, and what remains is a comparison of expressions drawn from the same row-side source. Height is compared to itself. That is a tautology, not a constraint on the zeros "

    2. The axioms used for the proof have been validated. I’m not sure why people who clearly don’t understand the work that has been done to validate the proof can be so invested in the proof being invalid.

      Please read https://leanprover-community.github.io/blog/posts/riemann-hy... and https://math.mit.edu/~drew/grh/ . The idea that noone has “looked for issues in the lean files” is beyond insulting to the very serious effort of many people to validate the proof.

      Replies (1)
      1. The axioms used for the proof have been validated. I’m not sure why people who clearly don’t understand the work that has been done to validate the proof can be so invested in the proof being invalid.

        The hubris is inmense, the discourse is roughly as follows:

        "The lean code compiles therefore its true" "But maybe there's a bug in lean"

        "the Lean kernel has been built 6 times (on 64 bit) and it has been verified by more than 1 verifier" "Maybe the verifier has a bug" "It has itself been verified by another verifier" "Maybe that is wrong" "Maybe"

        That one is a dead end (in this case, in July there was a proof that was allegedly found, but it was because a kernel bug made True == False.)

        "there's a (trivial) semantic mistake in the proof" "It's not being used" "It is being used actually" "It's not relevant, it asserts True, it needs to assert False in order to invalidate a proof" "An incorrect True assumption can be trivially inverted, even if this mistake (and it is a mistake) doesn't end up invalidating the proof, there's probably other mistakes, and whether or not they invalidate the proof is something that has not been proven"

        >The idea that noone has “looked for issues in the lean files” is beyond insulting to the very serious effort of many people to validate the proof.

        That's not what I'm saying, I'm saying people have looked in issues in the .lean files (as opposed to the lean kernel), and they find issues. The people that are verifying are just congratulating each other that the kernel has no bugs or whatever (the dead end)

        Replies (1)
        1. > That's not what I'm saying, I'm saying people have looked in issues in the .lean files (as opposed to the lean kernel), and they find issues. The people that are verifying are just congratulating each other that the kernel has no bugs or whatever (the dead end)

          That is just incorrect. There have been no issues which affect the truth value of the proof. Some of the people who are verifying may be just congratulating themselves but the vast majority of people I know who are involved in the verification effort are very seriously trying to understand the proof and verify whether or not it is correct, states and proves the correct proposition, uses unorthodox axioms or exploits the lean kernel in some way. Whenever there is a major result like this in mathematics people scramble to read and digest the result and see what else it could unlock. In this case there are lots of efforts to restate the proof in simpler/more human terms - I know there’s a professor who is digesting the proof into a set of homework exercises for his classes for example. There is also a parallel effort to formalise the Masullo (human) proof and repair it.

          Replies (1)
          1. >There have been no issues which affect the truth value of the proof

            https://philarchive.org/rec/NIEIOT-2

            present in both original and compacted versions

            Replies (1)
            1. Having some trivial tautologies in a proof that don't help with the proof doesn't invalidate the proof.