16 comments

  • spootydooty 59 minutes ago
    Nice! The more readable 300kloc proof even has a clear "known math" vs "new math" split and human-readable documentation all over the place. This should greatly aid with digesting it.
  • eamag 1 hour ago
    From comments

    > it's super absurdly funny how much time and resources have been put into tiny incremental gains to reducing the proof and Anthropic can just throw compute and better internal models at it and get a reduction of this magnitude in days

    • jychang 45 minutes ago
      I'm actually a little bit miffed about this announcement, because I was working on this in parallel. I'm about 70% done with the proof and it's at 35k lines of Lean right now. However, Anthropic beat me to the punch.

      This is PURELY with GPT-6.2 Sol, by the way. On a $100 ChatGPT plan, using only one agent, no subagents. My implementation plan could use subagents, but it ate up my weekly usage too quickly.

      Anthropic engineers with access to {way more usage, fast mode, and can afford to use subagents} obviously can move a lot faster than me.

      Also, CLEARLY 17 million lines is overkill. At my current rate of progress, I'm pretty sure that I can do it in even less lines of Lean than Anthropic. This is about 80% of the work being done by AI, with me give it nudges in ways that helps avoid the common pitfalls that happen if you fully give AI the reins.

      • buzzy_hacker 39 minutes ago
        Please keep up your effort and write up your approach in a blog post, people would love to read it still!
        • jychang 1 minute ago
          If I write a blog post, it will probably just be me feeding a bunch of bullet points of "what lessons I learnt" into an AI, and having the AI write it for me.

          The most important thing is to take regular Software Engineering skills and apply it to Lean. The basic concepts like DRY still hold. You also want to reuse Mathlib as much as possible.

          When you formalize a proof with Lean, you want to start off with the Challenge.lean statement file, which is good standard practice (which is surprising to me that the original proof by Alpoge lacked one). Make sure that's correct, and just replace the proof with a `sorry` statement. If your Challenge.lean is correct, then that means nobody can complain about you "proving the wrong thing". Then, counterintuitively, you want to liberally use `sorry` statements in your proof as you go. For software engineers, just think of `sorry` statements as NotImplemented exceptions. Track all the sorry statements in a centralized location, and have the AI build out the proof with breadth first search, not depth first. That's the biggest rookie mistake; most people tell their AI to do one component at a time, DFS style. You will get a much cleaner codebase if you do BFS.

        • thirtygeo 37 minutes ago
          Yes and what if it is different!!?
      • bigmadshoe 33 minutes ago
        Keep going! It's good to have both.
      • vatsachak 39 minutes ago
        I mean this just means that in the future we will have to pursue what we want without caring for whether a big lab scoops us.

        You did a great job and you should be proud regardless

      • sunir 25 minutes ago
        You can’t fight city hall. But you can learn something by doing.
    • hax0ron3 59 minutes ago
      Anthropic also has the AI context from the work that created the original proof. I wonder if that might have helped.
      • jychang 41 minutes ago
        No, I'm working on it with ChatGPT and I am creating a proof that is roughly the same order of magnitude in size.
        • traes 25 minutes ago
          Just because it's not necessary doesn't mean it wouldn't have helped
        • hax0ron3 24 minutes ago
          Interesting!
  • bananaflag 1 hour ago
    From ~17M lines to just ~76k lines, a 99.56% reduction.
    • w-m 50 minutes ago
      Meanwhile, the community-driven compression with a hundred contributors and thousands of pull requests sits at a mere 33% reduction.

      Why this huge discrepancy?

      https://riemann.verifytask.cn/

      • jychang 36 minutes ago
        1. That chinese website might be the wrong dashboard, I think there's a chinese group that's doing the same thing. The main Lean community work is at https://github.com/leanprover-community/riemann-hypothesis

        2. I disagree with the methods used by the Lean community repo, which is to try and shrink the original 17 million line Lean proof down. Instead, I believe it was much better to try and formalize the proof from scratch.

        I was in the process of doing that greenfield formalization by myself. I am about 70% done, and I am currently at ~35k lines of Lean right now. Unfortunately, I do not have access to Anthropic's compute; this is all done with a $100 ChatGPT plan running GPT-6.2 Sol. Since Anthropic has the resources to beat me to the punch, so I will just publish my current progress here: https://github.com/jamesyc/riemann-hypothesis

        Note that this is not my first rodeo; I have previously formalized a proof of the smallest Turing Machine that cannot be proven to halt in ZFC https://github.com/jamesyc/BusyBeaver/tree/main/ZF192

        • jwpapi 14 minutes ago
          I praise people like you!
      • kccqzy 3 minutes ago
        The community-driven one is here: https://rh-shrink.github.io/

        Edit: they just switched to the version in this repo.

      • rtpg 11 minutes ago
        The "obvious" thing is a mathematician with a proper understanding of both the tooling, math in itself, and good strategies.

        Useful tactics and thought processes are still a helpful skill. Maybe the model can come up with those, but if you already have a strategy with high chances of success then you can already do that!

      • bananaflag 45 minutes ago
        The internal models are smarter.
        • jeltz 37 minutes ago
          Or they just have access to way more compute.
          • conradkay 16 minutes ago
            Nah, you can see how little progress that project has been making recently. Even with 1000x compute I doubt it'd hit 80%

            These hill climb-y tasks tends to hit a limit based on model capability (and getting stuck making tiny improvements in bad directions)

      • lightbendover 42 minutes ago
        [dead]
    • 6thbit 43 minutes ago
      That's interesting. If the method used to reduce is applicable to arbitrary software libraries, we could be able to simplify a lot of cruft that may help making some systems easier to understand.
    • josephg 27 minutes ago
      Does anyone have any tips for simplifying llm output like this using LLMs? I’ve never had any luck getting Claude to simplify code unless I just reprompt.
      • perching_aix 15 minutes ago
        Consider: https://news.ycombinator.com/item?id=50611593

        Left a comment under it that may be more directly relevant for you: https://news.ycombinator.com/item?id=50648003

        Also relevant are the topic-specific comments from the Lean Zulip thread (linked elsewhere here) on how this was done:

        Luke Sernau:

        > Yes, it's based on the same proof. I'm not able to say very much about methods, unfortunately, but I had some luck with unrolling definitions to get a long, flat proof, looking for simplifications there, and then rolling them back up again. That way I could simplify across boundaries. Some stuff just needed entirely new arguments though, like getting rid of Vandiver.

        Devin Watson:

        > For RH I took the millions of lines of Lean from Alpöge and fully decomposed it into atomic binary math functions. Decomposing it to the atomic functions enabled structural deduplication, hash-consing, direct binary term reduction, DAG theorem inlining, and shift-aliasing and binary packing. I am sure there are other strategies for essentially compression that could be applied. Using a custom framework on top of Lean I have gotten it down to 528,681 lines of Lean since starting around lunch yesterday. Obviously I haven't been dumping this directly into the main GitHub repo but it has been guiding my work. I was hoping to have a fully condensed RH Lean package and paper some time tomorrow.

        Luke Sernau:

        > sounds cool! And way more aggressive than what I was doing. I would bet that there are some big wins still to be had doing that on the shorter version.

    • seizethecheese 52 minutes ago
      76k lines sounds like it would just about fit into a 1m token context window. Cool.
      • jychang 50 minutes ago
        It doesn't quite fit with the o200k tokenizer, I just checked.
    • qwrt1a 1 hour ago
      They needed to show off code golfing for Friday's stock support.
      • Sharlin 51 minutes ago
        Clearly the 17M lines was just because we're once again measuring productivity by lines of code output (don't tell the managers that you just reverted almost all of that progress by optimizing the proof!)
      • 12h590 58 minutes ago
        [flagged]
  • dward 1 hour ago
    • qwrt1a 1 hour ago
      Methods are not revealed. ANT is the new MSFT.
  • delegate 47 minutes ago
    I don't know Lean..

    But looking at the code, I can't help but wonder:

    Who on Earth can understand that ?

    Random example: https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr...

    Genuine question for people who know Lean: How realistic is it for a human to read this code, 'grok' it and verify that it is correct ?

    • ngruhn 38 minutes ago
      Lean syntax is alright. You can get used to it. The hardcore part is the jargon.

      > Scaled Hecke operators repair divisibility at inert primes pairing tops

      Literally every word here has a precise definition. Probability takes forever to get an intuition for all of that. But that's always the problem with math.

    • IsTom 6 minutes ago
      Besides this being the compact version, a decent chunk of it (typically everything after the first `by` in each declaration) is proof tactics, which are not really needed to verify that it's correct because they're mechanically checked by the compiler.
    • kachnuv_ocasek 26 minutes ago
      For me, this is more readable than many "human-language" paper proofs.
    • aeonik 34 minutes ago
      I don't understand the math or logic here, but the syntax is not half bad.
    • spootydooty 44 minutes ago
      The grh-compact version is not very readable (it is deliberately minimized), I'd read the 300kloc version in the grh folder instead, which looks fairly clean to me.
    • colechristensen 28 minutes ago
      Code in the sciences often looks like that. You have to have domain-specific knowledge to read it and there's no escaping that.

      >How realistic is it for a human to read this code, 'grok' it and verify that it is correct ?

      Data presented this way isn't simply read and understood, it often has to be studied.

  • gre 59 minutes ago
    Does this challenge Tao's point from a month ago that getting huge proofs with no insight is a problem? Are we already past that with smarter LLMs that can golf the proofs and explain them?
    • colechristensen 24 minutes ago
      >Does this challenge Tao's point from a month ago that getting huge proofs with no insight is a problem?

      It's reducing the proof to make it more likely that insights are possible.

      But no it doesn't reduce Tao's point.

      • drusepth 2 minutes ago
        Am I misreading/missing something?

        Why doesn't [the proved capability of reducing the proof size (by 99%!) to make it more likely that insights are possible] reduce the criticism of [no insights are possible from huge proofs]?

    • traes 24 minutes ago
      Not really. There's no guarantee that all proofs remain golfable.
    • c7b 51 minutes ago
      That was never a serious take to begin with. If there's one thing that LLMs are good at, it's taking stuff at any level of difficulty and explaining it to an audience with any level of expertise. It's just a matter of whether someone puts in the effort to produce a prettified version, which the big AI labs seem to have deprioritized against being first so far. My guess is that as soon as the list of impressive, open problems (like Millennium problems) is exhausted, we'll see more and more beautiful explanations of the results.
      • ipdashc 10 minutes ago
        > If there's one thing that LLMs are good at, it's taking stuff at any level of difficulty and explaining it to an audience with any level of expertise.

        I don't agree with this, personally. They're a great research tool, I certainly appreciate having them, but they can't compare to a well-written document or video. And interestingly this doesn't really seem to be getting better, while they're much better these days at writing code, retrieving information, etc. their ability to communicate that information is still about where it was a year ago. Claudlish sucks to read, it's better than nothing, but I certainly wouldn't say it's the one thing they're good at.

  • jwpapi 9 minutes ago
    It‘s really interesting. I just want to add that if there’s any bug with Lean or any library, AI would be as good in finding it as finding the proof. I don’t think so, but would be a nice plot twist.
  • aborsy 44 minutes ago
    I have no experience with Lean.

    How difficult is it to learn to use Lean?

    Any similar example to see the level of difficulty?

    • ajs1998 9 minutes ago
      Start with the natural number game. https://adam.math.hhu.de/#/g/leanprover-community/nng4

      Lean is like a universal DSL. Learning the syntax is one thing, but learning the background domains of a Lean proof is another.

    • kccqzy 7 minutes ago
      All Lean Books And Where To Find Them: https://lakesare.brick.do/all-lean-books-and-where-to-find-t...

      Depending on what you want to use Lean for. Do you want to prove math, or do you want to do software with some theorems sprinkled in?

    • conradkay 7 minutes ago
      I think by the time you go from 0->1 learning it, the internal models will have gone from 1000->2000.

      I'm guessing you can get pretty far just using the models as almost a translator to/from Lean.

      (ofc it can still can be interesting to learn, I'd just treat it more like learning Latin)

  • keyle 34 minutes ago
    Is anyone going through this stuff? [1]

    It looks like a miserable job; reading LLM produced code is bad enough but I feel lean could have been named 'thick'.

    [1] https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr...

  • lelandfe 1 hour ago
    > This repository is a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude.

    If this were “from Anthropic” surely it would be hosted on an Anthropic account?

    • perching_aix 1 hour ago
      The username resolves to Luke Sernau. His GitHub seems lively, but all his activity is constrained to private repos, all the way back to 2013, so it's not possible to check what he works on. On his LinkedIn, without being logged in, I can see Anthropic in the "current company" section, though most everywhere else I see him to be associated with Google DeepMind. Fed the repo to Astra and told it to hunt for malware concerns, came up clean.

      Definitely a thing to watch out for though, Lean is just arbitrary code after all, with metaprogramming facilities.

      I know this is circumstantial. It is not possible to prove identity matching like this, and the repo may contain novel prompt injection attacks to defend against LLM security audits (though I'm pretty sure Astra just ran some well directed rg commands). I did not have it sanitize the code before it ran its scan.

      If real, using the original 14.7M lines to 250K pages metric, this would imply a <1300 page exposition being well possible.

    • conradkay 1 hour ago
      Anthropic hasn't even acknowledged the Riemann proof yet, Levent just posted it on his own website (after asking Dario for permission)
      • londons_explore 40 minutes ago
        Perhaps because it was not exclusively made with Claude, or because it was done as a weekend project?
      • johnnyApplePRNG 1 hour ago
        [dead]
  • contron 56 minutes ago
    Whatever model did this we are not getting. Can't make that hella cash flow without pumping those output tokens. Alas, one day.
  • formerly_proven 26 minutes ago
    Why do they even bother putting a copyright license in a repo like this? The contained materials are clearly not copyrightable.
  • minraws 30 minutes ago
    This just proves my previous point that this is how it should have been released not the nonsense memo and 17M line proof and claim.

    I feel like actual understanding be damned, we will ship slop as fast as possible until everyone who cared has drowned in it. Is basically the subtext of all AI companies now.

  • xqcgrek2 44 minutes ago
    Really, at this point University trustees should disband math departments, and give their staff transition grants for retraining to do other stuff
    • randompartytime 27 minutes ago
      This is a terrible take. Mathematicians should now turn to tackling more interesting, richer problems.
      • traes 23 minutes ago
        I don't even understand what people mean when they say this. Prompting ChatGPT to tackle more interesting, richer problems? We couldn't even solve the ones that ChatGPT got, what meaningful contributions are we expected to make over it?
        • techpression 7 minutes ago
          Until LLM's can find the problems themselves, someone has to do that, I really hope science isn't done and we're just waiting for what we have so far to be solved.
    • charamis 31 minutes ago
      I wonder how that comment will age
  • smy20011 1 hour ago
    [flagged]
    • QuesnayJr 1 hour ago
      The original was 17,000k.
    • windowshopping 1 hour ago
      Do you understand that this represents something like a 500x reduction in size and is part of a continuing effort? Why would you be snarky and dismissive about this?
      • smy20011 1 hour ago
        It's unresponsive to release the first 17m loc version if it's such easy to reduce it by 500x.
        • ForHackernews 1 hour ago
          • qwrt1a 1 hour ago
            No, the 250,000 pages he mentioned in his GHR announcement referred to an alleged natural language proof PDF extracted from Lean by Claude. Everyone took it seriously, including the press. There wasn't really any indication in the announcement that it was a joke.
            • miloignis 1 hour ago
              Sure there was, here's the entire footnote:

                > I of course amused myself, and hit 250, 000+ pages.
                > Claude cutely called it the GRH..."book" — I looked at Theorem 1 and it began by noting that because the reals are totally ordered if σ̸ = 1/2 then σ > 1/2 or σ < 1/2.
              
              He said he literally did it to amuse himself and that the natural language proof starts with restating that the reals are totally ordered. So not only did he ask Claude to create it on a whim, he noted that the proof is clearly way too detailed to be useful.
          • lifthrasiir 1 hour ago
            Apparently the whole tweet is a joke as well. https://x.com/__alpoge__/status/2125062170207457583
          • thrance 1 hour ago
            That's it. I'm experiencing postmodern collapse, I can't tell what's real from what's fiction anymore. Was it actually a joke? What's funny in wasting everyone's time in examining millions of lines of bloated slop?
            • miloignis 58 minutes ago
              He told no jokes that were not true, the joke was how silly the result of asking Claude to make it a natural language proof was.

              He and Claude really did prove RH with a massive amount of Lean, he really did ask Claude to make a natural language proof on a whim, it really did come out to more than 250,000 pages, and he thought that number was funny.

              That's what people are calling a "joke", which I would argue is worse communication than anything Levent said, which I thought was very clear.

              Now the massive amount of Lean has been pruned way down. There will be a natural language proof that is also much smaller at some point.

        • ion_trapper 43 minutes ago
          Find something else to be mad about, this is becoming embarrasing.
        • nerder92 1 hour ago
          Who said it was easy?
          • smy20011 1 hour ago
            It takes 3 days. So yes, they could delay 3 days and release a much simpler version.
            • _ink_ 1 hour ago
              But they wanted to be first. Presumably they don't know how far OpenAI has been for the same proof.
              • pona-a 4 minutes ago
                [delayed]
            • zodiac 1 hour ago
              Nobody owes you a short proof - you're free to wait for a shorter one to appear if you find a long proof particularly objectionable for some reason. Speaking for myself, I'm glad that I got to know about the existence of the long proof on Nov 20 and the short proof on Nov 25, rather than nothing happening on Nov 20 and a short proof appearing on Nov 25.
            • ralph84 36 minutes ago
              One of the complaints about AI solving math problems is that it "wastes the effort" of people who were trying to solve the problem. In that case there is no reason to delay and waste even more effort.