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.TimeLocalization |
| 2 | import NavierStokes.ResidualRegularity |
| 3 | import NavierStokes.SpacetimeEndpoint |
| 4 | |
| 5 | /-! |
| 6 | # Extending activated physical fields to the whole open past |
| 7 | |
| 8 | The physical hypotheses constrain only nonnegative times. We explicitly replace |
| 9 | negative-time values by zero. A zero germ at time zero makes this replacement |
| 10 | jointly smooth, without any assumption on the original negative-time values. |
| 11 | The actual residual is smooth and periodic on the whole open past and retains |
| 12 | the original residual's terminal germ and all of its terminal derivative data. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | namespace NavierStokes.PastExtension |
| 21 | |
| 22 | open ProblemStatement TimeLocalization ResidualRegularity SmoothCutoffs |
| 23 | |
| 24 | abbrev pastDomain : Set SpaceTime := SpacetimeEndpoint.openPast 1 |
| 25 | |
| 26 | section Generic |
| 27 | |
| 28 | variable {V : Type*} [NormedAddCommGroup V] |
| 29 | |
| 30 | /-- Preserve nonnegative times and replace all negative-time values by zero. -/ |
| 31 | def zeroBefore (g : SpaceTime → V) (z : SpaceTime) : V := |
| 32 | if 0 ≤ z.1 then g z else 0 |
| 33 | |
| 34 | theorem zeroBefore_of_nonneg (g : SpaceTime → V) {t : ℝ} (ht : 0 ≤ t) (x : Space) : |
| 35 | zeroBefore g (t, x) = g (t, x) := by |
| 36 | simp only [zeroBefore, ht, ite_eq_left] |
| 37 | |
| 38 | theorem zeroBefore_of_neg (g : SpaceTime → V) {t : ℝ} (ht : t < 0) (x : Space) : |
| 39 | zeroBefore g (t, x) = 0 := by |
| 40 | simp only [zeroBefore, not_le.mpr ht, ite_false] |
| 41 | |
| 42 | theorem zeroBefore_eventuallyEq_pos {g : SpaceTime → V} {z : SpaceTime} |
| 43 | (hz : 0 < z.1) : zeroBefore g =ᶠ[𝓝 z] g := by |
| 44 | have hU : {w : SpaceTime | 0 < w.1} ∈ 𝓝 z := |
| 45 | (isOpen_lt continuous_const continuous_fst).mem_nhds hz |
| 46 | filter_upwards [hU] with w hw |
| 47 | exact zeroBefore_of_nonneg g hw.le w.2 |
| 48 | |
| 49 | theorem zeroBefore_eventually_zero_neg {g : SpaceTime → V} {z : SpaceTime} |
| 50 | (hz : z.1 < 0) : zeroBefore g =ᶠ[𝓝 z] (fun _ => 0) := by |
| 51 | have hU : {w : SpaceTime | w.1 < 0} ∈ 𝓝 z := |
| 52 | (isOpen_lt continuous_fst continuous_const).mem_nhds hz |
| 53 | filter_upwards [hU] with w hw |
| 54 | exact zeroBefore_of_neg g hw w.2 |
| 55 | |
| 56 | theorem zeroBefore_eventually_zero_at_zero {g : SpaceTime → V} (x : Space) |
| 57 | (hzero : g =ᶠ[𝓝 (0, x)] (fun _ => 0)) : |
| 58 | zeroBefore g =ᶠ[𝓝 (0, x)] (fun _ => 0) := by |
| 59 | filter_upwards [hzero] with z hz |
| 60 | by_cases ht : 0 ≤ z.1 |
| 61 | · simpa only [zeroBefore, ite_eq_left ht] using hz |
| 62 | · simp only [zeroBefore, ite_eq_right ht] |
| 63 | |
| 64 | /-- The zero germ also preserves every local derivative at time zero. -/ |
| 65 | theorem zeroBefore_eventuallyEq_nonneg {g : SpaceTime → V} |
| 66 | (hzero : ∀ x : Space, g =ᶠ[𝓝 (0, x)] (fun _ => 0)) |
| 67 | {t : ℝ} (ht : 0 ≤ t) (x : Space) : zeroBefore g =ᶠ[𝓝 (t, x)] g := by |
| 68 | rcases lt_or_eq_of_le ht with hpos | heq |
| 69 | · exact zeroBefore_eventuallyEq_pos hpos |
| 70 | · subst t |
| 71 | exact (zeroBefore_eventually_zero_at_zero x (hzero x)).trans (hzero x).symm |
| 72 | |
| 73 | variable [NormedSpace ℝ V] |
| 74 | |
| 75 | /-- Relative physical smoothness and a zero initial germ suffice for joint |
| 76 | smoothness on the entire open past. No negative-time regularity is assumed. -/ |
| 77 | theorem zeroBefore_contDiffOn_past {g : SpaceTime → V} |
| 78 | (hg : ContDiffOn ℝ ∞ g preSingularDomain) |
| 79 | (hzero : ∀ x : Space, g =ᶠ[𝓝 (0, x)] (fun _ => 0)) : |
| 80 | ContDiffOn ℝ ∞ (zeroBefore g) pastDomain := by |
| 81 | rintro ⟨t, x⟩ hz |
| 82 | rcases lt_trichotomy t 0 with hneg | heq | hpos |
| 83 | · have hc : ContDiffAt ℝ ∞ (fun _ : SpaceTime => (0 : V)) (t, x) := |
| 84 | contDiffAt_const |
| 85 | exact (hc.congr_of_eventuallyEq (zeroBefore_eventually_zero_neg hneg)).contDiffWithinAt |
| 86 | · subst t |
| 87 | have hc : ContDiffAt ℝ ∞ (fun _ : SpaceTime => (0 : V)) (0, x) := |
| 88 | contDiffAt_const |
| 89 | exact (hc.congr_of_eventuallyEq |
| 90 | (zeroBefore_eventually_zero_at_zero x (hzero x))).contDiffWithinAt |
| 91 | · exact ((smooth_at_interior hg ⟨hpos, hz.1⟩ x).congr_of_eventuallyEq |
| 92 | (zeroBefore_eventuallyEq_pos hpos)).contDiffWithinAt |
| 93 | |
| 94 | omit [NormedSpace ℝ V] in |
| 95 | theorem zeroBefore_periodic {g : SpaceTime → V} |
| 96 | (hg : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) g) : |
| 97 | UnitSpatialPeriodsOn (Iio (1 : ℝ)) (zeroBefore g) := by |
| 98 | intro t ht x i |
| 99 | by_cases hnonneg : 0 ≤ t |
| 100 | · rw [zeroBefore_of_nonneg g hnonneg, zeroBefore_of_nonneg g hnonneg] |
| 101 | exact hg t ⟨hnonneg, ht⟩ x i |
| 102 | · simp only [zeroBefore, ite_eq_right hnonneg] |
| 103 | |
| 104 | end Generic |
| 105 | |
| 106 | /-- Activated velocity with explicitly zero negative-time values. -/ |
| 107 | def pastVelocity (u : VelocityField) : VelocityField := zeroBefore (activatedVelocity u) |
| 108 | |
| 109 | /-- Activated pressure with explicitly zero negative-time values. -/ |
| 110 | def pastPressure (p : PressureField) : PressureField := zeroBefore (activatedPressure p) |
| 111 | |
| 112 | theorem activatedVelocity_zero_germ (u : VelocityField) (x : Space) : |
| 113 | activatedVelocity u =ᶠ[𝓝 (0, x)] (fun _ => 0) := by |
| 114 | have hs : (fun z : SpaceTime => timeSwitch z.1) =ᶠ[𝓝 (0, x)] (fun _ => 0) := |
| 115 | timeSwitch_eventually_zero.comp_tendsto continuous_fst.continuousAt |
| 116 | filter_upwards [hs] with z hz |
| 117 | simp only [activatedVelocity, hz, zero_smul] |
| 118 | |
| 119 | theorem activatedPressure_zero_germ (p : PressureField) (x : Space) : |
| 120 | activatedPressure p =ᶠ[𝓝 (0, x)] (fun _ => 0) := by |
| 121 | have hs : (fun z : SpaceTime => timeSwitch z.1) =ᶠ[𝓝 (0, x)] (fun _ => 0) := |
| 122 | timeSwitch_eventually_zero.comp_tendsto continuous_fst.continuousAt |
| 123 | filter_upwards [hs] with z hz |
| 124 | simp only [activatedPressure, hz, zero_mul] |
| 125 | |
| 126 | theorem pastVelocity_smooth (u : VelocityField) |
| 127 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) : |
| 128 | ContDiffOn ℝ ∞ (pastVelocity u) pastDomain := |
| 129 | zeroBefore_contDiffOn_past (activatedVelocity_smooth u hu) (activatedVelocity_zero_germ u) |
| 130 | |
| 131 | theorem pastPressure_smooth (p : PressureField) |
| 132 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) : |
| 133 | ContDiffOn ℝ ∞ (pastPressure p) pastDomain := |
| 134 | zeroBefore_contDiffOn_past (activatedPressure_smooth p hp) (activatedPressure_zero_germ p) |
| 135 | |
| 136 | theorem pastVelocity_periodic (u : VelocityField) |
| 137 | (hu : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) u) : |
| 138 | UnitSpatialPeriodsOn (Iio (1 : ℝ)) (pastVelocity u) := |
| 139 | zeroBefore_periodic (activatedVelocity_periodic u _ hu) |
| 140 | |
| 141 | theorem pastPressure_periodic (p : PressureField) |
| 142 | (hp : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) p) : |
| 143 | UnitSpatialPeriodsOn (Iio (1 : ℝ)) (pastPressure p) := |
| 144 | zeroBefore_periodic (activatedPressure_periodic p _ hp) |
| 145 | |
| 146 | theorem pastVelocity_eventuallyEq_activated (u : VelocityField) {t : ℝ} |
| 147 | (ht : 0 ≤ t) (x : Space) : |
| 148 | pastVelocity u =ᶠ[𝓝 (t, x)] activatedVelocity u := |
| 149 | zeroBefore_eventuallyEq_nonneg (activatedVelocity_zero_germ u) ht x |
| 150 | |
| 151 | theorem pastPressure_eventuallyEq_activated (p : PressureField) {t : ℝ} |
| 152 | (ht : 0 ≤ t) (x : Space) : |
| 153 | pastPressure p =ᶠ[𝓝 (t, x)] activatedPressure p := |
| 154 | zeroBefore_eventuallyEq_nonneg (activatedPressure_zero_germ p) ht x |
| 155 | |
| 156 | theorem pastVelocity_eventuallyEq_late (u : VelocityField) {t : ℝ} |
| 157 | (ht : 3 / 4 < t) (x : Space) : pastVelocity u =ᶠ[𝓝 (t, x)] u := |
| 158 | (pastVelocity_eventuallyEq_activated u (by linarith) x).trans |
| 159 | (activatedVelocity_eventuallyEq_late u ht x) |
| 160 | |
| 161 | theorem pastPressure_eventuallyEq_late (p : PressureField) {t : ℝ} |
| 162 | (ht : 3 / 4 < t) (x : Space) : pastPressure p =ᶠ[𝓝 (t, x)] p := |
| 163 | (pastPressure_eventuallyEq_activated p (by linarith) x).trans |
| 164 | (activatedPressure_eventuallyEq_late p ht x) |
| 165 | |
| 166 | /-- The force used by the endpoint theorem is the actual residual of the |
| 167 | new fields on the entire open past, including negative times. -/ |
| 168 | def pastResidual (u : VelocityField) (p : PressureField) : VelocityField := |
| 169 | fun z => navierStokesResidual (pastVelocity u) (pastPressure p) z.1 z.2 |
| 170 | |
| 171 | theorem pastResidual_smooth (u : VelocityField) (p : PressureField) |
| 172 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) |
| 173 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) : |
| 174 | ContDiffOn ℝ ∞ (pastResidual u p) pastDomain := |
| 175 | contDiffOn_residual (SpacetimeEndpoint.openPast_isOpen 1) |
| 176 | (pastVelocity_smooth u hu) (pastPressure_smooth p hp) |
| 177 | |
| 178 | theorem pastResidual_periodic (u : VelocityField) (p : PressureField) |
| 179 | (hu : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) u) |
| 180 | (hp : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) p) : |
| 181 | UnitSpatialPeriodsOn (Iio (1 : ℝ)) (pastResidual u p) := |
| 182 | residual_periods isOpen_Iio (pastVelocity_periodic u hu) (pastPressure_periodic p hp) |
| 183 | |
| 184 | theorem pastResidual_eventually_zero_nonpos (u : VelocityField) (p : PressureField) |
| 185 | {t : ℝ} (ht : t ≤ 0) (x : Space) : |
| 186 | pastResidual u p =ᶠ[𝓝 (t, x)] (fun _ => 0) := by |
| 187 | rcases lt_or_eq_of_le ht with hneg | heq |
| 188 | · exact residual_eventually_zero |
| 189 | (zeroBefore_eventually_zero_neg hneg) (zeroBefore_eventually_zero_neg hneg) |
| 190 | · subst t |
| 191 | exact residual_eventually_zero |
| 192 | (zeroBefore_eventually_zero_at_zero x (activatedVelocity_zero_germ u x)) |
| 193 | (zeroBefore_eventually_zero_at_zero x (activatedPressure_zero_germ p x)) |
| 194 | |
| 195 | theorem pastResidual_zero_nonpos (u : VelocityField) (p : PressureField) |
| 196 | {t : ℝ} (ht : t ≤ 0) (x : Space) : pastResidual u p (t, x) = 0 := |
| 197 | (pastResidual_eventually_zero_nonpos u p ht x).self_of_nhds |
| 198 | |
| 199 | theorem pastResidual_eq_activated (u : VelocityField) (p : PressureField) |
| 200 | {t : ℝ} (ht : 0 ≤ t) (x : Space) : |
| 201 | pastResidual u p (t, x) = |
| 202 | navierStokesResidual (activatedVelocity u) (activatedPressure p) t x := |
| 203 | residual_congr (pastVelocity_eventuallyEq_activated u ht x) |
| 204 | (pastPressure_eventuallyEq_activated p ht x) |
| 205 | |
| 206 | theorem pastResidual_eventuallyEq_late (u : VelocityField) (p : PressureField) |
| 207 | {t : ℝ} (ht : 3 / 4 < t) (x : Space) : |
| 208 | pastResidual u p =ᶠ[𝓝 (t, x)] (fun z => navierStokesResidual u p z.1 z.2) := |
| 209 | residual_eventuallyEq (pastVelocity_eventuallyEq_late u ht x) |
| 210 | (pastPressure_eventuallyEq_late p ht x) |
| 211 | |
| 212 | /-- Full joint derivative tensors, not only values, retain the terminal germ. -/ |
| 213 | theorem pastResidual_iteratedFDeriv_eq_late (u : VelocityField) (p : PressureField) |
| 214 | (n : ℕ) {t : ℝ} (ht : 3 / 4 < t) (x : Space) : |
| 215 | iteratedFDeriv ℝ n (pastResidual u p) (t, x) = |
| 216 | iteratedFDeriv ℝ n (fun z => navierStokesResidual u p z.1 z.2) (t, x) := by |
| 217 | have heq := pastResidual_eventuallyEq_late u p ht x |
| 218 | have heq' : pastResidual u p =ᶠ[𝓝[univ] (t, x)] |
| 219 | (fun z => navierStokesResidual u p z.1 z.2) := heq.filter_mono nhdsWithin_le_nhds |
| 220 | simpa only [iteratedFDerivWithin_univ] using |
| 221 | heq'.iteratedFDerivWithin_eq (𝕜 := ℝ) heq.eq_of_nhds n |
| 222 | |
| 223 | /-- Any locally uniform limiting full derivative tensor transfers unchanged. |
| 224 | This hypothesis is not supplied by the zero extension itself. -/ |
| 225 | theorem pastResidual_locallyUniform_limit (u : VelocityField) (p : PressureField) |
| 226 | (n : ℕ) (L : Space → SpaceTime[×n]→L[ℝ] Space) |
| 227 | (hlim : TendstoLocallyUniformly |
| 228 | (fun t x => iteratedFDeriv ℝ n (fun z => navierStokesResidual u p z.1 z.2) (t, x)) |
| 229 | L (𝓝[<] (1 : ℝ))) : |
| 230 | TendstoLocallyUniformly (fun t x => iteratedFDeriv ℝ n (pastResidual u p) (t, x)) |
| 231 | L (𝓝[<] (1 : ℝ)) := by |
| 232 | intro U hU x |
| 233 | obtain ⟨s, hs, hbound⟩ := hlim U hU x |
| 234 | refine ⟨s, hs, ?_⟩ |
| 235 | have hlate₀ : ∀ᶠ t in 𝓝 (1 : ℝ), 3 / 4 < t := |
| 236 | Ioi_mem_nhds (by norm_num : (3 / 4 : ℝ) < 1) |
| 237 | have hlate : ∀ᶠ t in 𝓝[<] (1 : ℝ), 3 / 4 < t := |
| 238 | hlate₀.filter_mono nhdsWithin_le_nhds |
| 239 | filter_upwards [hbound, hlate] with t ht htlate y hy |
| 240 | rw [pastResidual_iteratedFDeriv_eq_late u p n htlate y] |
| 241 | exact ht y hy |
| 242 | |
| 243 | /-- The full derivative family required by `SpacetimeEndpoint` is supplied |
| 244 | by the actual derivatives of the constructed past residual. -/ |
| 245 | theorem pastResidual_derivative_recurrence (u : VelocityField) (p : PressureField) |
| 246 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) |
| 247 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) (n : ℕ) (z : SpaceTime) |
| 248 | (hz : z.1 < 1) : |
| 249 | HasFDerivAt (iteratedFDeriv ℝ n (pastResidual u p)) |
| 250 | (iteratedFDeriv ℝ (n + 1) (pastResidual u p) z).curryLeft z := by |
| 251 | have hs : ContDiffAt ℝ ∞ (pastResidual u p) z := |
| 252 | (pastResidual_smooth u p hu hp).contDiffAt |
| 253 | ((SpacetimeEndpoint.openPast_isOpen 1).mem_nhds ⟨hz, mem_univ z.2⟩) |
| 254 | have hi : ContDiffAt ℝ 1 (iteratedFDeriv ℝ n (pastResidual u p)) z := |
| 255 | hs.iteratedFDeriv_right (by exact_mod_cast (le_top : 1 + (n : ℕ∞) ≤ ⊤)) |
| 256 | have hd := (hi.differentiableAt (by simp)).hasFDerivAt |
| 257 | simp only [fderiv_iteratedFDeriv, Function.comp_apply] at hd |
| 258 | exact hd |
| 259 | |
| 260 | end NavierStokes.PastExtension |