/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtil
Existence And Smoothness Of The Navier–Stokes Equation
This file formalizes the Clay Mathematics Institute millennium problem concerning
the existence and smoothness of solutions to the Navier-Stokes equations in three
spatial dimensions. While the definitions are generalized to arbitrary dimension n,
the millennium problem specifically concerns the case n = 3.
The Clay Millennium Problem asks for a proof of one of the following four statements:
navier_stokes_existence_and_smoothness_R3: (A) Global existence on ℝ³
navier_stokes_existence_and_smoothness_periodic: (B) Global existence on ℝ³/ℤ³
navier_stokes_breakdown_R3: (C) Existence of breakdown scenario on ℝ³
navier_stokes_breakdown_periodic: (D) Existence of breakdown scenario on ℝ³/ℤ³
Variable conventions
Fefferman writes the velocity as $u(x,t)$, the initial velocity as $u^\circ(x)$, the
pressure as $p(x,t)$, the force as $f(x,t)$, and the viscosity as $\nu$. In Lean,
u₀ : ℝ^n → ℝ^n denotes the initial velocity, while v : ℝ^n → ℝ → ℝ^n
denotes the solution velocity. The curried order v x t, p x t, and f x t
keeps the source convention that position comes before time.
Since the Clay statement gives equation (1) on the closed time half-line $t \ge 0$,
the time derivative is encoded with derivWithin relative to Set.Ici 0. The Clay
PDF also includes errata; in particular, we include spatial 1-periodicity of the
pressure in the periodic case. The sign correction to the weak-solution identity in
the errata is not represented here, since this file formalizes the four prize
alternatives rather than the later weak-solution discussion.
The divergence $\nabla \cdot v$ of a vector field $v : \mathbb{R}^n \to \mathbb{R}^n$
at a point $x$, computed as the trace of the Jacobian matrix.
In coordinates, $\nabla \cdot v = \sum_i \partial v_i / \partial x_i$.
This is available as the notation ∇⬝ v. If v is not differentiable at x, then
fderiv is the zero map, so this definition has the corresponding junk value $0$.
A function $f : \mathbb{R}^n \to \alpha$ is 1-periodic if it is periodic in each
coordinate with period $1$, i.e. $f(x + e_i) = f(x)$ for each unit vector $e_i$.
This captures functions on the $n$-torus $\mathbb{R}^n/\mathbb{Z}^n$.
The initial velocity field is divergence-free (equation 2).
This is the incompressibility constraint for the fluid.
div_free:∀x,∇⬝u₀x=0
The initial velocity field is smooth ($C^\infty$ in all variables).
smooth:ContDiffℝ∞u₀
Initial velocity conditions for the Navier-Stokes problem on all of $\mathbb{R}^n$.
In addition to being smooth and divergence-free, the velocity must decay
faster than any polynomial at spatial infinity (condition 4 in Fefferman's paper).
This condition ensures the velocity field has finite energy and reasonable
behavior as $\lVert x \rVert \to \infty$.
All derivatives of u₀ decay faster than any polynomial (condition 4).
For any derivative order $m$ and any decay rate $K$, there exists a constant $C$
such that $\lVert \partial^m u_0(x) \rVert \le C/(1+\lVert x \rVert)^K$.
All derivatives of f decay faster than any polynomial in space and time (condition 5).
For any derivative order $m$ and any decay rate $K$, there exists $C$ such that
$\lVert \partial^m_{x,t} f(x,t) \rVert \le C/(1+\lVert x \rVert+t)^K$ for
$t \ge 0$.
A solution to the Navier-Stokes equations on the $n$-torus $\mathbb{R}^n/\mathbb{Z}^n$.
The velocity must be 1-periodic in each spatial direction for all times (condition 10).
The pressure is also required to be 1-periodic, following the errata appended to the
Clay problem statement.