logoalt Hacker News

utopiah • last Wednesday at 8:45 PM • 40 replies • view on HN

I'm wondering how much of that would have happened with "just" Lean, MathLib, and a lot of computing power but no LLM or GenAI.

Was this "great Mathocalypse" already in the making for say a decade (Lean 2013, MathLib 2017, etc with obviously much older initiatives) and the timing is only fortuitous now because large corporations subsidize their compute time for marketing purposes?

Sure finding a slightly faster way than brute force helps, including with unpublished on-going work (pretty precious at the frontier), but only in so far as the groundwork was already there.


Replies

xg15 • last Wednesday at 9:21 PM

(Not from the field, so just speculating here.)

I think, "in theory" you may be right, that if everything had already been formalized in Lean, then some automated solver might have made progress. But the thing is, it wasn't. From what I've understood, a good part of the work the agents did was to formalize huge chunks of previously "unformalized" math into Lean. That seems like exactly the tasks that LLMs should excel in.

I remember reading a comment thread here at the beginning of the AI craze where Lean was dismissed as a curiosity: It was a beautiful project but far too complicated and time-consuming to use to be practically useful.

I feel that this is exactly the class of problems where LLMs shine right now: Problems where we know how we could tackle them "in theory", but which would have required an infeasible amount of mental energy and specialist knowledge to do in practice. All the coding and reverse-engineering stuff we're seeing right now is in the same category.

➕ show 9 replies
reasonableklout • last Wednesday at 9:02 PM

"Slightly faster than brute force" is really underselling it. Do you think that Claude Code is doing something like brute force when it writes a computer program for you?

Of course this is not to understate the contribution of Lean. But I would say it was far more important to provide the verification mechanism for RLVR in training these skills into the models.

➕ show 10 replies
nl • last Wednesday at 11:07 PM

I think people here are being way too polite.

> I'm wondering how much of that would have happened with "just" Lean, MathLib, and a lot of computing power but no LLM or GenAI.

To the nearest approximation none of it.

If Lean didn't exist, something else could have been invented - the field of formal verification has many other branches that could have worked equally as well.

But there is zero evidence that it was allowing mathamaticans to prove things quicker. Before GenAI it was mostly used to formalize existing proofs to check they were correct.

And you can't just brute force math proofs.

➕ show 2 replies
solomonb • last Wednesday at 9:03 PM

I've been personally invested in these tools for a long time through my interest and experience in functional programming. Its been a wild ride to see their exposure and utilization blow up in the past year.

Before AI the only people really interested in this class of proof checkers was a narrow slice of mathematicians/logicians, programming language theory/type theory researchers, and those of us from the functional programming world who went off the deep end. Outside of this cohort tools like Lean, Agda, and Rocq (formerl Coq) were essentially unheard of.

I think most of us invested in the space assumed dependently typed languages were the future but that that future was many years away from hitting the mainstream.

➕ show 4 replies
Turneyboy • last Wednesday at 9:38 PM

Absolutely none of this would be happening just with Lean.

Lean allows us to trust the results that the LLMs output but they come up with genuinely brilliant ideas in the research process and execute the diligently. They create proofs in text form and then formalize them after. It's the first part that is the magic here. They are genuinely just smarter than humans in this aspect.

➕ show 3 replies
boothby • last Wednesday at 9:00 PM

It is my belief that metamath would have gotten us here without LLMs, without the despair and gnashing of teeth. And possibly not within my lifetime. It would still take supercomputers, it would still take an incredible amount of work transcribing papers into Lean, but proofs are algorithms and enumerable. Powerful proof strategies are subroutines. In this view, LLMs are really great search heuristics.

QuesnayJr • yesterday at 9:09 AM

None of it would have happened, which is why the Mathocalypse lines up so neatly with advances in models. For OpenAI's big drop in October, less than half of the papers can with any Lean at all.

They're not brute-forcing it in the usual sense. The AIs have the advantages of being untiring machines, but they also have the ability to make the kind of high-level connections between results that previously only humans possessed.

imeanwhatdoikno • last Wednesday at 8:59 PM

I don't think you can brute-force your way to a multi-million line program that compiles

➕ show 1 reply
ipdashc • last Wednesday at 8:59 PM

> with "just" Lean, MathLib, and a lot of computing power

I was wondering the same. I think it's fair to say that LLMs are the crucial piece of the puzzle, but it feels like more credit should go to the Lean/MathLib people.

➕ show 1 reply
wwarner • last Wednesday at 10:36 PM

let's estimate. the grh proof is 17M lines, let's say 100M characters. there are 26 letters in the alphabet, so there are about 10^141M combinations to search through. I.e. imagine breaking a password with 100M characters.

These models, when they use "chain of thought", are probably doing exactly what the brain does when it's learning something difficult for the first time, using token prediction to create a short explanation, then evaluating its quality, and iterating. [0] . This is a way of guiding a search through an otherwise impossible space of possibilities.

0. https://preposterousuniverse.com/podcast/2026/08/10/363-chan...

zamadatix • last Wednesday at 9:01 PM

What's amazing is not that we are getting answers, it's precisely that we are getting answers at the rate of days or hours instead of decades or years. I'm not sure it really makes sense to then say "but we would have eventually gotten the answers, right, so why all the focus?".

But yes, we needed computers and a language to use with them and a basis in math for this to happen. If you had (somehow?) made an LLM without having significantly made ways into doing those things then it'd be a different type of universe. Whether we had specifically had Lean already or not is probably not as relevant as much as a small starting offset likely much less than the length of time it takes us to find a single proof of this magnitude.

That said, thanks to the Lean folks for having it handy & particularly for getting the world to understand & trust that kind of approach ahead of time.

➕ show 1 reply
0o777 • last Wednesday at 11:58 PM

No, the openai/math repo has novel math contribution papers that were one-shotted in 3-4 hours without tool calls. The included Lean proofs in those papers were merely addendums to the main deliverables (the papers) to make it easier for humans to verify the proofs.

w4der • last Wednesday at 9:46 PM

I also wonder how much of this proofs would already exist if the same trillions going into AI nowadays had gone into "classical" math research over the past 20-50 years. Is an army of human mathematicians equivalent to a swarm of agents, just over different time scales?

ngruhn • last Wednesday at 10:17 PM

Absolutely not. Lean is necessary for this breakthrough but no where near sufficient. It's a reliability tool, not a productivity tool. If anything, it makes proofs harder. It's like asking if airport security makes the planes board faster.

CoolestBeans • last Wednesday at 9:07 PM

As skeptical as I am, the search space for proof is far too large that without something resembling "reasoning" or at least multidimensional correlation. It would take far too long. Of course, the sheer scale of compute and the ability to try endless strategies without tiring is a necessary component of agents' success in math proof. But note that previous LLMs were not this successful at math proofs and they also had access to vast amounts of compute.

Buttons840 • last Wednesday at 9:48 PM

The opposite is also interesting. Would this have happened without Lean?

I only scratched the surface of De pendant Types long ago with The Little Typer[0], but there is basically nothing that cannot be verified correct at compile time, so long as we're smart enough and write the code.

Well, now we have a smart tool that can write lots of code. Why are we not verifying everything at compile time?

Let's say we want to write a function that: 1) receives data over the internet 2) returns that data so long as it is a valid solution to a Sudoku puzzle 3) returns an error otherwise 4) is allowed to print to a debug log, but nowhere else 5) is NOT allowed to access the local file system 6) cannot change global variables

We can write a function that does all of this and verify that all those condition are always true AT COMPILE TIME. We can make it so those things are ALWAYS true.

Well, I guess we can't ensure the function is connected to an operational internet, but... well, you get the point. There are limits outside the programming language, but within the rules of the programming language we can ensure all kinds of things are ALWAYS true, and we can prove this is true AT COMPILE TIME.

Unit tests suck, forget tests. We have a shape and we cut a hole to match the shape and then we put the shape through the hole and pat ourselves on the back because the shape passed through the hole. This is unit testing.

Meanwhile Lean's type system is proving the Riemann hypothesis.

I feel like we haven't seen the language of the future yet, but I bet Lean is the closest to it.

[0]: https://thelittletyper.com/

➕ show 1 reply
hagen8 • yesterday at 6:01 AM

U cannot brute force 17million lines...

c7b • last Wednesday at 10:19 PM

Mathlib was certainly an enabler, but Lean was/is still too unwieldy even for mathematicians to use manually as a productivity tool. In the absence of LLMs it would mostly been a second step after fleshing out your argument informally. And even for that, the timelines would not have been anywhere near what we're seeing now. Kevin Buzzard's project not to formalize all of FLT, but only reduce it to some yet-to-be formalized results from the 80's and before would still have taken years on its original timeline. Now we not only have a complete formalization (admittedly much less elegant than what Buzzard was working on) of FLT, we even have a formalization of genuinely novel results like GHT. This is a veritably different timeline than having only deterministic tools like Lean.

herywort • last Wednesday at 9:13 PM

But AI comes up with these proofs in natural language. Lean formalization comes after.

jadermcs • yesterday at 2:26 PM

I did the math, by brute force, the lean solution would take 10^(1.5x10^11) verifications. Even if we convert the entire observable universe into a data center, the universe would end before we can finish this search. I think you are "slightly" off on the brute force take.

Krei-se • last Wednesday at 9:20 PM

I'm not a mathematician by classical definition but worked with graphs a lot and got into category theory and functional programming to lift my take on data having structure and constraints working out to known behavior onto a more general algorithm approach.

So you can ignore my POV safely but it soon became clear this is the way to work and building these "category theory algo graphs" is what lean checks or how you get "proven correct" algorithms in Haskell, etc.

I do it so a) i don't shoot myself in the foot and b) to build chunks that you encounter in math in very different notation and named arbitrarily maybe by the inventor. But there's even a "law" that this is usually not the case: https://en.wikipedia.org/wiki/Stigler's_law_of_eponymy

As i never went to college this also removes all moat from these institutions because you cannot possibly fit all these historically and organically grown syntax quirks in your head you need to be seen knowledgeable and taken seriously by them.

AI and Lean dont have to deal with this in a similar manner. Their working memory is not inhibited and not segmented by a branch in math that you cannot use easily to find a relation to another branch because notation and naming is so different.

I expect thus the actual edge AI has here is

a) the ability to translate all text into known lean syntax b) brute force possible solutions then endlessly c) have lean do the checking endlessly

Maybe there's a more efficient way to do it but you still get a working solution by this approach. Still in both cases the unified syntax and compute graph structure is what makes that possible. They can hate me on that but a lot of moated institutions will ignore any attempt to translate their language into a general one like category theory, langlands program or whatever.

Just my take, not a professional, so please don't hate on me when i'm wrong but correct me - I'm just interested in finding the same security i found in data now in algorithms.

nickysielicki • yesterday at 6:22 PM

People get really upset if you ask this question but I’m more and more convinced that if mathematicians hadn’t stubbornly held onto their LaTeX and novelty Japanese chalk and journals so tightly, and instead invested broadly in formalization and massive collaboration through the internet and gave up personal glory and mathematical heroism in the process, mathematics would have made further progress than it did.

Formalization is to mathematics what the compiler is to computer programming. It’s not easy to write the first assembler in raw assembly. It’s not easy to write the first compiler in assembler. But once you’ve built a set of primitives it allows you to move much faster. I think that’s what we’re seeing here with LLMs.

No shit it’s slower and more tedious than doing math on paper and pencil. But if everyone is building on the same shared codebase, it produces better results. Mathematics is now past the point where humans can hold everything in their head. Computer programmers have been here for decades now. Formalization is the only path forward to future progress.

That’s not to downplay the insights and capabilities of these models, it’s just to say that building on top of formalization is more productive in the long run.

zahlman • yesterday at 1:45 AM

I feel like it would have happened anyway, but somewhat later. The LLMs are making it easier to prune search paths (but human intelligence was already accomplishing quite a bit there, it seems) but especially with orchestrating all that compute. (Plus, the existence of LLMs has motivated the accumulation of more centralized compute.)

Edit: also what xg15 said. Hand-conversion to Lean sounds like the sort of thing that the people qualified to do it would find very tedious.

SonOfLilit • yesterday at 12:59 AM

... are you kidding?!

I was following Go from around 2004, so I knew in early 2016, when AlphaGo dropped, that everyone in the field considered pro-level computer Go to be a decade away. Chess was solved with mostly brute force, but Go's search space was too big.

Math's search space is waaaay bigger.

➕ show 1 reply
neuroticnews25 • yesterday at 10:46 AM

Maybe research on sophisticated models for automatic generation of potentially useful lean statements would eventually converge on something similar to LLMs.

kalcode • last Wednesday at 9:31 PM

Maybe we should see what an actual expert in the field thinks... someone like Scott Aaronson? Maybe he has a write-up on how impressed he is by it. Oh wait, doh. You just read it actually.

➕ show 1 reply
iamcurious • yesterday at 2:40 AM

As someone initiated in formal methods, the bottlenecks used to be 1) formalizing 2) exploring the search space efficiently

2026 LLMs can cut on both significantly, which could explain most of the results.

This does not make it any less impressive to me.

jeremyjh • last Wednesday at 9:48 PM

The copium is amazing. People just do not want to accept that AI is a transformational technology.

➕ show 2 replies
tkz1312 • last Wednesday at 9:48 PM

proving stuff in lean is significantly more annoying than doing so on paper. robots are also slower when working in lean than when they work on paper.

lean is a key part of the puzzle here because it lets us scale the proof development without having to scale the review burden, but by itself and without the unimaginable leap in proof automation that we've seen this year, it would surely remain rather niche.

paulddraper • last Wednesday at 9:16 PM

> Sure finding a slightly faster way than brute force helps

Enormous understatement.

That's like saying that a coding agent is "slightly faster" than a random character generator.

Sans-LLM, programmatically generating Lean proofs would take unfathomably long to do anything even approaching this.

azan_ • yesterday at 12:44 AM

> I'm wondering how much of that would have happened with "just" Lean, MathLib, and a lot of computing power but no LLM or GenAI.

Zero. The search space is basically infinite, without sound reasoning (for which you need some kind of AI) you'd get nowhere.

prpl • last Wednesday at 9:15 PM

Well, it wouldn’t be possible without that prior work.

d_burfoot • last Wednesday at 10:30 PM

I feel that this comment is exactly what Aaronson is exhorting us NOT to do:

> For all I care, despise the AI companies for bulldozing our garden. Or love them for opening a new vista, or anything in between. Just please don’t deny what’s happening

empath75 • yesterday at 12:10 PM

I just proved an open question from the cerny conjecture program last night that had been open since 2008 using claude code and chatgpt. It took me about 10 hours.

A large portion of the work was formalizing the existing literature, and then collecting a zoo of random lemmas and ideas that go nowhere, but expand our toolbox or clearly define obstacles, over the course of about 8 hours, and translating the problems to a bunch of different domains to see if any tools get us around obstructions. Then gradually something that looked completely intractable just needs one idea, and the LLMs are good at finding it, if it exists, once you've reduced the problem.

I am not a mathematician, and this is a problem that I did not know existed a week ago, and now I've resolved a half dozen long standing open questions in it (confirmed by the people that posed them) and I think I may be able to prove the whole conjecture if I spend a few more days on it.

stogot • last Wednesday at 10:07 PM

Wasn’t this the promise of Wolfram Alpha?

emp17344 • last Wednesday at 9:56 PM

This seems to be exactly what’s happening. Proof assistants are better than ever, and this amount of money and compute has never ever been applied to the task of solving theoretical math problems. The LLM is far less important to these endeavors than many assume, IMO.

throw310822 • last Wednesday at 9:09 PM

It's exactly like wondering if we needed Claude code after all, when we have a compiler that tells us if the code.. well, compiles, and then we can just brute-force until the tests pass. Genius!

Ar-Curunir • yesterday at 12:20 AM

This is new math, not just formalizations of existing math. Like literally you have scientific experts telling you that this is unprecedented, and the reaction is one of disbelief.

These LLMs are solving 50-100yr old problems ffs!!