Towards a Unified Approach to Numerics and Proofs in PDEs

Rigorous numerics, verified floating point and exact arithmetic in Lean, and what we learned from formalizing Leray–Hopf nonuniqueness.

Authors

Affiliations

Published

Robert Joseph George

December 2026

It has been a rather interesting year for mathematics. In September, OpenAI announced a computer-generated proof of finite-time blowup for the Navier–Stokes equations with smooth forcing, together with a proof for the unforced Euler equations. In November, Levent Alpöge, Tristan Buckmaster and Matei Coiculescu produced a further proof of singularity formation for unforced Euler, and Alpöge and Buckmaster announced a computer-assisted proof for unforced Navier–Stokes. There was even an AI-assisted claim concerning the generalized Riemann hypothesis. Terry Tao’s discussion of the November results gives a sense of how different these developments are, both mathematically and in how much of each argument has been understood and checked.

The fact that we are now discussing AI-generated arguments for problems of this magnitude, including Millennium Prize problems, is remarkable. (This is not to say that all these claims have been settled. As of this writing, the Clay Mathematics Institute still lists the Navier–Stokes problem as active, and the numerical certificate for the recent unforced blowup claim has not been released.)

Something I have been thinking about in particular is the numerical part of these proofs. It is fairly easy to imagine an AI agent spending a few hours writing Julia code, solving a nonlinear system, and coming back with a candidate solution to a PDE. But how do we check the candidate? Suppose the agent tells us that a residual is less than \(10^{-6}\). Is this a bound over the entire domain? Has it accounted for the error in the arithmetic? And can we use the bound as a hypothesis of an existence theorem in Lean without trusting the code that produced it?

These questions are not new. There is an entire field of rigorous numerics devoted to them. What I find interesting now is the possibility of combining that field with formal proof and AI, and doing so at a scale at which one can actually work on these problems.

Recently, with Changhe Yang, Peicong Song, Tom Hou and Anima Anandkumar, we formalized the Hou–Wang–Yang proof of Leray–Hopf nonuniqueness for unforced 3D Navier–Stokes. We checked over 117,000 numerical certificates in Lean’s kernel across two constructions. Much of our work was on the infrastructure needed to do this. This post is about that infrastructure, why I think it matters, and a little bit about what we learned from the PDEs themselves.

The short version

Here is the whole picture first. A numerical solver, or an AI agent, finds a candidate: the coefficients of an approximate profile, an eigenpair, some matrices. Lean reads those numbers exactly, as dyadic rationals, and a checker whose soundness is proved in Lean tests the finite inequalities in the kernel. An argument that is also in Lean turns the passing tests into a theorem about real functions. FloatLib lets the kernel compute with floating-point numbers, native formats included. SymLean does the symbolic and interval work, PDEAtlas has much of the analysis, and BlowupZoo collects the results and their proofs. For the Hou–Wang–Yang theorem the proof graph has 68,609 declarations, and we checked over 117,000 numerical certificates in the kernel.

A solver or AI agent and the certificate data on the untrusted side; the checker, its soundness theorem and the resulting theorem on the side checked by Lean; Lean's kernel, GMP arithmetic and the axioms as the trusted base.
Figure 1. Where trust sits in a numerical proof. The solver, the AI agent and the program that writes the certificate can all be untrusted. The checker’s soundness theorem is proved in Lean, so what remains trusted is Lean’s kernel, with its GMP arithmetic, and the foundational axioms.

BlowupZoo puts this result on a map of 945 results, and 18 of its proofs, this one included, have proof graphs that open down to their declarations. Both are live pages, so open them and click around:

Figure 2. The BlowupZoo map: 945 results in ten families, at the positions of the live map, and the 2,571 relations between them (uses, strengthens, answers and models). The orange path climbs the blowup ladder from \(u'=u^p\) at level 0 to Navier–Stokes nonuniqueness at level 8 and the unforced Navier–Stokes equations at level 9, and the relations of each rung light up as it is reached.
Explore the live map here

Open it in a new tab

Figure 3. The proof graph of the Hou–Wang–Yang theorem in BlowupZoo: the theorem, its thirteen stages and the uses between them, each stage drawn larger the more Lean declarations prove it, 68,609 in all. The highlighted stage is the determinant criterion, with the stages it uses. The live graph opens every stage down to its declarations.
Explore the live proof graph here

Open it in a new tab

That’s the high-level picture. Now let’s go deeper :)

What are we trying to do?

There are two slightly different things I would like to accomplish with numerical computation in Lean.

The immediate one, and the main subject of this post, is certification. A researcher should be able to find a numerical solution in Julia, Python, MATLAB, or whatever environment is most convenient, and then have Lean check the inequalities needed to turn the solution into a theorem. I don’t particularly want to formalize every line of the optimization algorithm that happened to find a good candidate. Often it is much easier to verify an answer than to find it.

The other is a more general interest of mine: I would like Lean itself to become a good language for numerical computing. Lean is a programming language as well as a theorem prover. It would be nice to write numerical algorithms, execute them efficiently, and prove things about the arithmetic that they actually perform. There has historically been relatively little support for doing this compared with the mathematical infrastructure we have for real numbers. There is now a logical model for Lean’s native Float and Float32 types, and Lean 4.33 made a number of their operations reducible in the kernel. This is a useful development, but it is quite different from having a comprehensive, efficient library of verified numerical algorithms, flexible precision, rounding-error theorems and interval arithmetic. Native execution and kernel computation also have very different performance characteristics.

One thing I have enjoyed about working with LLMs on this problem is seeing the different ways they find to represent a computation in the kernel. Instead of trying to make the kernel execute a conventional floating-point program as written, one can sometimes express the same computation using a large integer, or a few bit shifts, or a suitable rational representation, and prove that the two computations agree. Some of these are classical algorithms that numerical analysts and computer algebra people already know quite well. What is interesting is finding ways to use them effectively within the reduction rules of Lean, and then making the representations and their proofs reusable. It would be rather unfortunate if every agent formalizing a new PDE had to rediscover its own arithmetic library.

This is where FloatLib and SymLean come in. Before talking about them, though, it helps to understand what the kernel actually does.

A little bit about Lean

If you haven’t used Lean before, the important thing to know is that a proposition is a type and a proof is a term of that type. The kernel checks that the term has the type we claim it has. Computation is part of this process: it can reduce expressions and check that they are definitionally equal. For instance,

Lean: a definitional equality, checked by rfl
example : (2 : Nat) + 3 = 5 := by
  rfl

The two sides don’t look syntactically identical, but the left-hand side reduces to the right-hand side. A tactic such as rfl produces a proof based on reflexivity of equality, and the kernel checks the conversion.

Natural numbers are logically defined using zero and successor. Of course, Lean does not allocate a million successive constructors every time we ask it to add a million and one. The kernel has special support for natural-number literals and efficient arbitrary-precision arithmetic: it stores literals as big integers and computes addition, multiplication, division, comparisons and shifts on them with GMP, the GNU multiple-precision library. Integers are built from naturals (with constructors for nonnegative and negative integers), and rationals can be represented by an integer numerator and a positive denominator.

Consider proving

\[\frac13+\frac17<\frac12.\]
(1)

Multiplying by the positive denominators, we get \(20<21\). We can write a Boolean comparison procedure for natural numbers and prove a theorem connecting the output true to the mathematical relation \(<\); the kernel then only needs to reduce the particular comparison. A theorem relating rational and real arithmetic lets us transfer the result to a statement about the reals. In Lean, Mathlib already handles this example:

Lean: an inequality between real numbers, by norm_num
example : (1  3 : )  1  7  1  2 := by
  

This idea of proving a general theorem about a checker and then evaluating the checker on particular data is called proof by reflection. For a large numerical proof, I would much rather prove the soundness of a checker once than construct a gigantic chain of elementary arithmetic lemmas for every entry of a matrix.

What about something like \(\sqrt{2}<1.4143\)? The real number \(\sqrt{2}\) is not rational, and Lean needn’t evaluate it. The finite comparison

\[200000000<14143^2=200024449\]
(2)

proves the inequality by monotonicity of squaring on the nonnegative reals. Similarly, \(14142^2<200000000\) proves the lower bound \(1.4142<\sqrt{2}\). For sine, cosine and the exponential, we can use rational approximations with proved bounds on their remainders. The exact mathematical functions are Mathlib’s; the computations take place on finite representations.

This is the pattern throughout the post. We have mathematical objects over the reals, a computational representation of some data concerning those objects, and a theorem connecting the two. We can use the kernel’s efficient computation on integers without needing executable representations of arbitrary real numbers.

How people already do rigorous numerics

It is worth stressing that mathematicians have been doing computer-assisted analysis for decades. The point of our work is not that Julia is somehow incapable of providing rigorous results. A rigorous numerical proof is quite different from a numerical simulation, whether it is written in Julia or Lean.

For example, IntervalArithmetic.jl provides rigorous enclosures in Julia, RadiiPolynomial.jl is designed for a posteriori validation arguments, INTLAB provides tools for MATLAB, and CAPD and Arb/FLINT are useful for validated dynamics and arbitrary-precision arithmetic. There is also a substantial history of formal numerical work: Flocq and Gappa in the Rocq ecosystem, the Flyspeck project, and Fabian Immler’s formal verification of the Lorenz attractor computation in Isabelle/HOL. In Lean, LeanCert and other interval arithmetic developments are also worth looking at.

Suppose we wish to establish \(e<2.72\). The usual floating-point comparison exp(1.0) < 2.72 tells us something about the computed values, not necessarily the mathematical real numbers. In Julia, a more appropriate approach would be along these lines:

Julia: the same bound with IntervalArithmetic.jl
using IntervalArithmetic

E = exp(interval(1))
B = interval(68) / interval(25)
@assert sup(E) < inf(B)

Under the enclosure guarantees of the library, this is a rigorous argument: the upper bound on \(e\) lies below the lower bound on \(68/25\). We use exact integer inputs so that the interpretation of the decimal constant is not ambiguous. The correctness of the numerical software and its execution enters the justification of the proof.

In SymLean, we can state the proposition we want directly:

Lean: the bound on Real.exp 1 with SymLean
import CAS

example :  1  2.72 := by
  

Here the result is a Lean proof about Mathlib’s Real.exp. The tactic can do numerical computations, but the theorem relating the computation to the real inequality is checked as well. This is the part I would like to automate as much as possible. If a numerical analyst already has a good Julia program for finding a solution, there is no reason to throw it away. Indeed, the original Hou–Wang–Yang code provides the numerical inputs for our formalization.

FloatLib, and why not just use exact rationals?

The simplest way to think about a finite binary floating-point number is as an exact dyadic rational, \(m2^e\), with \(m,e\in\mathbb Z\). For example, \(5.75=23\cdot2^{-2}\). In IEEE binary64 (double precision, or FP64), the format has one sign bit, eleven exponent bits and 52 explicitly stored fraction bits. A normal value with fields \(s,E,F\) denotes

\[(-1)^s(1+F2^{-52})2^{E-1023}.\]
(3)

There are separate encodings for subnormals, signed zeros, infinities and NaNs. It is important to distinguish the exact value of a stored number from an exact mathematical number that we intended to store. The ordinary double-precision value of 0.1, for instance, denotes \(3602879701896397/36028797018963968\), not \(1/10\).

We can perform exact computations on dyadics very cheaply in terms of integer operations. Multiplication becomes multiplication of the two significands and addition of the exponents. Addition requires aligning exponents, which can be done using shifts. To implement a floating-point operation, we additionally need to account for the format’s finite precision and exponent range, and prove that our rounding rule gives the right representable result. This involves such things as comparing remainders and correctly handling ties, underflow and overflow.

FloatLib, developed with Will Adkisson and Anima, contains numerical specifications, executable algorithms and proofs relating the two. We can reason about the output of a floating-point operation directly. For example:

Lean: a binary32 addition, by float_decide
import FloatLib
open 

example : (1.5 : )  2.25  3.75 := by
  

The tactic uses proved computational equations and kernel checking. One of the more practical aspects of the project has been speeding up these reductions. In a reported benchmark, Lean’s kernel checked a 1,000-term binary64 dot product in 152 ms. (This is a proof-checking benchmark, not a comparison against a hardware BLAS dot product.)

This also means we can do native floating-point work in the kernel. FloatLib’s binary32 and binary64 operations compute the correctly rounded IEEE results by kernel reduction, and FloatLib proves that addition, subtraction, multiplication, division and square root on Lean’s native Float and Float32 agree with them. So a computation written with Lean’s ordinary Float can be read into binary64 and bounded inside a proof. (The agreement is with Lean’s logical model of Float, and that the compiled code follows the model is trusted. The native elementary functions, such as Float.sin, are host library calls with no rounding guarantee, so they are left out.)

But why not use exact rational arithmetic for everything? Quite often, we do! Exact arithmetic is particularly attractive in Lean because of the kernel’s support for large integers. On the other hand, rational denominators can grow during a long computation. Sometimes it is convenient to fix the working precision and round, particularly if we want to reason about the same format as an existing numerical program. There is no need to pick one approach for all of mathematics.

For certification, it is useful to have intervals. Suppose we want to represent \(1/3\) using a grid of multiples of \(2^{-4}\). We can’t represent it exactly, but we can enclose it:

\[\frac5{16}<\frac13<\frac6{16}.\]
(4)

An interval contains all the possible values of a quantity. If \(x\in[a,b]\) and \(y\in[c,d]\), for example, then

\[x+y\in[a+c,b+d].\]
(5)

With exact rational intervals, we compute the endpoints exactly. With floating-point intervals, we round the lower endpoint down and the upper endpoint up to representable values in the chosen format. The interval may become wider, but the containment theorem still holds. We can do the same for other arithmetic operations and elementary functions, provided we have proved the relevant enclosure theorems. Increasing precision can help with rounding error, though it doesn’t fix every source of overestimation in interval arithmetic.

Rounding 1/3 outward to the grid points 5/16 and 6/16, and a function that is positive at five checked samples but negative between them.
Figure 4. Two elementary issues in rigorous numerics: (a) rounding outward to a grid, and (b) why checking sample points is insufficient without additional estimates.

One distinction that confused me initially is worth making explicit. Exact certificate checking doesn’t necessarily involve intervals at all: we might just be checking an inequality on large integer arrays. Interval arithmetic, on the other hand, can itself be implemented with exact rational endpoints, dyadic approximations, or outward-rounded IEEE endpoints. These are different choices. In our Navier–Stokes work we use all of the relevant machinery, with the choice of arithmetic for real-expression enclosures configurable independently of the large exact checks.

Why build a computer algebra system as well?

Consider bounding \(f(x)=x(1-x)\) on \([0,1]\). Evaluating the factors independently using interval arithmetic gives \([0,1]\), which is not particularly informative. Adding more bits will not solve this problem. A symbolic manipulation, however, gives

\[x(1-x)=\frac14-\left(x-\frac12\right)^2.\]
(6)

We immediately get the sharp upper bound. More generally, a symbolic derivative can give us a better numerical enclosure. For a differentiable function on a box \(X\) centred at \(c\), a mean-value argument gives

\[f(X)\subseteq f(c)+\sum_i(X_i-c_i)[\partial_i f](X),\]
(7)

where the bracketed term encloses the partial derivative over the box (with the usual differentiability hypotheses on a neighborhood of the box). If we know the sign of a derivative, we may instead need to look only at a face. This sort of combination of symbolic and numerical reasoning comes up surprisingly often.

The function x(1-x) on [0, 1], its interval enclosure [0, 1], and the sharp symbolic bound 1/4.
Figure 5. Interval dependency for \(x(1-x)\) on \([0,1]\). Evaluating the two factors independently gives the enclosure \([0,1]\) (shaded); the symbolic form \(\frac14-(x-\frac12)^2\) gives the sharp bound \(\frac14\).

This motivated SymLean. We wanted to be able to do the kinds of calculations one would normally ask of Mathematica or SymPy, but to get Lean theorems that could be used immediately in a proof. Here are a few examples from the library:

Lean: symbolic calculations with #cas
import CAS

 [] (23  32  1)
-- (x - 1)^2 * (2*x + 1)

 [ ] (2   )
-- x*(2*sin(x) + x*cos(x))

 [ ] ( )
-- x*atan(x) - 1/2*log(1 + x^2)

 [  in [0, 1]] ( (2))
-- 0.746824 ± 10^-6
#cas [factor]
Domain: x ∈ ℝ
Input (scalar ℝ): (2*x^3 - 3*x^2 + 1)
Output (scalar ℝ): (x - 1)^2*(2*x + 1)

#cas [derive x]
Domain: x ∈ ℝ
Input (scalar ℝ): (x^2 * sin x)
Output (scalar ℝ): x*(2*sin(x) + x*cos(x))

#cas [integrate x]
Domain: x ∈ ℝ
Input (scalar ℝ): (atan x)
Output (scalar ℝ; antiderivative): x*atan(x) - 1/2*log(1 + x^2)

#cas [nintegrate x in [0, 1]]
Domain: x ∈ [0, 1]
Input (scalar ℝ): (exp (-x^2))
Output (certified value of the integral): 0.746824 ± 10^-6

There are also commands for solving equations, manipulating polynomials, computing limits, and doing linear algebra. We need not trust the algorithm that came up with an answer. If SymPy proposes an antiderivative, for example, we can check it by differentiation, prove the necessary domain conditions, and use the fundamental theorem of calculus. SymLean also has its own symbolic routines. For supported calculations the result is a mathematical theorem, rather than a claim about how well a particular search procedure works.

The numerical tactic is called cega. Here are two examples:

Lean: two bounds proved by cega
example ( : ) ( : 0  ) ( :   1) :
      (1  )  1  4 := by
  

example :
    (  in (0 : )1,  (  2))  3  4 := by
  

In the second case the integral has no elementary antiderivative. We obtain a numerical estimate with a mathematical guarantee about the integral, rather than an approximate value that must be taken on faith. For supported enclosure goals we can also choose cega [use_floats] for binary64 endpoints, or select another format or working precision. (At the version used in our paper, the floating-point route does not perform numerical integration; the integral example uses the exact-arithmetic route.)

Under the hood, cega tries a sequence of routes in a fixed order, and each route only looks at goals of its own shape:

RouteGoals it takes
A checked carrierGoals that come with a checked certificate, e.g. through cega using t.
float_decideClosed statements about floats, such as (1.5 : Binary64) + 2.25 = 3.75.
QuadratureBounds on one interval integral with rational limits. Simpson panels when the first four derivatives of the integrand are certified, range panels otherwise. The panel count doubles from 1 up to 256.
Certificate goalsThe propositions EnclosedOn, BoundOn, ApproxOn and ResidualBound on a box.
The box routeInequalities on a box of at most 8 variables, each bounded by rational hypotheses. FloatLib’s check first, then an exact rational enclosure, subdividing to depth 2 when the first enclosure is too weak.
FloatLib’s intervalFinite sums, norms, dot and matrix products, and bounds over a whole domain such as ∀ x ∈ Set.Icc lo hi, ….
dyadic_intervalClosed goals, at 32 bits unless (prec := n) or (digits := d) says otherwise.
A kernel certificateAny other closed decidable proposition that is not about floats.

On top of the routes there are modes. Here is the same bound proved six ways, each one a separate proof that the kernel checks:

Lean: one bound under six modes of cega
import CAS

-- exact rationals, the default
example ( : ) ( : 0  ) ( :   1) :    0.85 := by
  

-- binary64 floats, rounded outward
example ( : ) ( : 0  ) ( :   1) :    0.85 := by
   []

-- another IEEE format
example ( : ) ( : 0  ) ( :   1) :    0.85 := by
   [] ( := )

-- more bits, deeper subdivision
example ( : ) ( : 0  ) ( :   1) :    0.85 := by
   ( := 64) ( := 4)

-- an explicit box query
example ( : ) ( : 0  ) ( :   1) :    0.85 := by
   [  in [0, 1]] ( )

-- an integral with a fixed number of panels
example : (  in (0 : )1,  (  2))  3  4 := by
   ( := 16)
ModeWhat it changesChecked by
cegaExact rational enclosures, the default.The kernel
cega [use_floats]Enclosures in binary64, lower ends rounded toward \(-\infty\) and upper ends toward \(+\infty\). The theorem is still about real numbers.The kernel
cega [use_floats] (arith := F)The same in another IEEE format of FloatLib, such as binary32 or binary128.The kernel
cega (prec := n) (depth := n)The precision of the query, and the depth of the subdivision tried after the first query (2 by default).The kernel
cega [enclose x in [a, b]] eAn explicit box query: a certificate for e on the box, projected to the goal.The kernel
cega (panels := n)A fixed number of quadrature panels for an integral bound.The kernel
cega [fast]With set_option cega.nativeCertificates true, finite certificates are checked by compiled code.The kernel, plus Lean’s compiler and runtime

Everything except native certificates stays inside the kernel, and those are off by default.

I think this is particularly useful for AI agents. It is easy for an agent to produce an expression and a very plausible-looking numerical bound. It is much better if the agent can invoke a well-tested checker, get a theorem of the desired type back, and move on to the interesting mathematical problem. The documentation has a fuller list of the available operations and their restrictions. Of course, a failure to prove an inequality is not a proof that it is false.

From a small residual to an exact solution

So far I have been talking about inequalities, not PDEs. Why should the former help with the latter?

Here is a little example that captures a good deal of the idea of an a posteriori existence proof. Suppose we want to solve \(F(x)=x^2-2=0\), and we have a numerical candidate \(\bar x=3/2\). Define

\[T(x)=x-\frac13(x^2-2).\]
(8)

The factor \(1/3\) is the inverse of the derivative of \(F\) at our candidate. We can show that there is a fixed point of \(T\) in the interval \(I=[7/5,8/5]\), of radius \(r=1/10\) about \(\bar x\). Indeed,

\[Y=|T(\bar x)-\bar x|=\frac1{12},\qquad Z=\sup_{x\in I}|T'(x)|=\frac1{15}.\]
\[\begin{aligned}Y&=|T(\bar x)-\bar x|=\frac1{12},\\ Z&=\sup_{x\in I}|T'(x)|=\frac1{15}.\end{aligned}\]
(9)

The mean-value theorem gives, for \(x\in I\),

\[|T(x)-\bar x|\le Y+Zr=\frac9{100}<r.\]
(10)

Since \(Z<1\), the contraction mapping theorem gives an exact solution. We didn’t have to compute any further digits of \(\sqrt2\). We had to check two finite estimates and apply an existence theorem. Notice also that the radius, residual bound and derivative bound appear explicitly in the proof. We could ask how much each of them could be changed before the argument stopped working. I will come back to this later.

The map T on the interval I = [7/5, 8/5] with its fixed point at the square root of 2, and the nested intervals I, the estimate around 3/2, and the image T(I).
Figure 6. The a posteriori existence argument for \(x^2=2\). (a) \(T\) maps \(I=[7/5,8/5]\) into itself and is a contraction there (\(Z=1/15<1\)), so it has exactly one fixed point in \(I\), namely \(\sqrt2\). (b) The estimate \(|T(x)-\bar x|\le Y+Zr=\frac9{100}\) puts \(T(I)\) inside a smaller interval around \(\bar x\); the actual image \(T(I)\) is much smaller still.

For a PDE, the unknown is a function, the derivative of \(F\) is an operator, and the finite estimates often need to be combined with analytic estimates on an infinite-dimensional tail. The details are considerably more difficult. The principle, though, is much the same. A small residual on its own is not an existence proof.

What we did for Navier–Stokes

There are a number of different problems concerning singularity formation and nonuniqueness for fluids, and I don’t want to conflate them. Our paper concerns the Hou–Wang–Yang result that infinitely many distinct suitable Leray–Hopf solutions of the unforced three-dimensional Navier–Stokes equations can share a single compactly supported initial velocity. This datum is already singular at the origin; the constructed solutions are smooth for positive times in the stated interval. This is distinct from finite-time blowup starting from smooth data.

The basic idea, following Jia and Šverák’s self-similar approach, is to construct a smooth profile \(U\) with an unstable eigenvalue. One writes \(u(t,x)=t^{-1/2}U(x/\sqrt t)\), with the corresponding pressure rescaling. In the similarity coordinate \(\xi=x/\sqrt t\), the stationary equation is

\[-\tfrac12 U-\tfrac12\xi\cdot\nabla U+(U\cdot\nabla)U-\Delta U+\nabla P=0,\qquad\nabla\cdot U=0.\]
\[\begin{aligned}&-\tfrac12 U-\tfrac12\xi\cdot\nabla U+(U\cdot\nabla)U\\&\qquad-\Delta U+\nabla P=0,\\&\nabla\cdot U=0.\end{aligned}\]
(11)

With similarity time \(\tau=\log t\), an unstable linear mode has the form \(ae^{\mu\tau}v\), where \(\mu>0\). All choices of \(a\) give a mode that tends to zero in similarity variables as \(t\) tends to zero, but the modes differ at positive times. The hard analytic work is to construct genuine nonlinear finite-energy solutions sharing the same localized initial trace. Instability gives the mechanism for doing so, not an automatic proof of nonuniqueness.

The numerical data of the original proof comprise 9,411,269 binary64 numbers in 194 tables, about 160 MB. These include the candidate profile and pressure, an approximate eigenpair, compensation matrices, and approximate solutions of auxiliary linear equations. We interpret the finite coefficients as exact dyadics. We don’t need to prove that the Julia search found the best possible coefficients, nor to replay every step of that search in Lean.

Checking the residual

For a simple illustration of how a finite set of coefficients can describe an entire function, take \(f(x)=1+\tfrac12\sin x+\tfrac18\cos(2x)\). Three numbers describe \(f\) at every real point. The profile of Hou, Wang and Yang is expressed in a much larger trigonometric basis (700 radial and 350 angular modes). The radial compactification \(\beta=\arctan(r/22)\) takes the unbounded radial domain to a bounded interval. Together with axisymmetry, this allows the profile to be described using two compactified spatial coordinates.

Substituting the approximate profile \(\bar U\) and pressure into the stationary equation produces a residual \(E\). We need, in the original construction, to prove

\[\|E\|_{L^2(\mathbb R^3)}\le 4.97\cdot10^{-6}.\]
(12)

How do we check an integral over all of \(\mathbb R^3\)? Again, a small example is helpful. Let \(g(x)=a\cos(2x)\), and take the eight equally spaced points \(x_j=2\pi j/8\) for \(j=0,\ldots,7\). Then

\[\int_0^{2\pi}g(x)^2\,dx=\frac{2\pi}{8}\sum_{j=0}^7 g(x_j)^2=\pi a^2.\]
\[\begin{aligned}\int_0^{2\pi}g(x)^2\,dx&=\frac{2\pi}{8}\sum_{j=0}^7g(x_j)^2\\&=\pi a^2.\end{aligned}\]
(13)

The quadrature rule is exact for this function. This is an identity about trigonometric polynomials, not a claim that the grid is fine enough in some unspecified sense. In our proof, after compactification and the appropriate weighting, we establish an exact integration identity on a grid of \(1411\times1411\) nodes. There is no quadrature remainder for the specified class of polynomials. There is still an error from evaluating the node formulas, and this is where the certified arithmetic enters.

For instance, if we approximate \(s\) and \(c\) by \(\hat s\) and \(\hat c\), each to within \(\epsilon\), then \(|3s+2c-(3\hat s+2\hat c)|\le5\epsilon\). The actual residual components involve polynomials in 30 quantities. The estimates account for errors in trigonometric evaluations (at most \(2^{-62}\)), rounded coefficient tables, and packed row calculations. They give a uniform error \(\delta=1.4\cdot10^{-13}\) on each weighted residual component. If \(\mathcal Q\) bounds the weighted sum of squared approximate components, the analytic estimate is

\[\frac{\|E\|_{L^2(\mathbb R^3)}^2}{22^3}\le4\pi\left(\sqrt{\mathcal Q}+\delta\sqrt{3\pi/2}\right)^2.\]
(14)

The checker establishes \(\sqrt{\mathcal Q}\le134054/10^{13}\) by finite integer row tests. The remaining comparisons imply the required residual bound. This is one example of how we pass from finite computations to a theorem about a continuous function, without evaluating that function everywhere.

A trick for making the kernel compute faster

One of the fun parts of this work was figuring out how to make the large integer computations practical. Consider the dot product \((2,3)\cdot(4,5)\). Encode the two vectors in base 100, reversing the second:

\[A=2+100\cdot3,\qquad B=5+100\cdot4.\]
\[\begin{aligned}A&=2+100\cdot3,\\ B&=5+100\cdot4.\end{aligned}\]
(15)

Multiplying the two integers gives

\[AB=10+100\cdot23+100^2\cdot12.\]
(16)

The middle digit is the dot product. (Why? Expand the product.) In general, with a sufficiently large base and the appropriate treatment of signs, coefficients can be extracted with shifts and masks. This is a classical packing technique, related to Kronecker substitution. It is useful because the kernel is good at multiplying large naturals, which it does with GMP. It is also a trick the AI agents in our recent projects reach for almost every time a certificate gets large. FloatLib has proved versions of such packed computations, which lets us use the technique in large numerical certificates instead of reducing a long sequence of individual array operations.

Base-100 digits of A = 302, B = 405 and their product 122310, with the middle digit 23 highlighted.
Figure 7. Packing a dot product into one multiplication. The vectors \((2,3)\) and \((4,5)\), the second reversed, become the base-100 numbers \(A=302\) and \(B=405\). The middle digit of \(AB=122310\) is \(2\cdot4+3\cdot5=23\).

What about the matrices, and the infinite-dimensional part?

The other numerical estimates are needed to control the linearized PDE. The strain term can spoil coercivity, so the proof introduces a compensation matrix and controls its significant contribution with a finite-rank correction. In particular, we need pointwise matrix inequalities on a spatial domain, and generalized spectral estimates on the retained Stokes modes.

A matrix test on a grid is not a proof that the test holds throughout the domain. If we know \(|f'|\le L\) and the sample spacing is \(h\), a lower bound \(f(x_j)>Lh/2\) at every grid point gives positivity everywhere between the samples. The matrix versions used in our proof are more involved, using certified principal-minor tests and derivative and difference bounds on cells. Similarly, we can verify positive definiteness of a rational matrix by checking an \(LDL^T\) factorization with invertible \(L\) and positive diagonal \(D\).

The two auxiliary generalized eigenproblems in the original proof have dimensions 1257 and 1260. The certificates establish 18 even and 25 odd directions at or above the spectral cutoff \(0.45\); these are directions of the compensation problem, not unstable eigenvalues of Navier–Stokes. The remaining infinitely many Stokes modes are controlled analytically. As a toy version, for Fourier coefficients \(a_k\),

\[\sum_{|k|\ge100}|a_k|^2\le10^{-4}\sum_{|k|\ge100}k^2|a_k|^2.\]
(17)

We have controlled the whole high-frequency tail by a derivative norm. With the actual coercivity and residual bounds, Lax–Milgram and a Schauder fixed-point argument on bounded domains, followed by weak limits, give an exact profile on \(\mathbb R^3\). Its correction to the numerical profile is a function in an infinite-dimensional Sobolev space, not necessarily a trigonometric polynomial. The original formal theorem bounds the \(L^2\) norm of the correction by \(0.000487\) and the \(L^2\) norm of its gradient by \(0.000445\), with both inequalities strict.

We also explored an alternative way of proving instability. The original proof uses a second fixed-point argument to construct an unstable eigenpair. For the final nonuniqueness theorem, though, existence of a real unstable eigenvalue is enough. Under the coercivity and surjectivity hypotheses in Proposition 5.1 of our paper, a finite-rank reduction gives a continuous determinant function whose zero corresponds to an unstable eigenvalue of the infinite-dimensional operator. It suffices to prove a sign change. In our application, the relevant sign certificate concerns a \(25\times25\) matrix. Rather than directly enclose its determinant, we certify an approximate inverse \(B\) with negative determinant and

\[\|I-BM\|_F<1.\]
(18)

The straight line from \(I\) to \(BM\) consists of invertible matrices, so \(\det(BM)>0\). It follows that \(\det M<0\). Our certified norm bound is below \(0.066121\). This sign test enters the analytic reduction, which in turn yields the unstable eigenvalue. The alternative uses a separately refined profile, retains the first fixed-point construction and still needs the nonlinear argument for nonuniqueness. We don’t know whether the two exact profiles coincide.

The two routes to nonuniqueness in the paper. Both establish the independent formal statement, using different numerical candidates.
Figure 8. The two routes to nonuniqueness in the paper. Both establish the independent formal statement, using different numerical candidates.

A few words about what we mean when we say we used floating-point arithmetic to check the proof. Three kinds of arithmetic appear in the certificates, and they are easy to mix up:

What a number isHow Lean computes with itWhere we use it
Exact dyadicA finite binary64 word, read as the exact rational \(a2^e\). The reading adds no error, although the solver may have rounded when it produced the word.Exact integer and rational tests, e.g. on a common grid of multiples of \(2^{-p}\) with proved error radii.The solver’s coefficients, and the default enclosures of real expressions.
PackedMany small integers stored as the digits of one large natural number.One big multiplication in the kernel, then shifts and masks. FloatLib proves that this gives the same sums.The large finite certificates, such as the residual sums row by row.
FloatingA number in a chosen format such as binary64, with that format’s rounding.FloatLib’s verified floating-point arithmetic, rounding lower endpoints down and upper endpoints up.The optional binary64 enclosures, cega [use_floats].

Only the last is floating-point arithmetic in the usual sense, and even there the rounding is verified software arithmetic inside Lean, not the hardware. In the nonuniqueness verification both builds pass, and the choice of binary64 is not intrinsic to the mathematical proof. In the reported comparison the relevant enclosure modules take similar accumulated user times; this is not a whole-build or controlled hardware benchmark. There is no claim that IEEE arithmetic is always faster than the exact route.

The key point is that Lean’s kernel checks the finite tests and the mathematical implications from those tests to the theorem. The code that searches for good coefficients or generates candidate certificates can be untrusted. We still need to trust the kernel, its arithmetic primitives and the foundational axioms, and to check that the theorem we stated is the one we meant to prove.

Understanding proofs, rather than just having them

Something else we found in this project is how much mathematics we needed that had very little to do with the particular Navier–Stokes profile. Sobolev spaces, compactness, fixed-point theorems, spectral theory, regularity estimates, exact integration, and the list goes on. I would like the next person working on a related PDE to be able to use this mathematics without formalizing it all over again.

This is the motivation behind PDEAtlas, a library following Lawrence Evans’s Partial Differential Equations, with additional developments in functional analysis and fluid mechanics. The coverage is of selected results across the book, not a claim that every exercise and theorem in it has been formalized. It also includes results in specific settings related to Hilbert’s 19th, 20th and 23rd problems. I am particularly interested in making the library something one can use in teaching: if someone is learning PDEs, it would be nice to have mathematical expositions, worked examples and the precise formal statements next to each other, and to be able to use the same results in one’s own proofs.

We have also started BlowupZoo, where we bring together examples of singularity formation and nonuniqueness, from elementary ODEs all the way to recent fluid results. The project incorporates existing formalizations with attribution; we have been reorganizing them, connecting the arguments to the mathematical literature, and exploring which estimates can be shared. We distinguish conditional results from unconditional ones. In particular, the Alpöge–Buckmaster unforced Navier–Stokes blowup package proves the analytic implications from its certificate hypotheses; the unreleased numerical data have not been certified in Lean.

A nice example of a connection between two proofs is the ODE \(w'=w^2\) and the inviscid Burgers equation \(u_t+uu_x=0\). Along characteristics \(x(t)=\xi+tu_0(\xi)\),

\[u_x(t,x(t))=\frac{u_0'(\xi)}{1+tu_0'(\xi)}.\]
(19)

If the initial derivative has a negative minimum \(m\), the first gradient singularity occurs at \(-1/m\). Along that characteristic the negative derivative \(w=-u_x\) solves exactly the scalar ODE \(w'=w^2\). For the semilinear heat equation \(u_t-\Delta u=u^2\) with homogeneous Dirichlet data, a similar scalar inequality comes from the first eigenfunction: the weighted moment \(y=\int u\varphi_1\) satisfies \(y'\ge y^2-\lambda_1y\) when \(\varphi_1\) is nonnegative and normalized to have integral one. A sufficiently large initial moment gives a finite lifespan bound. In these three examples, a scalar comparison is controlling three different objects: a value, a derivative and a spatial moment. It is interesting to ask where such connections continue to hold when one moves on to the Euler equations and their nonlocal vorticity dynamics, and where they break down.

Characteristics of a Burgers solution crowding together, and the gradient at the origin growing without bound as t approaches 1.
Figure 9. Characteristics for a Burgers example, with \(u_0(\xi)=-\tanh\xi\) (a); the onset of gradient blowup at \(t=1\) (b) can be seen from the characteristic map.

The other thing I would like to do is turn blueprints into something a little more useful for experimenting with arguments. The scalar fixed-point example above has three quantities \(r,Y,Z\). Why not expose those quantities in a living proof graph, and let someone see how changing them affects the existence condition? We have started doing this with selected numerical constants in the BlowupZoo proofs. One can vary an estimate and see the implications propagate through the graph. At the moment this is an exploratory tool; a change in the graph is not automatically a new kernel-checked theorem. But it gives us a way of asking which inequalities are tight and which have room for improvement.

Figure 10. One condition of the BlowupZoo constants explorer, for the Hou–Wang–Yang proof. The fixed point of the correction has a radius when \(\varepsilon_U+M_3r^2=ar\) has two real roots, that is, when \(a^2-4M_3\varepsilon_U>0\). At the proved residual \(\varepsilon_U=1.4\cdot10^{-6}\) the margin is \(1.78\cdot10^{-3}\), and the smaller root is the radius \(r_0=3.3\cdot10^{-5}\) of the correction. Raising \(\varepsilon_U\) closes the condition at \(a^2/4M_3\approx1.0\cdot10^{-4}\), about 72 times the proved value. It is one of 17 conditions recorded for this proof, and a value moved in the explorer is not a new kernel-checked theorem.
Explore the live constants explorer here

Open it in a new tab

The same idea motivates informalization. Once we have a formal proof, I would like to have a readable explanation of it, with links back to the relevant declarations, and for that explanation to evolve as the mathematics changes. There is a difference between knowing that a proof exists and knowing why it works.

In the spirit of Polymath, I would like to use these libraries to work on some of the questions raised by these arguments. Do the two certified Navier–Stokes profiles coincide? Does our determinant argument work outside the symmetry classes considered in the paper? Can we find weaker assumptions on the far field in other constructions, or understand which numerical constants are really responsible for a proof working? How much precision is actually needed for a particular certificate? Could we obtain more useful common descriptions of the singularity mechanisms across different equations?

There is no need to know Lean to contribute to these questions. A better proof of a lemma, a numerical experiment that suggests a stronger estimate, or a good explanation of why a particular construction works would all be useful. I think one of the more interesting things we can do with AI in mathematics now is to make it easier to accumulate this kind of understanding, rather than have every new result and every new formalization start afresh.

The code and expositions are open: FloatLib, SymLean, PDEAtlas and BlowupZoo. The paper has the precise statements and numerical details. Much of the mathematics and software described here is joint work with the respective coauthors. Thanks to them, to the authors of the original proofs and numerical software, and to the Mathlib community. We have used AI tools extensively in this work; the mathematical guarantees concern the statements and proofs checked by Lean, not the reliability of the agents.