Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | |
| 4 | This file has been modified from its original form in the Formal Conjectures |
| 5 | project. |
| 6 | |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | https://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | -/ |
| 19 | |
| 20 | import Mathlib |
| 21 | |
| 22 | /-! |
| 23 | # Existence And Smoothness Of The Navier–Stokes Equation |
| 24 | |
| 25 | Standalone comparator copied from: |
| 26 | https://github.com/google-deepmind/formal-conjectures/blob/8bf45ed70d48b2b2a501de9c00b26bfa38c573ee/FormalConjectures/Millenium/NavierStokes.lean |
| 27 | |
| 28 | The upstream definitions, helper proofs, and breakdown alternatives (C) and (D) |
| 29 | are retained, including their intentional `sorry` challenge placeholders. The |
| 30 | imports, metadata attributes, namespace, and local notation are adapted for this |
| 31 | project. All utility dependencies are inlined; only Mathlib is imported. |
| 32 | Neither the proof root nor the submission imports this reference. |
| 33 | |
| 34 | This file formalizes the Clay Mathematics Institute millennium problem concerning |
| 35 | the existence and smoothness of solutions to the Navier-Stokes equations in three |
| 36 | spatial dimensions. While the definitions are generalized to arbitrary dimension n, |
| 37 | the millennium problem specifically concerns the case n = 3. |
| 38 | |
| 39 | ## References |
| 40 | - [Wikipedia](https://en.wikipedia.org/wiki/Navier%E2%80%93Stokes_existence_and_smoothness) |
| 41 | |
| 42 | ## Main Theorems (Clay Millennium Problem for n = 3) |
| 43 | |
| 44 | This reference includes the two breakdown alternatives: |
| 45 | - `navier_stokes_breakdown_R3`: (C) Existence of breakdown scenario on ℝ³ |
| 46 | - `navier_stokes_breakdown_periodic`: (D) Existence of breakdown scenario on ℝ³/ℤ³ |
| 47 | |
| 48 | ## Variable conventions |
| 49 | |
| 50 | Fefferman writes the velocity as $u(x,t)$, the initial velocity as $u^\circ(x)$, the |
| 51 | pressure as $p(x,t)$, the force as $f(x,t)$, and the viscosity as $\nu$. In Lean, |
| 52 | `u₀ : ℝ^n → ℝ^n` denotes the initial velocity, while `v : ℝ^n → ℝ → ℝ^n` |
| 53 | denotes the solution velocity. The curried order `v x t`, `p x t`, and `f x t` |
| 54 | keeps the source convention that position comes before time. |
| 55 | |
| 56 | Since the Clay statement gives equation (1) on the closed time half-line $t \ge 0$, |
| 57 | the time derivative is encoded with `derivWithin` relative to `Set.Ici 0`. |
| 58 | -/ |
| 59 | |
| 60 | open ContDiff Set InnerProductSpace MeasureTheory |
| 61 | open scoped Laplacian |
| 62 | |
| 63 | namespace NavierStokes.Comparator |
| 64 | |
| 65 | -- Inlined notation from FormalConjecturesForMathlib.Geometry.Euclidean and Geometry.«3d». |
| 66 | local notation "ℝ^" n:65 => EuclideanSpace ℝ (Fin n) |
| 67 | local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) |
| 68 | |
| 69 | variable {n : ℕ} |
| 70 | |
| 71 | /-- |
| 72 | The divergence $\nabla \cdot v$ of a vector field $v : \mathbb{R}^n \to \mathbb{R}^n$ |
| 73 | at a point $x$, computed as the trace of the Jacobian matrix. |
| 74 | |
| 75 | In coordinates, $\nabla \cdot v = \sum_i \partial v_i / \partial x_i$. |
| 76 | |
| 77 | This is available as the notation `∇⬝ v`. If `v` is not differentiable at `x`, then |
| 78 | `fderiv` is the zero map, so this definition has the corresponding junk value $0$. |
| 79 | -/ |
| 80 | noncomputable |
| 81 | def divergence (v : ℝ^n → ℝ^n) (x : ℝ^n) : ℝ := (fderiv ℝ v x).trace ℝ (ℝ^n) |
| 82 | |
| 83 | @[inherit_doc] |
| 84 | local notation "∇⬝" => divergence |
| 85 | |
| 86 | /-- The divergence of a vector field is $0$ at points where `fderiv` has its junk value. -/ |
| 87 | @[simp] |
| 88 | theorem divergence_of_not_differentiableAt {v : ℝ^n → ℝ^n} {x : ℝ^n} |
| 89 | (hv : ¬ DifferentiableAt ℝ v x) : ∇⬝ v x = 0 := by |
| 90 | simp [divergence, fderiv_zero_of_not_differentiableAt hv] |
| 91 | |
| 92 | /-- The divergence of the zero vector field is zero. -/ |
| 93 | @[simp] |
| 94 | theorem divergence_zero (x : ℝ^n) : ∇⬝ (0 : ℝ^n → ℝ^n) x = 0 := by |
| 95 | simp [divergence] |
| 96 | |
| 97 | /-- The divergence of a constant vector field is zero. -/ |
| 98 | @[simp] |
| 99 | theorem divergence_const (c : ℝ^n) (x : ℝ^n) : |
| 100 | ∇⬝ (fun _ : ℝ^n => c) x = 0 := by |
| 101 | simp [divergence] |
| 102 | |
| 103 | /-- Divergence is additive at points where both vector fields are differentiable. -/ |
| 104 | theorem divergence_add {v w : ℝ^n → ℝ^n} {x : ℝ^n} |
| 105 | (hv : DifferentiableAt ℝ v x) (hw : DifferentiableAt ℝ w x) : |
| 106 | ∇⬝ (fun y => v y + w y) x = ∇⬝ v x + ∇⬝ w x := by |
| 107 | rw [divergence, fderiv_fun_add hv hw] |
| 108 | exact map_add _ _ _ |
| 109 | |
| 110 | /-- Divergence commutes with scalar multiplication at differentiability points. -/ |
| 111 | theorem divergence_smul (c : ℝ) {v : ℝ^n → ℝ^n} {x : ℝ^n} |
| 112 | (hv : DifferentiableAt ℝ v x) : ∇⬝ (fun y => c • v y) x = c * ∇⬝ v x := by |
| 113 | rw [divergence, fderiv_fun_const_smul hv c] |
| 114 | simp [divergence] |
| 115 | |
| 116 | /-- |
| 117 | A function $f : \mathbb{R}^n \to \alpha$ is 1-periodic if it is periodic in each |
| 118 | coordinate with period $1$, i.e. $f(x + e_i) = f(x)$ for each unit vector $e_i$. |
| 119 | This captures functions on the $n$-torus $\mathbb{R}^n/\mathbb{Z}^n$. |
| 120 | -/ |
| 121 | def IsOnePeriodic {α : Sort*} (f : ℝ^n → α) : Prop := |
| 122 | ∀ x i, f (x + EuclideanSpace.single i 1) = f x |
| 123 | |
| 124 | /-- |
| 125 | Basic conditions on initial velocity field for the Navier-Stokes equations |
| 126 | in $n$-dimensional space. |
| 127 | |
| 128 | The initial velocity must be: |
| 129 | - Divergence-free (incompressibility condition: $\nabla \cdot u_0 = 0$) |
| 130 | - Smooth ($C^\infty$) |
| 131 | |
| 132 | These conditions apply regardless of spatial dimension. |
| 133 | -/ |
| 134 | structure InitialVelocityCondition (u₀ : ℝ^n → ℝ^n) : Prop where |
| 135 | /-- The initial velocity field is divergence-free (equation 2). |
| 136 | This is the incompressibility constraint for the fluid. -/ |
| 137 | div_free : ∀ x, ∇⬝ u₀ x = 0 |
| 138 | /-- The initial velocity field is smooth ($C^\infty$ in all variables). -/ |
| 139 | smooth : ContDiff ℝ ∞ u₀ |
| 140 | |
| 141 | /-- |
| 142 | Initial velocity conditions for the Navier-Stokes problem on all of $\mathbb{R}^n$. |
| 143 | |
| 144 | In addition to being smooth and divergence-free, the velocity must decay |
| 145 | faster than any polynomial at spatial infinity (condition 4 in Fefferman's paper). |
| 146 | |
| 147 | This condition ensures the velocity field has finite energy and reasonable |
| 148 | behavior as $\lVert x \rVert \to \infty$. |
| 149 | -/ |
| 150 | structure InitialVelocityConditionDecay (u₀ : ℝ^n → ℝ^n) : Prop extends |
| 151 | InitialVelocityCondition u₀ where |
| 152 | /-- All derivatives of u₀ decay faster than any polynomial (condition 4). |
| 153 | For any derivative order $m$ and any decay rate $K$, there exists a constant $C$ |
| 154 | such that $\lVert \partial^m u_0(x) \rVert \le C/(1+\lVert x \rVert)^K$. -/ |
| 155 | decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, ‖iteratedFDeriv ℝ m u₀ x‖ ≤ C / (1 + ‖x‖) ^ K |
| 156 | |
| 157 | /-- |
| 158 | Initial velocity conditions for the periodic Navier-Stokes problem on |
| 159 | $\mathbb{R}^n/\mathbb{Z}^n$. |
| 160 | |
| 161 | The velocity must be smooth, divergence-free, and 1-periodic in each coordinate |
| 162 | (condition 8, part 1 in Fefferman's paper). |
| 163 | -/ |
| 164 | structure InitialVelocityConditionPeriodic (u₀ : ℝ^n → ℝ^n) : Prop extends |
| 165 | InitialVelocityCondition u₀ where |
| 166 | /-- The initial velocity is 1-periodic in each direction (condition 8, part 1). -/ |
| 167 | isOnePeriodic : IsOnePeriodic u₀ |
| 168 | |
| 169 | /-- |
| 170 | The basic smoothness condition on the external forcing term. |
| 171 | |
| 172 | The force $f(x,t)$ must be smooth ($C^\infty$) in both space and time variables |
| 173 | for $t \ge 0$. |
| 174 | -/ |
| 175 | structure ForceCondition (f : ℝ^n → ℝ → ℝ^n) : Prop where |
| 176 | /-- The force is smooth on $\mathbb{R}^n \times [0,\infty)$. -/ |
| 177 | smooth : ContDiffOn ℝ ∞ (↿f) (Set.univ ×ˢ Set.Ici 0) |
| 178 | |
| 179 | /-- |
| 180 | Force conditions for the Navier-Stokes problem on all of $\mathbb{R}^n$. |
| 181 | |
| 182 | The force must be smooth and decay faster than any polynomial |
| 183 | in both space and time (condition 5 in Fefferman's paper). |
| 184 | -/ |
| 185 | structure ForceConditionDecay (f : ℝ^n → ℝ → ℝ^n) : Prop extends ForceCondition f where |
| 186 | /-- All derivatives of f decay faster than any polynomial in space and time (condition 5). |
| 187 | For any derivative order $m$ and any decay rate $K$, there exists $C$ such that |
| 188 | $\lVert \partial^m_{x,t} f(x,t) \rVert \le C/(1+\lVert x \rVert+t)^K$ for |
| 189 | $t \ge 0$. -/ |
| 190 | decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, ∀ t ≥ 0, |
| 191 | ‖iteratedFDerivWithin ℝ m (↿f) (Set.univ ×ˢ Set.Ici 0) (x, t)‖ ≤ C / (1 + ‖x‖ + t) ^ K |
| 192 | |
| 193 | /-- |
| 194 | Force conditions for the periodic Navier-Stokes problem on |
| 195 | $\mathbb{R}^n/\mathbb{Z}^n$. |
| 196 | |
| 197 | The force must be smooth, 1-periodic in space, and decay in time |
| 198 | (conditions 8, part 1 and 9 in Fefferman's paper). |
| 199 | -/ |
| 200 | structure ForceConditionPeriodic (f : ℝ^n → ℝ → ℝ^n) : Prop extends ForceCondition f where |
| 201 | /-- The force is 1-periodic in space for all times $t \ge 0$ (condition 8, part 1). -/ |
| 202 | isOnePeriodic : ∀ t ≥ 0, IsOnePeriodic (f · t) |
| 203 | /-- All derivatives of f decay faster than any polynomial in time (condition 9). -/ |
| 204 | decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, ∀ t ≥ 0, |
| 205 | ‖iteratedFDerivWithin ℝ m (↿f) (Set.univ ×ˢ Set.Ici 0) (x, t)‖ ≤ C / (1 + t) ^ K |
| 206 | |
| 207 | /-- |
| 208 | A solution (v, p) to the Navier-Stokes equations in n-dimensional space |
| 209 | with viscosity $\nu$, initial velocity $u_0$, and external force $f$. |
| 210 | |
| 211 | This structure captures the core requirements for a solution: |
| 212 | 1. The velocity and pressure satisfy the Navier-Stokes PDE (equation 1) |
| 213 | 2. The velocity remains divergence-free for all time (equation 2) |
| 214 | 3. The initial condition is satisfied (equation 3) |
| 215 | 4. The solution is smooth ($C^\infty$) for all time $t \ge 0$ (equations 6, 11) |
| 216 | -/ |
| 217 | structure NavierStokesExistenceAndSmoothness |
| 218 | (nu : ℝ) (u₀ : ℝ^n → ℝ^n) (f : ℝ^n → ℝ → ℝ^n) |
| 219 | (v : ℝ^n → ℝ → ℝ^n) (p : ℝ^n → ℝ → ℝ) : Prop where |
| 220 | /-- The Navier-Stokes equation (equation 1): |
| 221 | $\partial v/\partial t + (v \cdot \nabla)v = \nu\Delta v - \nabla p + f$. -/ |
| 222 | navier_stokes : ∀ x, ∀ t ≥ 0, |
| 223 | derivWithin (v x ·) (Set.Ici 0) t + fderiv ℝ (v · t) x (v x t) = |
| 224 | nu • Δ (v · t) x - gradient (p · t) x + f x t |
| 225 | /-- Incompressibility constraint (equation 2): $\nabla \cdot v = 0$ for all |
| 226 | $x$ and $t \ge 0$. -/ |
| 227 | div_free : ∀ x, ∀ t ≥ 0, ∇⬝ (v · t) x = 0 |
| 228 | /-- Initial condition (equation 3): $v(x,0) = u_0(x)$ for all $x$. -/ |
| 229 | initial_condition : ∀ x, v x 0 = u₀ x |
| 230 | /-- The velocity field is smooth ($C^\infty$) on $\mathbb{R}^n \times [0,\infty)$ |
| 231 | (conditions 6, 11). -/ |
| 232 | velocity_smooth : ContDiffOn ℝ ∞ (↿v) (Set.univ ×ˢ Set.Ici 0) |
| 233 | /-- The pressure field is smooth ($C^\infty$) on $\mathbb{R}^n \times [0,\infty)$ |
| 234 | (conditions 6, 11). -/ |
| 235 | pressure_smooth : ContDiffOn ℝ ∞ (↿p) (Set.univ ×ˢ Set.Ici 0) |
| 236 | |
| 237 | /-- |
| 238 | A solution to the Navier-Stokes equations on all of $\mathbb{R}^n$ with appropriate |
| 239 | decay and energy bounds. |
| 240 | |
| 241 | In addition to the basic solution properties, we require: |
| 242 | - The velocity is in $L^2$ at each time $t \ge 0$ (finite kinetic energy) |
| 243 | - The total energy remains bounded for all time (condition 7) |
| 244 | -/ |
| 245 | structure NavierStokesExistenceAndSmoothnessRn |
| 246 | (nu : ℝ) (u₀ : ℝ^n → ℝ^n) (f : ℝ^n → ℝ → ℝ^n) |
| 247 | (v : ℝ^n → ℝ → ℝ^n) (p : ℝ^n → ℝ → ℝ) : Prop |
| 248 | extends NavierStokesExistenceAndSmoothness nu u₀ f v p where |
| 249 | /-- The velocity is square-integrable at each time $t \ge 0$ (condition 7). -/ |
| 250 | integrable : ∀ t ≥ 0, MemLp (‖v · t‖) 2 |
| 251 | /-- The kinetic energy $\int \lVert v(x,t) \rVert^2\,dx$ remains uniformly bounded |
| 252 | for all time (condition 7), where the integral is the Lebesgue integral. -/ |
| 253 | globally_bounded_energy : ∃ E, ∀ t ≥ 0, (∫ x : ℝ^n, ‖v x t‖ ^ 2) < E |
| 254 | |
| 255 | /-- |
| 256 | A solution to the Navier-Stokes equations on the $n$-torus $\mathbb{R}^n/\mathbb{Z}^n$. |
| 257 | |
| 258 | The velocity must be 1-periodic in each spatial direction for all times (condition 10). |
| 259 | The pressure is also required to be 1-periodic, following the errata appended to the |
| 260 | Clay problem statement. |
| 261 | -/ |
| 262 | structure NavierStokesExistenceAndSmoothnessPeriodic |
| 263 | (nu : ℝ) (u₀ : ℝ^n → ℝ^n) (f : ℝ^n → ℝ → ℝ^n) |
| 264 | (v : ℝ^n → ℝ → ℝ^n) (p : ℝ^n → ℝ → ℝ) : Prop |
| 265 | extends NavierStokesExistenceAndSmoothness nu u₀ f v p where |
| 266 | /-- The velocity is 1-periodic in space for all times $t \ge 0$ (condition 10). -/ |
| 267 | isOnePeriodic_velocity : ∀ t ≥ 0, IsOnePeriodic (v · t) |
| 268 | /-- The pressure is 1-periodic in space for all times $t \ge 0$ (Clay errata). -/ |
| 269 | isOnePeriodic_pressure : ∀ t ≥ 0, IsOnePeriodic (p · t) |
| 270 | |
| 271 | |
| 272 | /-- (C) Breakdown of Navier–Stokes solutions on ℝ³. -/ |
| 273 | theorem navier_stokes_breakdown_R3 (nu : ℝ) (hnu : nu > 0) : |
| 274 | ∃ (u₀ : ℝ³ → ℝ³) (f : ℝ³ → ℝ → ℝ³), |
| 275 | InitialVelocityConditionDecay u₀ ∧ ForceConditionDecay f ∧ |
| 276 | ¬ (∃ v p, NavierStokesExistenceAndSmoothnessRn nu u₀ f v p) := by |
| 277 | sorry |
| 278 | |
| 279 | /-- (D) Breakdown of Navier–Stokes Solutions on ℝ³/ℤ³. -/ |
| 280 | theorem navier_stokes_breakdown_periodic (nu : ℝ) (hnu : nu > 0) : |
| 281 | ∃ (u₀ : ℝ³ → ℝ³) (f : ℝ³ → ℝ → ℝ³), |
| 282 | InitialVelocityConditionPeriodic u₀ ∧ ForceConditionPeriodic f ∧ |
| 283 | ¬ (∃ v p, NavierStokesExistenceAndSmoothnessPeriodic nu u₀ f v p) := by |
| 284 | sorry |
| 285 | |
| 286 | end NavierStokes.Comparator |