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 (7)

  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 "