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.FlatCutoff |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Comp |
| 3 | |
| 4 | /-! |
| 5 | # Jointly smooth zero extension from locally uniform Gaussian bounds |
| 6 | |
| 7 | The bounds concern the actual full Fréchet derivative tensors of a function |
| 8 | on `U × (0,∞)`. They are uniform in a neighborhood of each parameter point. |
| 9 | Every tensor is extended by zero. One extra inverse power in the Gaussian |
| 10 | bound proves that its derivative at the edge is zero, using |
| 11 | `δ ≤ ‖(p,δ) - (p₀,0)‖`. No pointwise-to-joint limit inference is used. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | namespace NavierStokes.FlatZeroExtension |
| 20 | |
| 21 | open FlatCutoff |
| 22 | |
| 23 | variable {E F : Type*} |
| 24 | |
| 25 | section Zero |
| 26 | |
| 27 | variable [Zero F] |
| 28 | |
| 29 | /-- Preserve positive edge distance and use zero on the other side. -/ |
| 30 | def zeroExtension (f : E × ℝ → F) (p : E × ℝ) : F := |
| 31 | if 0 < p.2 then f p else 0 |
| 32 | |
| 33 | theorem zeroExtension_of_pos (f : E × ℝ → F) {p : E × ℝ} (hp : 0 < p.2) : |
| 34 | zeroExtension f p = f p := ite_eq_left hp |
| 35 | |
| 36 | theorem zeroExtension_of_nonpos (f : E × ℝ → F) {p : E × ℝ} (hp : p.2 ≤ 0) : |
| 37 | zeroExtension f p = 0 := ite_eq_right (not_lt_of_ge hp) |
| 38 | |
| 39 | @[simp] theorem zeroExtension_edge (f : E × ℝ → F) (x : E) : |
| 40 | zeroExtension f (x, 0) = 0 := zeroExtension_of_nonpos f le_rfl |
| 41 | |
| 42 | variable [TopologicalSpace E] |
| 43 | |
| 44 | theorem zeroExtension_germ_pos (f : E × ℝ → F) {p : E × ℝ} (hp : 0 < p.2) : |
| 45 | zeroExtension f =ᶠ[𝓝 p] f := by |
| 46 | filter_upwards [continuousAt_snd.eventually (Ioi_mem_nhds hp)] with q hq |
| 47 | exact zeroExtension_of_pos f hq |
| 48 | |
| 49 | theorem zeroExtension_germ_neg (f : E × ℝ → F) {p : E × ℝ} (hp : p.2 < 0) : |
| 50 | zeroExtension f =ᶠ[𝓝 p] (fun _ => 0) := by |
| 51 | filter_upwards [continuousAt_snd.eventually (Iio_mem_nhds hp)] with q hq |
| 52 | exact zeroExtension_of_nonpos f hq.le |
| 53 | |
| 54 | end Zero |
| 55 | |
| 56 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 57 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 58 | |
| 59 | /-- A locally uniform bound. The constant, inverse-power loss, and parameter |
| 60 | neighborhood may depend on the parameter point. The interval `(0,1)` is only |
| 61 | used near the edge. -/ |
| 62 | def LocalGaussianBound (c : ℝ) (U : Set E) (g : E × ℝ → F) : Prop := |
| 63 | ∀ x ∈ U, ∃ V ∈ 𝓝 x, ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, |
| 64 | ∀ y ∈ V ∩ U, ∀ δ ∈ Ioo (0 : ℝ) 1, |
| 65 | ‖g (y, δ)‖ ≤ C * edge c δ / δ ^ N |
| 66 | |
| 67 | /-- Every actual tensor is bounded, with constants and losses allowed to |
| 68 | depend on its derivative order as well as the parameter point. -/ |
| 69 | def LocalGaussianJets (c : ℝ) (U : Set E) (f : E × ℝ → F) : Prop := |
| 70 | ∀ n : ℕ, LocalGaussianBound c U (iteratedFDeriv ℝ n f) |
| 71 | |
| 72 | omit [NormedSpace ℝ E] [NormedSpace ℝ F] in |
| 73 | theorem LocalGaussianBound.of_uniform {c C : ℝ} {N : ℕ} {U : Set E} |
| 74 | {g : E × ℝ → F} (hC : 0 ≤ C) |
| 75 | (hbound : ∀ y ∈ U, ∀ δ ∈ Ioo (0 : ℝ) 1, |
| 76 | ‖g (y, δ)‖ ≤ C * edge c δ / δ ^ N) : LocalGaussianBound c U g := by |
| 77 | intro _ _ |
| 78 | refine ⟨univ, univ_mem, C, hC, N, ?_⟩ |
| 79 | intro y hy δ hδ |
| 80 | exact hbound y hy.2 δ hδ |
| 81 | |
| 82 | omit [NormedSpace ℝ E] [NormedSpace ℝ F] in |
| 83 | /-- Adapter from the unextended exponential written in analytic estimates. -/ |
| 84 | theorem LocalGaussianBound.of_exp_bound {c : ℝ} {U : Set E} {g : E × ℝ → F} |
| 85 | (hbound : ∀ x ∈ U, ∃ V ∈ 𝓝 x, ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, |
| 86 | ∀ y ∈ V ∩ U, ∀ δ ∈ Ioo (0 : ℝ) 1, |
| 87 | ‖g (y, δ)‖ ≤ C * Real.exp (-c / δ ^ 2) / δ ^ N) : |
| 88 | LocalGaussianBound c U g := by |
| 89 | intro x hx |
| 90 | obtain ⟨V, hV, C, hC, N, hb⟩ := hbound x hx |
| 91 | refine ⟨V, hV, C, hC, N, ?_⟩ |
| 92 | intro y hy δ hδ |
| 93 | rw [edge_of_pos c hδ.1] |
| 94 | exact hb y hy δ hδ |
| 95 | |
| 96 | theorem edge_div_pow_tendsto_zero {c : ℝ} (hc : 0 < c) (N : ℕ) : |
| 97 | Tendsto (fun δ : ℝ => edge c δ / δ ^ N) (𝓝 0) (𝓝 0) := by |
| 98 | simpa only [iteratedDeriv_zero] using weighted_iteratedDeriv_tendsto_zero hc 0 N |
| 99 | |
| 100 | /-- A bound on values alone, uniform in the parameter, proves a zero full |
| 101 | derivative at the edge. This applies later to every actual tensor. -/ |
| 102 | theorem hasFDerivAt_zeroExtension_edge {c : ℝ} (hc : 0 < c) |
| 103 | {U : Set E} (hU : IsOpen U) {g : E × ℝ → F} |
| 104 | (hB : LocalGaussianBound c U g) {x : E} (hx : x ∈ U) : |
| 105 | HasFDerivAt (zeroExtension g) (0 : (E × ℝ) →L[ℝ] F) (x, 0) := by |
| 106 | obtain ⟨V, hV, C, _, N, hbound⟩ := hB x hx |
| 107 | rw [hasFDerivAt_iff_isLittleO] |
| 108 | simp only [zeroExtension_edge, _root_.zero_apply, sub_zero] |
| 109 | apply Asymptotics.IsLittleO.of_bound |
| 110 | intro ε hε |
| 111 | have hlim : Tendsto (fun δ : ℝ => C * edge c δ / δ ^ (N + 1)) (𝓝 0) (𝓝 0) := by |
| 112 | simpa only [mul_zero, mul_div_assoc] using |
| 113 | (edge_div_pow_tendsto_zero hc (N + 1)).const_mul C |
| 114 | have hδlim : Tendsto (Prod.snd : E × ℝ → ℝ) (𝓝 (x, 0)) (𝓝 0) := continuousAt_snd |
| 115 | have hsmall : ∀ᶠ p : E × ℝ in 𝓝 (x, 0), C * edge c p.2 / p.2 ^ (N + 1) < ε := |
| 116 | (hlim.comp hδlim).eventually (Iio_mem_nhds hε) |
| 117 | have hparam : ∀ᶠ p : E × ℝ in 𝓝 (x, 0), p.1 ∈ V ∩ U := |
| 118 | continuousAt_fst.preimage_mem_nhds (inter_mem hV (hU.mem_nhds hx)) |
| 119 | have hdist : ∀ᶠ p : E × ℝ in 𝓝 (x, 0), p.2 < 1 := |
| 120 | continuousAt_snd.eventually (Iio_mem_nhds (by norm_num : (0 : ℝ) < 1)) |
| 121 | filter_upwards [hsmall, hparam, hdist] with p hp hpU hp1 |
| 122 | by_cases hp0 : 0 < p.2 |
| 123 | · rw [zeroExtension_of_pos g hp0] |
| 124 | have hscaled : C * edge c p.2 / p.2 ^ N ≤ ε * p.2 := by |
| 125 | apply (div_le_iff₀ hp0).mp |
| 126 | simpa only [div_div, pow_succ] using hp.le |
| 127 | have hδ : p.2 ≤ ‖p - (x, 0)‖ := by |
| 128 | calc |
| 129 | p.2 = ‖(p - (x, 0)).2‖ := by simp [Real.norm_eq_abs, abs_of_pos hp0] |
| 130 | _ ≤ ‖p - (x, 0)‖ := norm_snd_le _ |
| 131 | exact (hbound p.1 hpU p.2 ⟨hp0, hp1⟩).trans |
| 132 | (hscaled.trans (mul_le_mul_of_nonneg_left hδ hε.le)) |
| 133 | · rw [zeroExtension_of_nonpos g (le_of_not_gt hp0), norm_zero] |
| 134 | exact mul_nonneg hε.le (norm_nonneg _) |
| 135 | |
| 136 | /-- Zero extension of each actual derivative tensor. -/ |
| 137 | noncomputable def extendedJets (f : E × ℝ → F) (p : E × ℝ) : |
| 138 | FormalMultilinearSeries ℝ (E × ℝ) F := |
| 139 | fun n => zeroExtension (iteratedFDeriv ℝ n f) p |
| 140 | |
| 141 | theorem iteratedFDeriv_hasFDerivAt {f : E × ℝ → F} {p : E × ℝ} |
| 142 | (hf : ContDiffAt ℝ ∞ f p) (n : ℕ) : |
| 143 | HasFDerivAt (iteratedFDeriv ℝ n f) (iteratedFDeriv ℝ (n + 1) f p).curryLeft p := by |
| 144 | have hi : ContDiffAt ℝ 1 (iteratedFDeriv ℝ n f) p := |
| 145 | hf.iteratedFDeriv_right (by exact_mod_cast (le_top : 1 + (n : ℕ∞) ≤ ⊤)) |
| 146 | have hd := (hi.differentiableAt (by simp)).hasFDerivAt |
| 147 | rw [fderiv_iteratedFDeriv] at hd |
| 148 | exact hd |
| 149 | |
| 150 | /-- The derivative recurrence holds for the extended tensors on both sides |
| 151 | and at the edge. The edge case comes from the proved small-o bound. -/ |
| 152 | theorem extendedJets_hasFDerivAt {c : ℝ} (hc : 0 < c) |
| 153 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 154 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) (hB : LocalGaussianJets c U f) |
| 155 | (n : ℕ) {p : E × ℝ} (hp : p ∈ U ×ˢ (univ : Set ℝ)) : |
| 156 | HasFDerivAt (fun q => extendedJets f q n) (extendedJets f p (n + 1)).curryLeft p := by |
| 157 | change HasFDerivAt (zeroExtension (iteratedFDeriv ℝ n f)) |
| 158 | (zeroExtension (iteratedFDeriv ℝ (n + 1) f) p).curryLeft p |
| 159 | rcases lt_trichotomy p.2 0 with hneg | heq | hpos |
| 160 | · rw [zeroExtension_of_nonpos _ hneg.le] |
| 161 | convert! (hasFDerivAt_const (0 : (E × ℝ)[×n]→L[ℝ] F) p).congr_of_eventuallyEq |
| 162 | (zeroExtension_germ_neg _ hneg) using 1 |
| 163 | · have hp₀ : p = (p.1, 0) := Prod.ext rfl heq |
| 164 | rw [hp₀, zeroExtension_edge] |
| 165 | convert! hasFDerivAt_zeroExtension_edge hc hU (hB n) hp.1 using 1 |
| 166 | · rw [zeroExtension_of_pos _ hpos] |
| 167 | have hfp := hf.contDiffAt ((hU.prod isOpen_Ioi).mem_nhds ⟨hp.1, hpos⟩) |
| 168 | exact (iteratedFDeriv_hasFDerivAt hfp n).congr_of_eventuallyEq |
| 169 | (zeroExtension_germ_pos _ hpos) |
| 170 | |
| 171 | /-- The proved extended tensors form the actual Taylor family of the zero |
| 172 | extension on the open set `U × ℝ`. -/ |
| 173 | theorem hasFTaylorSeriesUpToOn_zeroExtension {c : ℝ} (hc : 0 < c) |
| 174 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 175 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) (hB : LocalGaussianJets c U f) : |
| 176 | HasFTaylorSeriesUpToOn ∞ (zeroExtension f) (extendedJets f) (U ×ˢ univ) := by |
| 177 | constructor |
| 178 | · intro p _ |
| 179 | by_cases hp : 0 < p.2 |
| 180 | · simp only [extendedJets, zeroExtension, ite_eq_left hp] |
| 181 | rfl |
| 182 | · simp only [extendedJets, zeroExtension, ite_eq_right hp] |
| 183 | rfl |
| 184 | · intro n _ p hp |
| 185 | exact (extendedJets_hasFDerivAt hc hU hf hB n hp).hasFDerivWithinAt |
| 186 | · intro n _ p hp |
| 187 | exact (extendedJets_hasFDerivAt hc hU hf hB n hp).continuousAt.continuousWithinAt |
| 188 | |
| 189 | /-- Main gluing theorem. Neither the parameter space nor the target needs a |
| 190 | finite-dimensionality or completeness hypothesis. -/ |
| 191 | theorem contDiffOn_zeroExtension {c : ℝ} (hc : 0 < c) |
| 192 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 193 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) (hB : LocalGaussianJets c U f) : |
| 194 | ContDiffOn ℝ ∞ (zeroExtension f) (U ×ˢ univ) := |
| 195 | (hasFTaylorSeriesUpToOn_zeroExtension hc hU hf hB).contDiffOn |
| 196 | |
| 197 | /-- The ordinary full tensors of the extension equal the zero extensions |
| 198 | of the original ordinary full tensors. -/ |
| 199 | theorem iteratedFDeriv_zeroExtension {c : ℝ} (hc : 0 < c) |
| 200 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 201 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) (hB : LocalGaussianJets c U f) |
| 202 | (n : ℕ) {p : E × ℝ} (hp : p ∈ U ×ˢ (univ : Set ℝ)) : |
| 203 | iteratedFDeriv ℝ n (zeroExtension f) p = zeroExtension (iteratedFDeriv ℝ n f) p := by |
| 204 | have h := hasFTaylorSeriesUpToOn_zeroExtension hc hU hf hB |
| 205 | have he := (h.eq_iteratedFDerivWithin_of_uniqueDiffOn |
| 206 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le |
| 207 | (hU.prod isOpen_univ).uniqueDiffOn hp).symm |
| 208 | rwa [iteratedFDerivWithin_of_isOpen n (hU.prod isOpen_univ) hp] at he |
| 209 | |
| 210 | theorem iteratedFDeriv_zeroExtension_nonpos {c : ℝ} (hc : 0 < c) |
| 211 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 212 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) (hB : LocalGaussianJets c U f) |
| 213 | (n : ℕ) {p : E × ℝ} (hp : p.1 ∈ U) (hδ : p.2 ≤ 0) : |
| 214 | iteratedFDeriv ℝ n (zeroExtension f) p = 0 := by |
| 215 | rw [iteratedFDeriv_zeroExtension hc hU hf hB n ⟨hp, mem_univ _⟩, |
| 216 | zeroExtension_of_nonpos _ hδ] |
| 217 | |
| 218 | /-- In particular every mixed derivative at the joining edge is zero. -/ |
| 219 | theorem iteratedFDeriv_zeroExtension_edge {c : ℝ} (hc : 0 < c) |
| 220 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 221 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) (hB : LocalGaussianJets c U f) |
| 222 | (n : ℕ) {x : E} (hx : x ∈ U) : |
| 223 | iteratedFDeriv ℝ n (zeroExtension f) (x, 0) = 0 := |
| 224 | iteratedFDeriv_zeroExtension_nonpos hc hU hf hB n hx le_rfl |
| 225 | |
| 226 | /-- The main theorem stated directly with local exponential estimates of |
| 227 | every actual tensor. The interval and neighborhood bounds remain explicit. -/ |
| 228 | theorem contDiffOn_zeroExtension_of_exp_bounds {c : ℝ} (hc : 0 < c) |
| 229 | {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} |
| 230 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) |
| 231 | (hbound : ∀ n : ℕ, ∀ x ∈ U, ∃ V ∈ 𝓝 x, ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, |
| 232 | ∀ y ∈ V ∩ U, ∀ δ ∈ Ioo (0 : ℝ) 1, |
| 233 | ‖iteratedFDeriv ℝ n f (y, δ)‖ ≤ C * Real.exp (-c / δ ^ 2) / δ ^ N) : |
| 234 | ContDiffOn ℝ ∞ (zeroExtension f) (U ×ˢ univ) := |
| 235 | contDiffOn_zeroExtension hc hU hf (fun n => LocalGaussianBound.of_exp_bound (hbound n)) |
| 236 | |
| 237 | theorem contDiff_zeroExtension {c : ℝ} (hc : 0 < c) {f : E × ℝ → F} |
| 238 | (hf : ContDiffOn ℝ ∞ f (univ ×ˢ Ioi 0)) (hB : LocalGaussianJets c univ f) : |
| 239 | ContDiff ℝ ∞ (zeroExtension f) := by |
| 240 | simpa only [univ_prod_univ, contDiffOn_univ] using |
| 241 | contDiffOn_zeroExtension hc isOpen_univ hf hB |
| 242 | |
| 243 | end NavierStokes.FlatZeroExtension |