Hacker News new | ask | show | jobs
by nl 9 days 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.

5 comments

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.

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.

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.

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.

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.
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.
"Make it work, then make it beautiful" (Joe Armstrong, Erlang and OTP in Action)
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.

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.
Why would Levent care about the Lean output, beyond “it works”?

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

And yet he's confidently claiming other people will clean up his turds.

Obviously he doesn't care, I get that.

It's actually quite common. Most of the time the first proof is far from optimal. For example they have a ridicule bound in some part like 10^(10^1000). Later people get better bounds and more accurate calculations, and after a few years the bound may be something like 200.

In the first proof nobody knows what they are doing, even the author. After a while, people understand the proof and the new theory and get better results.

> In the first proof nobody knows what they are doing, even the author. After a while, people understand the proof and the new theory and get better results.

The latter are the people doing all the hard work and getting little of the credit and praise.

Seems to work kind of like a CEO getting all the accolades and massive amounts of money on the backs of the productivity of all the workers.

Sounds like something you just made up in your head to get mad at. His remark.pdf says, "The argument is incredibly long at the moment, and while its formalization is finished and it is routine to produce a huge, unreadable document containing sufficient detail, in my view of my path I have just taken a step. I intend to do my best to understand and impart understanding of this argument and its certain simplifications, to speak about it, to write it properly."

Although, even if he had no intention to go further, I think he would be correct to believe lots of people are going to be thrilled to clean up the "turd" of a Riemann hypothesis proof.

Again, there's 17 million lines of turd to understand here. You go read the Linux kernel and tell me when you fully understand every part.
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

The Tau Ceti project is one effort along those lines: https://taucetiproject.org/
It relies on mathlib, but that doesn't cover as much math as was needed.
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.
If it's not relying on it, why not? Not discoverable enough or outdated or both?
It is relying heavily on it:

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

But most known mathematics is still not formalised.

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

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

Riemann proof is like pizza and something else, when it's good it's good, when it's bad it's still pretty good
Ah, so you've read it all?
Why is being algebra mean it's not a substantial contribution???
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.
Everything old is new again. See also: Principia Mathematica.