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 Mathlib.Analysis.Calculus.Deriv.Prod |
| 2 | import Mathlib.Analysis.Calculus.IteratedDeriv.Defs |
| 3 | import Mathlib.Analysis.Calculus.MeanValue |
| 4 | import Mathlib.Analysis.Normed.Group.Bounded |
| 5 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 6 | import Mathlib.Analysis.SpecialFunctions.Log.Deriv |
| 7 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic |
| 8 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus |
| 9 | import Mathlib.Tactic.FieldSimp |
| 10 | import Mathlib.Tactic.GCongr |
| 11 | import Mathlib.Tactic.Linarith |
| 12 | import Mathlib.Tactic.Ring |
| 13 | |
| 14 | /-! |
| 15 | # Rapid radial modulation |
| 16 | |
| 17 | Concrete chain rules, shear identities, and estimates for the modulation in |
| 18 | Proposition 6.2. Frequencies are positive real numbers; hence the results apply |
| 19 | in particular to positive integer frequencies. All derivatives are genuine |
| 20 | `deriv`/`fderiv` derivatives, rather than formal differential symbols. |
| 21 | -/ |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | namespace NavierStokes.RadialModulation |
| 26 | |
| 27 | open Set MeasureTheory |
| 28 | open scoped ContDiff Topology |
| 29 | |
| 30 | abbrev PhasePoint := ℝ × ℝ × ℝ |
| 31 | abbrev BaseProfile := ℝ → ℝ → ℝ |
| 32 | abbrev PrimitiveProfile := PhasePoint → ℝ |
| 33 | |
| 34 | def phasePoint (n X η : ℝ) : PhasePoint := (X, η, n * Real.log X) |
| 35 | def partialX (A : PrimitiveProfile) (z : PhasePoint) : ℝ := fderiv ℝ A z (1, 0, 0) |
| 36 | def partialEta (A : PrimitiveProfile) (z : PhasePoint) : ℝ := fderiv ℝ A z (0, 1, 0) |
| 37 | def partialTheta (A : PrimitiveProfile) (z : PhasePoint) : ℝ := fderiv ℝ A z (0, 0, 1) |
| 38 | |
| 39 | def modulatedE (n : ℝ) (E : BaseProfile) (A : PrimitiveProfile) (X η : ℝ) : ℝ := |
| 40 | E X η * Real.exp (A (phasePoint n X η) / n) |
| 41 | |
| 42 | def modulatedU (n : ℝ) (U : BaseProfile) (B : PrimitiveProfile) (X η : ℝ) : ℝ := |
| 43 | U X η + B (phasePoint n X η) / n |
| 44 | |
| 45 | /-- The logarithmic graph and modulated angular profile are genuinely smooth |
| 46 | at every positive radius (indeed at every nonzero radius). -/ |
| 47 | theorem modulatedE_contDiffAt |
| 48 | (E : BaseProfile) (A : PrimitiveProfile) (n X η : ℝ) |
| 49 | (hE : ContDiff ℝ ∞ (Function.uncurry E)) (hA : ContDiff ℝ ∞ A) (hX : X ≠ 0) : |
| 50 | ContDiffAt ℝ ∞ (Function.uncurry (modulatedE n E A)) (X, η) := by |
| 51 | have hgraph : ContDiffAt ℝ ∞ (fun z : ℝ × ℝ => phasePoint n z.1 z.2) (X, η) := |
| 52 | contDiffAt_fst.prodMk (contDiffAt_snd.prodMk |
| 53 | (contDiffAt_const.mul (contDiffAt_fst.log hX))) |
| 54 | exact hE.contDiffAt.mul (((hA.contDiffAt.comp (X, η) hgraph).div_const n).exp) |
| 55 | |
| 56 | theorem modulatedU_contDiffAt |
| 57 | (U : BaseProfile) (B : PrimitiveProfile) (n X η : ℝ) |
| 58 | (hU : ContDiff ℝ ∞ (Function.uncurry U)) (hB : ContDiff ℝ ∞ B) (hX : X ≠ 0) : |
| 59 | ContDiffAt ℝ ∞ (Function.uncurry (modulatedU n U B)) (X, η) := by |
| 60 | have hgraph : ContDiffAt ℝ ∞ (fun z : ℝ × ℝ => phasePoint n z.1 z.2) (X, η) := |
| 61 | contDiffAt_fst.prodMk (contDiffAt_snd.prodMk |
| 62 | (contDiffAt_const.mul (contDiffAt_fst.log hX))) |
| 63 | exact hU.contDiffAt.add ((hB.contDiffAt.comp (X, η) hgraph).div_const n) |
| 64 | |
| 65 | /-- The rapid radial phase contributes exactly `(n/X) A_θ`. -/ |
| 66 | theorem phase_hasDerivAt_X |
| 67 | (A : PrimitiveProfile) (n X η : ℝ) (hX : X ≠ 0) |
| 68 | (hA : DifferentiableAt ℝ A (phasePoint n X η)) : |
| 69 | HasDerivAt (fun r => A (phasePoint n r η)) |
| 70 | (partialX A (phasePoint n X η) + |
| 71 | (n / X) * partialTheta A (phasePoint n X η)) X := by |
| 72 | have hg := (hasDerivAt_id X).prodMk |
| 73 | ((hasDerivAt_const X η).prodMk ((Real.hasDerivAt_log hX).const_mul n)) |
| 74 | have hc := hA.hasFDerivAt.comp_hasDerivAt X hg |
| 75 | have hv : (1, (0, n * X⁻¹)) = |
| 76 | (1, 0, 0) + (n / X) • ((0, 0, 1) : PhasePoint) := by |
| 77 | ext <;> simp [div_eq_mul_inv] |
| 78 | rw [hv, map_add, map_smul] at hc |
| 79 | simpa only [id_eq, phasePoint, Function.comp_def, partialX, partialTheta, smul_eq_mul] using hc |
| 80 | |
| 81 | /-- The rapid phase is independent of η, so no frequency enters this derivative. -/ |
| 82 | theorem phase_hasDerivAt_eta |
| 83 | (A : PrimitiveProfile) (n X η : ℝ) |
| 84 | (hA : DifferentiableAt ℝ A (phasePoint n X η)) : |
| 85 | HasDerivAt (fun e => A (phasePoint n X e)) |
| 86 | (partialEta A (phasePoint n X η)) η := by |
| 87 | have hg := (hasDerivAt_const η X).prodMk |
| 88 | ((hasDerivAt_id η).prodMk (hasDerivAt_const η (n * Real.log X))) |
| 89 | exact hA.hasFDerivAt.comp_hasDerivAt η hg |
| 90 | |
| 91 | /-- Exact radial derivative of the multiplicative angular modulation. -/ |
| 92 | theorem modulatedE_hasDerivAt_X |
| 93 | (E : BaseProfile) (A : PrimitiveProfile) (n X η : ℝ) (hn : n ≠ 0) (hX : X ≠ 0) |
| 94 | (hE : DifferentiableAt ℝ (fun r => E r η) X) |
| 95 | (hA : DifferentiableAt ℝ A (phasePoint n X η)) : |
| 96 | HasDerivAt (fun r => modulatedE n E A r η) |
| 97 | (Real.exp (A (phasePoint n X η) / n) * |
| 98 | (deriv (fun r => E r η) X + E X η * |
| 99 | (partialX A (phasePoint n X η) / n + partialTheta A (phasePoint n X η) / X))) X := by |
| 100 | have hd := hE.hasDerivAt.mul (((phase_hasDerivAt_X A n X η hX hA).div_const n).exp) |
| 101 | apply hd.congr_deriv |
| 102 | field_simp |
| 103 | |
| 104 | /-- Exact radial derivative of the additive axial modulation. -/ |
| 105 | theorem modulatedU_hasDerivAt_X |
| 106 | (U : BaseProfile) (B : PrimitiveProfile) (n X η : ℝ) (hn : n ≠ 0) (hX : X ≠ 0) |
| 107 | (hU : DifferentiableAt ℝ (fun r => U r η) X) |
| 108 | (hB : DifferentiableAt ℝ B (phasePoint n X η)) : |
| 109 | HasDerivAt (fun r => modulatedU n U B r η) |
| 110 | (deriv (fun r => U r η) X + partialX B (phasePoint n X η) / n + |
| 111 | partialTheta B (phasePoint n X η) / X) X := by |
| 112 | have hd := hU.hasDerivAt.add ((phase_hasDerivAt_X B n X η hX hB).div_const n) |
| 113 | apply hd.congr_deriv |
| 114 | field_simp; ring |
| 115 | |
| 116 | theorem modulatedE_hasDerivAt_eta |
| 117 | (E : BaseProfile) (A : PrimitiveProfile) (n X η : ℝ) |
| 118 | (hE : DifferentiableAt ℝ (E X) η) |
| 119 | (hA : DifferentiableAt ℝ A (phasePoint n X η)) : |
| 120 | HasDerivAt (modulatedE n E A X) |
| 121 | (deriv (E X) η * Real.exp (A (phasePoint n X η) / n) + |
| 122 | E X η * (Real.exp (A (phasePoint n X η) / n) * |
| 123 | (partialEta A (phasePoint n X η) / n))) η := by |
| 124 | exact hE.hasDerivAt.mul (((phase_hasDerivAt_eta A n X η hA).div_const n).exp) |
| 125 | |
| 126 | theorem modulatedU_hasDerivAt_eta |
| 127 | (U : BaseProfile) (B : PrimitiveProfile) (n X η : ℝ) |
| 128 | (hU : DifferentiableAt ℝ (U X) η) |
| 129 | (hB : DifferentiableAt ℝ B (phasePoint n X η)) : |
| 130 | HasDerivAt (modulatedU n U B X) |
| 131 | (deriv (U X) η + partialEta B (phasePoint n X η) / n) η := by |
| 132 | exact hU.hasDerivAt.add ((phase_hasDerivAt_eta B n X η hB).div_const n) |
| 133 | |
| 134 | /-- Exact angular shear: the only error after the primitive prescription is |
| 135 | the slow radial derivative of `A`, divided by frequency. -/ |
| 136 | theorem angular_shear_exact |
| 137 | (E : BaseProfile) (A : PrimitiveProfile) (n X η aL : ℝ) |
| 138 | (hn : n ≠ 0) (hX : X ≠ 0) (hE0 : E X η ≠ 0) |
| 139 | (hE : DifferentiableAt ℝ (fun r => E r η) X) |
| 140 | (hA : DifferentiableAt ℝ A (phasePoint n X η)) |
| 141 | (hprescribed : partialTheta A (phasePoint n X η) = |
| 142 | -(aL - (1 - 2 * X * deriv (fun r => E r η) X / E X η)) / 2) : |
| 143 | 1 - 2 * X * deriv (fun r => modulatedE n E A r η) X / modulatedE n E A X η = |
| 144 | aL - 2 * X * partialX A (phasePoint n X η) / n := by |
| 145 | rw [(modulatedE_hasDerivAt_X E A n X η hn hX hE hA).deriv] |
| 146 | unfold modulatedE |
| 147 | rw [hprescribed] |
| 148 | field_simp [Real.exp_ne_zero]; ring |
| 149 | |
| 150 | /-- Exact axial shear, including the multiplicative correction caused by the |
| 151 | changed angular velocity in its denominator. -/ |
| 152 | theorem axial_shear_exact |
| 153 | (E U : BaseProfile) (A B : PrimitiveProfile) (n X η bL : ℝ) |
| 154 | (hn : n ≠ 0) (hX : X ≠ 0) (hE0 : E X η ≠ 0) |
| 155 | (hU : DifferentiableAt ℝ (fun r => U r η) X) |
| 156 | (hB : DifferentiableAt ℝ B (phasePoint n X η)) |
| 157 | (hprescribed : partialTheta B (phasePoint n X η) = |
| 158 | E X η * (bL - 2 * X * deriv (fun r => U r η) X / E X η) / 2) : |
| 159 | 2 * X * deriv (fun r => modulatedU n U B r η) X / modulatedE n E A X η = |
| 160 | (bL + 2 * X * partialX B (phasePoint n X η) / (n * E X η)) / |
| 161 | Real.exp (A (phasePoint n X η) / n) := by |
| 162 | rw [(modulatedU_hasDerivAt_X U B n X η hn hX hU hB).deriv] |
| 163 | unfold modulatedE |
| 164 | rw [hprescribed] |
| 165 | field_simp [Real.exp_ne_zero]; ring |
| 166 | |
| 167 | /-- Explicit uniform value estimate once the frequency exceeds the bound on A. -/ |
| 168 | theorem angular_value_bound |
| 169 | (E A n CE CA : ℝ) (hn : 0 < n) (hE : |E| ≤ CE) (hA : |A| ≤ CA) (hCA : CA ≤ n) : |
| 170 | |E * Real.exp (A / n) - E| ≤ 2 * CE * CA / n := by |
| 171 | have hCE : 0 ≤ CE := (abs_nonneg E).trans hE |
| 172 | have hCA0 : 0 ≤ CA := (abs_nonneg A).trans hA |
| 173 | have hsmall : |A / n| ≤ 1 := by |
| 174 | rw [abs_div, abs_of_pos hn] |
| 175 | exact (div_le_one hn).mpr (hA.trans hCA) |
| 176 | calc |
| 177 | |E * Real.exp (A / n) - E| = |E| * |Real.exp (A / n) - 1| := by |
| 178 | rw [← abs_mul] |
| 179 | congr 1 |
| 180 | ring |
| 181 | _ ≤ CE * (2 * |A / n|) := |
| 182 | mul_le_mul hE (Real.abs_exp_sub_one_le hsmall) (abs_nonneg _) hCE |
| 183 | _ ≤ CE * (2 * (CA / n)) := by |
| 184 | rw [abs_div, abs_of_pos hn] |
| 185 | gcongr |
| 186 | _ = 2 * CE * CA / n := by ring |
| 187 | |
| 188 | theorem axial_value_bound |
| 189 | (U B n CB : ℝ) (hn : 0 < n) (hB : |B| ≤ CB) : |
| 190 | |U + B / n - U| ≤ CB / n := by |
| 191 | have heq : U + B / n - U = B / n := by ring |
| 192 | rw [heq, abs_div, abs_of_pos hn] |
| 193 | exact div_le_div_of_nonneg_right hB hn.le |
| 194 | |
| 195 | /-- The primitive is an actual interval integral. -/ |
| 196 | def periodicPrimitive (q : ℝ → ℝ) (θ : ℝ) : ℝ := intervalIntegral q 0 θ volume |
| 197 | |
| 198 | theorem periodicPrimitive_hasDerivAt |
| 199 | (q : ℝ → ℝ) (hq : Continuous q) (θ : ℝ) : |
| 200 | HasDerivAt (periodicPrimitive q) (q θ) θ := by |
| 201 | exact intervalIntegral.integral_hasDerivAt_right (hq.intervalIntegrable 0 θ) |
| 202 | hq.aestronglyMeasurable.stronglyMeasurableAtFilter hq.continuousAt |
| 203 | |
| 204 | /-- Zero mean is precisely what removes the drift of the integral primitive. -/ |
| 205 | theorem periodicPrimitive_periodic |
| 206 | (q : ℝ → ℝ) (hq : Continuous q) (hperiodic : Function.Periodic q 1) |
| 207 | (hzero : intervalIntegral q 0 1 volume = 0) : |
| 208 | Function.Periodic (periodicPrimitive q) 1 := by |
| 209 | intro θ |
| 210 | simpa only [periodicPrimitive, zero_add, hzero, add_zero] using |
| 211 | hperiodic.intervalIntegral_add_eq_add 0 θ (fun a b => hq.intervalIntegrable a b) |
| 212 | |
| 213 | /-- The integral primitive inherits all finite smoothness orders from q. -/ |
| 214 | theorem periodicPrimitive_contDiff |
| 215 | (q : ℝ → ℝ) (hq : ContDiff ℝ ∞ q) : ContDiff ℝ ∞ (periodicPrimitive q) := by |
| 216 | apply contDiff_infty_iff_deriv.mpr |
| 217 | have hd : deriv (periodicPrimitive q) = q := |
| 218 | funext (fun θ => (periodicPrimitive_hasDerivAt q hq.continuous θ).deriv) |
| 219 | exact ⟨fun θ => (periodicPrimitive_hasDerivAt q hq.continuous θ).differentiableAt, hd.symm ▸ hq⟩ |
| 220 | |
| 221 | /-- Subtracting the primitive's mean fixes the zero-mean normalization. -/ |
| 222 | def zeroMeanPrimitive (q : ℝ → ℝ) (θ : ℝ) : ℝ := |
| 223 | periodicPrimitive q θ - intervalIntegral (periodicPrimitive q) 0 1 volume |
| 224 | |
| 225 | theorem zeroMeanPrimitive_hasDerivAt |
| 226 | (q : ℝ → ℝ) (hq : Continuous q) (θ : ℝ) : |
| 227 | HasDerivAt (zeroMeanPrimitive q) (q θ) θ := by |
| 228 | exact (periodicPrimitive_hasDerivAt q hq θ).sub_const _ |
| 229 | |
| 230 | theorem zeroMeanPrimitive_integral |
| 231 | (q : ℝ → ℝ) (hq : Continuous q) : |
| 232 | intervalIntegral (zeroMeanPrimitive q) 0 1 volume = 0 := by |
| 233 | have hd : Differentiable ℝ (periodicPrimitive q) := |
| 234 | fun θ => (periodicPrimitive_hasDerivAt q hq θ).differentiableAt |
| 235 | have hc : Continuous (periodicPrimitive q) := hd.continuous |
| 236 | unfold zeroMeanPrimitive |
| 237 | rw [intervalIntegral.integral_sub (hc.intervalIntegrable 0 1) |
| 238 | (continuous_const.intervalIntegrable 0 1)] |
| 239 | simp |
| 240 | |
| 241 | /-- Every smooth period-one, mean-zero source has an actual smooth period-one, |
| 242 | mean-zero primitive, with its derivative proved by the fundamental theorem. -/ |
| 243 | theorem exists_smooth_periodic_zeroMean_primitive |
| 244 | (q : ℝ → ℝ) (hq : ContDiff ℝ ∞ q) (hperiodic : Function.Periodic q 1) |
| 245 | (hzero : intervalIntegral q 0 1 volume = 0) : |
| 246 | ∃ A : ℝ → ℝ, ContDiff ℝ ∞ A ∧ Function.Periodic A 1 ∧ |
| 247 | intervalIntegral A 0 1 volume = 0 ∧ ∀ θ, HasDerivAt A (q θ) θ := by |
| 248 | refine ⟨zeroMeanPrimitive q, (periodicPrimitive_contDiff q hq).sub contDiff_const, ?_, |
| 249 | zeroMeanPrimitive_integral q hq.continuous, zeroMeanPrimitive_hasDerivAt q hq.continuous⟩ |
| 250 | intro θ |
| 251 | unfold zeroMeanPrimitive |
| 252 | rw [periodicPrimitive_periodic q hq.continuous hperiodic hzero θ] |
| 253 | |
| 254 | /-- Interface for a loop with prescribed mean: subtract the nominal shear and |
| 255 | scale it, then construct its normalized primitive. Choosing `c = -1/2` gives |
| 256 | the angular primitive; `c = E/2` gives the axial primitive. -/ |
| 257 | theorem exists_primitive_of_prescribed_mean |
| 258 | (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (hperiodic : Function.Periodic f 1) |
| 259 | (m c : ℝ) (hmean : intervalIntegral f 0 1 volume = m) : |
| 260 | ∃ A : ℝ → ℝ, ContDiff ℝ ∞ A ∧ Function.Periodic A 1 ∧ |
| 261 | intervalIntegral A 0 1 volume = 0 ∧ ∀ θ, HasDerivAt A (c * (f θ - m)) θ := by |
| 262 | have hq : ContDiff ℝ ∞ (fun θ => c * (f θ - m)) := |
| 263 | contDiff_const.mul (hf.sub contDiff_const) |
| 264 | have hp : Function.Periodic (fun θ => c * (f θ - m)) 1 := by |
| 265 | intro θ |
| 266 | change c * (f (θ + 1) - m) = c * (f θ - m) |
| 267 | rw [hperiodic θ] |
| 268 | have hz : intervalIntegral (fun θ => c * (f θ - m)) 0 1 volume = 0 := by |
| 269 | rw [intervalIntegral.integral_const_mul, |
| 270 | intervalIntegral.integral_sub (hf.continuous.intervalIntegrable 0 1) |
| 271 | (continuous_const.intervalIntegrable 0 1)] |
| 272 | simp [hmean] |
| 273 | exact exists_smooth_periodic_zeroMean_primitive (fun θ => c * (f θ - m)) hq hp hz |
| 274 | |
| 275 | /-! ### Uniform bounds for every fixed parameter jet -/ |
| 276 | |
| 277 | /-- Coordinates are amplitude, radius, parameter, periodic angle. -/ |
| 278 | abbrev FamilyPoint := ℝ × PhasePoint |
| 279 | |
| 280 | def etaDirection : FamilyPoint := (0, 0, 1, 0) |
| 281 | def amplitudeDirection : FamilyPoint := (1, 0, 0, 0) |
| 282 | |
| 283 | /-- Iterated genuine directional derivatives in the parameter coordinate. -/ |
| 284 | def etaJet : ℕ → (FamilyPoint → ℝ) → FamilyPoint → ℝ |
| 285 | | 0, F => F |
| 286 | | k + 1, F => fun z => fderiv ℝ (etaJet k F) z etaDirection |
| 287 | |
| 288 | theorem etaJet_contDiff (F : FamilyPoint → ℝ) (hF : ContDiff ℝ ∞ F) (k : ℕ) : |
| 289 | ContDiff ℝ ∞ (etaJet k F) := by |
| 290 | induction k with |
| 291 | | zero => exact hF |
| 292 | | succ k ih => |
| 293 | exact (ih.fderiv_right (by simp)).clm_apply contDiff_const |
| 294 | |
| 295 | /-- The directional jet is exactly the ordinary iterated derivative along η. -/ |
| 296 | theorem etaJet_eq_iteratedDeriv |
| 297 | (F : FamilyPoint → ℝ) (hF : ContDiff ℝ ∞ F) (k : ℕ) (ε X η θ : ℝ) : |
| 298 | iteratedDeriv k (fun e => F (ε, X, e, θ)) η = etaJet k F (ε, X, η, θ) := by |
| 299 | induction k generalizing η with |
| 300 | | zero => rfl |
| 301 | | succ k ih => |
| 302 | rw [iteratedDeriv_succ] |
| 303 | rw [show iteratedDeriv k (fun e => F (ε, X, e, θ)) = |
| 304 | (fun e => etaJet k F (ε, X, e, θ)) from funext ih] |
| 305 | have hd := ((etaJet_contDiff F hF k).differentiable (by simp) (ε, X, η, θ)).hasFDerivAt |
| 306 | have hg := (hasDerivAt_const η ε).prodMk |
| 307 | ((hasDerivAt_const η X).prodMk |
| 308 | ((hasDerivAt_id η).prodMk (hasDerivAt_const η θ))) |
| 309 | exact (hd.comp_hasDerivAt η hg).deriv |
| 310 | |
| 311 | /-- A smooth periodic family varies by `C_k/n` in each fixed η derivative, |
| 312 | uniformly on compact radius/parameter sets and all angles. The constant is |
| 313 | proved to exist by compactness of the actual next derivative, then the MVT. -/ |
| 314 | theorem uniform_periodic_family_eta_jets |
| 315 | (F : FamilyPoint → ℝ) (hF : ContDiff ℝ ∞ F) |
| 316 | (hperiodic : ∀ ε X η, Function.Periodic (fun θ => F (ε, X, η, θ)) 1) |
| 317 | (KX Kη : Set ℝ) (hKX : IsCompact KX) (hKη : IsCompact Kη) (k : ℕ) : |
| 318 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℝ, 1 ≤ n → ∀ X ∈ KX, ∀ η ∈ Kη, ∀ θ : ℝ, |
| 319 | |iteratedDeriv k (fun e => F (1 / n, X, e, θ)) η - |
| 320 | iteratedDeriv k (fun e => F (0, X, e, θ)) η| ≤ C / n := by |
| 321 | have hj := etaJet_contDiff F hF k |
| 322 | have hdj : ContDiff ℝ ∞ (fderiv ℝ (etaJet k F)) := hj.fderiv_right (by simp) |
| 323 | have hd : Continuous (fun z => fderiv ℝ (etaJet k F) z amplitudeDirection) := |
| 324 | (hdj.clm_apply contDiff_const).continuous |
| 325 | have hcompact : IsCompact ((Icc (0 : ℝ) 1) ×ˢ (KX ×ˢ (Kη ×ˢ Icc (0 : ℝ) 1))) := |
| 326 | isCompact_Icc.prod (hKX.prod (hKη.prod isCompact_Icc)) |
| 327 | obtain ⟨C₀, hC₀⟩ := hcompact.exists_bound_of_continuousOn hd.continuousOn |
| 328 | let C := max C₀ 0 |
| 329 | have hlocal : ∀ ε ∈ Icc (0 : ℝ) 1, ∀ X ∈ KX, ∀ η ∈ Kη, |
| 330 | ∀ θ ∈ Icc (0 : ℝ) 1, |
| 331 | |etaJet k F (ε, X, η, θ) - etaJet k F (0, X, η, θ)| ≤ C * ε := by |
| 332 | intro ε hε X hX η hη θ hθ |
| 333 | have hderiv : ∀ s ∈ Icc (0 : ℝ) 1, |
| 334 | HasDerivWithinAt (fun a => etaJet k F (a, X, η, θ)) |
| 335 | (fderiv ℝ (etaJet k F) (s, X, η, θ) amplitudeDirection) (Icc (0 : ℝ) 1) s := by |
| 336 | intro s hs |
| 337 | have hg := (hasDerivAt_id s).prodMk (hasDerivAt_const s ((X, η, θ) : PhasePoint)) |
| 338 | exact (((hj.differentiable (by simp) (s, X, η, θ)).hasFDerivAt).comp_hasDerivAt |
| 339 | s hg).hasDerivWithinAt |
| 340 | have hbound : ∀ s ∈ Icc (0 : ℝ) 1, |
| 341 | ‖fderiv ℝ (etaJet k F) (s, X, η, θ) amplitudeDirection‖ ≤ C := by |
| 342 | intro s hs |
| 343 | exact (hC₀ (s, X, η, θ) ⟨hs, hX, hη, hθ⟩).trans (le_max_left _ _) |
| 344 | have hm := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le hderiv hbound |
| 345 | (convex_Icc (0 : ℝ) 1) (show (0 : ℝ) ∈ Icc (0 : ℝ) 1 from ⟨le_rfl, zero_le_one⟩) hε |
| 346 | simpa only [Real.norm_eq_abs, sub_zero, abs_of_nonneg hε.1] using hm |
| 347 | refine ⟨C, le_max_right _ _, ?_⟩ |
| 348 | intro n hn X hX η hη θ |
| 349 | have hn0 : 0 < n := lt_of_lt_of_le zero_lt_one hn |
| 350 | have hε : 1 / n ∈ Icc (0 : ℝ) 1 := |
| 351 | ⟨div_nonneg zero_le_one hn0.le, (div_le_one hn0).mpr hn⟩ |
| 352 | have hθ : Int.fract θ ∈ Icc (0 : ℝ) 1 := |
| 353 | ⟨Int.fract_nonneg θ, (Int.fract_lt_one θ).le⟩ |
| 354 | have heq : ∀ ε, (fun e => F (ε, X, e, θ)) = (fun e => F (ε, X, e, Int.fract θ)) := by |
| 355 | intro ε |
| 356 | funext e |
| 357 | symm |
| 358 | simpa only [Int.fract, mul_one] using |
| 359 | (hperiodic ε X e).sub_int_mul_eq (x := θ) (Int.floor θ) |
| 360 | rw [heq (1 / n), heq 0, etaJet_eq_iteratedDeriv F hF, etaJet_eq_iteratedDeriv F hF] |
| 361 | have h := hlocal (1 / n) hε X hX η hη (Int.fract θ) hθ |
| 362 | simpa only [mul_one_div] using h |
| 363 | |
| 364 | def angularFamily (E : BaseProfile) (A : PrimitiveProfile) (z : FamilyPoint) : ℝ := |
| 365 | E z.2.1 z.2.2.1 * Real.exp (z.1 * A z.2) |
| 366 | |
| 367 | def axialFamily (U : BaseProfile) (B : PrimitiveProfile) (z : FamilyPoint) : ℝ := |
| 368 | U z.2.1 z.2.2.1 + z.1 * B z.2 |
| 369 | |
| 370 | /-- Uniform `O(1/n)` closeness in every fixed actual η derivative of E. |
| 371 | Taking `KX = [Xa,Xb]` with `0 < Xa` gives the manuscript's compact positive annulus. -/ |
| 372 | theorem uniform_modulatedE_eta_jets |
| 373 | (E : BaseProfile) (A : PrimitiveProfile) |
| 374 | (hE : ContDiff ℝ ∞ (Function.uncurry E)) (hA : ContDiff ℝ ∞ A) |
| 375 | (hperiodic : ∀ X η, Function.Periodic (fun θ => A (X, η, θ)) 1) |
| 376 | (KX Kη : Set ℝ) (hKX : IsCompact KX) (hKη : IsCompact Kη) (k : ℕ) : |
| 377 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℝ, 1 ≤ n → ∀ X ∈ KX, ∀ η ∈ Kη, |
| 378 | |iteratedDeriv k (modulatedE n E A X) η - iteratedDeriv k (E X) η| ≤ C / n := by |
| 379 | have hF : ContDiff ℝ ∞ (angularFamily E A) := by |
| 380 | unfold angularFamily |
| 381 | change ContDiff ℝ ∞ (fun z : FamilyPoint => |
| 382 | (Function.uncurry E) (z.2.1, z.2.2.1) * Real.exp (z.1 * A z.2)) |
| 383 | have hbase : ContDiff ℝ ∞ (fun z : FamilyPoint => (z.2.1, z.2.2.1)) := |
| 384 | contDiff_snd.fst.prodMk contDiff_snd.snd.fst |
| 385 | exact (hE.comp hbase).mul ((contDiff_fst.mul (hA.comp contDiff_snd)).exp) |
| 386 | have hP : ∀ ε X η, Function.Periodic (fun θ => angularFamily E A (ε, X, η, θ)) 1 := by |
| 387 | intro ε X η θ |
| 388 | simp only [angularFamily, hperiodic X η θ] |
| 389 | obtain ⟨C, hC, hbound⟩ := uniform_periodic_family_eta_jets |
| 390 | (angularFamily E A) hF hP KX Kη hKX hKη k |
| 391 | refine ⟨C, hC, ?_⟩ |
| 392 | intro n hn X hX η hη |
| 393 | unfold modulatedE |
| 394 | simpa only [angularFamily, phasePoint, zero_mul, Real.exp_zero, mul_one, |
| 395 | div_eq_mul_inv, one_mul, mul_comm (n⁻¹)] using hbound n hn X hX η hη (n * Real.log X) |
| 396 | |
| 397 | /-- Uniform `O(1/n)` closeness in every fixed actual η derivative of U. -/ |
| 398 | theorem uniform_modulatedU_eta_jets |
| 399 | (U : BaseProfile) (B : PrimitiveProfile) |
| 400 | (hU : ContDiff ℝ ∞ (Function.uncurry U)) (hB : ContDiff ℝ ∞ B) |
| 401 | (hperiodic : ∀ X η, Function.Periodic (fun θ => B (X, η, θ)) 1) |
| 402 | (KX Kη : Set ℝ) (hKX : IsCompact KX) (hKη : IsCompact Kη) (k : ℕ) : |
| 403 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℝ, 1 ≤ n → ∀ X ∈ KX, ∀ η ∈ Kη, |
| 404 | |iteratedDeriv k (modulatedU n U B X) η - iteratedDeriv k (U X) η| ≤ C / n := by |
| 405 | have hF : ContDiff ℝ ∞ (axialFamily U B) := by |
| 406 | unfold axialFamily |
| 407 | change ContDiff ℝ ∞ (fun z : FamilyPoint => |
| 408 | (Function.uncurry U) (z.2.1, z.2.2.1) + z.1 * B z.2) |
| 409 | have hbase : ContDiff ℝ ∞ (fun z : FamilyPoint => (z.2.1, z.2.2.1)) := |
| 410 | contDiff_snd.fst.prodMk contDiff_snd.snd.fst |
| 411 | exact (hU.comp hbase).add (contDiff_fst.mul (hB.comp contDiff_snd)) |
| 412 | have hP : ∀ ε X η, Function.Periodic (fun θ => axialFamily U B (ε, X, η, θ)) 1 := by |
| 413 | intro ε X η θ |
| 414 | simp only [axialFamily, hperiodic X η θ] |
| 415 | obtain ⟨C, hC, hbound⟩ := uniform_periodic_family_eta_jets |
| 416 | (axialFamily U B) hF hP KX Kη hKX hKη k |
| 417 | refine ⟨C, hC, ?_⟩ |
| 418 | intro n hn X hX η hη |
| 419 | unfold modulatedU |
| 420 | simpa only [axialFamily, phasePoint, zero_mul, add_zero, |
| 421 | div_eq_mul_inv, one_mul, mul_comm (n⁻¹)] using hbound n hn X hX η hη (n * Real.log X) |
| 422 | |
| 423 | end NavierStokes.RadialModulation |