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.
How much nonsense can you produce in your increasingly laughable attempts to justify your stale beliefs. Accept the reality, LLMs are both more creative and more intelligent than humans.
I wasn't talking about LLMs specifically, only the possibility of brute-forceing a multi-million line program that compiles, but LLMs are absolutely not more intelligent than humans and they have zero creativity. All of the creativity an LLMs output mimics came from the human creativity they were trained on.
Computers can perform certain tasks better than humans, because we can't hold vast amounts of data in our heads or crunch numbers as quickly for example, but human brains are capable of many things LLMs are not. That's why LLMs are (at least currently) unfit for even the most menial jobs and why they haven't replaced every human worker in any field. AI psychosis is real.
> 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.
At this point in the timeline something lean-like could be produced by frontier swarms within a couple months if Lean didn’t exist. It’s great luck we have a pre-LLM defacto standard.
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.
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.
"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.
> Do you think that Claude Code is doing something like brute force when it writes a computer program for you?
Kind of, yeah... only the 'brute force' happens in the training stage. All neutral networks are basically just mathematical models of some problem space that have been built by brute force (supplemented by reinforcement techniques and whatnot).
Writing programs suffers immediately from combinatorial explosion, and any reasonable program would take until the sun burns out to be found via brute force.
Only if for you brute force means explore the entirety of the problem space. That's not what brute force means to me. To mean brute force is more akin to a Monte Carlo based solution of a probability problem where I can solve the closed for. In stats, I'd also categorize bootstrapping methods as brute force.
You're getting downvoted because the entire point of transformers and the rest that enabled all of this was a way way way more efficient way to train than brute force. If we were still limited to brute force, training is still theoretically possible, but practically impossible.
Okay, but these models are still trained on every publicly available program that's ever been written. That's about as close as you can get to the line without technically crossing into brute force.
That's a bit like saying "it's seen all human-made art, so it's seen all art!". Not even close! Humans have produced an infinitesimal fraction of what could be. Brute force is astronomically less efficiently than LLMs are.
On the whole, LLMs are massively closer to how humans think than they are to brute force machines.
As a technical term, that's not what bruteforce means, unfortunately. It refers to how an algorithm solves a problem, not the comprehensiveness of the input data.
> Do you think that Claude Code is doing something like brute force when it writes a computer program for you?
Yes, absolutely. Do you use Claude? How many times a day do you ask it a question, and it says, "Wait, let me not speculate, I'll ground this in a real experiment to check..." and then it goes off to /tmp/ and clones 10 copies of the repo, runs 10 (or 50, or 1000) different variations and comes back to report the results.
It's absolutely wonderful to have that flexible orchestration layer, but it's not like it's a genius programmer that just gets things right on the first shot.
That's not what brute force means, at least in CS theory. Brute force means you have to iterate through the entire solution space until you find a solution. Think gradient descent. Solving it the naive way is brute force, solving it with a heuristic approach is more optimal and thus not brute force.
Gradient descent is also not brute force then. You use heuristics to adjust your jumps. We use the term brute force even when we use algorithms that can avoid parts of the solution space to be known infeasible.
It's more clever than pure brute force because it doesn't have to explore the entire problem space, but yes, a lot of Claude's effectiveness just comes from being faster and less lazy than I am, not from having more penetrating insights or clearer vision.
If I could type 10,000 times as fast, never got bored, and had near-perfect recall of documentation, I would be a much more productive developer, even if I weren't any smarter than I am today.
Edit: The downvoters have me rate-limited, but you are not really engaging in good faith if your reaction to the phrase "something like brute force" is "ASKHUALLY that's not technically brute force!"
Ok, just call it what it is then. It's a maybe-equivalent-to-pretty-smart-human intelligence that vastly outcompetes real pretty-smart-humans because it runs on a computer, and not wetware. Which is pretty much how most people envision artificial intelligence and is the reason behind its superiority in uncountable scifi stories.
> ... clones 10 copies of the repo, runs 10 (or 50, or 1000) different variations and comes back to report the results.
I have never, once, seen Opus 5.5 do this. I have seen it make mistake,s or not fully implement/spec something, but I have never seen it try 100 different possibilities unless it genuinely gets stuck, whereupon I just tell it to use a debugger and it pretty much figures it out from there. (I wonder who will claim I'm AI since I used the word "genuinely"?)
It does it when the task needs experimentation (no clear path forward) and i’ve seen it do it myself. I don’t agree with op that it’s brute force though. It’s just putting the scientific method to work.
Yeah, I might not see it very often since the major project I use it on usually starts with me trying to find scientific research papers that I can build from instead of "create something from memory".
The term "brute force," I think, keeps on getting brought up, and it is a bad enough term that people keep on talking past each other.
If you look at something like a trajectory optimizer for planning multiple gravity assist tours of planets and moons, all you've got is a global trajectory optimizer (monotonic basin hopping and probably some kind of genetic algorithm/particle swarm stuff) wrapping a local gradient descent-style algorithm (although quasi-Newton with trust regions or backtracking line searches, etc.).
I think you could probably wrap Lean with something that looked like that, without the LLM, and it would solve these kinds of problems without dumping an entire gigaton of carbon into the atmosphere, on a computational budget comfortably within 6 figures.
When people throw the term "brute-force" around one way or another, I think they're intuitively trying to talk about concepts like that, without having any better words to try to discuss it, and then it always gets picked apart, without ever getting at what the person was actually trying to say.
If your claim is "There exists an some algorithm much more efficient than an LLM for finding lean proofs", then sure - the space of all algorithms is huge, and there's probably some monster which looks like a scaled up busy beaver candidate and can produce the proofs with a fraction of the energy. Finding that monster would be the sticking point.
If your claim is "there is an algorithm for finding lean proofs which is substantially more efficient/simpler than an LLM and is reasonably accessible to us" then you need a good explanation for why no-one has found it before - much of the work on proof assistants prior to LLMs involved looking for ways to automate as much of the process as possible and it could rearrange some equations, but not prove the Riemann Hypothesis by a very long stretch. Even before computer science existed, much of mathematics has been about discovering faster and more repeatable ways to solve problems and might have found a general method for proving theorems if one were easy to make.
>If your claim is "there is an algorithm for finding lean proofs which is substantially more efficient/simpler than an LLM and is reasonably accessible to us" then you need a good explanation for why no-one has found it before - much of the work on proof assistants prior to LLMs involved looking for ways to automate as much of the process as possible and it could rearrange some equations, but not prove the Riemann Hypothesis by a very long stretch.
Same reason we have had chatbots for decades but just recently created Opus 5.5.
Has the scientific community spent the same amount of effort, time, and money on those proof assistants as we've spent on LLMs?
One of my personal pet peeves is that people think LLMs are better than expert systems because LLMs can currently do what expert systems couldn't do decades ago. And I think the truth is that, had we spent on creating and training expert systems the same amount of resources we've spent on LLMs, expert systems would dominate the world in every field.
> I think you could probably wrap Lean with something that looked like that, without the LLM, and it would solve these kinds of problems without dumping an entire gigaton of carbon into the atmosphere, on a computational budget comfortably within 6 figures.
The space of possible Lean programs is like 10^100 (wild ass guess) larger than the space of possible gravity assist tours, is it not? And far more irregular, I would think.
formal verification ppl have been trying for over 50 years to develop such automated theorem provers. The best that we have are incredibly fragile and do not prove theorems anywhere near the complexity of even the simplest LLM proofs.
> I think you could probably wrap Lean with something that looked like that, without the LLM, and it would solve these kinds of problems without dumping an entire gigaton of carbon into the atmosphere, on a computational budget comfortably within 6 figures.
If you are right you could attract probably billions of dollars of investment.
Given the amount of compute to generate even the simplest output, yes, it is a form of brute force. Just like Deep Blue was brute force. Smart, and guided, but under the hood a lot of computations were done that led absolutely nowhere, which I think is a hallmark of brute force. As opposed to an elegant solution that uses the minimum number of cycles required to produce the output.
On the one hand, computers do have a lot of muscle to just keep going in an inhuman way.
Brute force is a valid word,
colloquially.
On the other, they're
not brute-forcing in the CompSci sense. On a scale of 1 to BB(300 or whatever it is that is outside ZFC), any program operating in this universe is strictly less than BB(6).
I think brute force should be seen as a ratio rather than a specific technique. 1 = no cycles wasted, the exact number of cycles required to compute the solution. Lower than 1 shows that the previous entrant wasn't perfect :) > 1 is everything else and brute force is >> 1, at least several orders of magnitude. I suspect that anything generated through inference is at least two and possibly more decimal orders of magnitude away from 'perfect'.
what's with people re-defining well defined terms? brute force means checking all possible options to find the correct one. If you need a new term, put your gyri to use and come up with a new term.
Sorry for being presumptuous, but this sounds like cope of the "LLMs are just brute force, my true intelligence is more efficient" variety.
BB(6) is a single number so not sure how this relates to “brute forcing”? Do you mean in terms of number of operations to compute something? If so you could pick a much lower limit given we have fairly short time constraints.
Three numbers, two forming a linear scale, the third (BB(6)) being an intermediate
that's both too big for the universe and closer to 1 than to BB(300) in a manner that is literally impossible to describe because they grow too fast.
Are we under the impression that humans do not operate this way?
While attempting to solve a difficult problem, how many incorrect approaches do we go through before we (maybe) eventually stumble upon the correct one?
Usually, yes. We can if we want to but we usually give up and start thinking rather than trying all possibilities. Think lockpicking: you could try a million keys but it is much faster to learn how to pick a lock.
I mean, what is the act of thinking other than imagining different possible solutions and discarding them one after the other until we hopefully come upon something that works?
I don't think a notion of preternaturally honing in on the optimal solution without wasting any time thinking through incorrect solutions or dead ends is a realistic portrayal of the way humans work on solving hard problems.
Even in the lockpicking example, after the average person has "learned" how to pick a lock. In the act of picking a lock many, if not the majority of your movements, are wasted and do not actually unlock the lock. If you could calculate the exact optimal set of movements to unlock the lock you'd eliminate a large portion of those which the average lockpicker performs.
Even the expert lockpicker only would master those exact perfect movements on a single given lock by practicing over and over and failing many times to perform them optimally along the way.
and when you think, you come across a lot of thoughts that... lead nowhere (for example, failed proof approaches). I don't see how the way humans tackle this is not 'brute force' in some sense, by your definition.
You are using the word in a colloquial fashion. It would be good to make that clear. In the sense of the technical compsci term, it's 100% not the case.
I live in the real world, not in a computer scientists idealist world and we're having a discussion here, not writing a compsci paper. Brute force is named for exactly what it is: the opposite of cleverness, solving something by applying a lot of force.
We’re having a discussion about technical things, not random stuff. Using terminology that is liable to be confused is asking for your argument to be misunderstood.
Brute force is an optimization strategy. LLMs are an optimization strategy. Elegant solution is a solution, not a strategy. You use optimizers to find solutions, and with a lot more work you can even find elegant solutions.
This kinds of misconception begins with chatgpt moment and refuse to die. The conception that llm is just scaling a mundane solution. In truth these kinds of things used to take entire universe worth of compute, if you use the solution of just 1 generation back. Precisely because llm is so efficient is why we scale it so large.
A lot of the openai proofs did not have a lean proof. People are imagining that lean makes it easier for LLMs to "brute force", but I think it is mostly cope from people that are uncomfortable with how good the LLMs are at putting together logically consistent natural language.
And even if Lean is the magic that makes LLMs so good at math, so what? No human will ever be as good at writing Lean as LLMs are. So even though with a Lean proof I can get feedback just as quickly as an LLM can, I cannot write the proof as fast, nor translate between the informal ideas in my head and a formal lean proof so quickly.
There's a reason that most math hasn't been formally verified, decades after it's been "feasible" in the sense that the technology exists and is wide spread. Formal verification is just too counter-intuitive for humans to manage quickly.
Frankly any dismissal of LLMs' math ability is cope at this point. It proved the Riemann Hypothesis, anyone who trivializes that or thinks that could be brute forcing either doesn't know what they're talking about or is lying to themselves.
Not just different, but exponentially different. Naive brute force to find a proof would take time exponential in the length of the proof (so like 64^70000 steps maybe in the case of the riemann hypothesis), while some of these other definitions somehow could rely on clever heuristics to solve these problems within a few years.
This discussion, to me, shows that the term "brute force" needs to just stop being used inappropriately, since all it ends up causing is... Well, this.
>Do you think that Claude Code is doing something like brute force when it writes a computer program for you?
It is 100% brute forcing. It's a more intelligent brute force than trying literally every combination, but that's exactly how it works. Generate millions of permutations, then walk backwards through them to see which matches the pattern most correctly.
In the case of programming there are other logical domain specific checks as well and testing that can all be incorporated.
That's how all of the generative AI works, generate millions of options based on the preceding pattern then test which option is the best fit, add it to the pattern and on to the next step.
It's generating millions of permutations of the next token. Not the entire program, how many complete responses it generates depends on the internal workings of the full program not just the model. But as I stated elsewhere the core of the LLM specifically is a heavily capped, parallelized brute-force search across discrete token spaces, sequence branches, and reasoning paths that relies on exhaustive evaluation within strict mathematical caps.
Now I am open to hear how you interpret it differently, but the I don't think it's possible to abstract it away from a guess and test approach at the most basic level.
Aren't they the same basic concept, except that diffusion, diffuses it over the entire context making even more guesses and longer pattern matches until eventually arriving at an approximation of a best fit? Is it not still billions of guesses and tests?
Autoregression won't change a token once it's landed in context, which is kind of required for "guess and check" like how it sounded like you were describing. Diffusion can do that.
Verification is a binary yes/no right? The AI being able to make progress in some directions and reach the end goal, without any direct feedback on intermediate progress or how close it is to the solution (unlike say gradient descent and a loss function), is the key thing here.
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.
I’ve only heard of these neato languages on hackernews. Could you write a regular ol’ program with a language like Lean? Like a web server or CLI? And would it be like… proved?? Do “proofs” make sense in the context of regular ol’ software?
Yes, in certain contexts a “proof” of software can be useful. See https://compcert.org/ for a formally verified C compiler; I know it’s been used to compile C code for aircraft. I’m not entirely sure how useful Lean is for developing software like this, but I know it has some facilities to do so.
> Could you write a regular ol’ program with a language like Lean? Like a web server or CLI?
Yes, absolutely you can build a web server or CLI tool in Lean.
The compiler lowers your code to C, and a bundled clang turns that C into a native binary so it can actually be fast. It also has an FFI. The community is small but there are a growing number of general purpose libraries.
Lean is a pure functional programming language whose type system is strong enough to write proofs. To keep proofs sound, it adds some constraints, but there are escape hatches and you can absolutely use them for general purpose programming.
If you want to see a dependently typed language that can act as a proof checker but is actually aimed at building "regular" software, check out Idris.
> And would it be like… proved??
No, using one for a "regular" programming does not mean you have done any formal verification. You would have to specifically use the theorem proving language features to prove anything.
> Do “proofs” make sense in the context of regular ol’ software?
Yes! You can write proofs about invariants in your program and have the compiler enforce them. For example, you could write a list index function that requires a proof that the index is in bounds. Writing proofs is hard and you have to think like a type theorist, but you can do some really cool stuff in these languages.
Yes. There are verified compilers and OS kernels for example. Here's a recent example for someone coding a simple, yet surprisingly performant web server in Lean: https://theoric.com/blog/deriving_the_runtime/
You don’t need to write proofs. You can if you want to. Like you could prove that adding two sized vectors results on a new sized vector with the appropriate length. That’s a trivial one but the sky’s the limit with what iou want to prove about your programs.
It was too expensive to write down a precise enough spec for most things, then it was way too expensive to prove it automatically for most of what survived step 1 and then the proposition to reimplement the solution for the second time and keep the formal proof and production code in sync was just ridiculous.
It is today not at all ridiculous - in fact, it’s becoming irresponsible to not have formal proofs for the software you’re building.
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.
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!
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.
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.
I was under the impression that these big proofs being made are only taking a few million dollars in compute. Its concentrated over a short time period, but we've spend far more than that in human labor working on the same or similar peoblems. Even more if you include all of the unpaid effort mathematicians have put toward these problems. It cant just be a matter of money.
It’s all so obfuscated because these labs refuse to tell us exactly how these models are trained and how much money is going towards solving these problems.
The cited costs are at some published token price. But note two things:
Those prices are subsidized by vast amounts of venture capital.
Those costs ignore the externalities of current LLM implementations.
So, these results have a cited collective cost of a few 10’s of millions of dollars. And possibly a true cost of hundreds of millions.
Has there ever been that much invested in (human) mathematics over a span of a few years? The only thing I can think of that might come close is the Manhattan Project?
I don’t think this proves anything either way, but it does seem like a massive investment in foundational work.
The Apollo project had a budget about 10x that of the Manhattan Project (inflation adjusted). But of course both of those had massive material costs as well.
And OpenAI and Anthropic between them raised more in VC capital than both of those projects combined (again, inflation adjusted).
agents also do lots of other non related items, update the memory, share the knowledge, run tests , fix harness etc. i do not get that argument. it's a human high education system as a tool to crack complex problems vs agentic ai systems.
what's even more depressing, is that these math problems almost like a gym for a bigger problems to solve. if they can crack math problems, chemistry physics etc, will be next with some extra tools: robots, quantum compute etc.
Yes. I've said elsewhere that one of the biggest powers of AI is implementing basic expert knowledge very quickly and at scale. I'm not saying that's all AI is good for, but that in itself can have a big impact.
We underestimate how much a very thorough and dedicated process can accomplish.
> It was a beautiful project but far too complicated and time-consuming to use to be practically useful.
This is DHH's theory of why it's finally the year of Linux on the desktop, what makes Linux hard for humans - you need to use a terminal, tons of text config files, inscrutable but detailed error messages, are exactly the kind of stuff LLMs thrive solving.
Windows/Mac are easier for humans to maintain, but they give very little access to their internals to LLMs, so agents are less effective changing stuff.
Yep, already had some amazing experiences using agents to debug and solve issues with peripherals not working correctly - such as having it fix some obscure buffer underrun issue with an USB mic during the telco where I was using that mic...
You'd be surprised how capable the coding agents are at Windows config. Powershell 7 with the right modules, and a win binary of ripgrep and it can do almost anything. The OAI models have always been very good at powershell.
Both my Finance Director and my dad’s cardiologist use Claude Code. When I suggest they use cowork or something other than a CLI, they both shrug me off and say “no, it’s gotta be Code.” They say it in a sort of “you can’t keep the good stuff for yourself any longer”
sort of way.
With "formalize", I mean turn into a "machine-readable" representation that can be processed by a proof checker. It was formalized enough for humans to understand and verify, but not for automated (non-LLM) reasoning.
The question is, how do humans know that the Lean formalization of these pieces of math matches their understanding of what the math means? As a programmer in 2026, I routinely encounter situations where an AI takes my informal ideas and formalizes them into something that's close to what I had in mind. If a mathematician has some complex field they want to reason about, and they see a Lean formalization of a field that has a few extra elements from some esoteric edge case, is it easy in general for them to tell the difference?
Think of it like compilation. Compilation doesn't tell you if a program is good, bad, or even sound, but it does tell you that what's been written is technically a valid program if it's passed all of the structural checks that are part of the language definition. A proof is a binary outcome in the same way that a program either compiles or it doesn't; it's either true or it's not. The idea (at least as I understand it) is that your axioms become your rules, and you use a checker that enforces that none of those rules have been broken. As long as you do that, and the final statement is correct, then everything up to (and including) that point is a valid "program". What's inside could be spaghetti, but the benchmark for success isn't "the program is bug free", it's "it compiled", which is a vastly easier benchmark.
Put another way, it's essentially a type checker running on the AST.
The problem statement (the Riemann Hypothesis) has been stated formally as a type. This was already done by humans in mathlib and has been checked over.
The goal of the AI is then to write a term (a program) of this type. If the AI can write such a piece of code and it typechecks against the problem statement type then problem statement has been proven.
It doesn't matter if any of the subroutines correspond to existing mathematical knowledge, so long as the AI doesn't cheat the type system. There are many tools to assert that the AI didn't cheat the type system and so far everything has checked out.
Due to the nature of domain it is more or less guaranteed that any subroutine necessary to build a /valid/ proof statement for the Riemann Hypothesis will end up being encodings of existing mathematical structures or novel new ones.
As in the OP, don't fall into the trap of dismissing those results. The statement of the Riemann hypothesis that was proven was taken from Mathlib, a very simple, standard and well-vetted formulation of the problem. Barring compiler bugs, there's no way the statement would have compiled without supplying an actual proof. And the probability of compiler bugs is vanishingly small in that case, as the proof compiles in multiple different compiler versions, including formally verified and deliberately 'slow-but-reliable' ones. The probability of mistakes physically cannot go to exactly zero, but you're quickly approaching crackpot territory if you don't update your prior of it being true to within a rounding error of 1.
It's Turing-complete, so you should be able to write anything. But it's fully functional, so you can't hide side effects in what by its signature should be a proof of A. More practically, there's tooling to check whether a proof does anything it shouldn't (like assuming the conclusion somewhere, which in itself wouldn't work as it'd only give A-> A instead of A, but along those lines). So with those tools, checking a Lean proof really isn't much more than checking the statement and compiling.
Again, no tool is 100% reliable, but the community really has gone the extra mile to get as much certainty as possible. If you believe that the Higgs Boson exists, or the HI Virus, or that the Roman Empire existed, or Dinosaurs, then you should believe that the Riemann hypothesis is true (and that's factoring in that math has a different standard of evidence than empirical disciplines).
For someone who's used LLM-based agents for software development, and who doesn't the guarantees a lean certificate provides, it sounds scary because who knows what weird misunderstandings crept into the autoformalization?
The whole point is it doesn’t matter if you vetted the spec, which isn’t that hard for math pros. Lean is at heart a type checker. If you think types help LLMs write 50% more correct code, lean makes them write 100% corect code.
> That sounds scary and makes me question the foundations of all of this.
I'm not a mathematician, just a computer programmer who occasionally tries to read maths papers. Every time I do, I want to scream in frustration. What meaning did they assign to ω this time? What operation is this weird new 2D arrangement of dots, oversized odd-looking brackets and lines meant to impart? Where is the F12 button that takes me to the definition of their newfangled concepts?
Over and over again, you hear they stuff it up. (The Fields medallist Voevodsky, for example, turned to proof assistants after finding errors in his own published work.) Perhaps the logic didn't follow, or the operations didn't combine as they thought. Of course they didn't! If computer programmers had to get the logic perfect without type checking, we may as well be writing assembler.
You only get automated checks if you formalise your notation and languages. To do that you have to give up brevity. A simple hand-wave like "without loss of generality" can become pages of proof. The freedom to name and structure things however you damned well please disappears. It's undoubtedly harder to write that way - I'm sure every Rust programmer sometimes feels like most of their effort went into escaping a jail so they could get the job done. In return you get automated checking and a near-universal language that can be reused. And it's easier to read. The old adage that code will be read far more times than it's written applies to maths papers too.
To me, decrying the use of formal languages is at the same level as passing laws saying a car must follow a man waving a red flag, so the car doesn't scare the horses. Rewriting maths in a formal language isn't scary - it's a technological breakthrough in the productivity and accessibility of maths.
If the headline statement is known to be formalized correctly, whether the formalizations of other concepts the model gave in order to use them in its proof of the headline statement, are correct/“correct”, doesn’t really matter for the correctness of the overall proof. Like, they might not match the human concept that it names the defined symbols after, and so they might be “wrong” in that sense, but this doesn’t cause an issue for the proof checker. And, I don’t mean this in a “well, the concept the model formalized is just as good/useful, and it is just a human bias that blah blah blah”, no. I mean, it is possible that it defines some terms in a way which is genuinely worse, and not what the definition should be. But, if it does that, then if the proof checker is working properly and validates the proof that uses these flawed definitions in its arguments, then the proof must have worked around the flaws in those definitions, and the overall conclusion (the statement which people have confirmed to be correctly formalized) is true.
If you're formalizing existing stuff, then there's probably not much point in formalizing the proofs themselves. You'd just put in the theorems and tell the compiler that it's known to be true so that it can be used with other proofs. So, if we're using AI to formalize existing math, then we're either using AI to check that the humans got it right or we're asking AI to make up theorem statements, which creates shakey foundations for everything that follows.
If you want to use a certain mathematical technique in a new proof, you might need to use definitions (or theorems) that have already been given but not yet formalized in Lean. That’s what I was describing. Not just translating an existing proof/definition as the whole thing, but as part of a new proof of an existing conjecture.
Lean and computer formulations are the holy grail and future of mathematics as I see it.
The whole goal of mathematics has been to provide a formalism by which we can proveably and consistently talk about universal facts. It is only natural that this was adopted to computers
This is somewhat backwards. Mathematical formalism came first, leading to computers once electronics was developed. Mathematics and computers are essentially the same thing.
I feel like it's closer to six of one, half dozen of another, although I could be wrong. I'm not sure if a comparable effort would have required an infeasible amount of mental energy/effort and specialist knowledge.
According to gemini, Anthropic alone has spent ~$20 billion on compute/infra alone since their founding, and all math research in the US is only ~$1+ billion/year.
Could we have already gotten here if we spent an extra $.01 billion/year over the last 10-20 years in augmenting existing math research with developers who specialized in automated/semi-automated proofs/logic? I think it's possible.
At the same time, we didn't, and I think there's a lot be to said for math research maybe being a bit inflexible. But I don't think that frontier models, with help from human experts, being able to do things humans haven't done yet with hundreds of billions to trillions in capital expenditures implies that we couldn't have done the same given a different research landscape with less invested in human/compute (or maybe even less that what was spent on tokens).
> According to gemini, Anthropic alone has spent ~$20 billion on compute/infra alone since their founding, and all math research in the US is only ~$1+ billion/year.
Agreed in principle but it’s not an exact apples to apples comparison because the compute has market value by virtue of being hardware. In a sense maybe they really only spent $10 billion if you wanted to compare directly to US mathematics research.
As I was writing this comment though I thought - did US mathematics research need more money, or was the approach by broad comparison simply inefficient? Or insufficient? Seems like additional investment might simply have resulted in more cooks in the kitchen whereas the Anthropic and friends investment actually put resources to the problem solving?
> Could we have already gotten here if we spent an extra $.01 billion/year over the last 10-20 years in augmenting existing math research with developers who specialized in automated/semi-automated proofs/logic?
No, we couldn't. This was tried and failed before, see e. g. knowledge systems or machine translation or computer vision. The famous bitter lesson.
I don't think we've tried this at scale. It would require someone a step down from Leonardo de Moura at every math program plus additional developers/mathematicians under their/the programs guidance working a ton on lean or similar for a decade or two.
It could be analogous to the other systems you mentioned, but not the same thing, and I'm my experience knowledge systems are underutilized. People like LLMs because they're generalized, but older machine vision, machine learning, knowledge systems, etc... I think still have their place and are sometimes overlooked.
There was not significant money or human capital behind prior efforts. Imagine instead a Manhattan Project or Space Race equivalent, but for math discovery. That's really what we're dealing with in terms of the AI sector broadly. Would that have resulted in similar developments? Impossible to tell, but that's likely the closer analogy.
> Imagine instead a Manhattan Project or Space Race equivalent, but for math discovery. That's really what we're dealing with in terms of the AI sector broadly.
Most of the money in AI is not spent on training and research, but in serving inference to customers. Training the model capable of doing math discoveries is (comparatively) cheap, serving it to the whole world is not.
Anthropic didn't spend billions on math processing specifically though. The point is that their infra is general purpose with many applications, only one of which is math. The output for the amount of spend directly on math is much better.
Definitely. It's also good at software development, physics, etc...
The question to me is, would a competency weighed amount of their spending be better or worse than the same or less spending in different ways in the same fields?
> then some automated solver might have made progress
Automated solvers have been tried since the beginning of AI research. We still don't have effective explicit heuristics for proving theorems like we have for, say, 3SAT. So, no, automated solver would have get lost in a combinatorial explosion and no amount of compute (available on Earth, that is) would have changed it.
> 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
Also not in the field, but after spending some quality time with my LLM of choice asking a lot of questions and reading links, this is where I landed too. Theoretical mathematics, like advanced coding, is a unique class of complex problem which requires special domain expertise, is extremely labor intensive, has a brutally large search space yet is relatively easy to verify. This makes both of them extremely well-suited to RLVF-like approaches.
Another factor is simple economics. Many of these "open problems" were still unsolved not because they were impossible for humans to solve, but because the amount of work dwarfed the near-term practical value. Otherwise there would already have been more funding and people devoted to grinding through them "the hard way". The supply of domain experts willing and able to spend years grinding through those search spaces didn't match the sheer scale of the problems. It's not much different than the tunnels through mountains and man-made canals that remained undug until steam shovels and TNT changed the economics.
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.
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.
I don't think that's what AIs are doing. They're not coming up with a perfect text proof and then formalizing it into Lean.
If I understood correctly, the Riemann Hypothesis proof went through many iterations with a human discussing the eventual proof with AI, and parts of the theorem were getting proven in Lean along the way. So it's a bunch of feedback loops, not a linear pipeline.
There was a weird, but understandable, rush to be first to get a Lean-checkable RH proof. In the big scheme of things, a blip. Since then, there has been serious effort to bring the proof size down. Last I heard, 17 million => 300k readable / 76k compact lines of Lean code. https://github.com/lsernau/grh-lean
How can you say this with so much confidence when no one really understands these proofs yet? Anything could be going on under the hood, there’s too much unnecessary crap thrown in for mathematics experts to understand the proofs and have a solid opinion here.
> 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
Likewise, Lean allows bs results from LLMs to be thrown into the trash and keep going. Ask any LLM to prove any long standing hypothesis without using Lean, and it'll be certified garbage.
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?
It is pretty interesting to watch. To be fair, there are multiple factors.
It does threaten the belief that humans are uniquely special due to our thinking ability. But the growing distrust of big tech, corporate power, and corruption is also a big part of it. Years of inflation and an increasing feeling of "instability" across the world doesn't help either.
People feel this technology threatens their livelihoods and security. And they may be right. Even if they aren't always voicing their concerns clearly.
Also the capabilities are very jagged. There is the honeymoon period newly pilled developers go through, all the screeching bro bots on Twitter etc. But solving RH did not happen by brute force, and people need to update.
I accept it. I've accepted it the moment I saw it, and that's why I think it's so dangerous and I think it shouldn't exist, because the transformation is likely to be to something far worse than we have today.
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.
The compile time is ~2 hours for 76k line abbreviated prove on dozens of cores. You can imagine how long and how much memory millions of lines will take. These solvers are slow, its very hard to make them faster while keeping it totally general and robust. For arbitrary code you can end up in "SAT solver" territory where in theory the question you are asking is an exponential combination of discrete inputs. So while "verify everything" sounds very nice, unless it is well implemented there are good reasons to avoid (unless you have 2-4 hours to kill every time you change a line). The Mathlib which is the core of this can take half an hour and many gigs of RAM to compile as well. Only languages that have a decent chance at reasonable compile times and memory use either A) place restrictions on what can be proven / types / logic, B) functional with neutered expressiveness so that values are immutable, everything has one return type, etc.
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.
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.
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.
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.
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
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.
> 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.
Levent Alpöge hasn't disclosed much about the process he used (unless I missed something). His referring to Claude as a singular entity in his remark is most likely a figure of speech. Spawning subagents is a standard technique nowadays.
Come to think of it, it seems that "brute force," as used by, say, Terence Tao, is a humorous description to anyone who has worked with frontier models, but evidence of agents being dumb to anyone who still believes in stochastic parrots.
AI shrinks the vast/infinite solution space. That’s the cleverness. Yet brute forcing in the remaining space still happens. It’s nuanced, should’ve spelled it word for word I guess.
Is it "AI agents can write programs to brute force the remaining search space when it's feasible"? That is a standard approach of delegating the routine part to a computer program.
> 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.
Isn't this simply the reality of the creation of a new formal verification language and the entire corpus of mathematical proofs being the backlog? It looks like Lean wasn't even ready to start with this type of project until the last 5-10 years.
I would argue that the present is THE evidence of Lean enabling mathematicians to both prove things and formalize existing proofs quicker, as GenAI is also the product of mathematicians; similar to the abbacus, calculators, then computers being past multipliers.
The main difference is GenAI can now scrape and process that historic backlog, looping through all historic proofs to formalize them, then applying all known techniques and approaches to everything currently undiscovered/unproofed.
> Isn't this simply the reality of the creation of a new formal verification language and the entire corpus of mathematical proofs being the backlog?
It was necessary but insufficient.
> GenAI can now scrape and process that historic backlog, looping through all historic proofs to formalize them, then applying all known techniques and approaches to everything currently undiscovered/unproofed
Yes.
GenAI is the difference.
We've had formalization of math in various forms for decades. It just wasn't very useful.
If we hadn't had Lean but had GenAI then we'd have developed another formalization language and we'd be maybe a month behind where we are now.
But no GenAI, no GRH proof in my lifetime[1]
[1] yes, I know the claimed human written one. There seem to be too many problems found already in that to fix it.
Even just a few years ago I asked around about taking a standard undergrad analysis textbook and formalizing it with Lean.
I was told it's doable but very painful. No one had done it. It's not fundamentally hard. Just very, very tedious.
If you follow Kevin Buzzard's work before LLMs, you can see the monumental effort it was taking him along with students and collaborators to formalize undergrad textbooks.
No, I don't think these results would have happened via Lean in 10-20 years without LLMs.
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.
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!!
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.
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.
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.
Maybe research on sophisticated models for automatic generation of potentially useful lean statements would eventually converge on something similar to LLMs.
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.
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.
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.
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 (38)
Replies (1)
Replies (2)
Replies (2)
Computers can perform certain tasks better than humans, because we can't hold vast amounts of data in our heads or crunch numbers as quickly for example, but human brains are capable of many things LLMs are not. That's why LLMs are (at least currently) unfit for even the most menial jobs and why they haven't replaced every human worker in any field. AI psychosis is real.
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.
Replies (1)
Replies (1)
Also you are forgetting that need one of those to exist in the first place in order to do the reinforcement learning necessary to get it good at math!
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.
Replies (1)
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.
Replies (9)
Kind of, yeah... only the 'brute force' happens in the training stage. All neutral networks are basically just mathematical models of some problem space that have been built by brute force (supplemented by reinforcement techniques and whatnot).
Replies (3)
So obviously there's more to it than that.
Replies (1)
Replies (1)
Continue this thread (1 replies) →
Replies (1)
Replies (2)
On the whole, LLMs are massively closer to how humans think than they are to brute force machines.
Colloquially, you are right.
Continue this thread (1 replies) →
Yes, absolutely. Do you use Claude? How many times a day do you ask it a question, and it says, "Wait, let me not speculate, I'll ground this in a real experiment to check..." and then it goes off to /tmp/ and clones 10 copies of the repo, runs 10 (or 50, or 1000) different variations and comes back to report the results.
It's absolutely wonderful to have that flexible orchestration layer, but it's not like it's a genius programmer that just gets things right on the first shot.
Replies (3)
Replies (2)
Replies (2)
Yeah, it isn't.
That's what I was saying. The naive case is not gradient descent, it is brute force.
It's more clever than pure brute force because it doesn't have to explore the entire problem space, but yes, a lot of Claude's effectiveness just comes from being faster and less lazy than I am, not from having more penetrating insights or clearer vision.
If I could type 10,000 times as fast, never got bored, and had near-perfect recall of documentation, I would be a much more productive developer, even if I weren't any smarter than I am today.
Edit: The downvoters have me rate-limited, but you are not really engaging in good faith if your reaction to the phrase "something like brute force" is "ASKHUALLY that's not technically brute force!"
Replies (2)
But in the context of this conversation, bruteforce has a specific meaning, and LLMs are not doing that.
I have never, once, seen Opus 5.5 do this. I have seen it make mistake,s or not fully implement/spec something, but I have never seen it try 100 different possibilities unless it genuinely gets stuck, whereupon I just tell it to use a debugger and it pretty much figures it out from there. (I wonder who will claim I'm AI since I used the word "genuinely"?)
Replies (1)
Replies (1)
If you look at something like a trajectory optimizer for planning multiple gravity assist tours of planets and moons, all you've got is a global trajectory optimizer (monotonic basin hopping and probably some kind of genetic algorithm/particle swarm stuff) wrapping a local gradient descent-style algorithm (although quasi-Newton with trust regions or backtracking line searches, etc.).
I think you could probably wrap Lean with something that looked like that, without the LLM, and it would solve these kinds of problems without dumping an entire gigaton of carbon into the atmosphere, on a computational budget comfortably within 6 figures.
When people throw the term "brute-force" around one way or another, I think they're intuitively trying to talk about concepts like that, without having any better words to try to discuss it, and then it always gets picked apart, without ever getting at what the person was actually trying to say.
Replies (5)
Replies (2)
Replies (1)
Continue this thread (1 replies) →
My suggestion is to read up on the pre-AI winter AI research but it already sounds like a waste of effort to even bring it up.
If your claim is "there is an algorithm for finding lean proofs which is substantially more efficient/simpler than an LLM and is reasonably accessible to us" then you need a good explanation for why no-one has found it before - much of the work on proof assistants prior to LLMs involved looking for ways to automate as much of the process as possible and it could rearrange some equations, but not prove the Riemann Hypothesis by a very long stretch. Even before computer science existed, much of mathematics has been about discovering faster and more repeatable ways to solve problems and might have found a general method for proving theorems if one were easy to make.
Replies (1)
Same reason we have had chatbots for decades but just recently created Opus 5.5.
Has the scientific community spent the same amount of effort, time, and money on those proof assistants as we've spent on LLMs?
One of my personal pet peeves is that people think LLMs are better than expert systems because LLMs can currently do what expert systems couldn't do decades ago. And I think the truth is that, had we spent on creating and training expert systems the same amount of resources we've spent on LLMs, expert systems would dominate the world in every field.
The space of possible Lean programs is like 10^100 (wild ass guess) larger than the space of possible gravity assist tours, is it not? And far more irregular, I would think.
They seem qualitatively incomparable.
If you are right you could attract probably billions of dollars of investment.
Replies (5)
On the one hand, computers do have a lot of muscle to just keep going in an inhuman way. Brute force is a valid word, colloquially.
On the other, they're not brute-forcing in the CompSci sense. On a scale of 1 to BB(300 or whatever it is that is outside ZFC), any program operating in this universe is strictly less than BB(6).
Replies (2)
Replies (3)
The no free lunch theorems suggests that there is no general perfect solution in that sense.
Sorry for being presumptuous, but this sounds like cope of the "LLMs are just brute force, my true intelligence is more efficient" variety.
Continue this thread (1 replies) →
Replies (1)
While attempting to solve a difficult problem, how many incorrect approaches do we go through before we (maybe) eventually stumble upon the correct one?
Replies (1)
Replies (2)
I don't think a notion of preternaturally honing in on the optimal solution without wasting any time thinking through incorrect solutions or dead ends is a realistic portrayal of the way humans work on solving hard problems.
Even in the lockpicking example, after the average person has "learned" how to pick a lock. In the act of picking a lock many, if not the majority of your movements, are wasted and do not actually unlock the lock. If you could calculate the exact optimal set of movements to unlock the lock you'd eliminate a large portion of those which the average lockpicker performs.
Even the expert lockpicker only would master those exact perfect movements on a single given lock by practicing over and over and failing many times to perform them optimally along the way.
Replies (1)
Replies (1)
Continue this thread (1 replies) →
also you can read some of the reasoning traces here: https://github.com/openai/math/tree/main/reasoning_traces
Replies (1)
There's a reason that most math hasn't been formally verified, decades after it's been "feasible" in the sense that the technology exists and is wide spread. Formal verification is just too counter-intuitive for humans to manage quickly.
Frankly any dismissal of LLMs' math ability is cope at this point. It proved the Riemann Hypothesis, anyone who trivializes that or thinks that could be brute forcing either doesn't know what they're talking about or is lying to themselves.
Replies (2)
It is 100% brute forcing. It's a more intelligent brute force than trying literally every combination, but that's exactly how it works. Generate millions of permutations, then walk backwards through them to see which matches the pattern most correctly.
In the case of programming there are other logical domain specific checks as well and testing that can all be incorporated.
That's how all of the generative AI works, generate millions of options based on the preceding pattern then test which option is the best fit, add it to the pattern and on to the next step.
Replies (3)
Perhaps with Riemann or similar that could apply, but I would hardly call it brute-force in the traditional sense of the term.
Replies (1)
Now I am open to hear how you interpret it differently, but the I don't think it's possible to abstract it away from a guess and test approach at the most basic level.
Replies (1)
I'm also confused what you think human software engineers do when they write programs. Don't you also test what you write and iterate on any errors?
Replies (1)
Replies (1)
Continue this thread (1 replies) →
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.
Replies (4)
Replies (4)
Yes, absolutely you can build a web server or CLI tool in Lean.
The compiler lowers your code to C, and a bundled clang turns that C into a native binary so it can actually be fast. It also has an FFI. The community is small but there are a growing number of general purpose libraries.
Lean is a pure functional programming language whose type system is strong enough to write proofs. To keep proofs sound, it adds some constraints, but there are escape hatches and you can absolutely use them for general purpose programming.
If you want to see a dependently typed language that can act as a proof checker but is actually aimed at building "regular" software, check out Idris.
> And would it be like… proved??
No, using one for a "regular" programming does not mean you have done any formal verification. You would have to specifically use the theorem proving language features to prove anything.
> Do “proofs” make sense in the context of regular ol’ software?
Yes! You can write proofs about invariants in your program and have the compiler enforce them. For example, you could write a list index function that requires a proof that the index is in bounds. Writing proofs is hard and you have to think like a type theorist, but you can do some really cool stuff in these languages.
https://agentultra.github.io/lean-4-hackers/
You don’t need to write proofs. You can if you want to. Like you could prove that adding two sized vectors results on a new sized vector with the appropriate length. That’s a trivial one but the sky’s the limit with what iou want to prove about your programs.
The future is here, and we do not know yet what we can do with it, and how fast it will become the past.
It is today not at all ridiculous - in fact, it’s becoming irresponsible to not have formal proofs for the software you’re building.
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.
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.
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.
Replies (9)
Replies (2)
Replies (3)
Those prices are subsidized by vast amounts of venture capital.
Those costs ignore the externalities of current LLM implementations.
So, these results have a cited collective cost of a few 10’s of millions of dollars. And possibly a true cost of hundreds of millions.
Has there ever been that much invested in (human) mathematics over a span of a few years? The only thing I can think of that might come close is the Manhattan Project?
I don’t think this proves anything either way, but it does seem like a massive investment in foundational work.
Replies (1)
And OpenAI and Anthropic between them raised more in VC capital than both of those projects combined (again, inflation adjusted).
Continue this thread (1 replies) →
So, we can't take every dollar spent on mathematicians and assign it as a debit to solving proofs. Some percentage, maybe.
Just like the OpenAI token spend; they need to be accounted for at the wholesale price, not the retail.
Replies (1)
what's even more depressing, is that these math problems almost like a gym for a bigger problems to solve. if they can crack math problems, chemistry physics etc, will be next with some extra tools: robots, quantum compute etc.
We underestimate how much a very thorough and dedicated process can accomplish.
This is DHH's theory of why it's finally the year of Linux on the desktop, what makes Linux hard for humans - you need to use a terminal, tons of text config files, inscrutable but detailed error messages, are exactly the kind of stuff LLMs thrive solving.
Windows/Mac are easier for humans to maintain, but they give very little access to their internals to LLMs, so agents are less effective changing stuff.
Replies (4)
Not really, on Mac there's OSA layer, there's no equivalent for that in Linux. LLMs are beyond amazing (and horrifying) with that thing.
Replies (1)
How the table turns.
That sounds scary and makes me question the foundations of all of this.
Replies (5)
Replies (1)
Replies (3)
https://xenaproject.wordpress.com/2026/11/12/and-the-proof-i...
Put another way, it's essentially a type checker running on the AST.
Continue this thread (1 replies) →
The goal of the AI is then to write a term (a program) of this type. If the AI can write such a piece of code and it typechecks against the problem statement type then problem statement has been proven.
It doesn't matter if any of the subroutines correspond to existing mathematical knowledge, so long as the AI doesn't cheat the type system. There are many tools to assert that the AI didn't cheat the type system and so far everything has checked out.
Due to the nature of domain it is more or less guaranteed that any subroutine necessary to build a /valid/ proof statement for the Riemann Hypothesis will end up being encodings of existing mathematical structures or novel new ones.
Continue this thread (1 replies) →
Replies (1)
Replies (1)
Again, no tool is 100% reliable, but the community really has gone the extra mile to get as much certainty as possible. If you believe that the Higgs Boson exists, or the HI Virus, or that the Roman Empire existed, or Dinosaurs, then you should believe that the Riemann hypothesis is true (and that's factoring in that math has a different standard of evidence than empirical disciplines).
Replies (1)
Replies (1)
I'm not a mathematician, just a computer programmer who occasionally tries to read maths papers. Every time I do, I want to scream in frustration. What meaning did they assign to ω this time? What operation is this weird new 2D arrangement of dots, oversized odd-looking brackets and lines meant to impart? Where is the F12 button that takes me to the definition of their newfangled concepts?
Over and over again, you hear they stuff it up. (The Fields medallist Voevodsky, for example, turned to proof assistants after finding errors in his own published work.) Perhaps the logic didn't follow, or the operations didn't combine as they thought. Of course they didn't! If computer programmers had to get the logic perfect without type checking, we may as well be writing assembler.
You only get automated checks if you formalise your notation and languages. To do that you have to give up brevity. A simple hand-wave like "without loss of generality" can become pages of proof. The freedom to name and structure things however you damned well please disappears. It's undoubtedly harder to write that way - I'm sure every Rust programmer sometimes feels like most of their effort went into escaping a jail so they could get the job done. In return you get automated checking and a near-universal language that can be reused. And it's easier to read. The old adage that code will be read far more times than it's written applies to maths papers too.
To me, decrying the use of formal languages is at the same level as passing laws saying a car must follow a man waving a red flag, so the car doesn't scare the horses. Rewriting maths in a formal language isn't scary - it's a technological breakthrough in the productivity and accessibility of maths.
Replies (1)
Replies (1)
The whole goal of mathematics has been to provide a formalism by which we can proveably and consistently talk about universal facts. It is only natural that this was adopted to computers
Replies (1)
Replies (1)
According to gemini, Anthropic alone has spent ~$20 billion on compute/infra alone since their founding, and all math research in the US is only ~$1+ billion/year.
Could we have already gotten here if we spent an extra $.01 billion/year over the last 10-20 years in augmenting existing math research with developers who specialized in automated/semi-automated proofs/logic? I think it's possible.
At the same time, we didn't, and I think there's a lot be to said for math research maybe being a bit inflexible. But I don't think that frontier models, with help from human experts, being able to do things humans haven't done yet with hundreds of billions to trillions in capital expenditures implies that we couldn't have done the same given a different research landscape with less invested in human/compute (or maybe even less that what was spent on tokens).
Replies (4)
Agreed in principle but it’s not an exact apples to apples comparison because the compute has market value by virtue of being hardware. In a sense maybe they really only spent $10 billion if you wanted to compare directly to US mathematics research.
As I was writing this comment though I thought - did US mathematics research need more money, or was the approach by broad comparison simply inefficient? Or insufficient? Seems like additional investment might simply have resulted in more cooks in the kitchen whereas the Anthropic and friends investment actually put resources to the problem solving?
No, we couldn't. This was tried and failed before, see e. g. knowledge systems or machine translation or computer vision. The famous bitter lesson.
Replies (2)
It could be analogous to the other systems you mentioned, but not the same thing, and I'm my experience knowledge systems are underutilized. People like LLMs because they're generalized, but older machine vision, machine learning, knowledge systems, etc... I think still have their place and are sometimes overlooked.
Replies (1)
Most of the money in AI is not spent on training and research, but in serving inference to customers. Training the model capable of doing math discoveries is (comparatively) cheap, serving it to the whole world is not.
Continue this thread (1 replies) →
Replies (2)
The question to me is, would a competency weighed amount of their spending be better or worse than the same or less spending in different ways in the same fields?
Automated solvers have been tried since the beginning of AI research. We still don't have effective explicit heuristics for proving theorems like we have for, say, 3SAT. So, no, automated solver would have get lost in a combinatorial explosion and no amount of compute (available on Earth, that is) would have changed it.
Also not in the field, but after spending some quality time with my LLM of choice asking a lot of questions and reading links, this is where I landed too. Theoretical mathematics, like advanced coding, is a unique class of complex problem which requires special domain expertise, is extremely labor intensive, has a brutally large search space yet is relatively easy to verify. This makes both of them extremely well-suited to RLVF-like approaches.
Another factor is simple economics. Many of these "open problems" were still unsolved not because they were impossible for humans to solve, but because the amount of work dwarfed the near-term practical value. Otherwise there would already have been more funding and people devoted to grinding through them "the hard way". The supply of domain experts willing and able to spend years grinding through those search spaces didn't match the sheer scale of the problems. It's not much different than the tunnels through mountains and man-made canals that remained undug until steam shovels and TNT changed the economics.
Replies (1)
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.
Replies (3)
If I understood correctly, the Riemann Hypothesis proof went through many iterations with a human discussing the eventual proof with AI, and parts of the theorem were getting proven in Lean along the way. So it's a bunch of feedback loops, not a linear pipeline.
Replies (1)
Likewise, Lean allows bs results from LLMs to be thrown into the trash and keep going. Ask any LLM to prove any long standing hypothesis without using Lean, and it'll be certified garbage.
Replies (2)
It does threaten the belief that humans are uniquely special due to our thinking ability. But the growing distrust of big tech, corporate power, and corruption is also a big part of it. Years of inflation and an increasing feeling of "instability" across the world doesn't help either.
People feel this technology threatens their livelihoods and security. And they may be right. Even if they aren't always voicing their concerns clearly.
Replies (1)
Replies (1)
Replies (1)
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/
Replies (1)
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.
> 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
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...
> 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.
Replies (2)
Evidently you can.
Replies (1)
Replies (2)
Replies (1)
Come to think of it, it seems that "brute force," as used by, say, Terence Tao, is a humorous description to anyone who has worked with frontier models, but evidence of agents being dumb to anyone who still believes in stochastic parrots.
Continue this thread (1 replies) →
Replies (1)
Isn't this simply the reality of the creation of a new formal verification language and the entire corpus of mathematical proofs being the backlog? It looks like Lean wasn't even ready to start with this type of project until the last 5-10 years.
I would argue that the present is THE evidence of Lean enabling mathematicians to both prove things and formalize existing proofs quicker, as GenAI is also the product of mathematicians; similar to the abbacus, calculators, then computers being past multipliers.
The main difference is GenAI can now scrape and process that historic backlog, looping through all historic proofs to formalize them, then applying all known techniques and approaches to everything currently undiscovered/unproofed.
Replies (2)
It was necessary but insufficient.
> GenAI can now scrape and process that historic backlog, looping through all historic proofs to formalize them, then applying all known techniques and approaches to everything currently undiscovered/unproofed
Yes.
GenAI is the difference.
We've had formalization of math in various forms for decades. It just wasn't very useful.
If we hadn't had Lean but had GenAI then we'd have developed another formalization language and we'd be maybe a month behind where we are now.
But no GenAI, no GRH proof in my lifetime[1]
[1] yes, I know the claimed human written one. There seem to be too many problems found already in that to fix it.
I was told it's doable but very painful. No one had done it. It's not fundamentally hard. Just very, very tedious.
If you follow Kevin Buzzard's work before LLMs, you can see the monumental effort it was taking him along with students and collaborators to formalize undergrad textbooks.
No, I don't think these results would have happened via Lean in 10-20 years without LLMs.
These LLMs are solving 50-100yr old problems ffs!!
Zero. The search space is basically infinite, without sound reasoning (for which you need some kind of AI) you'd get nowhere.
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.
Replies (1)
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.
2026 LLMs can cut on both significantly, which could explain most of the results.
This does not make it any less impressive to me.
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.
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.
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.