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.BoundaryAxisJets |
| 2 | import NavierStokes.SpacetimeGluing |
| 3 | import Mathlib.Topology.MetricSpace.Thickening |
| 4 | |
| 5 | /-! |
| 6 | # Joint smooth extension of even radial profiles |
| 7 | |
| 8 | The input is a genuinely smooth even function of the signed radius on an |
| 9 | open parameter strip. A fixed parameter window is chosen independently of |
| 10 | the profile. Its squared-radius descent is smooth on the closed half-plane. |
| 11 | The proved joint Taylor--Borel extension is applied after reflecting this |
| 12 | half-plane and adding unused spatial coordinates. Restriction gives a |
| 13 | global smooth function of `(X, eta)` with exactly the original physical |
| 14 | values. No constant continuation at negative `X` is differentiated. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open Set Filter Function Metric |
| 20 | open scoped Topology ContDiff |
| 21 | |
| 22 | namespace NavierStokes.ParametricRadialExtension |
| 23 | |
| 24 | abbrev Plane := ℝ × ℝ |
| 25 | |
| 26 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 27 | |
| 28 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 29 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le |
| 30 | |
| 31 | /-- The same window can be used for every order and every field component. -/ |
| 32 | structure ParameterWindow (S : Set ℝ) where |
| 33 | inner : ℝ |
| 34 | outer : ℝ |
| 35 | one_lt_inner : 1 < inner |
| 36 | inner_lt_outer : inner < outer |
| 37 | outer_subset : Ioo (-outer) outer ⊆ S |
| 38 | |
| 39 | theorem exists_parameterWindow {S : Set ℝ} (hS : IsOpen S) |
| 40 | (hI : Icc (-1 : ℝ) 1 ⊆ S) : Nonempty (ParameterWindow S) := by |
| 41 | obtain ⟨δ, hδ, hsub⟩ := isCompact_Icc.exists_thickening_subset_open hS hI |
| 42 | refine ⟨⟨1 + δ / 4, 1 + δ / 2, by linarith, by linarith, ?_⟩⟩ |
| 43 | intro y hy |
| 44 | apply hsub |
| 45 | apply Metric.mem_thickening_iff.mpr |
| 46 | by_cases hl : y < -1 |
| 47 | · refine ⟨-1, by norm_num, ?_⟩ |
| 48 | rw [Real.dist_eq, abs_of_neg (by linarith : y - -1 < 0)] |
| 49 | linarith [hy.1] |
| 50 | · by_cases hr : 1 < y |
| 51 | · refine ⟨1, by norm_num, ?_⟩ |
| 52 | rw [Real.dist_eq, abs_of_pos (by linarith : 0 < y - 1)] |
| 53 | linarith [hy.2] |
| 54 | · exact ⟨y, ⟨le_of_not_gt hl, le_of_not_gt hr⟩, by simpa using hδ⟩ |
| 55 | |
| 56 | noncomputable def parameterWindow {S : Set ℝ} (hS : IsOpen S) |
| 57 | (hI : Icc (-1 : ℝ) 1 ⊆ S) : ParameterWindow S := |
| 58 | Classical.choice (exists_parameterWindow hS hI) |
| 59 | |
| 60 | namespace ParameterWindow |
| 61 | |
| 62 | variable {S : Set ℝ} (w : ParameterWindow S) |
| 63 | |
| 64 | theorem inner_pos : 0 < w.inner := zero_lt_one.trans w.one_lt_inner |
| 65 | theorem outer_pos : 0 < w.outer := w.inner_pos.trans w.inner_lt_outer |
| 66 | |
| 67 | noncomputable def bump : ContDiffBump (0 : ℝ) where |
| 68 | rIn := w.inner |
| 69 | rOut := w.outer |
| 70 | rIn_pos := w.inner_pos |
| 71 | rIn_lt_rOut := w.inner_lt_outer |
| 72 | |
| 73 | noncomputable def parameterMap (eta : ℝ) : ℝ := w.bump eta * eta |
| 74 | |
| 75 | theorem parameterMap_contDiff : ContDiff ℝ ∞ w.parameterMap := |
| 76 | w.bump.contDiff.mul contDiff_id |
| 77 | |
| 78 | theorem bump_one {eta : ℝ} (heta : |eta| ≤ w.inner) : w.bump eta = 1 := by |
| 79 | apply w.bump.one_of_mem_closedBall |
| 80 | simpa only [mem_closedBall, dist_zero_right, Real.norm_eq_abs, bump] using heta |
| 81 | |
| 82 | theorem bump_zero {eta : ℝ} (heta : w.outer ≤ |eta|) : w.bump eta = 0 := by |
| 83 | apply w.bump.zero_of_le_dist |
| 84 | simpa only [dist_zero_right, Real.norm_eq_abs, bump] using heta |
| 85 | |
| 86 | theorem parameterMap_eq {eta : ℝ} (heta : |eta| ≤ w.inner) : |
| 87 | w.parameterMap eta = eta := by |
| 88 | simp only [parameterMap, w.bump_one heta, one_mul] |
| 89 | |
| 90 | theorem parameterMap_mem (eta : ℝ) : w.parameterMap eta ∈ S := by |
| 91 | apply w.outer_subset |
| 92 | apply abs_lt.mp |
| 93 | by_cases heta : |eta| < w.outer |
| 94 | · calc |
| 95 | |w.parameterMap eta| = w.bump eta * |eta| := by |
| 96 | rw [parameterMap, abs_mul, abs_of_nonneg w.bump.nonneg] |
| 97 | _ ≤ |eta| := mul_le_of_le_one_left (abs_nonneg eta) w.bump.le_one |
| 98 | _ < w.outer := heta |
| 99 | · simp only [parameterMap, w.bump_zero (le_of_not_gt heta), zero_mul, abs_zero] |
| 100 | exact w.outer_pos |
| 101 | |
| 102 | theorem target_subset : Ioo (-w.inner) w.inner ⊆ S := by |
| 103 | intro eta heta |
| 104 | apply w.outer_subset |
| 105 | constructor <;> linarith [heta.1, heta.2, w.inner_lt_outer] |
| 106 | |
| 107 | theorem unit_subset : Icc (-1 : ℝ) 1 ⊆ Ioo (-w.inner) w.inner := by |
| 108 | intro eta heta |
| 109 | constructor <;> linarith [heta.1, heta.2, w.one_lt_inner] |
| 110 | |
| 111 | end ParameterWindow |
| 112 | |
| 113 | /-- A smooth global parameter substitution, equal to the original one on |
| 114 | the target window. Its values remain inside the input parameter domain. -/ |
| 115 | noncomputable def regularize {S : Set ℝ} (w : ParameterWindow S) |
| 116 | (F : Plane → E) (p : Plane) : E := F (p.1, w.parameterMap p.2) |
| 117 | |
| 118 | omit [CompleteSpace E] in |
| 119 | theorem regularize_contDiff {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 120 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) : ContDiff ℝ ∞ (regularize w F) := |
| 121 | hF.comp_contDiff (contDiff_fst.prodMk (w.parameterMap_contDiff.comp contDiff_snd)) |
| 122 | (fun p => ⟨mem_univ _, w.parameterMap_mem p.2⟩) |
| 123 | |
| 124 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] in |
| 125 | theorem regularize_even {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 126 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) (eta r : ℝ) : |
| 127 | regularize w F (-r, eta) = regularize w F (r, eta) := |
| 128 | he _ (w.parameterMap_mem eta) r |
| 129 | |
| 130 | noncomputable def descent (F : Plane → E) (p : Plane) : E := |
| 131 | F (Real.sqrt (2 * p.1), p.2) |
| 132 | |
| 133 | /-- The factor `2` is the physical convention `X = R^2 / 2`. -/ |
| 134 | theorem descent_contDiffOn {F : Plane → E} (hF : ContDiff ℝ ∞ F) |
| 135 | (he : ∀ eta r, F (-r, eta) = F (r, eta)) : |
| 136 | ContDiffOn ℝ ∞ (descent F) (Ici 0 ×ˢ (univ : Set ℝ)) := by |
| 137 | have hs : ContDiff ℝ ∞ (fun p : Plane => F (p.2, p.1)) := |
| 138 | hF.comp (contDiff_snd.prodMk contDiff_fst) |
| 139 | have hd := ParametricEvenDescent.contDiffOn_descend hs he |
| 140 | have hm : ContDiff ℝ ∞ (fun p : Plane => (p.2, 2 * p.1)) := |
| 141 | contDiff_snd.prodMk (contDiff_const.mul contDiff_fst) |
| 142 | exact hd.comp hm.contDiffOn |
| 143 | (fun p hp => ⟨mem_univ _, mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hp.1⟩) |
| 144 | |
| 145 | /-- Embed the two-variable half-plane into the already proved joint |
| 146 | half-space extension theorem. The extra spatial coordinates are unused. -/ |
| 147 | noncomputable def halfPlaneLift (g : Plane → E) (z : ProblemStatement.SpaceTime) : E := |
| 148 | g (-z.1, z.2 0) |
| 149 | |
| 150 | omit [CompleteSpace E] in |
| 151 | theorem halfPlaneLift_contDiffOn {g : Plane → E} |
| 152 | (hg : ContDiffOn ℝ ∞ g (Ici 0 ×ˢ (univ : Set ℝ))) : |
| 153 | ContDiffOn ℝ ∞ (halfPlaneLift g) (SpacetimeGluing.past 0) := by |
| 154 | have hm : ContDiff ℝ ∞ (fun z : ProblemStatement.SpaceTime => (-z.1, z.2 0)) := |
| 155 | contDiff_fst.neg.prodMk |
| 156 | ((EuclideanSpace.proj (0 : Fin 3) : ProblemStatement.Space →L[ℝ] ℝ).contDiff.comp |
| 157 | contDiff_snd) |
| 158 | apply hg.comp hm.contDiffOn |
| 159 | intro z hz |
| 160 | constructor |
| 161 | · change 0 ≤ -z.1 |
| 162 | have ht : z.1 ≤ 0 := hz.1 |
| 163 | linarith |
| 164 | · exact mem_univ _ |
| 165 | |
| 166 | noncomputable def halfPlaneExtension (g : Plane → E) |
| 167 | (hg : ContDiffOn ℝ ∞ g (Ici 0 ×ˢ (univ : Set ℝ))) (p : Plane) : E := |
| 168 | SpacetimeGluing.smoothExtension 0 (halfPlaneLift g) (halfPlaneLift_contDiffOn hg) |
| 169 | (-p.1, p.2 • ProblemStatement.coordinateVector 0) |
| 170 | |
| 171 | theorem halfPlaneExtension_contDiff {g : Plane → E} |
| 172 | (hg : ContDiffOn ℝ ∞ g (Ici 0 ×ˢ (univ : Set ℝ))) : |
| 173 | ContDiff ℝ ∞ (halfPlaneExtension g hg) := |
| 174 | (SpacetimeGluing.smoothExtension_contDiff (halfPlaneLift_contDiffOn hg)).comp |
| 175 | (contDiff_fst.neg.prodMk (contDiff_snd.smul contDiff_const)) |
| 176 | |
| 177 | omit [CompleteSpace E] in |
| 178 | theorem halfPlaneExtension_eq {g : Plane → E} |
| 179 | (hg : ContDiffOn ℝ ∞ g (Ici 0 ×ˢ (univ : Set ℝ))) {p : Plane} (hp : 0 ≤ p.1) : |
| 180 | halfPlaneExtension g hg p = g p := by |
| 181 | have hmem : (-p.1, p.2 • ProblemStatement.coordinateVector 0) ∈ |
| 182 | SpacetimeGluing.past 0 := ⟨neg_nonpos.mpr hp, mem_univ _⟩ |
| 183 | unfold halfPlaneExtension |
| 184 | rw [SpacetimeGluing.smoothExtension_eqOn_past (halfPlaneLift_contDiffOn hg) hmem] |
| 185 | simp [halfPlaneLift, ProblemStatement.coordinateVector] |
| 186 | |
| 187 | omit [CompleteSpace E] in |
| 188 | theorem halfPlaneExtension_zero {g : Plane → E} |
| 189 | (hg : ContDiffOn ℝ ∞ g (Ici 0 ×ˢ (univ : Set ℝ))) {p : Plane} (hp : p.1 ≤ -1) : |
| 190 | halfPlaneExtension g hg p = 0 := by |
| 191 | apply SpacetimeGluing.smoothExtension_zero_from |
| 192 | linarith |
| 193 | |
| 194 | /-- The global smooth extension. The outer parameter cutoff and the |
| 195 | negative radial support bound are independent of the input profile. -/ |
| 196 | noncomputable def extension {S : Set ℝ} (w : ParameterWindow S) (F : Plane → E) |
| 197 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 198 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) (p : Plane) : E := |
| 199 | w.bump p.2 • halfPlaneExtension (descent (regularize w F)) |
| 200 | (descent_contDiffOn (regularize_contDiff w hF) (regularize_even w he)) p |
| 201 | |
| 202 | theorem extension_contDiff {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 203 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 204 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) : |
| 205 | ContDiff ℝ ∞ (extension w F hF he) := |
| 206 | (w.bump.contDiff.comp contDiff_snd).smul (halfPlaneExtension_contDiff _) |
| 207 | |
| 208 | theorem extension_eq {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 209 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 210 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 211 | {p : Plane} (hX : 0 ≤ p.1) (heta : |p.2| ≤ w.inner) : |
| 212 | extension w F hF he p = F (Real.sqrt (2 * p.1), p.2) := by |
| 213 | rw [extension, halfPlaneExtension_eq _ hX, w.bump_one heta, one_smul] |
| 214 | simp only [descent, regularize, w.parameterMap_eq heta] |
| 215 | |
| 216 | theorem extension_zero_negative {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 217 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 218 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 219 | {p : Plane} (hX : p.1 ≤ -1) : extension w F hF he p = 0 := by |
| 220 | rw [extension, halfPlaneExtension_zero _ hX, smul_zero] |
| 221 | |
| 222 | theorem extension_zero_parameter {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 223 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 224 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 225 | {p : Plane} (heta : w.outer ≤ |p.2|) : extension w F hF he p = 0 := by |
| 226 | rw [extension, w.bump_zero heta, zero_smul] |
| 227 | |
| 228 | theorem extension_eqOn {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 229 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 230 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) : |
| 231 | EqOn (extension w F hF he) (descent F) (Ici 0 ×ˢ Ioo (-w.inner) w.inner) := by |
| 232 | intro p hp |
| 233 | exact extension_eq w hF he hp.1 (abs_lt.mpr hp.2).le |
| 234 | |
| 235 | /-- Every full mixed derivative of the extension, including at the axis, |
| 236 | is the genuine derivative within the physical closed half-plane. -/ |
| 237 | theorem extension_mixed_jets {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 238 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 239 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 240 | (n : ℕ) {p : Plane} (hp : p ∈ Ici 0 ×ˢ Ioo (-w.inner) w.inner) : |
| 241 | iteratedFDeriv ℝ n (extension w F hF he) p = |
| 242 | iteratedFDerivWithin ℝ n (descent F) (Ici 0 ×ˢ Ioo (-w.inner) w.inner) p := by |
| 243 | have hu : UniqueDiffOn ℝ (Ici 0 ×ˢ Ioo (-w.inner) w.inner : Set Plane) := |
| 244 | (uniqueDiffOn_Ici 0).prod isOpen_Ioo.uniqueDiffOn |
| 245 | rw [← iteratedFDerivWithin_eq_iteratedFDeriv hu |
| 246 | ((extension_contDiff w hF he).of_le (nat_le_infty n)).contDiffAt hp] |
| 247 | exact iteratedFDerivWithin_congr (extension_eqOn w hF he) hp n |
| 248 | |
| 249 | /-- Exact recovery on the signed radius. This also covers the axis. -/ |
| 250 | theorem extension_pullback {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 251 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 252 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 253 | (r : ℝ) {eta : ℝ} (heta : |eta| ≤ w.inner) : |
| 254 | extension w F hF he (r ^ 2 / 2, eta) = F (r, eta) := by |
| 255 | rw [extension_eq w hF he (by positivity) heta, |
| 256 | show 2 * (r ^ 2 / 2) = r ^ 2 by ring, Real.sqrt_sq_eq_abs] |
| 257 | by_cases hr : 0 ≤ r |
| 258 | · rw [abs_of_nonneg hr] |
| 259 | · rw [abs_of_neg (lt_of_not_ge hr)] |
| 260 | exact he eta (w.outer_subset (abs_lt.mp (heta.trans_lt w.inner_lt_outer))) r |
| 261 | |
| 262 | /-- Exact right jets of the literal descended radial profile. -/ |
| 263 | theorem extension_radial_jets {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 264 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 265 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 266 | (n : ℕ) {X eta : ℝ} (hX : 0 ≤ X) (heta : |eta| ≤ w.inner) : |
| 267 | iteratedDeriv n (fun Y => extension w F hF he (Y, eta)) X = |
| 268 | iteratedDerivWithin n (fun Y => F (Real.sqrt (2 * Y), eta)) (Ici 0) X := by |
| 269 | have hg : ContDiff ℝ ∞ (fun Y => extension w F hF he (Y, eta)) := |
| 270 | (extension_contDiff w hF he).comp (contDiff_id.prodMk contDiff_const) |
| 271 | have hwithin : iteratedDerivWithin n (fun Y => extension w F hF he (Y, eta)) (Ici 0) X = |
| 272 | iteratedDeriv n (fun Y => extension w F hF he (Y, eta)) X := by |
| 273 | rw [iteratedDerivWithin_eq_iteratedFDerivWithin, iteratedDeriv_eq_iteratedFDeriv, |
| 274 | iteratedFDerivWithin_eq_iteratedFDeriv (uniqueDiffOn_Ici 0) |
| 275 | (hg.of_le (nat_le_infty n)).contDiffAt hX] |
| 276 | rw [← hwithin] |
| 277 | exact iteratedDerivWithin_congr (fun Y hY => extension_eq w hF he hY heta) hX |
| 278 | |
| 279 | /-- Identification with the actual Hadamard derivative chain from |
| 280 | `BoundaryAxisJets`; the factor `2^n` comes from `X = R^2/2`. -/ |
| 281 | theorem extension_radialJet {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 282 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 283 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 284 | (n : ℕ) {X eta : ℝ} (hX : 0 ≤ X) (heta : |eta| ≤ w.inner) : |
| 285 | iteratedDeriv n (fun Y => extension w F hF he (Y, eta)) X = |
| 286 | (2 : ℝ) ^ n • BoundaryAxisJets.axisJet F n (2 * X, eta) := by |
| 287 | have hetaS : eta ∈ S := |
| 288 | w.outer_subset (abs_lt.mp (heta.trans_lt w.inner_lt_outer)) |
| 289 | have hs : ContDiff ℝ ∞ (fun r => F (r, eta)) := |
| 290 | hF.comp_contDiff (contDiff_id.prodMk contDiff_const) |
| 291 | (fun _ => ⟨mem_univ _, hetaS⟩) |
| 292 | have heven : Function.Even (fun r => F (r, eta)) := he eta hetaS |
| 293 | have hd := EvenSmoothDescent.contDiffOn_descent hs heven |
| 294 | rw [extension_radial_jets w hF he n hX heta] |
| 295 | calc |
| 296 | _ = (2 : ℝ) ^ n • iteratedDerivWithin n |
| 297 | (fun Y => F (Real.sqrt Y, eta)) (Ici 0) (2 * X) := |
| 298 | iteratedDerivWithin_comp_const_smul hX (uniqueDiffOn_Ici 0) |
| 299 | (hd.of_le (nat_le_infty n)) 2 |
| 300 | (fun Y hY => mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hY) |
| 301 | _ = _ := congrArg ((2 : ℝ) ^ n • ·) |
| 302 | (BoundaryAxisJets.axisJet_eq_iteratedDerivWithin hs heven n |
| 303 | (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hX)).symm |
| 304 | |
| 305 | /-- The axis constants and every higher radial jet are preserved exactly. -/ |
| 306 | theorem extension_axis_jets {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 307 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 308 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 309 | (n : ℕ) {eta : ℝ} (heta : |eta| ≤ w.inner) : |
| 310 | iteratedDeriv n (fun Y => extension w F hF he (Y, eta)) 0 = |
| 311 | ((2 : ℝ) ^ n * ((n.factorial : ℝ) / ((2 * n).factorial : ℝ))) • |
| 312 | iteratedDeriv (2 * n) (fun r => F (r, eta)) 0 := by |
| 313 | have hetaS : eta ∈ S := |
| 314 | w.outer_subset (abs_lt.mp (heta.trans_lt w.inner_lt_outer)) |
| 315 | have hs : ContDiff ℝ ∞ (fun r => F (r, eta)) := |
| 316 | hF.comp_contDiff (contDiff_id.prodMk contDiff_const) |
| 317 | (fun _ => ⟨mem_univ _, hetaS⟩) |
| 318 | rw [extension_radialJet w hF he n le_rfl heta, mul_zero, |
| 319 | BoundaryAxisJets.axisJet_zero hs, smul_smul] |
| 320 | |
| 321 | /-- Exterior support is inherited globally in the parameter, not only on |
| 322 | the interval where exact agreement with the input is required. -/ |
| 323 | theorem extension_zero_exterior {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 324 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 325 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 326 | {B : ℝ} (hB : 0 ≤ B) |
| 327 | (hzero : ∀ eta ∈ S, ∀ r, B ≤ r → F (r, eta) = 0) |
| 328 | {p : Plane} (hX : B ^ 2 / 2 ≤ p.1) : extension w F hF he p = 0 := by |
| 329 | have hX0 : 0 ≤ p.1 := by nlinarith [sq_nonneg B] |
| 330 | have hsqrt : B ≤ Real.sqrt (2 * p.1) := by |
| 331 | apply (Real.le_sqrt hB (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hX0)).mpr |
| 332 | linarith |
| 333 | rw [extension, halfPlaneExtension_eq _ hX0] |
| 334 | change w.bump p.2 • F (Real.sqrt (2 * p.1), w.parameterMap p.2) = 0 |
| 335 | rw [hzero _ (w.parameterMap_mem p.2) _ hsqrt, smul_zero] |
| 336 | |
| 337 | /-- A uniform support rectangle for all profiles with the same exterior |
| 338 | radius. The negative extension occupies at most the fixed interval [-1,0]. -/ |
| 339 | theorem extension_tsupport {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 340 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 341 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 342 | {B : ℝ} (hB : 0 ≤ B) |
| 343 | (hzero : ∀ eta ∈ S, ∀ r, B ≤ r → F (r, eta) = 0) : |
| 344 | tsupport (extension w F hF he) ⊆ |
| 345 | Icc (-1 : ℝ) (B ^ 2 / 2) ×ˢ Icc (-w.outer) w.outer := by |
| 346 | apply closure_minimal _ (isClosed_Icc.prod isClosed_Icc) |
| 347 | intro p hp |
| 348 | have hlo : -1 < p.1 := lt_of_not_ge fun h => hp (extension_zero_negative w hF he h) |
| 349 | have hhi : p.1 < B ^ 2 / 2 := |
| 350 | lt_of_not_ge fun h => hp (extension_zero_exterior w hF he hB hzero h) |
| 351 | have heta : |p.2| < w.outer := |
| 352 | lt_of_not_ge fun h => hp (extension_zero_parameter w hF he h) |
| 353 | exact ⟨⟨hlo.le, hhi.le⟩, abs_le.mp heta.le⟩ |
| 354 | |
| 355 | theorem extension_hasCompactSupport {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 356 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 357 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 358 | {B : ℝ} (hB : 0 ≤ B) |
| 359 | (hzero : ∀ eta ∈ S, ∀ r, B ≤ r → F (r, eta) = 0) : |
| 360 | HasCompactSupport (extension w F hF he) := |
| 361 | (isCompact_Icc.prod isCompact_Icc).of_isClosed_subset isClosed_closure |
| 362 | (extension_tsupport w hF he hB hzero) |
| 363 | |
| 364 | end NavierStokes.ParametricRadialExtension |