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 NavierStokes.PeriodizeLatticeCover |
| 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 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.PeriodicLocalization |
| 19 | |
| 20 | open ProblemStatement Set Filter |
| 21 | open scoped BigOperators Topology |
| 22 | |
| 23 | variable {V : Type*} [NormedAddCommGroup V] |
| 24 | |
| 25 | /-- A lattice shift in the negative direction is also a period. -/ |
| 26 | theorem periodize_sub_lattice (f : SpaceTime → V) (t : ℝ) (x : Space) (n : Lattice) : |
| 27 | periodize f (t, x - lattice n) = periodize f (t, x) := by |
| 28 | simpa only [sub_add_cancel] using |
| 29 | (periodize_add_lattice f t (x - lattice n) n).symm |
| 30 | |
| 31 | /-- A neighborhood of any translated inner cube contains only that copy. -/ |
| 32 | theorem periodize_eventuallyEq_translate {r : ℝ} {f : SpaceTime → V} |
| 33 | (hf : SupportedInCube r f) {z : SpaceTime} (n : Lattice) |
| 34 | (hz : z.2 - lattice n ∈ innerCube r) : |
| 35 | periodize f =ᶠ[𝓝 z] translate f n := by |
| 36 | have hU : (fun w : SpaceTime => w.2 - lattice n) ⁻¹' innerCube r ∈ 𝓝 z := |
| 37 | ((isOpen_innerCube r).preimage (continuous_snd.sub continuous_const)).mem_nhds hz |
| 38 | filter_upwards [hU] with w hw |
| 39 | rw [← periodize_sub_lattice f w.1 w.2 n] |
| 40 | exact periodize_eq_on_innerCube hf hw w.1 |
| 41 | |
| 42 | variable [NormedSpace ℝ V] |
| 43 | |
| 44 | /-- Spatial differentiation commutes with a fixed spatial translation, |
| 45 | including at points where the ordinary derivative is totalized. -/ |
| 46 | theorem space_fderiv_translate (f : SpaceTime → V) (n : Lattice) (t : ℝ) (x : Space) : |
| 47 | fderiv ℝ (fun y : Space => translate f n (t, y)) x = |
| 48 | fderiv ℝ (fun y : Space => f (t, y)) (x - lattice n) := by |
| 49 | simpa only [translate, sub_eq_add_neg] using |
| 50 | (fderiv_comp_add_right (𝕜 := ℝ) (f := fun y : Space => f (t, y)) |
| 51 | (x := x) (-lattice n)) |
| 52 | |
| 53 | theorem temporalDerivative_translate (u : VelocityField) (n : Lattice) |
| 54 | (t : ℝ) (x : Space) : |
| 55 | temporalDerivative (translate u n) t x = temporalDerivative u t (x - lattice n) := rfl |
| 56 | |
| 57 | theorem spatialDerivative_translate (u : VelocityField) (n : Lattice) |
| 58 | (t : ℝ) (x : Space) : |
| 59 | spatialDerivative (translate u n) t x = spatialDerivative u t (x - lattice n) := |
| 60 | space_fderiv_translate u n t x |
| 61 | |
| 62 | theorem spatialDivergence_translate (u : VelocityField) (n : Lattice) |
| 63 | (t : ℝ) (x : Space) : |
| 64 | spatialDivergence (translate u n) t x = spatialDivergence u t (x - lattice n) := by |
| 65 | simp only [spatialDivergence, spatialDerivative_translate] |
| 66 | |
| 67 | theorem advection_translate (u : VelocityField) (n : Lattice) |
| 68 | (t : ℝ) (x : Space) : |
| 69 | advection (translate u n) t x = advection u t (x - lattice n) := by |
| 70 | simp only [advection, spatialDerivative_translate, translate] |
| 71 | |
| 72 | theorem pressureGradient_translate (p : PressureField) (n : Lattice) |
| 73 | (t : ℝ) (x : Space) : |
| 74 | pressureGradient (translate p n) t x = pressureGradient p t (x - lattice n) := by |
| 75 | simp only [pressureGradient, space_fderiv_translate] |
| 76 | |
| 77 | theorem spatialLaplacian_translate (u : VelocityField) (n : Lattice) |
| 78 | (t : ℝ) (x : Space) : |
| 79 | spatialLaplacian (translate u n) t x = spatialLaplacian u t (x - lattice n) := by |
| 80 | unfold spatialLaplacian |
| 81 | simp only [spatialDerivative_translate] |
| 82 | apply Finset.sum_congr rfl |
| 83 | intro i _ |
| 84 | have h := fderiv_comp_add_right (𝕜 := ℝ) |
| 85 | (f := fun y : Space => spatialDerivative u t y (coordinateVector i)) |
| 86 | (x := x) (-lattice n) |
| 87 | simpa only [sub_eq_add_neg] using |
| 88 | congrArg (fun L : Space →L[ℝ] Space => L (coordinateVector i)) h |
| 89 | |
| 90 | /-- The viscosity-dependent equation is covariant under spatial translation. -/ |
| 91 | theorem residual_translate (ν : ℝ) (u : VelocityField) (p : PressureField) |
| 92 | (n : Lattice) (t : ℝ) (x : Space) : |
| 93 | NavierStokesR3.ProblemStatement.navierStokesResidual ν (translate u n) (translate p n) t x = |
| 94 | NavierStokesR3.ProblemStatement.navierStokesResidual ν u p t (x - lattice n) := by |
| 95 | simp only [NavierStokesR3.ProblemStatement.navierStokesResidual, |
| 96 | temporalDerivative_translate, advection_translate, |
| 97 | spatialLaplacian_translate, pressureGradient_translate] |
| 98 | |
| 99 | /-- Locality for the equation at arbitrary viscosity. -/ |
| 100 | theorem residual_viscosity_congr (ν : ℝ) {u v : VelocityField} {p q : PressureField} |
| 101 | {z : SpaceTime} (hu : u =ᶠ[𝓝 z] v) (hp : p =ᶠ[𝓝 z] q) : |
| 102 | NavierStokesR3.ProblemStatement.navierStokesResidual ν u p z.1 z.2 = |
| 103 | NavierStokesR3.ProblemStatement.navierStokesResidual ν v q z.1 z.2 := by |
| 104 | unfold NavierStokesR3.ProblemStatement.navierStokesResidual |
| 105 | rw [ResidualRegularity.temporalDerivative_congr hu, |
| 106 | ResidualRegularity.advection_congr hu, |
| 107 | ResidualRegularity.spatialLaplacian_congr hu, |
| 108 | ResidualRegularity.pressureGradient_congr hp] |
| 109 | |
| 110 | /-- Locality of incompressibility, with no time-boundary differentiation. -/ |
| 111 | theorem spatialDivergence_congr {u v : VelocityField} {z : SpaceTime} |
| 112 | (hu : u =ᶠ[𝓝 z] v) : spatialDivergence u z.1 z.2 = spatialDivergence v z.1 z.2 := by |
| 113 | simp only [spatialDivergence, ResidualRegularity.spatialDerivative_congr hu] |
| 114 | |
| 115 | /-- Lattice periodization preserves incompressibility on any set of times, |
| 116 | including a closed initial-time boundary. -/ |
| 117 | theorem divergence_free_periodize {r : ℝ} {u : VelocityField} {times : Set ℝ} |
| 118 | (hu : SupportedInCube r u) (hr : r < 1 / 2) |
| 119 | (hdiv : ∀ t ∈ times, ∀ x : Space, spatialDivergence u t x = 0) : |
| 120 | ∀ t ∈ times, ∀ x : Space, spatialDivergence (periodize u) t x = 0 := by |
| 121 | intro t ht x |
| 122 | obtain ⟨n, hn⟩ := exists_lattice_near x |
| 123 | have hx : x - lattice n ∈ innerCube r := by |
| 124 | intro i |
| 125 | have := hn i |
| 126 | linarith |
| 127 | rw [spatialDivergence_congr (periodize_eventuallyEq_translate hu (z := (t, x)) n hx), |
| 128 | spatialDivergence_translate] |
| 129 | exact hdiv t ht (x - lattice n) |
| 130 | |
| 131 | /-- The actual lattice sums satisfy the same forced Navier--Stokes equation |
| 132 | at the same viscosity throughout every prescribed set of times. -/ |
| 133 | theorem navier_stokes_periodize {r ν : ℝ} {u f : VelocityField} {p : PressureField} |
| 134 | {times : Set ℝ} (hu : SupportedInCube r u) (hp : SupportedInCube r p) |
| 135 | (hf : SupportedInCube r f) (hr : r < 1 / 2) |
| 136 | (hNS : ∀ t ∈ times, ∀ x : Space, |
| 137 | NavierStokesR3.ProblemStatement.navierStokesResidual ν u p t x = f (t, x)) : |
| 138 | ∀ t ∈ times, ∀ x : Space, |
| 139 | NavierStokesR3.ProblemStatement.navierStokesResidual ν |
| 140 | (periodize u) (periodize p) t x = periodize f (t, x) := by |
| 141 | intro t ht x |
| 142 | obtain ⟨n, hn⟩ := exists_lattice_near x |
| 143 | have hx : x - lattice n ∈ innerCube r := by |
| 144 | intro i |
| 145 | have := hn i |
| 146 | linarith |
| 147 | have hfu := periodize_eventuallyEq_translate hu (z := (t, x)) n hx |
| 148 | have hfp := periodize_eventuallyEq_translate hp (z := (t, x)) n hx |
| 149 | have hff := periodize_eventuallyEq_translate hf (z := (t, x)) n hx |
| 150 | rw [residual_viscosity_congr ν hfu hfp, residual_translate, hNS t ht] |
| 151 | exact hff.self_of_nhds.symm |
| 152 | |
| 153 | end NavierStokes.PeriodicLocalization |