571 points · by nb-t · 1w ago · 370 comments
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!
Note that I qualify whether it does or doesn't do the job, not because I don't think AI should or shouldn't be awarded such an award, but because I, a mere random on the interwebs who is suddenly being bombarded with explanations of the Rieman hypothesis via Tik Tok/Reels, have no actual idea if it does hold up or not, and just have to go on what I am being told.
Note also - I do feel (based on the aforementioned reels) that this is more accessible for celebration than the discovery of the Higgs Boson particle which had people writing things up on my workplace whiteboard that, when I asked for explanation, they had no idea about. (A win for reels/tik tok science educators I think)
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
Why the hell not? Several LLM-generated proofs already turned out to be actually be exploits of Lean and not real proofs.
LLMs are pretty good at finding exploits. (Much better than they are at math.)
github.com/ityonemo/2b4m
My understanding has been that the reason that the original was so long is that it was formalizing lots of previously proven things for the first time, and, also a bit sloppy with it's imports in importing certain libs more than truly needed.
Is the compressed proof just a cleanup of the imports, or was the original providing formalizations of proofs that were not truly needed if we accept the proof in place of the formalization?
Indeed, what is the point of that? This is not an audit in any way.
Audit the instructions, build with ASAN, run Valgrind, build manually without lake. Anything to actually audit rather than engaging in a performative action.
Are these steps worth adding to Riemann@home. Let me know!
Also that it builds was point #4 of this letter from the Lean community: https://leanprover-community.github.io/blog/posts/riemann-hy...
If there’s steps you want to add, submit a PR!
during revision some researchers found there was a function called anyGeometry which returned True for any parameter. This is a work in progress that is crowdsourcing the proof building work to mathematicians under the false pretense that it was solved.
there’s a lot of valid math proofs being released right now (mostly by OpenAI), but they are less grandiose than a milennium problem (except for navier stokes), if you have enough nuance you can see between “AI is fake” and “The riemann hypothesis is solved”
During further revision, they found that was immaterial to the proof, it was dead code.
Also, Lean doesn't work like this. You can't get a Lean program to compile by asserting that false is true.
Please read https://leanprover-community.github.io/blog/posts/riemann-hy... and https://math.mit.edu/~drew/grh/ . The idea that noone has “looked for issues in the lean files” is beyond insulting to the very serious effort of many people to validate the proof.
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?
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
Edit: they just switched to the version in this repo.
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!
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
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 can bet this sort of proofs are going to give birth to new, beautiful math abstractions that help compress them.
We're seeing this everywhere in software engineering now.
Kurt Gödel showed how to find explicit examples of statements in formal systems that are provable in that system but whose shortest proof is unimaginably long. For example, the statement:
"This statement cannot be proved in Peano arithmetic in fewer than a googolplex symbols"
is provable in Peano arithmetic (PA) but the shortest proof has at least a googolplex symbols, by an argument similar to the proof of Gödel's first incompleteness theorem: If PA is consistent, then it cannot prove the statement in fewer than a googolplex symbols, because the existence of such a proof would itself be a theorem of PA, a contradiction. But simply enumerating all strings of length up to a googolplex and checking that each such string is not a proof (in PA) of the statement, yields a proof of the statement (which is necessarily longer than a googolplex symbols).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.
You mean producing an explanation that sounds believable to those with little expertise.
Not sure this is a good thing.
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.
https://github.com/lsernau/grh-lean/blob/main/grh/src/New/Up...
This is the non-compact 'Human Readable' version. Still pretty intense!
To be clear, it is not a human who verifies it's correct.
Lean does that.
Humans just have to verify that the statement of the theorem is accurate, and that it is rooted in mathlib.
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
Alas we’re about to stop caring about programming languages at all.
Sorry for ranting, point is, looks fine to me, and it probably reads easily for someone well versed in math, granted they take the time to learn Lean
>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.
Something that I wonder where is the "eureka" part of this proof, or perhaps the top 10 "eureka" moments.
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.
(Edit: I didn't realize you meant to ask for explanation for mathematicians. These might be "too layman" for you, sorry. I'll leave this comment here for future non-mathematicians passing by.)
In the strictest sense, without an axiom to replace AoC, it can never "show" us something: ZF is strictly weaker than ZFC, and can never prove anything that ZFC can't. In plain ZF, lots of things that we take for granted, like "a countable union of countable sets is countable" are no longer true (provable) -- although most of these intuitive things can be proven either by much weaker versions of AoC, or are also proven by common alternatives to AoC like the Axiom of Determinacy.
Lean's type system is also stronger than ZFC: according to Google it's more like ZFC + inaccessible cardinals.
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.
A bit of orchestration and review layer on top, taken from what the SWE have been building for the past year, is all you really need.
If you want to look at the absurd version of that - go look at some live streams of the GTA PC port; minimal prompts in modern harnesses get you there >90% of the time and all you need is an expert to have it change course/stay on track at a high level.
How difficult is it to learn to use Lean?
Any similar example to see the level of difficulty?
Lean is like a universal DSL. Learning the syntax is one thing, but learning the background domains of a Lean proof is another.
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?
I'm guessing you can get pretty far just using the models as almost a translator to/from Lean.
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.
> 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.
Here is a link to that comment: https://news.ycombinator.com/item?id=17663622
Edit: Curious how did you find that comment? ... Its also a throw away account... Was it you that posted it, or your memory is so great :)
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 often said that people don't see such changes coming because they can't intuitively understand a rising exponential.
What I find hilarious is that even mathematicians can't understand a rising exponential.
I think it's less that people don't understand exponentials and more that people passively and unconsciously reject predictions that in some way contradict their preferences. (In the case of left on energy, that was a degrowth mindset.) It helps to identify ones own preferences and consciously check if one is doing this.
And he is one of the OGs of ML. Turns out meatbags, regardless of their expertise, suck at predicting the future. And the negativists are often proven wrong and their comments age like milk. Something, something, bitter lesson, RL goes brr and whatever kids say these days.
Is the watermarking present in their math dumps?
Watermarking might frustrate expressibility of shorter proof step strings, so even if a mathematician working on a problem via centralized LLM inference assistance, then even if the mathematician is using proper prompts, the LLM is less likely to succeed in the simultaneous demands of fitting the watermarking and proof validity. Imagine being able to freely type characters or tokens, but every now and then it autocompletes a likely but not sought-after proof direction so that the watermark remains present...
Meanwhile frontier lab can pipe the same questions to their non-watermarking math research department.
Well intended AI safety features like watermarking can have unintended effects like centralizing math research.
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'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
Four Futures is the book I'm referring to.
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...
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.
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...
I feel like actual understanding be damned, we will ship slop as fast as possible until everyone who cared has drowned in it.