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 | import NavierStokes.PeriodicLocalization |
| 2 | import Mathlib.Algebra.Order.Floor.Ring |
| 3 | import NavierStokes.ResidualRegularity |
| 4 | import NavierStokes.R3.ProblemStatement |
| 5 | |
| 6 | /-! |
| 7 | # Navier--Stokes equations under spatial periodization |
| 8 | |
| 9 | When the velocity, pressure, and force fit strictly within the fundamental |
| 10 | unit cube, their lattice copies are locally disjoint. At every spacetime |
| 11 | point the periodization agrees locally with a single translated field. |
| 12 | Ordinary derivatives, including the nonlinear advection term, therefore |
| 13 | preserve the whole-space equation at its original viscosity. |
| 14 | -/ |
| 15 | |
| 16 | /-! ## From `NavierStokes/PeriodizeLatticeCover.lean` |
| 17 | |
| 18 | The text of `NavierStokes/PeriodizeLatticeCover.lean`, folded into this file, which was its only importer. -/ |
| 19 | |
| 20 | section |
| 21 | |
| 22 | /-! |
| 23 | # A nearest integer lattice point |
| 24 | |
| 25 | Every spatial point lies in a translate of the closed fundamental cube. |
| 26 | -/ |
| 27 | |
| 28 | noncomputable section |
| 29 | |
| 30 | namespace NavierStokes.PeriodicLocalization |
| 31 | |
| 32 | open ProblemStatement |
| 33 | |
| 34 | /-- Rounding each coordinate places a point in the closed fundamental cube. -/ |
| 35 | theorem exists_lattice_near (x : Space) : |
| 36 | ∃ n : Lattice, ∀ i : Fin 3, |(x - lattice n) i| ≤ 1 / 2 := by |
| 37 | refine ⟨fun i => ⌊x i + 1 / 2⌋, ?_⟩ |
| 38 | intro i |
| 39 | change |x i - (⌊x i + 1 / 2⌋ : ℝ)| ≤ 1 / 2 |
| 40 | have hlo := Int.floor_le (x i + 1 / 2) |
| 41 | have hhi := Int.lt_floor_add_one (x i + 1 / 2) |
| 42 | rw [abs_le] |
| 43 | constructor <;> linarith |
| 44 | |
| 45 | end NavierStokes.PeriodicLocalization |
| 46 | end |
| 47 | |
| 48 | end |
| 49 | |
| 50 | noncomputable section |
| 51 | |
| 52 | namespace NavierStokes.PeriodicLocalization |
| 53 | |
| 54 | open ProblemStatement Set Filter |
| 55 | open scoped BigOperators Topology |
| 56 | |
| 57 | variable {V : Type*} [NormedAddCommGroup V] |
| 58 | |
| 59 | /-- A lattice shift in the negative direction is also a period. -/ |
| 60 | theorem periodize_sub_lattice (f : SpaceTime → V) (t : ℝ) (x : Space) (n : Lattice) : |
| 61 | periodize f (t, x - lattice n) = periodize f (t, x) := by |
| 62 | simpa only [sub_add_cancel] using |
| 63 | (periodize_add_lattice f t (x - lattice n) n).symm |
| 64 | |
| 65 | /-- A neighborhood of any translated inner cube contains only that copy. -/ |
| 66 | theorem periodize_eventuallyEq_translate {r : ℝ} {f : SpaceTime → V} |
| 67 | (hf : SupportedInCube r f) {z : SpaceTime} (n : Lattice) |
| 68 | (hz : z.2 - lattice n ∈ innerCube r) : |
| 69 | periodize f =ᶠ[𝓝 z] translate f n := by |
| 70 | have hU : (fun w : SpaceTime => w.2 - lattice n) ⁻¹' innerCube r ∈ 𝓝 z := |
| 71 | ((isOpen_innerCube r).preimage (continuous_snd.sub continuous_const)).mem_nhds hz |
| 72 | filter_upwards [hU] with w hw |
| 73 | rw [← periodize_sub_lattice f w.1 w.2 n] |
| 74 | exact periodize_eq_on_innerCube hf hw w.1 |
| 75 | |
| 76 | variable [NormedSpace ℝ V] |
| 77 | |
| 78 | /-- Spatial differentiation commutes with a fixed spatial translation, |
| 79 | including at points where the ordinary derivative is totalized. -/ |
| 80 | theorem space_fderiv_translate (f : SpaceTime → V) (n : Lattice) (t : ℝ) (x : Space) : |
| 81 | fderiv ℝ (fun y : Space => translate f n (t, y)) x = |
| 82 | fderiv ℝ (fun y : Space => f (t, y)) (x - lattice n) := by |
| 83 | simpa only [translate, sub_eq_add_neg] using |
| 84 | (fderiv_comp_add_right (𝕜 := ℝ) (f := fun y : Space => f (t, y)) |
| 85 | (x := x) (-lattice n)) |
| 86 | |
| 87 | theorem temporalDerivative_translate (u : VelocityField) (n : Lattice) |
| 88 | (t : ℝ) (x : Space) : |
| 89 | temporalDerivative (translate u n) t x = temporalDerivative u t (x - lattice n) := rfl |
| 90 | |
| 91 | theorem spatialDerivative_translate (u : VelocityField) (n : Lattice) |
| 92 | (t : ℝ) (x : Space) : |
| 93 | spatialDerivative (translate u n) t x = spatialDerivative u t (x - lattice n) := |
| 94 | space_fderiv_translate u n t x |
| 95 | |
| 96 | theorem spatialDivergence_translate (u : VelocityField) (n : Lattice) |
| 97 | (t : ℝ) (x : Space) : |
| 98 | spatialDivergence (translate u n) t x = spatialDivergence u t (x - lattice n) := by |
| 99 | simp only [spatialDivergence, spatialDerivative_translate] |
| 100 | |
| 101 | theorem advection_translate (u : VelocityField) (n : Lattice) |
| 102 | (t : ℝ) (x : Space) : |
| 103 | advection (translate u n) t x = advection u t (x - lattice n) := by |
| 104 | simp only [advection, spatialDerivative_translate, translate] |
| 105 | |
| 106 | theorem pressureGradient_translate (p : PressureField) (n : Lattice) |
| 107 | (t : ℝ) (x : Space) : |
| 108 | pressureGradient (translate p n) t x = pressureGradient p t (x - lattice n) := by |
| 109 | simp only [pressureGradient, space_fderiv_translate] |
| 110 | |
| 111 | theorem spatialLaplacian_translate (u : VelocityField) (n : Lattice) |
| 112 | (t : ℝ) (x : Space) : |
| 113 | spatialLaplacian (translate u n) t x = spatialLaplacian u t (x - lattice n) := by |
| 114 | unfold spatialLaplacian |
| 115 | simp only [spatialDerivative_translate] |
| 116 | apply Finset.sum_congr rfl |
| 117 | intro i _ |
| 118 | have h := fderiv_comp_add_right (𝕜 := ℝ) |
| 119 | (f := fun y : Space => spatialDerivative u t y (coordinateVector i)) |
| 120 | (x := x) (-lattice n) |
| 121 | simpa only [sub_eq_add_neg] using |
| 122 | congrArg (fun L : Space →L[ℝ] Space => L (coordinateVector i)) h |
| 123 | |
| 124 | /-- The viscosity-dependent equation is covariant under spatial translation. -/ |
| 125 | theorem residual_translate (ν : ℝ) (u : VelocityField) (p : PressureField) |
| 126 | (n : Lattice) (t : ℝ) (x : Space) : |
| 127 | NavierStokesR3.ProblemStatement.navierStokesResidual ν (translate u n) (translate p n) t x = |
| 128 | NavierStokesR3.ProblemStatement.navierStokesResidual ν u p t (x - lattice n) := by |
| 129 | simp only [NavierStokesR3.ProblemStatement.navierStokesResidual, |
| 130 | temporalDerivative_translate, advection_translate, |
| 131 | spatialLaplacian_translate, pressureGradient_translate] |
| 132 | |
| 133 | /-- Locality for the equation at arbitrary viscosity. -/ |
| 134 | theorem residual_viscosity_congr (ν : ℝ) {u v : VelocityField} {p q : PressureField} |
| 135 | {z : SpaceTime} (hu : u =ᶠ[𝓝 z] v) (hp : p =ᶠ[𝓝 z] q) : |
| 136 | NavierStokesR3.ProblemStatement.navierStokesResidual ν u p z.1 z.2 = |
| 137 | NavierStokesR3.ProblemStatement.navierStokesResidual ν v q z.1 z.2 := by |
| 138 | unfold NavierStokesR3.ProblemStatement.navierStokesResidual |
| 139 | rw [ResidualRegularity.temporalDerivative_congr hu, |
| 140 | ResidualRegularity.advection_congr hu, |
| 141 | ResidualRegularity.spatialLaplacian_congr hu, |
| 142 | ResidualRegularity.pressureGradient_congr hp] |
| 143 | |
| 144 | /-- Locality of incompressibility, with no time-boundary differentiation. -/ |
| 145 | theorem spatialDivergence_congr {u v : VelocityField} {z : SpaceTime} |
| 146 | (hu : u =ᶠ[𝓝 z] v) : spatialDivergence u z.1 z.2 = spatialDivergence v z.1 z.2 := by |
| 147 | simp only [spatialDivergence, ResidualRegularity.spatialDerivative_congr hu] |
| 148 | |
| 149 | /-- Lattice periodization preserves incompressibility on any set of times, |
| 150 | including a closed initial-time boundary. -/ |
| 151 | theorem divergence_free_periodize {r : ℝ} {u : VelocityField} {times : Set ℝ} |
| 152 | (hu : SupportedInCube r u) (hr : r < 1 / 2) |
| 153 | (hdiv : ∀ t ∈ times, ∀ x : Space, spatialDivergence u t x = 0) : |
| 154 | ∀ t ∈ times, ∀ x : Space, spatialDivergence (periodize u) t x = 0 := by |
| 155 | intro t ht x |
| 156 | obtain ⟨n, hn⟩ := exists_lattice_near x |
| 157 | have hx : x - lattice n ∈ innerCube r := by |
| 158 | intro i |
| 159 | have := hn i |
| 160 | linarith |
| 161 | rw [spatialDivergence_congr (periodize_eventuallyEq_translate hu (z := (t, x)) n hx), |
| 162 | spatialDivergence_translate] |
| 163 | exact hdiv t ht (x - lattice n) |
| 164 | |
| 165 | /-- The actual lattice sums satisfy the same forced Navier--Stokes equation |
| 166 | at the same viscosity throughout every prescribed set of times. -/ |
| 167 | theorem navier_stokes_periodize {r ν : ℝ} {u f : VelocityField} {p : PressureField} |
| 168 | {times : Set ℝ} (hu : SupportedInCube r u) (hp : SupportedInCube r p) |
| 169 | (hf : SupportedInCube r f) (hr : r < 1 / 2) |
| 170 | (hNS : ∀ t ∈ times, ∀ x : Space, |
| 171 | NavierStokesR3.ProblemStatement.navierStokesResidual ν u p t x = f (t, x)) : |
| 172 | ∀ t ∈ times, ∀ x : Space, |
| 173 | NavierStokesR3.ProblemStatement.navierStokesResidual ν |
| 174 | (periodize u) (periodize p) t x = periodize f (t, x) := by |
| 175 | intro t ht x |
| 176 | obtain ⟨n, hn⟩ := exists_lattice_near x |
| 177 | have hx : x - lattice n ∈ innerCube r := by |
| 178 | intro i |
| 179 | have := hn i |
| 180 | linarith |
| 181 | have hfu := periodize_eventuallyEq_translate hu (z := (t, x)) n hx |
| 182 | have hfp := periodize_eventuallyEq_translate hp (z := (t, x)) n hx |
| 183 | have hff := periodize_eventuallyEq_translate hf (z := (t, x)) n hx |
| 184 | rw [residual_viscosity_congr ν hfu hfp, residual_translate, hNS t ht] |
| 185 | exact hff.self_of_nhds.symm |
| 186 | |
| 187 | end NavierStokes.PeriodicLocalization |