23 comments

  • spootydooty 5 hours 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.
    • tito 2 hours ago
      You can verify it yourself at home in a couple of hours.

      Inspired by SETI@home, we have a leaderboard and 18 independent validators so far who ran the 17M line proof. Now up and running with the 300k line proof!

      https://riemann-at-home.github.io/riemann-at-home

      • neuronexmachina 23 minutes ago
        Wow, that visual at the top really took me back.

        https://setiathome.berkeley.edu/sah_graphics.php

      • post-it 28 minutes ago
        I don't think anyone doubts that the lean code itself is valid. Though I guess it would be pretty silly if it turned out it wasn't, so verifying isn't a bad idea.
        • steve_adams_86 23 minutes ago
          Like 75% of the people in my Bluesky feed think it’s an AI bubble cope-fest and anyone who believes it is dumb as rocks. Well, maybe it would be reasonable to say it’s a mix of that and people who somehow think an AI proof doesn’t qualify as ‘real’. None of those threads have panned out to define what real is in this context.

          I have plenty of reservations about AI in various forms but I’m starting to think people engaged in this kind of denial are actually in a pretty bad place and actively sabotaging themselves by not facing reality. I don’t know. These are strange times.

          I have no idea why my feed is like this, either. I don’t intentionally follow any AI doomers or deniers. It’s a hot topic over there

          • bubblethink 9 minutes ago
            It's just selection bias. Bluesky is a self selected group of anti-twitter and anit-current-admin people.
          • whatshisface 21 minutes ago
            I'll bite. A discovery is a form of "first education," such as Columbus's education of Europe about the inhabited Americas. If there's no education happening there wasn't ever a discovery.

            My standards are machine - reachable but clearly the work is not done yet - it's being done in this very article. I look forward to the day I actually learn from any of this!

  • bananaflag 5 hours ago
    From ~17M lines to just ~76k lines, a 99.56% reduction.
    • gregdeon 2 hours ago
      It's worth noting that the 76k line version is heavily "golfed" (e.g., cramming the same content into fewer lines), which heavily hurts readability for the sake of a smaller line count. A more sane version is around 300k lines. Still, a massive reduction!

      The proof also still contains a few unused intermediate results. Sounds like these were neat findings where the proof of RH ultimately only needed a weaker version of the result, but folks at Anthropic thought it would be worthwhile to finish fleshing out the details.

      • DonsDiscountGas 1 hour ago
        > The proof also still contains a few unused intermediate results.

        This is exactly the type of thing that moves a field forward, that many people were (inexplicably IMHO) saying we wouldn't get with an AI proof

        • stingraycharles 51 minutes ago
          To be fair, since it’s only a few days later, it would have been better if Anthropic did that simplification before releasing it to the public. It was massive ammo that fed the trolls to just call it “slop” and a trash proof.
          • pishpash 47 minutes ago
            So why did they feel like rushing it? Was OpenAI close?
            • randallsquared 23 minutes ago
              Alpöge was personally impatient and they’d already made him wait until after the IPO.
    • w-m 5 hours 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 4 hours 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 maybe ~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, I guess 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

        • lwarfield 2 hours ago
          As somebody who tried the other way around, I think you made the right decision. I was able to condense down the proof by a lot, but in retrospect, it would have been much faster to just build it from scratch again.
        • jwpapi 4 hours ago
          I praise people like you!
      • rtpg 4 hours 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!

        • seizethecheese 2 hours ago
          There’s someone in this thread who is doing it on a $100 per month plan and claims to be under the Anthropic size so far. It looks like they are a software developer
          • rtpg 1 hour ago
            Sure, I just mean like.... someone who isn't just asking a robot to "make it smaller and cleaner".

            Like just a bit of direction can make you spend an order of magnitude less time on this kind of stuff

      • kccqzy 4 hours ago
        The community-driven one is here: https://rh-shrink.github.io/

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

      • bananaflag 4 hours ago
        The internal models are smarter.
        • jeltz 4 hours ago
          Or they just have access to way more compute.
          • conradkay 4 hours 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)

            • akoboldfrying 39 minutes ago
              When hill climbing gets stuck, you can always wheel out beam search.
      • traes 3 hours ago
        I unfortunately can't recall the exact source but I saw some Lean experts early on commenting that those efforts appeared to be a poorly organized dead end that were focusing on cheap "easy wins" that don't actually reduce the fundamental complexity of the proof, like inlining imports.
        • pishpash 42 minutes ago
          This does bring all sorts of weirdos out of the woodwork making it seem like anyone can do math. I mean yes it's more accessible now, but you need some skill. It has gone the other extreme towards pseudo intellectualism, or maybe a kind of anti-academic populism.
      • lightbendover 4 hours ago
        [dead]
    • josephg 4 hours 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 4 hours 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.

    • 6thbit 4 hours 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.
    • chubot 3 hours ago
      That is some ratio! I picture Alpoge just hacking like crazy on Claude and not looking at the code! I guess he has a strong intuition and just keeps piling stuff on in parallel.

      Then he makes it "go green", and doesn't care about cleaning it up

      I only did CTF once or twice, long ago, pre-AI ... but that's how I felt: just keep writing code and trying things. No cleanup. Whereas when I write code I plan to maintain, I probably do too much cleanup and refactoring.

      • tyre 1 hour ago
        He admitted to including a bunch of crap to troll people. It was unprofessional, especially with how much attention this got and the amount of people’s time he wasted.

        Still an incredible result! Not taking away from it. And with how much he poured into it, I can understand going a bit crazy and not empathizing with the eventual reviewers.

        But, it’s able to be optimized to such an extent because it was purposefully long before.

        • gus_massa 46 minutes ago
          > He admitted to including a bunch of crap to troll people.

          I don't think he said that.

          He admitted to publish the fist version that compiled (or something close to that) instead of taking a few days/weeks to cleanup it. Not ideal, but I don't mind it.

          IIUC he notice the English proof he would get was going to be too long and no human would be able to read it, so he decided to drop the English version and publish only the Lean version. The "joke" was pretending that the Lean version printed in A4 paper counts as an English version.

          Note: I expect that after some cleanup and a few years of study, we will get a "short" proof that enters in one or two books. But the guy didn't have a few years to sit on the proof and clean it.

    • seizethecheese 5 hours ago
      76k lines sounds like it would just about fit into a 1m token context window. Cool.
      • jychang 4 hours ago
        It doesn't quite fit with the o200k tokenizer, I just checked.
    • qwrt1a 5 hours ago
      [flagged]
      • Sharlin 5 hours 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 5 hours ago
        [flagged]
  • dward 5 hours ago
  • AIShill101 14 minutes ago
    Man at this point I wish somebody or a group of mathematicians actually managed to grok the core argument and write like an actual proof about it.

    Lean code is good and all ig but I'd really like to see an actual mathematical paper about this with someone who understands it presenting it at a conference.

  • gre 5 hours 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 4 hours 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 4 hours 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 3 hours ago
          All that means is that this particular proof wasn't ACTUALLY impossibly huge, just very poorly written. Tao's thought experiment concerns proofs that are fundamentally gigantic.
          • apetresc 2 hours ago
            Well presumably those problems were outside of human reach to begin with. So there’s no “opportunity cost” to having an AI proof vs no proof at all.
            • traes 11 minutes ago
              There's still an opportunity cost. If the problem is solved, people will no longer try to solve it, and won't discover anything along the way.
      • objektif 3 hours ago
        His point was never valid anyways. We will eventually understand what was going on it is not a secret. It is just that he did not come up with it.
    • traes 4 hours ago
      Not really. There's no guarantee that all proofs remain golfable.
      • jgord 4 hours ago
        does golf-able mean understandable by a human well trained in the domain ?
        • traes 3 hours ago
          Golf-able in the sense of code golf; writing a program in a minimal amount of characters, like how you try to get a golf ball in the hole in a minimal amount of strokes. My point is that not all long AI generated proofs are going to be possible to compress in the way this one was.
          • objektif 3 hours ago
            Why do we care as long as it works? We will understand it though even if it’s lacrossable.
            • animal_spirits 1 hour ago
              We should understand the equations if we are going to be using them in critical applications; you don't want to base an economic model off of an AI generated equation no economist understands
            • measurablefunc 2 hours ago
              It works until it doesn't and then whatever you thought you understood might turn out to be an illusion. There is a certain amount of complexity that people can deal with and 17M lines of Lean is beyond that threshold.
    • c7b 5 hours 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 4 hours 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.

        • senderista 2 hours ago
          Not all models are as bad at technical writing as Claude.
        • c7b 1 hour ago
          Terrence Tao himself has used AI to understand one of the first results in this wave that was published as a tweet with no explanations (counterexample to the Jacobian conjecture). Which we know because he published it. It's clear that he considered the discussion useful. I think it's a misrepresentation to say that he thinks that LLM-driven math research fundamentally cannot produce papers that aid understanding. I think the better representation of his intervention was that he was complaining about the form, specifically of the several-hundred papers drop by OpenAI, some with atrocious writing quality. I think it was a point well taken, and OpenAI has visibly tried to incorporate his feedback in the subsequent release. But right now their focus seems to be more on the perceived race with Anthropic.
          • ipdashc 1 hour ago
            They can help aid understanding, I don't disagree at all. An LLM is certainly the first tool I would reach for to start wading through (ironically?) LLM-generated code or math, or really anything where you're swamped with a large number of noisy/wordy documents.

            I just disagree that they're somehow going to make human explanation obsolete, as the parent comment was somewhat implying. Given the choice (which of course, isn't often available) I'd almost always want to read decent human writing over LLM writing, it's just better at keeping one's attention and conveying info

        • chasd00 2 hours ago
          Idk I point Claude at a mountain of bad code and ask it to produce docs + diagrams and exec summmaries regularly. It does better than any human I’ve ever worked with and effectively instantly too.
          • foltik 2 hours ago
            It only looks like it does a better job.

            If you haven’t spent the time to deeply understand and form your own mental model about the system it’s documenting, you won’t notice all the inconsistencies, contradictions, omissions, overcomplication, etc. in the AI output.

            • lgas 1 hour ago
              This was certainly true a year ago, but it seems to be less and less true with every passing day. I've had Claude successfully complete a number of tasks like this which all held up to thorough vetting.
  • delegate 4 hours 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 4 hours 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.

      • red75prime 9 minutes ago
        I'd say the hardcore part is the complex concepts that are compactly described with the jargon.
    • Paracompact 4 hours ago
      Most of the hard-to-grok code there is proof bodies rather than theorem statements. Assuming you can parse the statements, you can follow the proof pretty loosely and reconstruct it yourself. Such is the tradition in math generally

      Plus, these proofs are actually quite tame compared to human-written Lean proofs.

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

      You don't need to verify any of this, but for the final theorem statements. That's the point of formal methods.

    • nextaccountic 23 minutes ago
      This is just programming

      To properly understand a proof you need to run it interactively (or at least I do), which is kind of running in a debugger

      I mean the here's the gist of what takes to understand a proof

      To prove a theorem in Lean (or similar theorem provers; I'm actually more familiar with Rocq) you have goals, which are the things that are left to prove. The "main goal" is what you want to prove right now, and the other goals are other things you also need to prove

      When the list of goals becomes empty, you have proved the theorem. You start with a single goal: the theorem itself

      It proceeds like a game. Depending on what the main goal looks like, you can eliminate it calling some piece of code (there's more to it but let's say it's a tactic). But more often than not, eliminating a complex goal just pushes more, hopefully simpler goals into the goal list. So you need to be, well, strategic in what tactics you employ - you need to go into the direction of making things easier to prove, not harder

      So what looks like to run a proof interactively? You can go through the proof step by step, all the while you observe how the goal list changes. That's analogous to run a C program in a debugger, watching the local variables of each stack frame

      Ok so that's how you (or at least I would) understand a proof - run it interactively, which is like watching a professor write down each step of the proof in a white board, all the while she carefully keeps track of what's left to prove

      But anyway. The innovative thing about theorem provers in general is that to verify a proof you run a program (a kernel) which is just a trusted type checker. Unfortunately the official kernel is written in C++ and agents found bugs before (that made the kernel accept theorems that were false). However, there's multiple kernels, so if all of them type checks the proof (and the proof doesn't contain stuff like "sorry", which means it's not proved at all), there's a high confidence in the result

    • greenknight 2 hours ago
      Just for your reference. you linked to the compact version

      https://github.com/lsernau/grh-lean/blob/main/grh/src/New/Up...

      This is the non-compact 'Human Readable' version. Still pretty intense!

    • IsTom 4 hours 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 4 hours ago
      For me, this is more readable than many "human-language" paper proofs.
    • aeonik 4 hours ago
      I don't understand the math or logic here, but the syntax is not half bad.
    • spootydooty 4 hours 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.
    • rvba 3 hours ago
      This is nearly as ugly as ABAP, only misses the comments in German

      Something that I wonder where is the "eureka" part of this proof, or perhaps the top 10 "eureka" moments.

    • colechristensen 4 hours 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.

  • galoisrepresent 1 hour ago
    This (https://github.com/tzu-chen/slim) can be used to navigate the lean source and take a look at the shape of the project without setting up lean or building.
  • gus_massa 3 hours ago
    > and using only the axioms propext, Classical.choice and Quot.sound

    Is there an ELI35 explanation for mathematicians that don't speak Lean?

    • raincole 45 minutes ago
      In short: the keyword here is only. One of the possible sources of LLM hallucination is that it would invent new axiom and therefore "prove" anything in a meaningless way (RH is true because RH is true is an axiom). Only here means it didn't do that.

      Longer answer: in layman's terms:

      propext - treat "if and only if" as "is"

      Classical.choice - allow to pick an element from any known non-empty type, even you don't know what the element is

      Quot.sound - Quotient ("quot") means to split a type's elements into groups. It's called quotient because, for example, you can split all integers into two groups - odds and evens - by dividing them by 2.

      Quot.sound means you can go the opposite way: you can say "since 9 % 2 = 13 % 2, the group where 9 is the group where 13 is."

      If all these three sound very trivial to you, that's because they are. Our everyday math already assumes these hold.

    • kccqzy 3 hours ago
      Just read the official documentation. https://lean-lang.org/theorem_proving_in_lean4/Axioms-and-Co...

      The summary is that these are the axiom of propositional extensionality, choice, and a quotient construction (which implies function extensionality, i.e. what makes two functions equal).

    • kennethallen 3 hours ago
      The Generalized Riemann Hypothesis is proved making no assumptions and accepting no axioms except the basic tenets of the type theory Lean is based on. No "todo"s, no "assume this is true while I debug", no escape hatches used.
      • gus_massa 42 minutes ago
        So ... in this new version they added three well known axioms to get a shorter proof in exchange of purity? Are they necessary to use some libraries instead of rewriting them? Are they used in the original proof and I just didn't pay attention?
        • raincole 8 minutes ago
          No, the original super long version uses the exact three axioms too.
    • nialv7 3 hours ago
      propext is propositional extensionality. extensionality is basically "what does it mean for things to be equal?". propositional extensionality is saying two propositions are equal if they imply each other.

      Classical.choice is the axiom of choice.

      idk what Quot.sound is.

  • eggsome 2 hours ago
    Have any of the labs pointed a internal model at foundational lean proofs made by humans to see if they could be simplified?
  • aborsy 4 hours 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?

    • kccqzy 4 hours 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?

    • ajs1998 4 hours 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.

    • conradkay 4 hours 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)

      • traes 3 hours ago
        Still useful to be able to accurately state and read theorems in Lean IMO if you want to have any concrete idea what you're having your computer work on. For example, the recent statement from the Yang-Mills group[0] said that OpenAI's formal proofs establishing a Yang-Mills theory were actually too weak to do so and needed to be updated.

        [0] https://www.kitp.ucsb.edu/sites/default/files/4th-Statement-...

      • schiffern 3 minutes ago
        "Why bother thinking for yourself? Just offload it to (soon) a for-profit ad company."

        That's not quite what you said, yours is more nuanced, but I fear that's what some people will hear. Hopefully the risks are obvious.

  • formerly_proven 4 hours ago
    Why do they even bother putting a copyright license in a repo like this? The contained materials are clearly not copyrightable.
  • efitz 1 hour ago
    Just smiling to myself that GitHub (not Arxiv) has replaced the gatekeeping academic journals. You ca fake diagrams and make writing incomprehensible, but the code works or it doesn’t.
  • tescreal 3 hours ago
    The people complaining that the LLM "cheated" are running out of places to hide their magical belief. Quite an accomplishment on the proof. With two different proofs on the table, it'll make for a lot of wonderful insights going forward.
    • pixl97 3 hours ago
      Don't worry, they'll say the AI cheated when millions of micro-drones descend from the sky and exterminate us too. I'd rather they wake up and prevent a world where that happens rather than adamantly denying it could ever happen.
      • shimman 9 minutes ago
        Interesting thought, this would be the Exterminism future (Scarcity + Hierarchy) as envisioned by Peter Frase. Basically culling the lower classes because the elites don't need them any more.

        Four Futures is the book I'm referring to.

      • phoghed 2 hours ago
        Final human dies muttering something about it not actually being AGI
        • yewenjie 2 hours ago
          *Yann LeCun muttering...
  • eamag 5 hours 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 4 hours 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 with most the work being done by AI, with me giving it nudges (in ways that helps avoid the common pitfalls that happen if you fully give AI the reins).

      • buzzy_hacker 4 hours ago
        Please keep up your effort and write up your approach in a blog post, people would love to read it still!
        • jychang 4 hours ago
          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.

          The other counterintuitive thing is that you DON'T want to compile the Lean code all that often. If you let the AI do what it wants to do, it will try to compile the Lean code after every little change to some random function. That means your entire context is littered with dealing with that. Instead, have the AI do a solid chunk of work without compiling the Lean code, then do a build occasionally. Accept that fact that the AI occasionally will make mistakes and the build will fail and will need to be fixed, but fixing the mistakes is pretty quick and the AI is much smarter if you make it focused on math, rather than handling Lean compiles and checking it.

        • thirtygeo 4 hours ago
          Yes and what if it is different!!?
      • bigmadshoe 4 hours ago
        Keep going! It's good to have both.
      • vatsachak 4 hours 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

      • fcoury 3 hours ago
        Please keep going!
      • seizethecheese 4 hours ago
        Doing this with GPT 6.2 Sol is insane. My hat is off!

        The GPT-6.2 series seems to truly be bad when it comes to real people doing real stuff. So far we're seeing Sol 6.2 underperform even Mimo v2.6 Flash, a super cheap model that's completing tasks at $0.03 each vs. ~$2. Sol is in last place except for Grok 4.7 (which is a truly bad model). (Data from https://github.com/bottomless/agent-duel.)

        • jychang 3 hours ago
          Yeah, and I do have a Claude subscription too.

          That being said, I picked GPT-6.2 Sol because:

          1. I cannot afford Astra

          2. I found that GPT-6.2 Sol and Astra are better than Opus 5.5 for mathematics, even though I use Opus 5.5 as my main workhorse for coding. I suspect this is because 6.2 was posttrained a lot on mathematics and not coding... because OpenAI threw a lot of RL for math at 6.2 after Navier Stokes a few months ago, which is why it shines better than Claude at mathematics.

          3. Sol has much faster tokens/sec than Astra

      • sunir 4 hours ago
        You can’t fight city hall. But you can learn something by doing.
    • hax0ron3 5 hours ago
      Anthropic also has the AI context from the work that created the original proof. I wonder if that might have helped.
      • jychang 4 hours 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 4 hours ago
          Just because it's not necessary doesn't mean it wouldn't have helped
        • hax0ron3 4 hours ago
          Interesting!
  • lelandfe 5 hours 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 5 hours 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.

      Edit: actually, the core proof in this new minimized release is only 35 kloc, so the majority of the 76 kloc is still for formalizing pre-existing math: https://math.mit.edu/~drew/grhexplorer/#g=New

    • conradkay 5 hours 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 4 hours ago
        Perhaps because it was not exclusively made with Claude, or because it was done as a weekend project?
        • chews 35 minutes ago
          Given the beef with OAI... the former not the latter.
      • johnnyApplePRNG 5 hours ago
        [dead]
  • keyle 4 hours 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...

    • Paracompact 3 hours ago
      There are only two theorem statements here. When vetting a (trusted) theory as a mathematician, scrutinizing proof bodies tends to be the very last thing on the checklist. Top-down learning beats bottom-up.

      Plus, this big proof really isn't that bad. What a line like

      simp_rw [invDFT_apply, ← nsmul_eq_mul', AddChar.map_nsmul_eq_pow, ← smul_sum, @sum_comm _ _ ℕ, ← sum_smul, hψ.fourierTransform_eq_inv_mul_gaussSum]

      really means to say is simply, "simplify and rewrite the goal statement iteratively according to these equalities, in the specified directions." Understanding this in an interactive proof assistant just comes down to comparing the before-and-after of the goal state, only referring to the specific equalities mentioned if it's not obvious to you. The `grw` tactic used all over is similarly a rewriter.

      • keyle 1 hour ago
        I read what you wrote and I have absolutely no idea about what you're talking about! :-)

        In this, I appreciate you and quietly envy you.

        Maybe this is my 2026 xmas-break project...

  • pfdietz 2 hours ago
    Amusing comment from HN, Aug 1, 2018:

    > Is the Fields Medal going to still be relevant in 10 years, when most of the the major mathematical discoveries are made by deep learning and deep reinforcement learning systems? Already systems are learning to reason about concepts [1] and of course there is classical work on proof checkers [2]. It's very likely that the 2028 Fields medal will be awarded to a programmer, not some mathematical super-genius (assuming that the committee is fair, and not biased against machines).

    https://news.ycombinator.com/item?id=17662219

    The responses have aged like fine milk.

    • CamperBob2 2 hours ago
      I also liked the comment from one of the medal winners that was related in one of the thread comments, concluding that he wasn't good enough for mathematics:

         Accustomed to meeting the highest of standards, he 
         saw his dissertation as mediocre. Quietly, Venkatesh 
         started eyeing the exit ramps, even taking a job at 
         his uncle’s machine learning startup one summer to 
         make sure he had a fallback option.
  • contron 5 hours ago
    Whatever model did this we are not getting. Can't make that hella cash flow without pumping those output tokens. Alas, one day.
  • jwpapi 4 hours 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.
    • geysersam 2 hours ago
      Sure but if it found one, why wouldn't it tell us? I'd imagine it would be enough for the anthropic employees working on this to ask a hundred agents: "is this (part of the) proof utilizing any bugs in lean, if it is, demonstrate the bug with a minimal reproducible example" and since, as you say, the models are good at finding bugs they would likely find them quickly.
    • pixl97 3 hours ago
      I guess it depends on a number of factors.

      In one particular domain they may be hard to find. Said bug may be covered by other bugs or weird behaviors.

      I'd think where you have two different branches of maths that have typically not been used together is where these things may stand out. Like axioms or values that should ether be equal, or should not be equal violate those conditions.

  • minraws 4 hours 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 4 hours ago
    Really, at this point University trustees should disband math departments, and give their staff transition grants for retraining to do other stuff
    • keithnz 1 hour ago
      This is a lack of imagination, what it means for math is now you don't need to be a once in 100 year mind, a lot more mathematicians should be able to tackle much much harder problems. We should be able to enter a golden age of math where we do vastly more than ever before. Things like the GRH should become mundane and the path forward should open up to even more interesting things.
    • randompartytime 4 hours ago
      This is a terrible take. Mathematicians should now turn to tackling more interesting, richer problems.
      • traes 4 hours 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 4 hours 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.
          • traes 4 hours ago
            So we get to sit around all day trying to come up with interesting problems and plugging them into ChatGPT? It isn't even that "science is done," I just don't see how humans are going to be able to offer any meaningful intellectual value to the process.
            • pixl97 3 hours ago
              I mean, that day may happen unless of course we go extinct first, not out of the realm of possibility.

              With that said, if AI just provided us a life of hedonism would you take it? With all the Calvinism in the US it would be hard for a lot of us to accept. Some people just want to work until they die.

              • solyin 2 hours ago
                There's levels between unrestricted hedonism for all and destitution for you unless you're blowing someone rich. We can argue what level between those two extremes we want for society, arguably where we're at isn't great, but hedonism for all, I don't think is gonna work either. Not just for practical "who's gonna pay for it" reasons but also I just honestly don't think people can handle that. Not without a spirituality program which, well, the war on drugs is a failure, so I have no faith that we could do a successful spirituality program. I don't know shit though, but I vote every chance I can and I'm willing to be convinced.
              • traes 2 hours ago
                Of course if UBI was established I would feel fine. More likely than not, AI is not going to provide a life of hedonism, it is just going to take away the fun jobs that had a degree of mental stimulation to them.
                • chews 30 minutes ago
                  I think taste-making will never be part of the AI. Sure it can replicate all tastes, but it's the discovery that is magic.
      • bemtevi 4 hours ago
        Such as? There aren't too many interesting problems left in math.
        • rvba 3 hours ago
          "Everything that can be invented has been invented"
    • charamis 4 hours ago
      I wonder how that comment will age
  • smy20011 5 hours ago
    [flagged]
    • QuesnayJr 5 hours ago
      The original was 17,000k.
    • windowshopping 5 hours 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 5 hours ago
        It's unresponsive to release the first 17m loc version if it's such easy to reduce it by 500x.
        • ForHackernews 5 hours ago
          • qwrt1a 5 hours 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 5 hours 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 5 hours ago
            Apparently the whole tweet is a joke as well. https://x.com/__alpoge__/status/2125062170207457583
          • thrance 5 hours 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 5 hours 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 4 hours ago
          Find something else to be mad about, this is becoming embarrasing.
        • nerder92 5 hours ago
          Who said it was easy?
          • smy20011 5 hours ago
            It takes 3 days. So yes, they could delay 3 days and release a much simpler version.
            • _ink_ 5 hours ago
              But they wanted to be first. Presumably they don't know how far OpenAI has been for the same proof.
              • pona-a 4 hours ago
                Just give the original Lean code to auditors and ask them to vouch for them. Since they could literally repeat this process with any trusted expert, because it actually verifies in all kernels, you could repeat this ad infinitum, until the press is convinced, and tell everyone else the detailed proof will be released in the coming week.
            • zodiac 5 hours 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.
              • pona-a 4 hours ago
                They do? It's simply irresponsible to intentionally obfuscate your own work in such a way. Some comments above claim it might be literally as simple as the author finding it "funny" to have such a large number of pages restating the most basic mathematical facts in natural language, such as integers being evenly spaced, aka an attempt to sensationalize a discovery instead of actually helping the reviewers understand your own work. At most charitable, it's poor communication, which is absolutely a thing people get fired/disciplined for, brilliance be damned.
                • zodiac 3 hours ago
                  I’m not sure how you think this responsibility arises. If someone hypothetically releases a Lean proof of an open problem I care about but the proof is intentionally obfuscated somehow… I might be annoyed, but I didn’t pay the person or anything, there’s no responsibility relationship between us.
            • ralph84 4 hours 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.