Better HN
topnewbestaskshowjobs

Treemap of the Riemann Hypothesis Lean Proof(pengowray.github.io)

196 points · by pengowray · 1d ago · 77 comments

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

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

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

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

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

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

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

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

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

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

btown1d ago
It makes me curious whether vendoring/reimplementing dependencies is actually, in an odd way, optimal for these frontier proofs.

I've certainly seen that when doing normal coding, LLMs will often take documentation of used libraries at face value, and try to save context by not reading the underlying implementations into context. This is genuinely useful!

But for math, is there a use to a set of agents being forced to reimplement the entire stack of formalized dependencies? Each sub-effort would leave artifacts, and send messages to other sessions, on ways in which the underlying mechanics or subtleties might prove helpful to the broader effort. No need to fight terseness with system prompts, when a full survey of the broader field is impossible to avoid.

kccqzy1d ago
A package manager doesn’t help when there are insufficient human volunteers to produce the packages in the first place. In practice the only package relevant is Mathlib. There are just not enough people working on it to formalize all sorts of already proven theorems.
adgjlsfhk11d ago
About 10% trivially was unused. it's pretty clearly very sloppy and rushed. By next week, I would be surprised if the proof hasn't been shrunk by more than half.
lou13061d ago
"Make it work, then make it beautiful" (Joe Armstrong, Erlang and OTP in Action)
0c3ca831d ago
It tells me that they didn't care to look at the output, and don't understand anything they produced.

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

QuesnayJr1d ago
He and Buckmaster tried doing it the careful way with Navier-Stokes, and then OpenAI blew past him to solve the problem. He's not dumb enough to make the same mistake twice.
scrollaway1d ago
Why would Levent care about the Lean output, beyond “it works”?

What on earth do you think was going on during the steering?

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

Edit: Reservoir

QuesnayJr1d ago
The Tau Ceti project is one effort along those lines: https://taucetiproject.org/
nl1d ago
It relies on mathlib, but that doesn't cover as much math as was needed.
lanstin1d ago
As someone for whom this proof is way out of my league, it is fascinating to see how many fields of mathematics are in the Lean proof. Fields, where I know one fact to illustrate what it is, have 3% of the subdirectories etc.
pas1d ago
https://lean-lang.org/use-cases/mathlib/
utopiah1d ago
If it's not relying on it, why not? Not discoverable enough or outdated or both?
Davidzheng1d ago
Why is being algebra mean it's not a substantial contribution???
gus_massa1d ago
It probably means "It's well known algebra that nobody formalized before for lack of resources or because Claude likes to copy/paste it instead of linking to mathlib". It should be in a library, not in the main proof. Expect that to be refactored in a few weeks.
odyssey71d ago
Everything old is new again. See also: Principia Mathematica.
jrflo1d ago
Grant Sanderson of 3b1b said in an interview that he thinks Math will become a data-rich field. I wonder if something like this is the beginnings of that.

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

pengowray
OP
1d ago
I've been really enjoying the 3b1b Podcast (new and old episodes) to get perspectives of mathematicians
alansaber1d ago
As reality is data-rich, it follows that the toolset would be the same, no? To me this is all part of the same movement, meta-analysis and scaling for every task.
qwertyforce1d ago
I think we should have some sort of a competition, shortest RH proof in lean. Maybe shorter proofs are simpler
pengowray
OP
1d ago
I agree with the sentiment, but there are competitions to do things with the shortest amount of code in other programming languages, and it does not lead to anything simple or understandable.
Zambyte1d ago
Code golfing often measures by character count or things like that, which leads to hard to understand results due to short symbol naming. This seems avoidable by measuring by something other than character count.

It also leads to hacks taking advantage of underlying hardware or runtime quirks, which are anything but easy to follow. I don't know Lean, but it seems like it wouldn't expose abstractions that would allow for these kinds of hacks either.

If there was a challenge that was something like "provide GRH in the fewest Lean symbols", that seems like it could produce comprehensible results.

qwertyforce1d ago
Nice example with code golfing, indeed most code golfing code I've seen is awful :)
Philpax1d ago
There's several of these now. Here's one: https://rh-shrink.github.io/
imtringued23h ago
This guarantees that nobody will ever look at the original proof.

It also means that if you think someone is going to publish a proof, you should publish your own slop proof early just to reserve the seat. Even if the proof is wrong and the second guy turns up, you could just update your proof with a smaller one.

luckystarr1d ago
Proof golfing
Davidzheng1d ago
As much as I really really hate appeal to authority, I think LLMs as of late November 2026 still aren't very reliable at writing mathematics well--so I think in this specific instance, it's better to leave it to mathematicians to digest and simplify it simply bc it's not always about minimizing lengths but it's kind of a minimizing maximum local complexity sort of game
westurner1d ago
From "Yes, 17M lines of Lean is a lot" https://news.ycombinator.com/item?id=50607668#50611572 :

> How to tree-shake Lean4 .lean code to produce only the transitive closure for one or more selected results?

> Then, how to calculate branch coverage for lean? Of only the transitive closure? As a test, is that even distinct from compilation with no worries?

lou13061d ago
It is happening as we speak: https://riemann.verifytask.cn/
wscottc1d ago
Excellent! I made something in the same spirit, working with Claude: navigable SVG posters of the proof's dependency graph from the reading blueprint, e.g. Main.lean theorem by theorem, chapter by chapter, the longest chains of reductions, new vs. published results, and every statement by depth from the main theorems.

All pinned to sources.

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

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

d_silin1d ago
Proof tree looks like a CPU floorplan.
pengowray
OP
1d ago
Wanted to get a feel for the size and scope of the 17 million line machine-verifiable solution to the Riemann Hypothesis. Something which was once the holy grail of mathematics, and now seen as a threat, an attack, or dismissed as missing the point. I don't expect to understand it, as it is now, any more than I expect to understand a rainforest.
1970-01-011d ago
Still calling it a hypothesis, eh?
mmmmmmmike1d ago
I think it’ll be called the Riemann Hypothesis forever. People still generally refer to the “Poincaré conjecture”, despite it being resolved by (Hamilton and) Perelman. In this case, naming the theorem after the first person to discover a proof seems even less appropriate.
QuesnayJr1d ago
They still call "the Riemann hypothesis over finite fields" by that name, even though it was a conjecture of Weil's, proven by Deligne.
alansaber1d ago
Once enough of this generation dies off, the common nomenclature will change.
pengowray
OP
1d ago
Funnily enough, I deliberately avoided putting the word hypothesis in the repo name/url
bemtevi1d ago
Fermat's last theorem was called a theorem long before it was proved. Go figure!
1970-01-011d ago
Because he claimed to have a proof but the margin just wasn't large enough to write it down.
chvid1d ago
I am somewhat annoyed with Anthropic (though it is on brand for big AI).

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

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

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

https://mathandai.org

A Severe Misalignment of AI in Mathematics

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

ericmay1d ago
When Marc Andreessen wrote Software is Eating the World [1], for some reason mathematicians thought they would be immune.

[1] https://a16z.com/why-software-is-eating-the-world/

nifets1d ago
you cannot afford to do this with OpenAI looming in the other corner
pengowray
OP
1d ago
There's really no good way to do it. It would also be weird to keep it a secret while Alpöge "mastered a massive neighbourhood around its mathematics" and spent some time getting the copy editing advice and poetical assistance he needed for a coherent announcement. Mathematicians would have been crying to just release the lean files.
chvid1d ago
There is certainly a better way; what Ant is doing here is incredibly disrespectful to the field of maths.
SubiculumCode1d ago
Waahhhhhh!!! We were the smartest elites of magical writs, now we are common chaff. Wahhhhhhhhhh!!!

As a society, we will need to figure out what to do about AI, but please do spare us the objections that are obviously rooted in self-pity.

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

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

chvid1d ago
You can announce and pre-publish without the incredible arrogance and disrespect that is on display here.
throw3108221d ago
How?

The Lean proof of the Riemann Hypothesis: a treemap

An explorable map of the 175,187 Lean modules in Levent Alpöge

pengowray.github.io