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.
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!
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.
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
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!
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.
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.
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
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.
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!
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
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.
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.
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.
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.
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.
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.
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.
> 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.
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!)
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.
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?
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]?
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.
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.
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
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.
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.
> 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.
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.
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
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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).
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.
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?
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.
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.
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.
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.
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.
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.
> 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
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).
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.
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.)
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.
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
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
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.
> 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).
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.
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.
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.
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.
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.
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.
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?
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.
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.
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.
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.
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.
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?
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.
> 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.
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?
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.
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.
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.
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.
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.
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.
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
https://setiathome.berkeley.edu/sah_graphics.php
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
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!
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.
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
Why this huge discrepancy?
https://riemann.verifytask.cn/
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
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!
Like just a bit of direction can make you spend an order of magnitude less time on this kind of stuff
Edit: they just switched to the version in this repo.
These hill climb-y tasks tends to hit a limit based on model capability (and getting stuck making tiny improvements in bad directions)
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.
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.
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.
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.
looks like it passed most of the tests
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.
https://www.ihes.fr/~rzhang/files/GRH%20note.pdf
It's reducing the proof to make it more likely that insights are possible.
But no it doesn't reduce Tao's point.
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]?
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.
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
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.
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 ?
> 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.
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.
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
https://github.com/lsernau/grh-lean/blob/main/grh/src/New/Up...
This is the non-compact 'Human Readable' version. Still pretty intense!
Something that I wonder where is the "eureka" part of this proof, or perhaps the top 10 "eureka" moments.
>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.
Is there an ELI35 explanation for mathematicians that don't speak Lean?
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.
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).
Classical.choice is the axiom of choice.
idk what Quot.sound is.
How difficult is it to learn to use Lean?
Any similar example to see the level of difficulty?
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?
Lean is like a universal DSL. Learning the syntax is one thing, but learning the background domains of a Lean proof is another.
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)
[0] https://www.kitp.ucsb.edu/sites/default/files/4th-Statement-...
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.
Four Futures is the book I'm referring to.
> 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
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).
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.
You did a great job and you should be proud regardless
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.)
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
If you want to collaborate, I'd be interested in giving free Sol / Neon inference to generate head to head battles on who does this work better.
If this were “from Anthropic” surely it would be hosted on an Anthropic account?
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
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...
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.
In this, I appreciate you and quietly envy you.
Maybe this is my 2026 xmas-break project...
> 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.
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.
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.
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.
Take this post on HN about maths mostly being solved by AIs 10 years in the future. Downvoted to hell: https://news.ycombinator.com/item?id=17663622
Which was then picked up by Reddit in their infinite wisdom: https://www.reddit.com/r/badmathematics/comments/9436cm/is_t...
And now mocked by the pro-AI people on Reddit: https://www.reddit.com/r/singularity/comments/1y5l3hu/discus...
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.