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.EvenSmoothDescent |
| 2 | import NavierStokes.ParametricRephase |
| 3 | import Mathlib.Analysis.Calculus.Deriv.Prod |
| 4 | |
| 5 | /-! |
| 6 | # Joint smoothness of even descent |
| 7 | |
| 8 | This module treats a real auxiliary parameter and a real radial coordinate. |
| 9 | The full derivative on the closed half-plane is proved before any higher-order |
| 10 | regularity is inferred. Separate smoothness is not used as a substitute for |
| 11 | joint smoothness. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter Function MeasureTheory |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | namespace NavierStokes.ParametricEvenDescent |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | abbrev Plane := ℝ × ℝ |
| 24 | |
| 25 | variable {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 26 | |
| 27 | noncomputable def EvenRadial (F : Plane → E) : Prop := |
| 28 | ∀ p, Function.Even (fun r => F (p, r)) |
| 29 | |
| 30 | noncomputable def parameterPartial (F : Plane → E) (q : Plane) : E := |
| 31 | deriv (fun p => F (p, q.2)) q.1 |
| 32 | |
| 33 | noncomputable def radialPartial (F : Plane → E) (q : Plane) : E := |
| 34 | deriv (fun r => F (q.1, r)) q.2 |
| 35 | |
| 36 | noncomputable def radialReduce (F : Plane → E) (q : Plane) : E := |
| 37 | EvenSmoothDescent.radialDerivative (fun r => F (q.1, r)) q.2 |
| 38 | |
| 39 | noncomputable def descend (F : Plane → E) (q : Plane) : E := |
| 40 | F (q.1, Real.sqrt q.2) |
| 41 | |
| 42 | noncomputable def planeDerivative (F : Plane → E) (q : Plane) : Plane →L[ℝ] E := |
| 43 | (ContinuousLinearMap.fst ℝ ℝ ℝ).smulRight (parameterPartial F q) + |
| 44 | (ContinuousLinearMap.snd ℝ ℝ ℝ).smulRight (radialReduce F q) |
| 45 | |
| 46 | omit [CompleteSpace E] in |
| 47 | theorem parameterPartial_eq_fderiv {F : Plane → E} (hF : ContDiff ℝ ∞ F) (q : Plane) : |
| 48 | parameterPartial F q = fderiv ℝ F q (1, 0) := by |
| 49 | have h := ((contDiff_infty_iff_fderiv.mp hF).1 q).hasFDerivAt.comp_hasDerivAt q.1 |
| 50 | ((hasDerivAt_id q.1).prodMk (hasDerivAt_const q.1 q.2)) |
| 51 | exact h.deriv |
| 52 | |
| 53 | omit [CompleteSpace E] in |
| 54 | theorem radialPartial_eq_fderiv {F : Plane → E} (hF : ContDiff ℝ ∞ F) (q : Plane) : |
| 55 | radialPartial F q = fderiv ℝ F q (0, 1) := by |
| 56 | have h := ((contDiff_infty_iff_fderiv.mp hF).1 q).hasFDerivAt.comp_hasDerivAt q.2 |
| 57 | ((hasDerivAt_const q.2 q.1).prodMk (hasDerivAt_id q.2)) |
| 58 | exact h.deriv |
| 59 | |
| 60 | omit [CompleteSpace E] in |
| 61 | theorem fderiv_decompose {F : Plane → E} (hF : ContDiff ℝ ∞ F) (q v : Plane) : |
| 62 | fderiv ℝ F q v = v.1 • parameterPartial F q + v.2 • radialPartial F q := by |
| 63 | rw [parameterPartial_eq_fderiv hF, radialPartial_eq_fderiv hF] |
| 64 | have hv : v = v.1 • (1, 0) + v.2 • (0, 1) := by ext <;> simp |
| 65 | conv_lhs => rw [hv] |
| 66 | rw [map_add, map_smul, map_smul] |
| 67 | |
| 68 | omit [CompleteSpace E] in |
| 69 | theorem contDiff_parameterPartial {F : Plane → E} (hF : ContDiff ℝ ∞ F) : |
| 70 | ContDiff ℝ ∞ (parameterPartial F) := by |
| 71 | have hEq : parameterPartial F = fun q => fderiv ℝ F q (1, 0) := |
| 72 | funext (parameterPartial_eq_fderiv hF) |
| 73 | rw [hEq] |
| 74 | exact (contDiff_infty_iff_fderiv.mp hF).2.clm_apply contDiff_const |
| 75 | |
| 76 | omit [CompleteSpace E] in |
| 77 | theorem contDiff_radialPartial {F : Plane → E} (hF : ContDiff ℝ ∞ F) : |
| 78 | ContDiff ℝ ∞ (radialPartial F) := by |
| 79 | have hEq : radialPartial F = fun q => fderiv ℝ F q (0, 1) := |
| 80 | funext (radialPartial_eq_fderiv hF) |
| 81 | rw [hEq] |
| 82 | exact (contDiff_infty_iff_fderiv.mp hF).2.clm_apply contDiff_const |
| 83 | |
| 84 | omit [CompleteSpace E] in |
| 85 | theorem radialReduce_integral (F : Plane → E) (q : Plane) : |
| 86 | radialReduce F q = (1 / 2 : ℝ) • |
| 87 | ∫ t in (0 : ℝ)..1, radialPartial (radialPartial F) (q.1, t * q.2) := by |
| 88 | simp only [radialReduce, EvenSmoothDescent.radialDerivative, EvenSmoothDescent.average, |
| 89 | radialPartial, show (2 : ℕ) = 1 + 1 from rfl, iteratedDeriv_succ] |
| 90 | simp only [iteratedDeriv_zero] |
| 91 | |
| 92 | theorem contDiff_radialReduce {F : Plane → E} (hF : ContDiff ℝ ∞ F) : |
| 93 | ContDiff ℝ ∞ (radialReduce F) := by |
| 94 | let K : Plane × ℝ → E := fun z => radialPartial (radialPartial F) (z.1.1, z.2 * z.1.2) |
| 95 | have hK : ContDiff ℝ ∞ K := |
| 96 | (contDiff_radialPartial (contDiff_radialPartial hF)).comp |
| 97 | (contDiff_fst.fst.prodMk (contDiff_snd.mul contDiff_fst.snd)) |
| 98 | have hi := ParametricRephase.intervalIntegral_contDiffOn_of_joint K univ isOpen_univ |
| 99 | hK.contDiffOn 0 1 zero_le_one |
| 100 | have hi' : ContDiff ℝ ∞ (fun q : Plane => ∫ t in (0 : ℝ)..1, K (q, t)) := |
| 101 | contDiffOn_univ.mp hi |
| 102 | have hEq : radialReduce F = fun q => (1 / 2 : ℝ) • ∫ t in (0 : ℝ)..1, K (q, t) := |
| 103 | funext (radialReduce_integral F) |
| 104 | rw [hEq] |
| 105 | exact hi'.const_smul (1 / 2 : ℝ) |
| 106 | |
| 107 | omit [CompleteSpace E] in |
| 108 | theorem even_parameterPartial {F : Plane → E} (hEven : EvenRadial F) : |
| 109 | EvenRadial (parameterPartial F) := by |
| 110 | intro p r |
| 111 | have hEq : (fun p => F (p, -r)) = fun p => F (p, r) := |
| 112 | funext fun p => hEven p r |
| 113 | exact congrArg (fun f : ℝ → E => deriv f p) hEq |
| 114 | |
| 115 | omit [CompleteSpace E] in |
| 116 | theorem even_radialReduce {F : Plane → E} (hEven : EvenRadial F) : |
| 117 | EvenRadial (radialReduce F) := by |
| 118 | intro p r |
| 119 | exact EvenSmoothDescent.even_radialDerivative (hEven p) r |
| 120 | |
| 121 | theorem contDiff_planeDerivative {F : Plane → E} (hF : ContDiff ℝ ∞ F) : |
| 122 | ContDiff ℝ ∞ (planeDerivative F) := |
| 123 | (contDiff_const.smulRight (contDiff_parameterPartial hF)).add |
| 124 | (contDiff_const.smulRight (contDiff_radialReduce hF)) |
| 125 | |
| 126 | omit [CompleteSpace E] in |
| 127 | theorem even_planeDerivative {F : Plane → E} (hEven : EvenRadial F) : |
| 128 | EvenRadial (planeDerivative F) := by |
| 129 | intro p r |
| 130 | simp only [planeDerivative, even_parameterPartial hEven p r, even_radialReduce hEven p r] |
| 131 | |
| 132 | omit [NormedSpace ℝ E] [CompleteSpace E] in |
| 133 | theorem continuous_descend {F : Plane → E} (hF : Continuous F) : Continuous (descend F) := |
| 134 | hF.comp (continuous_fst.prodMk (Real.continuous_sqrt.comp continuous_snd)) |
| 135 | |
| 136 | theorem radialPartial_identity {F : Plane → E} (hF : ContDiff ℝ ∞ F) |
| 137 | (hEven : EvenRadial F) (q : Plane) : |
| 138 | radialPartial F q = (2 * q.2) • radialReduce F q := by |
| 139 | have hs : ContDiff ℝ ∞ (fun r => F (q.1, r)) := |
| 140 | hF.comp (contDiff_const.prodMk contDiff_id) |
| 141 | exact (EvenSmoothDescent.radialDerivative_identity hs (hEven q.1) q.2).symm |
| 142 | |
| 143 | theorem hasFDerivAt_descend_pos {F : Plane → E} (hF : ContDiff ℝ ∞ F) |
| 144 | (hEven : EvenRadial F) {q : Plane} (hq : 0 < q.2) : |
| 145 | HasFDerivAt (descend F) (descend (planeDerivative F) q) q := by |
| 146 | have hs := (Real.hasDerivAt_sqrt hq.ne').comp_hasFDerivAt q |
| 147 | (hasFDerivAt_snd : HasFDerivAt (fun z : Plane => z.2) (ContinuousLinearMap.snd ℝ ℝ ℝ) q) |
| 148 | have hp := (hasFDerivAt_fst : HasFDerivAt (fun z : Plane => z.1) |
| 149 | (ContinuousLinearMap.fst ℝ ℝ ℝ) q).prodMk hs |
| 150 | have h := ((contDiff_infty_iff_fderiv.mp hF).1 (q.1, Real.sqrt q.2)).hasFDerivAt.comp q hp |
| 151 | have hL : descend (planeDerivative F) q = |
| 152 | (fderiv ℝ F (q.1, Real.sqrt q.2)).comp |
| 153 | ((ContinuousLinearMap.fst ℝ ℝ ℝ).prod |
| 154 | ((1 / (2 * Real.sqrt q.2)) • ContinuousLinearMap.snd ℝ ℝ ℝ)) := by |
| 155 | apply ContinuousLinearMap.ext |
| 156 | intro v |
| 157 | change v.1 • parameterPartial F (q.1, Real.sqrt q.2) + |
| 158 | v.2 • radialReduce F (q.1, Real.sqrt q.2) = |
| 159 | fderiv ℝ F (q.1, Real.sqrt q.2) (v.1, (1 / (2 * Real.sqrt q.2)) * v.2) |
| 160 | rw [fderiv_decompose hF, radialPartial_identity hF hEven, smul_smul] |
| 161 | congr 1 |
| 162 | congr 1 |
| 163 | have hn : Real.sqrt q.2 ≠ 0 := (Real.sqrt_pos.mpr hq).ne' |
| 164 | field_simp |
| 165 | rw [hL] |
| 166 | exact h |
| 167 | |
| 168 | /-- The full Fréchet derivative extends to the boundary of the half-plane. -/ |
| 169 | theorem hasFDerivWithinAt_descend {F : Plane → E} (hF : ContDiff ℝ ∞ F) |
| 170 | (hEven : EvenRadial F) (q : Plane) : |
| 171 | HasFDerivWithinAt (descend F) (descend (planeDerivative F) q) |
| 172 | (univ ×ˢ Ici (0 : ℝ)) q := by |
| 173 | let s : Set Plane := univ ×ˢ Ioi (0 : ℝ) |
| 174 | have hd : DifferentiableOn ℝ (descend F) s := |
| 175 | fun z hz => (hasFDerivAt_descend_pos hF hEven hz.2).differentiableAt.differentiableWithinAt |
| 176 | have heq : fderiv ℝ (descend F) =ᶠ[𝓝[s] q] descend (planeDerivative F) := by |
| 177 | filter_upwards [self_mem_nhdsWithin] with z hz |
| 178 | exact (hasFDerivAt_descend_pos hF hEven hz.2).fderiv |
| 179 | have ht : Tendsto (descend (planeDerivative F)) (𝓝[s] q) |
| 180 | (𝓝 (descend (planeDerivative F) q)) := |
| 181 | ((continuous_descend (contDiff_planeDerivative hF).continuous).tendsto q).mono_left |
| 182 | nhdsWithin_le_nhds |
| 183 | have h := hasFDerivWithinAt_closure_of_tendsto_fderiv hd |
| 184 | (convex_univ.prod (convex_Ioi 0)) (isOpen_univ.prod isOpen_Ioi) |
| 185 | (fun _ _ => (continuous_descend hF.continuous).continuousAt.continuousWithinAt) |
| 186 | (ht.congr' heq.symm) |
| 187 | simpa only [s, closure_prod_eq, closure_univ, closure_Ioi] using h |
| 188 | |
| 189 | private theorem contDiffOn_descend_nat (n : ℕ) : |
| 190 | ∀ (V : Type u) [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] |
| 191 | (F : Plane → V), ContDiff ℝ ∞ F → EvenRadial F → |
| 192 | ContDiffOn ℝ n (descend F) (univ ×ˢ Ici (0 : ℝ)) := by |
| 193 | induction n with |
| 194 | | zero => |
| 195 | intro V _ _ _ F hF hEven |
| 196 | exact contDiffOn_zero.mpr (continuous_descend hF.continuous).continuousOn |
| 197 | | succ n ih => |
| 198 | intro V _ _ _ F hF hEven |
| 199 | have hJ := ih (Plane →L[ℝ] V) (planeDerivative F) |
| 200 | (contDiff_planeDerivative hF) (even_planeDerivative hEven) |
| 201 | have hu : UniqueDiffOn ℝ (univ ×ˢ Ici (0 : ℝ) : Set Plane) := |
| 202 | uniqueDiffOn_univ.prod (uniqueDiffOn_Ici 0) |
| 203 | have hd := hasFDerivWithinAt_descend hF hEven |
| 204 | have hactual : ContDiffOn ℝ n |
| 205 | (fderivWithin ℝ (descend F) (univ ×ˢ Ici (0 : ℝ))) |
| 206 | (univ ×ˢ Ici (0 : ℝ)) := |
| 207 | hJ.congr fun q hq => (hd q).fderivWithin (hu q hq) |
| 208 | simpa only [Nat.cast_add, Nat.cast_one] using |
| 209 | (contDiffOn_succ_of_fderivWithin |
| 210 | (fun q _ => (hd q).differentiableWithinAt) (by simp) hactual) |
| 211 | |
| 212 | /-- Joint smoothness in the auxiliary parameter and the squared radial variable. -/ |
| 213 | theorem contDiffOn_descend {F : Plane → E} (hF : ContDiff ℝ ∞ F) |
| 214 | (hEven : EvenRadial F) : |
| 215 | ContDiffOn ℝ ∞ (descend F) (univ ×ˢ Ici (0 : ℝ)) := |
| 216 | contDiffOn_infty.mpr fun n => contDiffOn_descend_nat n E F hF hEven |
| 217 | |
| 218 | noncomputable def localized (a A R : ℝ) (F : Plane → E) (q : Plane) : E := |
| 219 | (EvenSmoothDescent.evenCutoff A (q.1 - a) * |
| 220 | EvenSmoothDescent.evenCutoff R q.2) • F q |
| 221 | |
| 222 | private theorem cutoff_eventually_zero {R x : ℝ} (hR : 0 < R) (hx : R ≤ |x|) : |
| 223 | EvenSmoothDescent.evenCutoff R =ᶠ[𝓝 x] (fun _ => 0) := by |
| 224 | filter_upwards [EvenSmoothDescent.localized_eventually_zero hR hx (fun _ => (1 : ℝ))] |
| 225 | with y hy |
| 226 | change EvenSmoothDescent.evenCutoff R y * 1 = 0 at hy |
| 227 | simpa only [mul_one] using hy |
| 228 | |
| 229 | omit [CompleteSpace E] in |
| 230 | theorem localized_eventually_zero_parameter {a A R : ℝ} (hA : 0 < A) |
| 231 | {q : Plane} (hq : A ≤ |q.1 - a|) (F : Plane → E) : |
| 232 | localized a A R F =ᶠ[𝓝 q] (fun _ => 0) := by |
| 233 | have h := (cutoff_eventually_zero hA hq).comp_tendsto |
| 234 | ((continuous_fst.fun_sub continuous_const).tendsto q) |
| 235 | filter_upwards [h] with z hz |
| 236 | change EvenSmoothDescent.evenCutoff A (z.1 - a) = 0 at hz |
| 237 | simp only [localized, hz, zero_mul, zero_smul] |
| 238 | |
| 239 | omit [CompleteSpace E] in |
| 240 | theorem localized_eventually_zero_radial {a A R : ℝ} (hR : 0 < R) |
| 241 | {q : Plane} (hq : R ≤ |q.2|) (F : Plane → E) : |
| 242 | localized a A R F =ᶠ[𝓝 q] (fun _ => 0) := by |
| 243 | have h := (cutoff_eventually_zero hR hq).comp_tendsto (continuous_snd.tendsto q) |
| 244 | filter_upwards [h] with z hz |
| 245 | change EvenSmoothDescent.evenCutoff R z.2 = 0 at hz |
| 246 | simp only [localized, hz, mul_zero, zero_smul] |
| 247 | |
| 248 | omit [CompleteSpace E] in |
| 249 | theorem contDiff_localized {a A R : ℝ} (hA : 0 < A) (hR : 0 < R) {F : Plane → E} |
| 250 | (hF : ContDiffOn ℝ ∞ F (Ioo (a - A) (a + A) ×ˢ Ioo (-R) R)) : |
| 251 | ContDiff ℝ ∞ (localized a A R F) := by |
| 252 | rw [contDiff_iff_contDiffAt] |
| 253 | intro q |
| 254 | by_cases hp : |q.1 - a| < A |
| 255 | · by_cases hr : |q.2| < R |
| 256 | · have hmem : q ∈ Ioo (a - A) (a + A) ×ˢ Ioo (-R) R := by |
| 257 | constructor |
| 258 | · rcases abs_lt.mp hp with ⟨h1, h2⟩ |
| 259 | constructor <;> linarith |
| 260 | · exact abs_lt.mp hr |
| 261 | exact (((EvenSmoothDescent.contDiff_evenCutoff A).comp |
| 262 | (contDiff_fst.sub contDiff_const)).mul |
| 263 | ((EvenSmoothDescent.contDiff_evenCutoff R).comp contDiff_snd)).contDiffAt.smul |
| 264 | (hF.contDiffAt ((isOpen_Ioo.prod isOpen_Ioo).mem_nhds hmem)) |
| 265 | · exact contDiffAt_const.congr_of_eventuallyEq |
| 266 | (localized_eventually_zero_radial hR (le_of_not_gt hr) F) |
| 267 | · exact contDiffAt_const.congr_of_eventuallyEq |
| 268 | (localized_eventually_zero_parameter hA (le_of_not_gt hp) F) |
| 269 | |
| 270 | omit [CompleteSpace E] in |
| 271 | theorem even_localized {a A R : ℝ} (hA : 0 < A) (hR : 0 < R) {F : Plane → E} |
| 272 | (he : ∀ p ∈ Ioo (a - A) (a + A), ∀ r ∈ Ioo (-R) R, F (p, -r) = F (p, r)) : |
| 273 | EvenRadial (localized a A R F) := by |
| 274 | intro p r |
| 275 | change localized a A R F (p, -r) = localized a A R F (p, r) |
| 276 | by_cases hp : |p - a| < A |
| 277 | · by_cases hr : |r| < R |
| 278 | · have hpmem : p ∈ Ioo (a - A) (a + A) := by |
| 279 | rcases abs_lt.mp hp with ⟨h1, h2⟩ |
| 280 | constructor <;> linarith |
| 281 | change (EvenSmoothDescent.evenCutoff A (p - a) * |
| 282 | EvenSmoothDescent.evenCutoff R (-r)) • F (p, -r) = _ |
| 283 | rw [EvenSmoothDescent.even_evenCutoff R r, he p hpmem r (abs_lt.mp hr)] |
| 284 | rfl |
| 285 | · have hr' : R ≤ |r| := le_of_not_gt hr |
| 286 | have hnr : R ≤ |-r| := by simpa only [abs_neg] using hr' |
| 287 | rw [(localized_eventually_zero_radial hR (q := (p, -r)) hnr F).eq_of_nhds, |
| 288 | (localized_eventually_zero_radial hR (q := (p, r)) hr' F).eq_of_nhds] |
| 289 | · have hp' : A ≤ |p - a| := le_of_not_gt hp |
| 290 | rw [(localized_eventually_zero_parameter hA (q := (p, -r)) hp' F).eq_of_nhds, |
| 291 | (localized_eventually_zero_parameter hA (q := (p, r)) hp' F).eq_of_nhds] |
| 292 | |
| 293 | omit [CompleteSpace E] in |
| 294 | theorem localized_eventuallyEq (a A R : ℝ) (F : Plane → E) : |
| 295 | localized a A R F =ᶠ[𝓝 (a, 0)] F := by |
| 296 | have hp : (fun q : Plane => EvenSmoothDescent.evenCutoff A (q.1 - a)) |
| 297 | =ᶠ[𝓝 (a, 0)] (fun _ => 1) := |
| 298 | (EvenSmoothDescent.evenCutoff_eventually_one A).comp_tendsto |
| 299 | (by simpa only [sub_self] using |
| 300 | ((continuous_fst.fun_sub (continuous_const : Continuous (fun _ : Plane => a))).tendsto |
| 301 | (a, (0 : ℝ)))) |
| 302 | have hr : (fun q : Plane => EvenSmoothDescent.evenCutoff R q.2) |
| 303 | =ᶠ[𝓝 (a, 0)] (fun _ => 1) := |
| 304 | (EvenSmoothDescent.evenCutoff_eventually_one R).comp_tendsto |
| 305 | (continuous_snd.tendsto (a, (0 : ℝ))) |
| 306 | filter_upwards [hp, hr] with q hq1 hq2 |
| 307 | simp only [localized, hq1, hq2, one_mul, one_smul] |
| 308 | |
| 309 | omit [CompleteSpace E] in |
| 310 | theorem descend_localized_eventuallyEq (a A R : ℝ) (F : Plane → E) : |
| 311 | descend (localized a A R F) =ᶠ[𝓝 (a, 0)] descend F := |
| 312 | (localized_eventuallyEq a A R F).comp_tendsto (by |
| 313 | simpa only [Function.comp_apply, Real.sqrt_zero] using |
| 314 | (continuous_fst.prodMk (Real.continuous_sqrt.comp continuous_snd)).tendsto |
| 315 | (a, (0 : ℝ))) |
| 316 | |
| 317 | /-- Joint smoothness at the axis uses only an actual smooth, radially even germ. -/ |
| 318 | theorem contDiffWithinAt_descend_axis_local {a A R : ℝ} (hA : 0 < A) (hR : 0 < R) |
| 319 | {F : Plane → E} |
| 320 | (hF : ContDiffOn ℝ ∞ F (Ioo (a - A) (a + A) ×ˢ Ioo (-R) R)) |
| 321 | (he : ∀ p ∈ Ioo (a - A) (a + A), ∀ r ∈ Ioo (-R) R, F (p, -r) = F (p, r)) : |
| 322 | ContDiffWithinAt ℝ ∞ (descend F) (univ ×ˢ Ici (0 : ℝ)) (a, 0) := by |
| 323 | have hg := contDiffOn_descend (contDiff_localized hA hR hF) (even_localized hA hR he) |
| 324 | have hEq := descend_localized_eventuallyEq a A R F |
| 325 | exact (hg (a, 0) (by simp)).congr_of_eventuallyEq |
| 326 | (hEq.symm.filter_mono nhdsWithin_le_nhds) hEq.eq_of_nhds.symm |
| 327 | |
| 328 | /-- Local joint smoothness on an open parameter set and a closed radial half-interval. -/ |
| 329 | theorem contDiffOn_descend_local {U : Set ℝ} (hU : IsOpen U) {R : ℝ} (hR : 0 < R) |
| 330 | {F : Plane → E} (hF : ContDiffOn ℝ ∞ F (U ×ˢ Ioo (-R) R)) |
| 331 | (he : ∀ p ∈ U, ∀ r ∈ Ioo (-R) R, F (p, -r) = F (p, r)) : |
| 332 | ContDiffOn ℝ ∞ (descend F) (U ×ˢ Ico 0 (R ^ 2)) := by |
| 333 | intro q hq |
| 334 | rcases q with ⟨p, X⟩ |
| 335 | by_cases hz : X = 0 |
| 336 | · subst X |
| 337 | rcases Metric.mem_nhds_iff.mp (hU.mem_nhds hq.1) with ⟨A, hA, hsub⟩ |
| 338 | have hs : Ioo (p - A) (p + A) ⊆ U := by |
| 339 | simpa only [Real.ball_eq_Ioo] using hsub |
| 340 | have hFlocal : ContDiffOn ℝ ∞ F (Ioo (p - A) (p + A) ×ˢ Ioo (-R) R) := |
| 341 | hF.mono (Set.prod_mono hs (Subset.refl _)) |
| 342 | have heLocal : ∀ a ∈ Ioo (p - A) (p + A), ∀ r ∈ Ioo (-R) R, |
| 343 | F (a, -r) = F (a, r) := fun a ha r hr => he a (hs ha) r hr |
| 344 | exact (contDiffWithinAt_descend_axis_local hA hR hFlocal heLocal).mono |
| 345 | (Set.prod_mono (subset_univ _) Ico_subset_Ici_self) |
| 346 | · have hpos : 0 < X := lt_of_le_of_ne hq.2.1 (Ne.symm hz) |
| 347 | have hsqrt : Real.sqrt X ∈ Ioo (-R) R := by |
| 348 | constructor |
| 349 | · linarith [Real.sqrt_nonneg X] |
| 350 | · nlinarith [Real.sq_sqrt hq.2.1, Real.sqrt_nonneg X, hq.2.2] |
| 351 | have hmem : (p, Real.sqrt X) ∈ U ×ˢ Ioo (-R) R := ⟨hq.1, hsqrt⟩ |
| 352 | have hFAt : ContDiffAt ℝ ∞ F (p, Real.sqrt X) := |
| 353 | hF.contDiffAt ((hU.prod isOpen_Ioo).mem_nhds hmem) |
| 354 | have hc := hFAt.comp (p, X) |
| 355 | (contDiffAt_fst.prodMk ((Real.contDiffAt_sqrt hz).comp (p, X) contDiffAt_snd)) |
| 356 | exact hc.contDiffWithinAt |
| 357 | |
| 358 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] in |
| 359 | /-- Exact recovery of the original radial field after substituting a square. -/ |
| 360 | theorem descend_square_local {U : Set ℝ} {R : ℝ} {F : Plane → E} |
| 361 | (he : ∀ p ∈ U, ∀ r ∈ Ioo (-R) R, F (p, -r) = F (p, r)) |
| 362 | {p r : ℝ} (hp : p ∈ U) (hr : r ∈ Ioo (-R) R) : |
| 363 | descend F (p, r ^ 2) = F (p, r) := |
| 364 | EvenSmoothDescent.descent_square_local (f := fun r => F (p, r)) (he p hp) hr |
| 365 | |
| 366 | /-- The radial right jets in the joint descent are the exact even radial jets. -/ |
| 367 | theorem iteratedDerivWithin_descend_axis_local {U : Set ℝ} {R : ℝ} (hR : 0 < R) |
| 368 | {F : Plane → E} (hF : ContDiffOn ℝ ∞ F (U ×ˢ Ioo (-R) R)) |
| 369 | (he : ∀ p ∈ U, ∀ r ∈ Ioo (-R) R, F (p, -r) = F (p, r)) |
| 370 | {p : ℝ} (hp : p ∈ U) (n : ℕ) : |
| 371 | iteratedDerivWithin n (fun X => descend F (p, X)) (Ici 0) 0 = |
| 372 | ((n.factorial : ℝ) / ((2 * n).factorial : ℝ)) • |
| 373 | iteratedDeriv (2 * n) (fun r => F (p, r)) 0 := by |
| 374 | apply EvenSmoothDescent.iteratedDerivWithin_descent_zero_local (f := fun r => F (p, r)) hR |
| 375 | · exact hF.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun r hr => ⟨hp, hr⟩) |
| 376 | · exact he p hp |
| 377 | |
| 378 | end NavierStokes.ParametricEvenDescent |