The incompressible Navier–Stokes equations are the standard model for the motion of a viscous fluid such as water or air, used daily in engineering, meteorology and oceanography. Yet the most basic mathematical question about them is open: starting from smooth initial data in three dimensions, does a smooth solution exist for all time? This is one of the seven Millennium Prize Problems of the Clay Mathematics Institute. Its official formulation is Charles Fefferman's problem description, Existence and smoothness of the Navier–Stokes equation (2000), which offers a prize for a proof of any one of four statements: global existence and smoothness on (statement (A)) or on the torus (statement (B)), or a counterexample to either (statements (C) and (D)). This mission formalizes statement (A), together with the classical partial results that Fefferman lists as known.
Timeline.
Fix a dimension and write for Euclidean -space with its Euclidean norm ; in Lean this is NavierStokes.Vec n. A velocity field assigns to each time and point a vector ; in Lean is the field at time and is Fefferman's . A pressure is a real function . The viscosity is a positive constant. The external force of Fefferman's equation (1) is identically zero throughout, as in statement (A).
For a vector field the divergence is
in Lean NavierStokes.div, computed from the Fréchet derivative as . The Laplacian acts componentwise (Mathlib's Laplacian on inner product spaces). The gradient is Mathlib's gradient. The convective term is the derivative of at in the direction . Finally is NavierStokes.gradNormSq.
Admissible initial data (Fefferman's condition (4), NavierStokes.IsInitialData): a , divergence-free vector field that decays together with all its derivatives faster than any power,
In Lean the bound is on the -th Fréchet derivative, an equivalent family of conditions. These are exactly the divergence-free Schwartz functions.
A physically reasonable solution on a set of times (NavierStokes.IsSolutionOn; for NavierStokes.IsSolution) is a pair such that
Take and . For every admissible initial datum there exist a velocity field and a pressure forming a physically reasonable solution on :
This is NavierStokes.existence_and_smoothness_R3. It is open; a proof would settle the Millennium Prize Problem in the affirmative.
NavierStokes.local_existence_R3): for and every admissible there are and a physically reasonable solution on . Fefferman: "(A) and (B) hold ... if the time interval is replaced by a small time interval , with depending on the initial data."NavierStokes.small_data_global_existence_R3): there is an absolute constant such that, for , (A) holds for every admissible withFefferman: "(A) and (B) hold provided the initial velocity satisfies a smallness condition." The scale-invariant product is Leray's form of the condition; it implies smallness of , so Kato's theorem also applies.
3. The two-dimensional case (NavierStokes.existence_and_smoothness_R2): statement (A) with . Fefferman: "In two dimensions, the analogues of assertions (A) and (B) have been known for a long time (Ladyzhenskaya)."
A bridging lemma, NavierStokes.isInitialData_iff_schwartz, identifies the admissible data with the divergence-free elements of Mathlib's Schwartz space.
The result itself. Statement (A) asks whether the basic model of viscous flow is well posed in the classical sense, i.e. whether smooth finite-energy flows can develop singularities in finite time. A positive answer shows the equations never leave the classical regime; a negative one shows the model predicts its own breakdown. Fefferman: "since we don't even know whether these solutions exist, our understanding is at a very primitive level."
Formalizing it. None of the results in this mission has a machine-checked proof, and Mathlib contains no theory of the Navier–Stokes or Euler equations. The milestones are all proved in the literature; formalizing them requires building, on Mathlib's calculus, measure theory and Schwartz space, the heat semigroup on , the pressure equation or the Leray projection, energy estimates, and a fixed-point construction of solutions, most of which is reusable for other evolution equations. The goal is open and expected to remain so; its role is to fix in Lean the exact statement the prize asks for, so partial results are formalized against it.
The energy identity controls in and in , but in three dimensions this control is supercritical: under the scaling that preserves the equations, the energy of shrinks as , so bounded energy does not prevent concentration at small scales. Every known continuation criterion (Leray, Prodi–Serrin, Beale–Kato–Majda, Escauriaza–Seregin–Šverák) needs a quantity at or above critical scaling, none of which the energy controls. The obvious first idea, an ordinary differential inequality for , gives , which closes only for small data or short time. That is exactly why milestones 1 and 2 are theorems and the goal is not.
The formalization adds a second difficulty: the solutions of the literature live in Sobolev or Besov spaces, with pointwise smoothness of and recovered afterwards by regularity theory, and Mathlib has neither Sobolev spaces on nor the heat semigroup in usable form.
EuclideanSpace ℝ (Fin n) with Lebesgue measure; the dimension is a parameter, the goal fixes and the 2D milestone .ContDiffOn of the uncurried map on the closed half-space, i.e. all derivatives extend continuously to . The momentum equation is imposed at interior times with two-sided derivatives; by continuity of the derivatives this is equivalent to Fefferman's "".fderiv, deriv, iteratedFDeriv, gradient, Laplacian) with junk value at non-differentiable points; the smoothness hypotheses make every derivative in the statements honest.No trivializing formalization. The zero field solves the equations only for ; for any other admissible the initial condition, smoothness, the equation on and bounded energy must all hold.
Infrastructure needed and welcome contributions. The heat kernel on with Schwartz bounds; the Riesz-transform representation of the pressure or the Leray projection; energy identities for smooth decaying solutions; local existence by Picard iteration; the two-dimensional vorticity equation and its maximum principle. Theorems in the NavierStokes namespace, decompositions of the milestones, and Mathlib lemmas about ContDiffOn on half-spaces are all welcome. Statements (B), (C), (D) and the Euler equations () are out of scope.
namespace NavierStokes
theorem existence_and_smoothness_R3 (ν : ℝ) (hν : 0 < ν) (u₀ : Vec 3 → Vec 3)
(h₀ : IsInitialData u₀) :
∃ (u : ℝ → Vec 3 → Vec 3) (p : ℝ → Vec 3 → ℝ), IsSolution ν u₀ u p := by sorry
end NavierStokesThis is statement (A) of Charles Fefferman's official description of the Clay Millennium Prize Problem, Existence and smoothness of the Navier–Stokes equation: the affirmative resolution of the Navier–Stokes problem on .
Let be the viscosity and let be any smooth, divergence-free vector field satisfying Fefferman's decay condition (4),
Take the external force . Then there exist a velocity field and a pressure , both on , such that
and with bounded energy: there is a constant with
In Fefferman's numbering, satisfies (1), (2), (3), (6), (7). Only existence is asserted; uniqueness, energy monotonicity, and any normalisation or decay of the pressure are not part of the statement. This is an open problem: a proof would settle the Millennium Prize Problem in the affirmative. Its role in the mission is to fix in Lean the exact statement the prize asks for, so that the classical partial results (the milestones) are formalized against the same definitions.
Formalization Note The admissibility of is NavierStokes.IsInitialData, and the conclusion is NavierStokes.IsSolution ν u₀ u p, i.e. IsSolutionOn on the time set . Smoothness on is ContDiffOn of the uncurried maps on the closed half-space; the momentum equation is imposed at times (it holds at by continuity of the derivatives). Velocity and pressure are functions of all real times, but nothing is required of them for .