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.ProblemStatement |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 3 | import Mathlib.Topology.Algebra.InfiniteSum.Basic |
| 4 | import Mathlib.Topology.LocallyFinite |
| 5 | import Mathlib.Data.Int.Interval |
| 6 | import Mathlib.Data.Fintype.Pi |
| 7 | import Mathlib.Tactic.Abel |
| 8 | import Mathlib.Tactic.Linarith |
| 9 | import Mathlib.Tactic.NormNum |
| 10 | import Mathlib.Tactic.Ring |
| 11 | |
| 12 | /-! |
| 13 | # Spatial periodization in physical Euclidean three-space |
| 14 | |
| 15 | The periodization is the actual sum over integer lattice translations. A fixed |
| 16 | spatial support bound makes this family locally finite, uniformly in time. |
| 17 | Consequently every smoothness order is preserved. The construction agrees with |
| 18 | the original field on an explicit cube whenever the other translates vanish. |
| 19 | -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace NavierStokes.PeriodicLocalization |
| 24 | |
| 25 | open ProblemStatement Set Filter |
| 26 | open scoped BigOperators ContDiff Topology |
| 27 | |
| 28 | abbrev Lattice := Fin 3 → ℤ |
| 29 | |
| 30 | /-- The integer lattice embedded in the Euclidean space of the PDE statement. -/ |
| 31 | def lattice (n : Lattice) : Space := |
| 32 | (WithLp.equiv 2 (Fin 3 → ℝ)).symm (fun i => (n i : ℝ)) |
| 33 | |
| 34 | @[simp] theorem lattice_apply (n : Lattice) (i : Fin 3) : |
| 35 | lattice n i = (n i : ℝ) := rfl |
| 36 | |
| 37 | @[simp] theorem lattice_zero : lattice 0 = 0 := by |
| 38 | ext i |
| 39 | simp [lattice] |
| 40 | |
| 41 | @[simp] theorem lattice_add (m n : Lattice) : |
| 42 | lattice (m + n) = lattice m + lattice n := by |
| 43 | ext i |
| 44 | simp [lattice] |
| 45 | |
| 46 | @[simp] theorem lattice_single (i : Fin 3) : |
| 47 | lattice (Pi.single i 1) = coordinateVector i := by |
| 48 | ext j |
| 49 | simp [lattice, coordinateVector, Pi.single_apply] |
| 50 | |
| 51 | variable {V : Type*} [NormedAddCommGroup V] |
| 52 | |
| 53 | /-- A spatial support bound, uniform over all physical times. -/ |
| 54 | def SupportedInCube (r : ℝ) (f : SpaceTime → V) : Prop := |
| 55 | ∀ z, f z ≠ 0 → ∀ i : Fin 3, |z.2 i| ≤ r |
| 56 | |
| 57 | /-- Translate only in space; physical time is unchanged. -/ |
| 58 | def translate (f : SpaceTime → V) (n : Lattice) (z : SpaceTime) : V := |
| 59 | f (z.1, z.2 - lattice n) |
| 60 | |
| 61 | /-- The actual lattice sum, rather than an assumed periodic extension. -/ |
| 62 | def periodize (f : SpaceTime → V) (z : SpaceTime) : V := |
| 63 | ∑' n : Lattice, translate f n z |
| 64 | |
| 65 | /-- A finite box in the three-dimensional integer lattice. -/ |
| 66 | def latticeBox (N : ℕ) : Set Lattice := |
| 67 | {n | ∀ i, n i ∈ Icc (-(N : ℤ)) (N : ℤ)} |
| 68 | |
| 69 | theorem finite_latticeBox (N : ℕ) : (latticeBox N).Finite := |
| 70 | Set.Finite.pi' (fun _ : Fin 3 => Set.finite_Icc _ _) |
| 71 | |
| 72 | def latticeBoxFinset (N : ℕ) : Finset Lattice := (finite_latticeBox N).toFinset |
| 73 | |
| 74 | @[simp] theorem mem_latticeBoxFinset (N : ℕ) (n : Lattice) : |
| 75 | n ∈ latticeBoxFinset N ↔ n ∈ latticeBox N := by |
| 76 | simp [latticeBoxFinset] |
| 77 | |
| 78 | /-- Only a finite lattice box can contribute on a bounded spatial region. -/ |
| 79 | theorem mem_latticeBox_of_translate_ne_zero {r R : ℝ} {f : SpaceTime → V} |
| 80 | (hf : SupportedInCube r f) {N : ℕ} (hN : R + r ≤ (N : ℝ)) |
| 81 | {z : SpaceTime} (hz : ‖z.2‖ ≤ R) {n : Lattice} |
| 82 | (hn : translate f n z ≠ 0) : n ∈ latticeBox N := by |
| 83 | intro i |
| 84 | have hi : |z.2 i - (n i : ℝ)| ≤ r := by |
| 85 | simpa [translate, lattice] using hf (z.1, z.2 - lattice n) hn i |
| 86 | have hx : |z.2 i| ≤ R := by |
| 87 | have hx' : |z.2 i| ≤ ‖z.2‖ := by |
| 88 | simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le z.2 i |
| 89 | exact hx'.trans hz |
| 90 | have hni : |(n i : ℝ)| ≤ (N : ℝ) := by |
| 91 | calc |
| 92 | |(n i : ℝ)| = |z.2 i - (z.2 i - (n i : ℝ))| := by ring_nf |
| 93 | _ ≤ |z.2 i| + |z.2 i - (n i : ℝ)| := by |
| 94 | simpa only [sub_zero, zero_sub, abs_neg] using |
| 95 | abs_sub_le (z.2 i) 0 (z.2 i - (n i : ℝ)) |
| 96 | _ ≤ R + r := add_le_add hx hi |
| 97 | _ ≤ (N : ℝ) := hN |
| 98 | have hlo := (abs_le.mp hni).1 |
| 99 | have hhi := (abs_le.mp hni).2 |
| 100 | exact ⟨by exact_mod_cast hlo, by exact_mod_cast hhi⟩ |
| 101 | |
| 102 | /-- Near any spacetime point, every translate outside one fixed finite |
| 103 | integer box vanishes. No restriction on nearby time coordinates is needed. -/ |
| 104 | theorem exists_local_latticeBox {r : ℝ} {f : SpaceTime → V} |
| 105 | (hf : SupportedInCube r f) (z : SpaceTime) : |
| 106 | ∃ N : ℕ, ∀ᶠ w in 𝓝 z, ∀ n ∉ latticeBoxFinset N, translate f n w = 0 := by |
| 107 | obtain ⟨N, hN⟩ := exists_nat_gt (‖z.2‖ + 1 + r) |
| 108 | refine ⟨N, ?_⟩ |
| 109 | have hU : {w : SpaceTime | ‖w.2‖ < ‖z.2‖ + 1} ∈ 𝓝 z := |
| 110 | (isOpen_lt (continuous_norm.comp continuous_snd) continuous_const).mem_nhds (by simp) |
| 111 | filter_upwards [hU] with w hw n hn |
| 112 | by_contra hne |
| 113 | exact hn ((mem_latticeBoxFinset N n).mpr |
| 114 | (mem_latticeBox_of_translate_ne_zero hf hN.le hw.le hne)) |
| 115 | |
| 116 | /-- The supports of the lattice translates form a locally finite family. -/ |
| 117 | theorem locallyFinite_support_translate {r : ℝ} {f : SpaceTime → V} |
| 118 | (hf : SupportedInCube r f) : |
| 119 | LocallyFinite (fun n : Lattice => Function.support (translate f n)) := by |
| 120 | intro z |
| 121 | obtain ⟨N, hN⟩ := exists_local_latticeBox hf z |
| 122 | refine ⟨{w | ∀ n ∉ latticeBoxFinset N, translate f n w = 0}, hN, ?_⟩ |
| 123 | apply (finite_latticeBox N).subset |
| 124 | intro n hn |
| 125 | obtain ⟨w, hw, hzero⟩ := hn |
| 126 | by_contra hnot |
| 127 | exact hw (hzero n (by simpa using hnot)) |
| 128 | |
| 129 | /-- The series is genuinely summable at every spacetime point. -/ |
| 130 | theorem summable_translate {r : ℝ} {f : SpaceTime → V} |
| 131 | (hf : SupportedInCube r f) (z : SpaceTime) : |
| 132 | Summable (fun n : Lattice => translate f n z) := |
| 133 | summable_of_hasFiniteSupport ((locallyFinite_support_translate hf).point_finite z) |
| 134 | |
| 135 | /-- Locally, the infinite sum equals a single finite sum of smooth translates. -/ |
| 136 | theorem periodize_locally_eq_sum {r : ℝ} {f : SpaceTime → V} |
| 137 | (hf : SupportedInCube r f) (z : SpaceTime) : |
| 138 | ∃ N : ℕ, periodize f =ᶠ[𝓝 z] |
| 139 | (fun w => ∑ n ∈ latticeBoxFinset N, translate f n w) := by |
| 140 | obtain ⟨N, hN⟩ := exists_local_latticeBox hf z |
| 141 | refine ⟨N, hN.mono ?_⟩ |
| 142 | intro w hw |
| 143 | exact tsum_eq_sum hw |
| 144 | |
| 145 | section Regularity |
| 146 | |
| 147 | variable [NormedSpace ℝ V] |
| 148 | |
| 149 | theorem contDiff_translate {f : SpaceTime → V} {m : WithTop ℕ∞} |
| 150 | (hf : ContDiff ℝ m f) (n : Lattice) : ContDiff ℝ m (translate f n) := |
| 151 | hf.comp (contDiff_fst.prodMk (contDiff_snd.sub contDiff_const)) |
| 152 | |
| 153 | /-- Spatial periodization preserves every given differentiability order, |
| 154 | in particular `m = ∞`, through locally finite sums. -/ |
| 155 | theorem contDiff_periodize {r : ℝ} {f : SpaceTime → V} {m : WithTop ℕ∞} |
| 156 | (hs : SupportedInCube r f) (hf : ContDiff ℝ m f) : |
| 157 | ContDiff ℝ m (periodize f) := by |
| 158 | rw [contDiff_iff_contDiffAt] |
| 159 | intro z |
| 160 | obtain ⟨N, hN⟩ := periodize_locally_eq_sum hs z |
| 161 | have hsum : ContDiff ℝ m |
| 162 | (fun w => ∑ n ∈ latticeBoxFinset N, translate f n w) := |
| 163 | ContDiff.sum fun n _ => contDiff_translate hf n |
| 164 | exact hsum.contDiffAt.congr_of_eventuallyEq hN |
| 165 | |
| 166 | /-- A translation preserves smoothness relative to any set of times. -/ |
| 167 | theorem contDiffOn_translate {f : SpaceTime → V} {m : WithTop ℕ∞} {times : Set ℝ} |
| 168 | (hf : ContDiffOn ℝ m f (times ×ˢ (univ : Set Space))) (n : Lattice) : |
| 169 | ContDiffOn ℝ m (translate f n) (times ×ˢ (univ : Set Space)) := by |
| 170 | apply hf.comp (contDiff_fst.prodMk (contDiff_snd.sub contDiff_const)).contDiffOn |
| 171 | intro z hz |
| 172 | exact ⟨hz.1, mem_univ _⟩ |
| 173 | |
| 174 | /-- Periodization also preserves relative smoothness at time boundaries, |
| 175 | including the closed initial-time boundary in the PDE specification. -/ |
| 176 | theorem contDiffOn_periodize {r : ℝ} {f : SpaceTime → V} {m : WithTop ℕ∞} |
| 177 | {times : Set ℝ} (hs : SupportedInCube r f) |
| 178 | (hf : ContDiffOn ℝ m f (times ×ˢ (univ : Set Space))) : |
| 179 | ContDiffOn ℝ m (periodize f) (times ×ˢ (univ : Set Space)) := by |
| 180 | intro z hz |
| 181 | obtain ⟨N, hN⟩ := periodize_locally_eq_sum hs z |
| 182 | have hsum : ContDiffOn ℝ m |
| 183 | (fun w => ∑ n ∈ latticeBoxFinset N, translate f n w) |
| 184 | (times ×ˢ (univ : Set Space)) := |
| 185 | ContDiffOn.sum fun n _ => contDiffOn_translate hf n |
| 186 | exact (hsum z hz).congr_of_eventuallyEq |
| 187 | (hN.filter_mono nhdsWithin_le_nhds) hN.self_of_nhds |
| 188 | |
| 189 | end Regularity |
| 190 | |
| 191 | /-- Reindexing the actual sum gives every integer lattice period. -/ |
| 192 | theorem periodize_add_lattice (f : SpaceTime → V) (t : ℝ) (x : Space) (m : Lattice) : |
| 193 | periodize f (t, x + lattice m) = periodize f (t, x) := by |
| 194 | unfold periodize translate |
| 195 | calc |
| 196 | (∑' n : Lattice, f (t, x + lattice m - lattice n)) = |
| 197 | ∑' n : Lattice, f (t, x + lattice m - lattice (n + m)) := |
| 198 | ((Equiv.addRight m).tsum_eq _).symm |
| 199 | _ = ∑' n : Lattice, f (t, x - lattice n) := by |
| 200 | apply tsum_congr |
| 201 | intro n |
| 202 | rw [lattice_add] |
| 203 | congr 2 |
| 204 | abel |
| 205 | |
| 206 | /-- The periods are the exact coordinate periods in the PDE specification. -/ |
| 207 | theorem unitSpatialPeriodsOn_periodize (f : SpaceTime → V) (times : Set ℝ) : |
| 208 | UnitSpatialPeriodsOn times (periodize f) := by |
| 209 | intro t _ x i |
| 210 | simpa only [lattice_single] using periodize_add_lattice f t x (Pi.single i 1) |
| 211 | |
| 212 | /-- The open spatial cube on which other copies are excluded. -/ |
| 213 | def innerCube (r : ℝ) : Set Space := {x | ∀ i : Fin 3, |x i| < 1 - r} |
| 214 | |
| 215 | /-- In this cube, a nonzero translate must be the zero lattice translate. -/ |
| 216 | theorem translate_eq_zero_on_innerCube {r : ℝ} {f : SpaceTime → V} |
| 217 | (hf : SupportedInCube r f) {x : Space} (hx : x ∈ innerCube r) |
| 218 | (t : ℝ) {n : Lattice} (hn : n ≠ 0) : translate f n (t, x) = 0 := by |
| 219 | by_contra hne |
| 220 | apply hn |
| 221 | funext i |
| 222 | have hi : |x i - (n i : ℝ)| ≤ r := by |
| 223 | simpa [translate, lattice] using hf (t, x - lattice n) hne i |
| 224 | have hni : |(n i : ℝ)| < 1 := by |
| 225 | calc |
| 226 | |(n i : ℝ)| = |x i - (x i - (n i : ℝ))| := by ring_nf |
| 227 | _ ≤ |x i| + |x i - (n i : ℝ)| := by |
| 228 | simpa only [sub_zero, zero_sub, abs_neg] using |
| 229 | abs_sub_le (x i) 0 (x i - (n i : ℝ)) |
| 230 | _ < 1 := by have := hx i; linarith |
| 231 | have hlo : (-1 : ℤ) < n i := by exact_mod_cast (abs_lt.mp hni).1 |
| 232 | have hhi : n i < (1 : ℤ) := by exact_mod_cast (abs_lt.mp hni).2 |
| 233 | change n i = 0 |
| 234 | omega |
| 235 | |
| 236 | /-- Exact equality on an explicit open cube, uniformly over time. -/ |
| 237 | theorem periodize_eq_on_innerCube {r : ℝ} {f : SpaceTime → V} |
| 238 | (hf : SupportedInCube r f) {x : Space} (hx : x ∈ innerCube r) (t : ℝ) : |
| 239 | periodize f (t, x) = f (t, x) := by |
| 240 | have h := tsum_eq_single (L := SummationFilter.unconditional Lattice) (0 : Lattice) |
| 241 | (fun n hn => translate_eq_zero_on_innerCube hf hx t hn) |
| 242 | simpa only [periodize, translate, lattice_zero, sub_zero] using h |
| 243 | |
| 244 | theorem isOpen_innerCube (r : ℝ) : IsOpen (innerCube r) := by |
| 245 | change IsOpen {x : Space | ∀ i : Fin 3, |x i| < 1 - r} |
| 246 | simp only [Set.ofPred_forall] |
| 247 | exact isOpen_iInter_of_finite fun i => |
| 248 | isOpen_lt (continuous_abs.comp (EuclideanSpace.proj i).continuous) continuous_const |
| 249 | |
| 250 | /-- Equality holds on a neighborhood of every point in the inner cube, so |
| 251 | local derivatives of the periodization also agree with those of the original. -/ |
| 252 | theorem periodize_eventuallyEq {r : ℝ} {f : SpaceTime → V} |
| 253 | (hf : SupportedInCube r f) {z : SpaceTime} (hz : z.2 ∈ innerCube r) : |
| 254 | periodize f =ᶠ[𝓝 z] f := by |
| 255 | have hU : Prod.snd ⁻¹' innerCube r ∈ 𝓝 z := |
| 256 | ((isOpen_innerCube r).preimage continuous_snd).mem_nhds hz |
| 257 | filter_upwards [hU] with w hw |
| 258 | exact periodize_eq_on_innerCube hf hw w.1 |
| 259 | |
| 260 | /-- A cube strictly inside the fundamental unit cube gives equality near the |
| 261 | spatial origin at every time. -/ |
| 262 | theorem periodize_eventuallyEq_at_origin {r : ℝ} {f : SpaceTime → V} |
| 263 | (hf : SupportedInCube r f) (hr : r < 1 / 2) (t : ℝ) : |
| 264 | periodize f =ᶠ[𝓝 (t, (0 : Space))] f := by |
| 265 | apply periodize_eventuallyEq hf |
| 266 | intro i |
| 267 | simp only [PiLp.zero_apply, abs_zero] |
| 268 | linarith |
| 269 | |
| 270 | /-- For support strictly inside the fundamental cube, equality holds on the |
| 271 | whole closed fundamental cube, including its boundary. -/ |
| 272 | theorem periodize_eq_on_unitCube {r : ℝ} {f : SpaceTime → V} |
| 273 | (hf : SupportedInCube r f) (hr : r < 1 / 2) {x : Space} |
| 274 | (hx : ∀ i : Fin 3, |x i| ≤ 1 / 2) (t : ℝ) : |
| 275 | periodize f (t, x) = f (t, x) := by |
| 276 | apply periodize_eq_on_innerCube hf (t := t) |
| 277 | intro i |
| 278 | have := hx i |
| 279 | linarith |
| 280 | |
| 281 | /-- Spatial periodization preserves every zero time slice. -/ |
| 282 | theorem periodize_eq_zero_of_timeSlice {f : SpaceTime → V} {t : ℝ} |
| 283 | (hf : ∀ x : Space, f (t, x) = 0) (x : Space) : periodize f (t, x) = 0 := by |
| 284 | simp only [periodize, translate, hf, tsum_zero] |
| 285 | |
| 286 | /-- In particular, the common future time-support endpoint is preserved. -/ |
| 287 | theorem compactFutureTimeSupport_periodize {f : VelocityField} |
| 288 | (hf : CompactFutureTimeSupport f) : CompactFutureTimeSupport (periodize f) := by |
| 289 | obtain ⟨T, hT, hzero⟩ := hf |
| 290 | exact ⟨T, hT, fun t ht x => periodize_eq_zero_of_timeSlice (hzero t ht) x⟩ |
| 291 | |
| 292 | end NavierStokes.PeriodicLocalization |