Treemap of the Riemann Hypothesis Lean Proof

(pengowray.github.io)

118 points | by pengowray 11 hours ago

8 comments

  • nl 8 hours ago

    This is great, because it graphically makes the point that the headline "17 million lines" is huge mostly because it contains formalizations of many long-proven theorems.

    It's not really fair to say "its rubbish because it is so big" when 13% of the modules are algebra alone.

    • Achshar 46 minutes ago

      Does that mean lean community needs a package manager of sorts? So that it can import all these as pre-proven packages that they collectively build on. I can't imagine this to be something that they already haven't thought of or done in some form.

      Ideally they sholuld be able to just do a `import riemann_hypothesis;` from a verified registry and then build on that.

      • BLanen 19 minutes ago

        In my opinion, it does, but it needs more than that. But it already has a package manager(lake) and the main package all these mathematical proofs and definitions and such are contributed to is mathlib.

        I would argue it needs something like content-addressed code/"packages" like the newish programming language unison. But it also needs more than that even. I would argue that a (cubical)-HoTT language/environment/proof-assistant is probably better for the future of mathematical research because it does not have "proof irrelevance" and does not treat different proofs as equals because they often take different "paths" and those paths are often interesting and analysable in themselves. I also would argue that it needs to have a sort of decentralised way of certifying computations of proofs that goes beyond the ad-hoc way they are currently done in lean/mathlib.

        These are all not original points by me but have often been stated as a sort of criticism of lean/math-lib(although I acknowledge them as a massively successful and admirable engineering feats) by other people way more knowledgable than me.

        • sd9 25 minutes ago

          They've been working on it, but there are centuries of maths to formalise and it's not trivial. Maths papers are kind of... hand-wavy, in a way. Getting a piece of machinery into Lean requires making everything absolutely concrete, down to the lowest level of detail, and some of the objects involved are very complex, built upon layers and layers of abstraction.

          Kevin Buzzard is a prominent mathematician who's been working on formalising FLT in Lean (https://github.com/ImperialCollegeLondon/FLT/blob/main/GENER...). He was one of the first mathematicians I encountered leading the charge on this, many many years before LLMs.

          There's a _lot_ of groundwork to build. But it's getting easier now of course.

        • adgjlsfhk1 7 hours ago

          About 10% trivially was unused. it's pretty clearly very sloppy and rushed. By next week, I would be surprised if the proof hasn't been shrunk by more than half.

          • DangIsATyrant 5 hours ago

            Which to myself, the rushed quality is a hint that they knew a human only solution was in review. and even if that solution was not complete, they desperately wanted to beat them too it.

            They want everyone to think human knowledge work is obsolete, its core to their mission. They obviously are impressing all of us with this progress but know that their end goal is not to impress you, but to replace you. They're very open about it.

            We should all be voting with our wallets and not using Anthropic products. You can use claude code with any model if you absolutely need that harness, but getting that extra 5% performance by paying for opus 5.5 is absolutely not necessary for 95% of tasks.

            • Scea91 4 hours ago

              If I had a compiling Lean proof of GRH, I'd also be releasing that ASAP. It is a complete solution. What value does witholding that to polish internally hold when now the whole world can polish it?

              It makes little sense to hold Lean proofs to the same comprehensibility and elegance standards as classic proofs. Classic proofs need that to be verifiable, Lean doesn't.

              • shawabawa3 5 hours ago

                Much more likely that they suspected openAI could scoop them any second and so published as soon as possible

                • nl 3 hours ago

                  Or... there is a cut-throat competition between OpenAI and Anthropic.

                  OpenAI landed a couple of important results and Anthropic needed a result, especially around their IPO date...

                  • Amekedl 2 hours ago

                    He is right. Ppl show me stuff they do with opus, I keep offering deepseek, the ones who took me up on that are dumbfounded by how much cheaper (and sometimes how much quicker) it is.

                    It also never been easier to do that, because of how dirt cheap it is.

                    • HotHotLava 4 hours ago

                      This is the same guy who was beaten on Navier-Stokes by a month or so.

                      He wasn't worried about some random math professor suddenly solving the problem that all living mathematicians expected to be out of human reach for at least 20 years (and from what we know so far, Massulo didn't), he was worried about OpenAI sniping him again.

                    • lou1306 3 hours ago

                      "Make it work, then make it beautiful" (Joe Armstrong, Erlang and OTP in Action)

                      • 0c3ca83 34 minutes ago

                        It tells me that they didn't care to look at the output, and don't understand anything they produced.

                        They don't know or care if it'll shrink, because they don't know or care what the proof contains.

                      • utopiah 5 hours ago

                        I don't know Lean but couldn't those be proven dependencies in a public repository with DOIs or equivalent? Feels like a lot could be factored this way.

                        Edit: Reservoir

                        • QuesnayJr 5 hours ago

                          The Tau Ceti project is one effort along those lines: https://taucetiproject.org/

                          • nl 3 hours ago

                            It relies on mathlib, but that doesn't cover as much math as was needed.

                            • pas 5 hours ago
                              • utopiah 5 hours ago

                                If it's not relying on it, why not? Not discoverable enough or outdated or both?

                                • vidarh 4 hours ago

                                  It is relying heavily on it:

                                  > each module imports 4.3 other modules of the project on average, and 136,003 modules import all of Mathlib

                                  But most known mathematics is still not formalised.

                                  • 0c3ca83 31 minutes ago

                                    It's LLM slop. Have you ever looked at what an LLM produces? It's always bad quality by default. You still have to look at every line and reverse engineer the structure, then fix it, if you care about quality.

                                    And at 17 million lines of output, this is the default.

                            • jrflo 8 hours ago

                              Grant Sanderson of 3b1b said in an interview that he thinks Math will become a data-rich field. I wonder if something like this is the beginnings of that.

                              (Sidenote, I love how you can take the Zeta function of the entire map via that slider, very fun)

                              • pengowray 7 hours ago

                                I've been really enjoying the 3b1b Podcast (new and old episodes) to get perspectives of mathematicians

                              • qwertyforce 6 hours ago

                                I think we should have some sort of a competition, shortest RH proof in lean. Maybe shorter proofs are simpler

                                • pengowray 6 hours ago

                                  I agree with the sentiment, but there are competitions to do things with the shortest amount of code in other programming languages, and it does not lead to anything simple or understandable.

                                  • qwertyforce 5 hours ago

                                    Nice example with code golfing, indeed most code golfing code I've seen is awful :)

                                  • Philpax 59 minutes ago

                                    There's several of these now. Here's one: https://rh-shrink.github.io/

                                    • luckystarr 6 hours ago

                                      Proof golfing

                                    • wscottc 5 hours ago

                                      Excellent! I made something in the same spirit, working with Claude: navigable SVG posters of the proof's dependency graph from the reading blueprint, e.g. Main.lean theorem by theorem, chapter by chapter, the longest chains of reductions, new vs. published results, and every statement by depth from the main theorems.

                                      All pinned to sources.

                                      https://scottcochran.github.io/riemann-diagrams/

                                      Credit to Levent Alpöge, the riemann-blueprint authors and the leanprover-community mirror. Everything drawn is theirs.

                                      • d_silin 1 hour ago

                                        Proof tree looks like a CPU floorplan.

                                        • pengowray 6 hours ago

                                          Wanted to get a feel for the size and scope of the 17 million line machine-verifiable solution to the Riemann Hypothesis. Something which was once the holy grail of mathematics, and now seen as a threat, an attack, or dismissed as missing the point. I don't expect to understand it, as it is now, any more than I expect to understand a rainforest.

                                          • 1970-01-01 8 hours ago

                                            Still calling it a hypothesis, eh?

                                            • mmmmmmmike 6 hours ago

                                              I think it’ll be called the Riemann Hypothesis forever. People still generally refer to the “Poincaré conjecture”, despite it being resolved by (Hamilton and) Perelman. In this case, naming the theorem after the first person to discover a proof seems even less appropriate.

                                              • QuesnayJr 5 hours ago

                                                They still call "the Riemann hypothesis over finite fields" by that name, even though it was a conjecture of Weil's, proven by Deligne.

                                              • pengowray 50 minutes ago

                                                Funnily enough, I deliberately avoided putting the word hypothesis in the repo name/url

                                              • chvid 6 hours ago

                                                I am somewhat annoyed with Anthropic (though it is on brand for big AI).

                                                It is well within their resources to publish a polished human-readable version of this proof that at least in broad terms can be understood by a professional mathematician.

                                                Yet they choose to publish it in a footnote to a sloppy written pdf, knowing very well the impact a proof of GRH would have.

                                                • chvid 5 hours ago

                                                  I am reminded of this statement signed by a host of prominent maths people:

                                                  https://mathandai.org

                                                  A Severe Misalignment of AI in Mathematics

                                                  Over the last few months, the mathematical capabilities of LLMs have improved dramatically, to the point that they can solve major outstanding problems in many fields of mathematics. However, the push by AI companies to solve mathematical problems as a benchmark is detrimental to the science of mathematics, and to the mathematical community. The goals of the AI companies and the goals of the mathematical community are severely misaligned. We see these as part of broader alignment issues impacting other scientific and creative professions, as well as the whole of society.

                                                  • pengowray 4 hours ago

                                                    There's really no good way to do it. It would also be weird to keep it a secret while Alpöge "mastered a massive neighbourhood around its mathematics" and spent some time getting the copy editing advice and poetical assistance he needed for a coherent announcement. Mathematicians would have been crying to just release the lean files.

                                                    • chvid 4 hours ago

                                                      There is certainly a better way; what Ant is doing here is incredibly disrespectful to the field of maths.

                                                    • throw310822 4 hours ago

                                                      > It is well within their resources to publish a polished human-readable version of this proof

                                                      You remember what happened to that guy who wanted to publish a polished, human-readable version of the GRH, right?

                                                      • chvid 4 hours ago

                                                        You can announce and pre-publish without the incredible arrogance and disrespect that is on display here.

                                                        • throw310822 3 hours ago

                                                          How?

                                                          • chvid 3 hours ago

                                                            Have a Dario, Levent and some maths professor appear in a video and announce this potentially massive discovery and set up a committee to verify and understand the proof. Open source the progress so far.

                                                            What they have done instead is immature guerrilla marketing unbecoming of a company as significant as Anthropic.

                                                            • throw310822 2 hours ago

                                                              Seems to me exactly what they've done, minus the video. Announced the discovery, open sourced it and let anyone look into it and verify it.

                                                              • otabdeveloper4 2 hours ago

                                                                If superintelligence and AGI were real, then Anthropic wouldn't be itching for an IPO.