From LLMs to Agents
AI Agents that Solve Math Problems
October 10, 2026
The Millennium Prize Problems are seven famous mathematical problems selected by the Clay Mathematics Institute, and considered the hardest problems across all of mathematics. Solving one of these problems comes with a million-dollar prize attached.
On September 8th 2026, OpenAI announced that one of their new internal Agentic AI systems had solved NavierāStokes Problem, one of the seven Millennium Prize Problems. The NavierāStokes equations describe how fluids move, and the Millenium Problem asks roughly, whether smooth initial conditions always stay smooth, or whether the fluid can develop a singularity in finite time. OpenAI's paper claims the second: a blow-up.
The effort was enormous. According to OpenAI, 10,000 agents running an internal model more capable than the new GPT-6 Astra worked on the problem for about 88 hours non-stop, burning through the equivalent of approximately 6 million USD.
OpenAI published two papers
- a 57-page paper Finite Time Blowup for the Euler Equation that introduces the concept used in their approach, and shows how they solve the same problem for a simpler case (the Eurler Equation)
- The 166-page paper Time Blowup for the Navier-Stokes Equation that explains their proof for the Navier-Stokes equation.
- Lean certificates accompanying Navier-Stokes and Euler results
Crucially, the proofs came with a version in Lean. Lean is a proof assistent, a 'programming language' for mathematics of sorts. By writing a mathematical proof as Lean code, a computer can check every single step. If a step doesnāt follow from the previous ones, the code simply doesnāt compile.
This makes Lean a powerful kind of guarantee. You donāt have to understand all 166 pages of the paper, or trust the authors. You only have to trust that a small, well-tested program (Lean) can verify the correctness of the logic.
That's how we know it is all correct. The Lean proof compiles, so OpenAI solved the Milennium problem. Or did they?

Introduction
At its core, a large language model does one thing: it predicts the next token. Ask it for a mathematics paper and it will happily write one, token by token, in the confident style of a real research article. The trouble is that nothing in that process checks whether the mathematics is right. A single wrong step on page 2 can make every page after it worthless, and the model has no built-in way of noticing.
This can make it uniquely frustrating to work with an agentic AI system on a maths or physics paper. The model is trained to produce the most likely continuation, and trained to produce answers people approve of. A human who is stuck writes "I don't know how to do this step." But an LLM might writes a smooth sentence that makes it look as if the step was obvious, only for the human writing the paepr to later realise that there are all sorts of detailed not adressed in his paper.
AI Agents, Math, and Hallucinating
Matthew Schwartz, a Harvard physicist, gave an amazing first-hand accounts of this in his blog post "Vibe Physics". He describes how he is trying to work on a quantum chromodynamics calculation, by guiding Claude to do all the work for him, from planning to finished paper, without ever editing a file himself. The result was a publishable paper in two weeks instead of a year. But the path there was a non-stop chain of bizarre hidden errors, frustration, and endless rewrites that followed exactly this above pattern.
It all looked good enough that even Schwartz himself didn't spot the errors immediately. Every gap is papered over with fluent prose and a plausible justification, so the cost of checking actually goes up. You can no longer easily skim a paper, because weak spots are written in exactly the same confident voice as the strong points.
Plots agreed because Claude had been adjusting parameters until they matched, rather than finding the underlying errors. Claude produced "verification" documents that invented coefficients appearing nowhere in the paper. It asserted results without deriving them. It simplified formulas in the code until they were trivially true. Schwartz's paper only became correct because he is an expert in the field who could check every step himself It took him multiple rewrites, and hours to pin everything down. Claude could not find it on its own, because it was convinced that what it already had was correct.
How to Build a Math Agent
October 10, 2026
As we discussed in many earlier posts on this blog, the way to build a good agentic system is not to make the LLM smarter, but to give it structure: a process, laid out as a graph of steps, in which the model can use tools and systematically run checks to get feedback on the ongoing work.
Computer programming is an ideal setting for this, because code is full of things a machine can check. A compiler or linter tells you whether the syntax is correct. Running the program tells you whether it actually executes. And running the code for different inputs tells you whether it does what it should: give it a known input and see if you get the expected output.
AI Agent that can do Math
What can we do in mathematics that is similar? The answer is very much the same: give the agent mathematical tools, and build the same kind of validation loop as for coding agents.
To perform symbolic calculations, we may start with a precise formulation of a statement in a computer algebra system. Computer algebra systems such as SymPy, Mathematica, Maple and SageMath can reliably do symbolic calculations, take derivatives and integrals, and solve equations exactly. This allows us to remove a whole class of errors that we suffer from when trying to use an LLM on its own to write out equations: a dropped factor of 2, a sign error, etc.
A computer algebra system can tell us that two expressions are equal, but it works on expressions, not on statements. It also makes silent assumptions of its own: unless told otherwise, a system may happily simplify ā(x²) to x, quietly assuming x is positive.
This is where a proof assistant like Lean comes in. Every statement must be written down precisely in Lean, with all its underlying hypotheses explicitly there. It can then check that every step is justified by an earlier result or a basic rule of logic.
The two can work together. We can define a set of objects and functions using proof assistant, allowing us to check general statements about the relations between these objects. While we use a computer algebra system to perform actual calculations and algebraid manipulations, possibly as part of the proofs we are trying to work out.
So the basic structure underlying a mathematical agent looks like this: we start with a precise statement written in Lean: the theorem we want to prove. The agent tries to write a proof, and Lean tells it exactly where the proof fails. The agent revises, using computer algebra for the heavy calculations, until Lean accepts the proof. Only then does the agent turn it into a paper humans can read.
This (see also the diagram below) is roughly the approach OpenAI took to solving the Navier Stokes problem. But as we will see next, the approach is unfortunately not as waterproof as we might initially have hoped
What is Lean and how does it work?
Lean is a proof assistant: it lets us write mathematical statements and their proofs in a precise, formal language, that allows a computer to check that every step follows from the axioms, definitions and previously proven results.
Lean is a full programming language, but we use it slightly different. We don't write a program to run and produce an output. We write proofs and ask Lean to check them. To do that checking, Lean uses an idea every programmer knows: types.
In a typical programming language, the type checker makes sure every value has the right type. "hello" is a String, 42 is an Int, true is a Bool. If you pass a String where an Int is expected, the program is rejected before it runs.
Lean pushes this idea all the way:
- A mathematical statement (a proposition) is a type.
- A proof of that statement is a value of that type.
Checking a proof then becomes checking: is this value really of that type? This idea is known as the CurryāHoward correspondence, or "propositions as types."
An example
theorem two_plus_two : 2 + 2 = 4 := rflA theorem in Lean always has the form
theorem name : statement := proofReading the example piece by piece:
two_plus_twois the name of the theorem, so we can refer to it later.2 + 2 = 4is the proposition we claim is true. In Lean, this is a type.rflis the proof, a value of that type.rfl(short for reflexivity) is the proof that anything equals itself:a = a. Lean accepts it here because it can evaluate both2 + 2and4and see that they reduce to the same thing.
In programming terms, this line says: "define two_plus_two to be a value of type 2 + 2 = 4, namely rfl.
Proving a theorem in Lean is the same as constructing a value of its type.
When a statement is false
theorem two_plus_two_wrong : 2 + 2 = 5 := rfl -- errorLean rejects this. 2 + 2 and 5 do not reduce to the same value, so rfl is not a value of type 2 + 2 = 5. In fact no value of that type exists: a false proposition is a perfectly valid type, but an empty one. You can write the statement down; but you can't prove it.
If we had to start from the most fundamental axioms every time, nobody would get anywhere. Fortunately, Lean allows us to collect definitions and proven theorems into libraries, which we can import and build on. Every theorem in such a library has already been checked by Lean. The largest of these is Mathlib, a community-maintained library covering a large share of undergraduate and graduate mathematics.
What Lean does not check
Lean guarantees that the proof proves the statement as written in Lean.
It says nothing about whether that statement is what you meant. If a paper claims a result in ordinary mathematical language, someone has to translate that claim into Lean. A small mistake in the translation, such as a missing assumption or a definition that differs subtly from the one in the paper, can produce a perfectly valid Lean proof of the wrong theorem.
The trust has moved from the proof to the translation: We no longer need to check every step of the proof by hand, but we do need to check that the formal statement in Lean matches what the mathematician is claiming to proof. The mathematician's job becomes:
- translate the statement to be proven correctly into Lean,
- construct a proof that Lean accepts, and
- interpret the verified result back in ordinary mathematical terms.
Steps 1 and 3 still require human judgement. But step 2 is where Lean really has the potential to speed up AI system that generate proofs for new statements.
Is the OpenAI proof in Lean wrong?
October 18, 2026
Probably not. The Lean proof compiles, and a compiling Lean proof is about as strong a guarantee as mathematics currently has. But "the Lean proof compiles" and "NavierāStokes solutions blow up" are not the same claim. There are several subtleties, that leave room for mistakes to creep in:
-
in proving the statement, the AI Agent may have exploited errors in some of Lean's math libraries like Mathlib, where some conventions can behave strangely at the edges.
-
the proof statement to may have been wrongly formulated in Lean.
-
the AI Agent may have found a bug in Lean itself, that is exploited, to get an incorrect proof to compile
Let's go through them from least to most likely.
Could there be a flaw in a Lean code for the proof?
Some operations in Mathematics are undefined. For example, division by zero. But in Lean, every expression must have a value, so we have to decide what those āundefinedā cases return.
In the Matlib library, division by zero gives zero. Mathematicians call these junk values. They are harmless as long as you never use them, which is why theorems about division usually carry a hypothesis like x ā 0. They are harmless as long as you only use them to check that something resulted in something undefined.
The Lean statement of the NavierāStokes problem shows the kind of care needed. One of the conditions a solution must satisfy is that its kinetic energy stays bounded for all time:
globally_bounded_energy : ā E, ā t ā„ 0, (ā« x, āv x tā ^ 2) < ERead naively, this says the total energy of the fluid (the integral of the squared velocity over all of space) never exceeds some fixed bound E. But in Mathlib, the integral of a non-integrable function is 0. A velocity field with infinite energy would therefore get an energy of 0, and would satisfy the bound trivially.
To closes this loophole, we have to add a second Lean condition right next to it:
integrable : ā t ā„ 0, MemLp (āv Ā· tā) 2which requires the velocity to be square-integrable at every moment, so the integral above is always a genuine integral and never a non-integrable function.
A Lean statement that accidentally allows for these junk values can become easier to prove than intended. And an AI agent searching for anything that compiles is very good at finding such shortcuts.
Could the proof statement in Lean have been formulated incorrectly?
This is the real question, so I dug around a bit into where the Lean statement that was proven originally came from.
OpenAI did not write out its own definition of the NavierāStokes problem in Lean. But there also wasn't a widely accepted version laying around to use for them either.
OpenAI copied the proof statement for the NavierāStokes problem from Google DeepMind's open-source formal-conjectures repository, a collection of open Math problems stated in Lean so people (and AIs) can try to prove them.
Google DeepMind's open-source formal-conjectures repository is largely supported by Lean enthusiasts. The Lean formulation of the NavierāStokes problem was added back in January 2026 by Tomas Skrivan, in pull request #1457.
As can be read in the PR comments, Tomas based himself on the official pdf by the Clay Mathematics Institute problem description. Though he did write his Master Thesis on fluid dynamics and vortices, and worked on SciLean (a library for scientific computation in Lean), he doesn't consider himself an expert on Navier Stokes. A reviewer later pointed out that this official Clay problem statement also has known errata, and checked whether the Lean statement accounted for them.
Several experienced Lean Mathlib contributors went through it line by line in early 2026, and reviewed it rigurously. There are several independent Lean formulations of NavierāStokes in other open-source projects, and according to some people these have been shown to be equivalent to one another, which is good evidence that they all capture the same truth lean-dojo.
But equivalent formulations can still share the same subtle mistake. Whether some conditions should hold from time zero or only just after it, may for example be the kind of small details that could matter a lot in the end. As far as I know, no specialists in NavierāStokes itself have publicly signed off on these Lean formulations of the Navier Stokes problem.
By May 2026 (less than 4 months before OpenAI would publish their proof), the formulation of the Navier Stokes problem was merged into the main branch of the Google DeepMind repository by Paul Lezea with a cheerful "LGTM, let's merge this!" Not knowing that this small pebble in the pond of mathematics would 4 months later lead to a massive tidal wave.
Could there be a Software bug in Lean itself
Lean's design keeps the part you have to trust very small: a compact kernel that re-checks every step of every proof. But "small" doesn't mean "bug-free".
Only a few months ago, in the summer of 2026, AI researcher Ramana Kumar let AI agents loose on the Collatz conjecture in Lean. They came back with a proof that was accepted both by Lean's official kernel and by the popular alternative kernel nanoda. It turned out to rest on software bugs: one in the official kernel, and a different one in nanoda. The agents had found different errors in both, that it exploited to get the proof to compile.
So why should we trust the Lean kernel this time? Mirek OlŔÔk, who works on formal mathematics and AI and helped review the NavierāStokes statement, gives a careful answer in a blog post (in Czech):
- Bug hunts. After the Collatz incident, people set agents to work specifically to find further bugs in Lean's kernel and in nanoda.
- Comparator. Lean now has an official tool for checking untrusted proofs, Comparator. It runs everything except the kernel inside a sandbox, exports only the low-level logical steps, and checks them against the statement with one or more kernels.
- A kernel that proves itself correct. A new Lean kernel, con-leche, was written (largely using Claude Code). And comes with a proof, in Lean, of its own mathematical correctness. That proof should catch ordinary software bugs. Various researchers at OpenAI contributed to these improvements as recently as August 2026.
This new verified kernel has checked OpenAI's NavierāStokes proof. A false proof would now have to slip past several independent kernels at once, including one that is itself verified. So it seems unlikely that there might still be major issues in the Lean kernel after all of this, but not something to easily dismiss.
Is the OpenAI paper wrong?
October 18, 2026
Probably, the papers probably has at least several mistakes in it where it doesn't follow the Lean proof correctly that it is supposed to explain.
In the ideal case, when a Lean proof compiles, it means every step follows from the previous ones, all the way from the starting assumptions to the final statement.
Using Lean we can check that a proof compiles. But after constructing the proof in Lean, the next question becomes how we translate this into a very nicely written paper. If we just ask an LLM to translate every statement in Lean into text and equations, there are still things that can go wrong.
That gap turns out to matter. Professional Mathematicians who tried to read the 166-page paper Time Blowup for the Navier-Stokes Equation describe the result as close to incomprehensible. Which makes the Lean version of the proof the main reason to believe OpenAI managed to solve the problem.
Lean Code that compiles does not guarantee the paper is correct
After a theorem has been correctly formalised and set up in Lean. Using Lean, does not guarantee that an AI system will translate the whole proof from Lean correctly into human readable natural-language. This final step is where things seem to have started to fall apart.
On 6 October, Alexander Bastounis, Fabian Circelli and Anders Hansen posted their paper "NavierāStokes lost in translation". They pointed out that it is very difficult for an Agentic AI system to faithfully translate natural-language into Lean, as well as translating statements written in Lean back into human language, so that every definition, lemma and proof keeps its meaning is a very difficult and general problem.
They then point out two places where OpenAI's paper diverges from the Lean code that it is supposed to explain:
-
One weaker lemma in the paper (Lemma 8.6) bounds a function using four more derivatives than the output. The corresponding Lean code needs five, and uses a different summation argument to get there.
-
In a bound for a pressure-flux estimate used in a uniqueness argument (equation 10.19), the Lean code proves a different inequality, which depends on an additional quantity, and gets there through different tools: a Sobolev embedding instead of the boundedness of the Riesz transform used in the paper, and Hƶlder's inequality with different exponents.
-
They found a related bound that is compiled as part of the project but is never used in the proof of the main theorem.
These specific examples don't mean the Lean theorem is incorrect. But it shows how part of the Lean code wasn't properly verified against the paper. The 166 pages and the Lean files are two different proofs, and that checking one tells you very little about the other. It could be that only the Lean proof is correct, and the paper they published for human readability might have 'translation errors' in it.
Two Examples
The authors illustrate these issues in with two small examples using ChatGPT-6.
In the first example, they give it an incorrect statement, and ask it to prove it using Lean. The system quietly fixes the mistake, and returns a correct Lean proof that compiles for the new changed statement. The Lean file is fine; but the proof it supposedly verifies is wrong (and has been quietly changed before the Lean code for a different problem was generated as a solution).
In the second example, they give it a correct proof, and ask it to work out the proof using Lean (using a specific approach). The system returns a Lean proof that skips the diagonalisation approach entirely, and gives a proof that uses a different approach (symmetry) instead. Both proofs are correct, but they are different proofs. The Lean proof again compiles, but now doesn't follow the steps and logic mentioned in the paper.
"The most important problem remains unsolved."
Even if the Lean statement is a perfect version of Clay's problem statement, there is another subtlet gap between what the Clay Institute asks to proof to be awarded the prize money, and what most mathematicians and physicists are actually interested in:
Can a fluid, when left to itself, spontaneously develop points where the velocity becomes infinite? Mathematicians call such a point a singularity, or a blow-up.
In two dimensions, the answer is known and solutions stay smooth forever. In three dimensions, most mathematicians suspect a fluid will always stay smooth as well. The prime suspect that might create such a singularity is due to a process known as 'vortex stretching'. When a spinning tube of fluid is stretched, it gets thinner and spins faster, like a figure skater pulling in her arms. In three dimensions, the fluid flow could stretch its own vortices, which then spin faster and stretch the surrounding fluid flow even more. Could this stretching ever run away fast enough to concentrate infinite spin into a single point? But no one has been able to prove it, but no one has found a counterexample either.
That is the real NavierāStokes problem. And this is exactly the version OpenAI did not solve.
When Charles Fefferman wrote the official problem statement in 2000, he offered four ways to win. Either by proving that a smooth solution always stays smooth - throughout all of space (A), or periodically repeating itself (B). Or, by proving that a smooth solution breaks down when applying an external force (again in either setting, C and D).
OpenAI set out to proof the second case; that the NavierāStokes equations can break down when pushed. It is very well possible that the NavierāStokes equations can break down only when pushed. And that a fluid left to itself might always stay smooth, while a fluid pushed in exactly the right way can break down.
OpenAI proved a breakdown statement, using a carefully engineered force to produce the singularity. That is a legitimate solution to the problem as written. But it answers a less interesting question than the one most mathematicians and physicists care about: can a fluid, with nothing pushing it, develop a singularity on its own?
That question remains open.
What this teaches us for Agentic Engineering
October 10, 2026
Lean is very good at answering the question "does this formal proof prove this formal statement?". Having designed a Math agent that can check the steps it is taking in Lean, we see that the remaining bottleneck for these types of systems is in the last step, where they currently still fail to answer the last question we actually care about: "does this formal statement, and this formal proof, say the same thing as the mathematics written in the paper?"
That second question is about translation, and turns out to be surprisingly hard.
Mathematical language is more ambiguous than it looks
We like to think of mathematical writing as precise, but it is full of conventions that every reader silently fills in.
- Does start at 0 or at 1? It depends on the author.
- Does "smooth" mean infinitely differentiable, or just "differentiable enough for this argument"? Both usages are common.
- Does mean ? Yes. Then does mean ? No, it usually means .
- "For every there is a " and "there is a for every " can mean very different things, and in spoken mathematics the order is often left to context.
A human reader resolves these ambiguities using context, experience, and a sense of what the author must have meant. Translating mathematics faithfully into Lean therefore means resolving every ambiguity in the way the author intended. The question is how hard that is.
Some problems cannot be solved by a computer
Alan Turing showed in 1936 that there is no program that can look at an arbitrary program and decide whether it will eventually stop (halt) or run forever. This is the Halting problem. It's not that we haven't found the right algorithm yet: Turing proved that no such algorithm can exist.
However, we can solve the Halting problem in the limit. Imagine we run a program for 1 step. If it has stopped, answer "halts", otherwise answer "doesn't halt". Then run it for 10 steps and answer again, then 100 steps, then 1,000, and so on. The sequence of guesses always converges to the right answer. But the catch is that you can never know when you have reached the final answer.
The Solvability Complexity Index (SCI), a framework developed by Hansen and collaborators, classifies problems by exactly this kind of reasoning: how many limits do you need to take, one inside the other, before your guesses are guaranteed to converge to the right answer?
SCI = 0: solvable directly, in finitely many steps. A normal algorithm. SCI = 1: solvable with one limit, like the Halting problem: a sequence of guesses that eventually becomes correct. SCI = 2: you need a sequence of such sequences, a limit of limits. And so on, with each level strictly harder than the one before.
The claim of Bastounis, Circelli and Hansen is that faithfully resolving ambiguities in mathematical text sits at SCI = ā: no finite number of nested limits is enough. The intuition is this: to decide which of two readings an author meant, you sometimes need to know which reading makes the argument work. But deciding the truth of arbitrary mathematical statements can climb arbitrarily high up the hierarchy. So, in a precise sense, faithful translation is harder than the Halting problem.
Humans can't solve the Halting problem either, yet mathematicians read and correctly understand each other's papers every day. Most ambiguities in practice are easy to resolve.
What the result does tell us is that there is no method, AI or otherwise, that is guaranteed to always get the translation right. The results will always need to be cross-checked according to multiple methods.
Essentially this is how the mathematical community comes to a concensus. Different mathematicians check a result, following the methods they have in their head. But no single method is always guaranteed to be correct.
Agents optimises for what you measure
You don't need any of the theory to see the problem in practice.
When an AI system is asked to formalise a proof, the signal of success is simple: the code compiles, with no sorry placeholders and no extra axioms. That is a pass/fail check, and a capable agent will find the easiest route to passing it. If the original argument is hard to formalise, it will find a different one.
If a lemma is awkward to prove as stated, it will prove a slightly weaker version that still lets the rest go through. If the original proof contains a mistake, it will quietly fix it. None of this is flagged, because none of it causes an error. Anyone who has worked with AI agents might recognise this.
If translation can never be fully automated, should out goal then be to make the remaining human checks as small and as focused as possible? Humans review the translations between statements and Lean code, not the proof itself.
The beauty of Lean is that we don't need to check 166 pages of proof: the kernel does that for us. What humans still need to check is the top-level theorem, the few lines that state what has been proven, and how this got mapped into Lean. Experts should verify that this statement says exactly what the Clay problem says, with every assumption visible.
Right now this remains to be checked. By letting accountable authors sign off on the translations of the individual statements, we ensure the concepts are verified and that someone has to put their name on it. A mathematician who signs a paper is staking their reputation on it, and is available to answer questions. A swarm of 10,000 agents is not always that helpful on this part.
How to systematically build trust?
After writing a whole proof in Lean, an LLM on its own might simply not be enough to turn the Lean code into a well translated paper.
After setting up the structure of the problem in Lean, we can start to write the paper based on the Lean code. But it might be that we can still gain a lot from the final steps in trying to set up this translation as accurately as possible.
We might be able to define some kind of intermediary data structure. So that every Lean proposition, can be mapped lemma to an matching statement in the final written paper. If we take the formal Lean proof is the ground truth, then the human-readable explanation should be derived from it, lemma by lemma. This might make the composition of the final paper much more structured.
While we keep the mapping from the ambiguous language into the exact definitions as tracable as possible. An approach like this might guarantee the final paper correctly describes a proof that was actually verified
Lean is an extraordinary tool, and it may be the thing that makes AI-generated mathematics trustworthy at all. But for now it moves the question of trust, rather than answering it.
