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.MovingFrameODE |
| 2 | import NavierStokes.SmoothPathFamily |
| 3 | import NavierStokes.WeightedODEJets |
| 4 | import NavierStokes.PulseCovariance |
| 5 | import NavierStokes.PhaseEstimates |
| 6 | import NavierStokes.JointODE |
| 7 | |
| 8 | /-! |
| 9 | # Constructed primary pulse solutions |
| 10 | |
| 11 | The operator and forcing are defined from the actual moving tangent frame. |
| 12 | The solution is the finite-interval Volterra solution, with its differentiable |
| 13 | extension. Reconstruction into ambient coordinates satisfies the projected |
| 14 | equation exactly. Estimates are derived for this constructed solution. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace NavierStokes.PrimaryODE |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Topology ContDiff InnerProductSpace |
| 23 | |
| 24 | abbrev State := MovingFrameODE.Plane |
| 25 | abbrev Space := MovingFrameODE.Space |
| 26 | abbrev Frame := MovingFrameODE.Frame |
| 27 | |
| 28 | /-- Smooth input quantities before any solution is constructed. `eigenvector` |
| 29 | is the scalar `h` in `x=p+q, y=h(p-q)`; its logarithmic derivative is |
| 30 | `eigenRate`. `viscosity` is the fundamental scalar damping. -/ |
| 31 | structure FrameData (Q : Type) where |
| 32 | beta : Q × ℝ → ℝ |
| 33 | betaDot : Q × ℝ → ℝ |
| 34 | rho : Q × ℝ → ℝ |
| 35 | rhoDot : Q × ℝ → ℝ |
| 36 | rotation : Q × ℝ → ℝ |
| 37 | F : Q × ℝ → ℝ |
| 38 | shear : Q × ℝ → State |
| 39 | frame : Q × ℝ → Frame |
| 40 | eigenvalue : Q × ℝ → ℝ |
| 41 | eigenvector : Q × ℝ → ℝ |
| 42 | eigenRate : Q × ℝ → ℝ |
| 43 | viscosity : Q × ℝ → ℝ |
| 44 | |
| 45 | namespace FrameData |
| 46 | |
| 47 | variable {Q : Type} (d : FrameData Q) |
| 48 | |
| 49 | noncomputable def errorA (z : Q × ℝ) : ℝ := |
| 50 | MovingFrameODE.coeff11 (d.rho z) (d.rhoDot z) ⟪d.frame z 0, d.shear z⟫_ℝ |
| 51 | |
| 52 | noncomputable def errorB (z : Q × ℝ) : ℝ := |
| 53 | MovingFrameODE.coeff12 (d.F z) (d.frame z 1 0) (d.rho z) (d.rotation z) - |
| 54 | d.eigenvalue z / d.eigenvector z |
| 55 | |
| 56 | noncomputable def errorC (z : Q × ℝ) : ℝ := |
| 57 | MovingFrameODE.coeff21 (d.F z) (d.frame z 1 0) ⟪d.frame z 1, d.shear z⟫_ℝ |
| 58 | (d.rho z) (d.rotation z) - d.eigenvalue z * d.eigenvector z |
| 59 | |
| 60 | noncomputable def error11 (z : Q × ℝ) : ℝ := |
| 61 | MovingFrameODE.modal11 (d.errorA z) (d.errorB z) (d.errorC z) |
| 62 | (d.eigenvector z) (d.eigenRate z) |
| 63 | |
| 64 | noncomputable def error12 (z : Q × ℝ) : ℝ := |
| 65 | MovingFrameODE.modal12 (d.errorA z) (d.errorB z) (d.errorC z) |
| 66 | (d.eigenvector z) (d.eigenRate z) |
| 67 | |
| 68 | noncomputable def error21 (z : Q × ℝ) : ℝ := |
| 69 | MovingFrameODE.modal21 (d.errorA z) (d.errorB z) (d.errorC z) |
| 70 | (d.eigenvector z) (d.eigenRate z) |
| 71 | |
| 72 | noncomputable def error22 (z : Q × ℝ) : ℝ := |
| 73 | MovingFrameODE.modal22 (d.errorA z) (d.errorB z) (d.errorC z) |
| 74 | (d.eigenvector z) (d.eigenRate z) |
| 75 | |
| 76 | noncomputable def damping (j : ℤ) (z : Q × ℝ) : ℝ := (j : ℝ) ^ 2 * d.viscosity z |
| 77 | |
| 78 | noncomputable def coefficient (j : ℤ) (z : Q × ℝ) : State →L[ℝ] State := |
| 79 | GrowingMode.modalOperator (d.eigenvalue z) (d.damping j z) |
| 80 | (d.error11 z) (d.error12 z) (d.error21 z) (d.error22 z) |
| 81 | |
| 82 | noncomputable def forceX (f : Q × ℝ → Space) (z : Q × ℝ) : ℝ := |
| 83 | -(f z 0 - d.rho z * ⟪d.frame z 0, MovingFrameODE.tail (f z)⟫_ℝ) / |
| 84 | (1 + d.rho z ^ 2) |
| 85 | |
| 86 | noncomputable def forceY (f : Q × ℝ → Space) (z : Q × ℝ) : ℝ := |
| 87 | -⟪d.frame z 1, MovingFrameODE.tail (f z)⟫_ℝ |
| 88 | |
| 89 | noncomputable def forcing (f : Q × ℝ → Space) (z : Q × ℝ) : State := |
| 90 | !₂[(d.forceX f z + d.forceY f z / d.eigenvector z) / 2, |
| 91 | (d.forceX f z - d.forceY f z / d.eigenvector z) / 2] |
| 92 | |
| 93 | noncomputable def ambient (z : Q × ℝ) (w : State) : Space := |
| 94 | MovingFrameODE.tangent (d.rho z) (d.frame z) (w 0 + w 1) |
| 95 | (d.eigenvector z * (w 0 - w 1)) |
| 96 | |
| 97 | noncomputable def normal (z : Q × ℝ) : Space := |
| 98 | MovingFrameODE.normal (d.beta z) (d.rho z) (d.frame z) |
| 99 | |
| 100 | noncomputable def normalMotion (z : Q × ℝ) : Space := |
| 101 | MovingFrameODE.normalMotion (d.beta z) (d.betaDot z) (d.rho z) (d.rhoDot z) |
| 102 | (d.rotation z) (d.frame z) |
| 103 | |
| 104 | @[simp] theorem forcing_zero (z : Q × ℝ) : d.forcing (fun _ => 0) z = 0 := by |
| 105 | ext i |
| 106 | have hz : MovingFrameODE.tail (0 : Space) = 0 := by ext i; fin_cases i <;> rfl |
| 107 | fin_cases i <;> simp [forcing, forceX, forceY, hz] |
| 108 | |
| 109 | @[simp] theorem forcing_zero_function : d.forcing (fun _ => 0) = (fun _ => 0) := |
| 110 | funext d.forcing_zero |
| 111 | |
| 112 | @[simp] theorem damping_one (z : Q × ℝ) : d.damping 1 z = d.viscosity z := by |
| 113 | simp [damping] |
| 114 | |
| 115 | theorem ambient_tangent (z : Q × ℝ) (w : State) : |
| 116 | ⟪d.normal z, d.ambient z w⟫_ℝ = 0 := |
| 117 | MovingFrameODE.normal_tangent _ _ _ _ _ |
| 118 | |
| 119 | /-- Actual derivatives of the supplied frame data, without assumptions about |
| 120 | any ODE solution. -/ |
| 121 | structure Kinematics (p : Q) (I : Set ℝ) : Prop where |
| 122 | beta_ne_zero : ∀ v ∈ I, d.beta (p, v) ≠ 0 |
| 123 | eigenvector_ne_zero : ∀ v ∈ I, d.eigenvector (p, v) ≠ 0 |
| 124 | beta_deriv : ∀ v ∈ I, |
| 125 | HasDerivAt (fun t => d.beta (p, t)) (d.betaDot (p, v)) v |
| 126 | rho_deriv : ∀ v ∈ I, |
| 127 | HasDerivAt (fun t => d.rho (p, t)) (d.rhoDot (p, v)) v |
| 128 | eigenvector_deriv : ∀ v ∈ I, |
| 129 | HasDerivAt (fun t => d.eigenvector (p, t)) |
| 130 | (d.eigenRate (p, v) * d.eigenvector (p, v)) v |
| 131 | frameK_deriv : ∀ v ∈ I, |
| 132 | HasDerivAt (fun t => d.frame (p, t) 0) |
| 133 | (d.rotation (p, v) • d.frame (p, v) 1) v |
| 134 | frameN_deriv : ∀ v ∈ I, |
| 135 | HasDerivAt (fun t => d.frame (p, t) 1) |
| 136 | (-d.rotation (p, v) • d.frame (p, v) 0) v |
| 137 | |
| 138 | end FrameData |
| 139 | |
| 140 | section Construction |
| 141 | |
| 142 | variable {Q : Type} [NormedAddCommGroup Q] |
| 143 | variable {a b : ℝ} |
| 144 | |
| 145 | /-- The differentiable extension of the actual Volterra solution. -/ |
| 146 | noncomputable def extendedFamily (hab : a ≤ b) |
| 147 | (A : Q × ℝ → State →L[ℝ] State) (x₀ : Q → State) (f : Q × ℝ → State) |
| 148 | (p : Q) : ℝ → State := |
| 149 | ParametricODE.solutionExtension hab (SmoothPathFamily.pathFamily A p) (x₀ p) |
| 150 | (SmoothPathFamily.pathFamily f p) |
| 151 | |
| 152 | omit [NormedAddCommGroup Q] in |
| 153 | theorem extendedFamily_eq_path (hab : a ≤ b) |
| 154 | (A : Q × ℝ → State →L[ℝ] State) (x₀ : Q → State) (f : Q × ℝ → State) |
| 155 | (p : Q) (v : Icc a b) : |
| 156 | extendedFamily hab A x₀ f p v = SmoothPathFamily.odeFamily hab A x₀ f p v := |
| 157 | ParametricODE.solutionExtension_coe _ _ _ _ _ |
| 158 | |
| 159 | omit [NormedAddCommGroup Q] in |
| 160 | theorem extendedFamily_initial (hab : a ≤ b) |
| 161 | (A : Q × ℝ → State →L[ℝ] State) (x₀ : Q → State) (f : Q × ℝ → State) |
| 162 | (p : Q) : extendedFamily hab A x₀ f p a = x₀ p := by |
| 163 | exact (extendedFamily_eq_path hab A x₀ f p ⟨a, le_rfl, hab⟩).trans |
| 164 | (SmoothPathFamily.odeFamily_initial _ _ _ _ _) |
| 165 | |
| 166 | theorem extendedFamily_hasDerivAt (hab : a ≤ b) {U : Set Q} |
| 167 | (A : Q × ℝ → State →L[ℝ] State) (x₀ : Q → State) (f : Q × ℝ → State) |
| 168 | (hA : ContinuousOn A (U ×ˢ Icc a b)) (hf : ContinuousOn f (U ×ˢ Icc a b)) |
| 169 | {p : Q} (hp : p ∈ U) {v : ℝ} (hv : v ∈ Icc a b) : |
| 170 | HasDerivAt (extendedFamily hab A x₀ f p) |
| 171 | (A (p, v) (extendedFamily hab A x₀ f p v) + f (p, v)) v := by |
| 172 | have hAc := SmoothPathFamily.slice_continuous hA hp |
| 173 | have hfc := SmoothPathFamily.slice_continuous hf hp |
| 174 | have hh := ParametricODE.solutionExtension_hasDerivAt hab |
| 175 | (SmoothPathFamily.pathFamily A p) (x₀ p) (SmoothPathFamily.pathFamily f p) ⟨v, hv⟩ |
| 176 | unfold extendedFamily |
| 177 | simpa only [SmoothPathFamily.pathFamily_apply A p hAc, |
| 178 | SmoothPathFamily.pathFamily_apply f p hfc] using hh |
| 179 | |
| 180 | noncomputable def solution (hab : a ≤ b) (d : FrameData Q) (j : ℤ) |
| 181 | (x₀ : Q → State) (f : Q × ℝ → Space) (p : Q) : ℝ → State := |
| 182 | extendedFamily hab (d.coefficient j) x₀ (d.forcing f) p |
| 183 | |
| 184 | noncomputable def ambientSolution (hab : a ≤ b) (d : FrameData Q) (j : ℤ) |
| 185 | (x₀ : Q → State) (f : Q × ℝ → Space) (p : Q) (v : ℝ) : Space := |
| 186 | d.ambient (p, v) (solution hab d j x₀ f p v) |
| 187 | |
| 188 | omit [NormedAddCommGroup Q] in |
| 189 | theorem solution_initial (hab : a ≤ b) (d : FrameData Q) (j : ℤ) |
| 190 | (x₀ : Q → State) (f : Q × ℝ → Space) (p : Q) : |
| 191 | solution hab d j x₀ f p a = x₀ p := |
| 192 | extendedFamily_initial _ _ _ _ _ |
| 193 | |
| 194 | theorem solution_hasDerivAt (hab : a ≤ b) (d : FrameData Q) (j : ℤ) |
| 195 | (x₀ : Q → State) (f : Q × ℝ → Space) {U : Set Q} |
| 196 | (hA : ContinuousOn (d.coefficient j) (U ×ˢ Icc a b)) |
| 197 | (hf : ContinuousOn (d.forcing f) (U ×ˢ Icc a b)) |
| 198 | {p : Q} (hp : p ∈ U) {v : ℝ} (hv : v ∈ Icc a b) : |
| 199 | HasDerivAt (solution hab d j x₀ f p) |
| 200 | (d.coefficient j (p, v) (solution hab d j x₀ f p v) + d.forcing f (p, v)) v := |
| 201 | extendedFamily_hasDerivAt _ _ _ _ hA hf hp hv |
| 202 | |
| 203 | omit [NormedAddCommGroup Q] in |
| 204 | theorem ambientSolution_tangent (hab : a ≤ b) (d : FrameData Q) (j : ℤ) |
| 205 | (x₀ : Q → State) (f : Q × ℝ → Space) (p : Q) (v : ℝ) : |
| 206 | ⟪d.normal (p, v), ambientSolution hab d j x₀ f p v⟫_ℝ = 0 := |
| 207 | d.ambient_tangent _ _ |
| 208 | |
| 209 | /-- Exact reconstruction into equation (27), including the projected physical |
| 210 | forcing and harmonic-dependent scalar viscosity. -/ |
| 211 | theorem ambientSolution_hasDerivAt (hab : a ≤ b) (d : FrameData Q) (j : ℤ) |
| 212 | (x₀ : Q → State) (f : Q × ℝ → Space) {U : Set Q} |
| 213 | (hA : ContinuousOn (d.coefficient j) (U ×ˢ Icc a b)) |
| 214 | (hf : ContinuousOn (d.forcing f) (U ×ˢ Icc a b)) |
| 215 | {p : Q} (hp : p ∈ U) (hk : d.Kinematics p (Icc a b)) {v : ℝ} (hv : v ∈ Icc a b) : |
| 216 | HasDerivAt (ambientSolution hab d j x₀ f p) |
| 217 | (TangentProjection.projectedRhs (d.normal (p, v)) (d.normalMotion (p, v)) |
| 218 | (ambientSolution hab d j x₀ f p v) |
| 219 | (MovingFrameODE.baseAction (d.F (p, v)) (d.shear (p, v)) |
| 220 | (ambientSolution hab d j x₀ f p v)) |
| 221 | (f (p, v)) (d.damping j (p, v))) v := by |
| 222 | let z := solution hab d j x₀ f p |
| 223 | let z' := d.coefficient j (p, v) (z v) + d.forcing f (p, v) |
| 224 | have hz : HasDerivAt z z' v := solution_hasDerivAt hab d j x₀ f hA hf hp hv |
| 225 | have hplus := GrowingMode.hasDerivAt_coordinate hz 0 |
| 226 | have hminus := GrowingMode.hasDerivAt_coordinate hz 1 |
| 227 | have hx := hplus.fun_add hminus |
| 228 | have hy := (hk.eigenvector_deriv v hv).fun_mul (hplus.fun_sub hminus) |
| 229 | apply (MovingFrameODE.hasDerivAt_projected_iff (β' := d.betaDot (p, v)) |
| 230 | (hk.beta_ne_zero v hv) (hk.rho_deriv v hv) hx hy |
| 231 | (hk.frameK_deriv v hv) (hk.frameN_deriv v hv)).mpr |
| 232 | have hm := (MovingFrameODE.modal_equations_iff (hk.eigenvector_ne_zero v hv) |
| 233 | (z v 0) (z v 1) (z' 0) (z' 1) (d.eigenvalue (p, v)) (d.damping j (p, v)) |
| 234 | (d.errorA (p, v)) (d.errorB (p, v)) (d.errorC (p, v)) (d.eigenRate (p, v)) |
| 235 | (d.forceX f (p, v)) (d.forceY f (p, v))).mpr |
| 236 | ⟨by rfl, by rfl⟩ |
| 237 | constructor |
| 238 | · convert! hm.1 using 1 |
| 239 | simp only [FrameData.errorA, FrameData.errorB, FrameData.forceX, MovingFrameODE.rhsX] |
| 240 | ring |
| 241 | · convert! hm.2 using 1 |
| 242 | simp only [FrameData.errorC, FrameData.forceY, MovingFrameODE.rhsY] |
| 243 | ring |
| 244 | |
| 245 | end Construction |
| 246 | |
| 247 | section Smooth |
| 248 | |
| 249 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 250 | |
| 251 | /-- Smoothness of the explicit input fields. Frame smoothness means smoothness |
| 252 | of each ambient basis vector, avoiding an arbitrary manifold structure on |
| 253 | the space of orthonormal bases. -/ |
| 254 | structure FrameData.SmoothOn (d : FrameData Q) (Ω : Set (Q × ℝ)) : Prop where |
| 255 | beta : ContDiffOn ℝ ∞ d.beta Ω |
| 256 | betaDot : ContDiffOn ℝ ∞ d.betaDot Ω |
| 257 | rho : ContDiffOn ℝ ∞ d.rho Ω |
| 258 | rhoDot : ContDiffOn ℝ ∞ d.rhoDot Ω |
| 259 | rotation : ContDiffOn ℝ ∞ d.rotation Ω |
| 260 | F : ContDiffOn ℝ ∞ d.F Ω |
| 261 | shear : ContDiffOn ℝ ∞ d.shear Ω |
| 262 | frame : ∀ i, ContDiffOn ℝ ∞ (fun z => d.frame z i) Ω |
| 263 | eigenvalue : ContDiffOn ℝ ∞ d.eigenvalue Ω |
| 264 | eigenvector : ContDiffOn ℝ ∞ d.eigenvector Ω |
| 265 | eigenRate : ContDiffOn ℝ ∞ d.eigenRate Ω |
| 266 | viscosity : ContDiffOn ℝ ∞ d.viscosity Ω |
| 267 | eigenvector_ne_zero : ∀ z ∈ Ω, d.eigenvector z ≠ 0 |
| 268 | |
| 269 | theorem FrameData.SmoothOn.errorA {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 270 | (h : d.SmoothOn Ω) : ContDiffOn ℝ ∞ d.errorA Ω := by |
| 271 | exact (h.rho.mul (((h.frame 0).inner ℝ h.shear).sub h.rhoDot)).div |
| 272 | (contDiffOn_const.add (h.rho.pow 2)) (fun z _ => by positivity) |
| 273 | |
| 274 | theorem FrameData.SmoothOn.errorB {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 275 | (h : d.SmoothOn Ω) : ContDiffOn ℝ ∞ d.errorB Ω := by |
| 276 | have hn : ContDiffOn ℝ ∞ (fun z => d.frame z 1 0) Ω := |
| 277 | (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 278 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0)).comp_contDiffOn (h.frame 1) |
| 279 | exact (((contDiffOn_const.mul h.F).mul hn).sub (h.rho.mul h.rotation)).div |
| 280 | (contDiffOn_const.add (h.rho.pow 2)) (fun z _ => by positivity) |>.sub |
| 281 | (h.eigenvalue.div h.eigenvector h.eigenvector_ne_zero) |
| 282 | |
| 283 | theorem FrameData.SmoothOn.errorC {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 284 | (h : d.SmoothOn Ω) : ContDiffOn ℝ ∞ d.errorC Ω := by |
| 285 | have hn : ContDiffOn ℝ ∞ (fun z => d.frame z 1 0) Ω := |
| 286 | (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 287 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0)).comp_contDiffOn (h.frame 1) |
| 288 | exact ((((contDiffOn_const.mul h.F).mul hn).add ((h.frame 1).inner ℝ h.shear)).neg.add |
| 289 | (h.rho.mul h.rotation)).sub (h.eigenvalue.mul h.eigenvector) |
| 290 | |
| 291 | theorem FrameData.SmoothOn.modal_errors {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 292 | (h : d.SmoothOn Ω) : |
| 293 | ContDiffOn ℝ ∞ d.error11 Ω ∧ ContDiffOn ℝ ∞ d.error12 Ω ∧ |
| 294 | ContDiffOn ℝ ∞ d.error21 Ω ∧ ContDiffOn ℝ ∞ d.error22 Ω := by |
| 295 | have hb := h.eigenvector.mul h.errorB |
| 296 | have hc := h.errorC.div h.eigenvector h.eigenvector_ne_zero |
| 297 | exact ⟨(((h.errorA.add hb).add hc).sub h.eigenRate).div_const 2, |
| 298 | (((h.errorA.sub hb).add hc).add h.eigenRate).div_const 2, |
| 299 | (((h.errorA.add hb).sub hc).add h.eigenRate).div_const 2, |
| 300 | (((h.errorA.sub hb).sub hc).sub h.eigenRate).div_const 2⟩ |
| 301 | |
| 302 | private theorem modalOperator_expansion (lam damping e11 e12 e21 e22 : ℝ) : |
| 303 | GrowingMode.modalOperator lam damping e11 e12 e21 e22 = |
| 304 | (lam - damping + e11) • GrowingMode.modalOperator 0 0 1 0 0 0 + |
| 305 | e12 • GrowingMode.modalOperator 0 0 0 1 0 0 + |
| 306 | e21 • GrowingMode.modalOperator 0 0 0 0 1 0 + |
| 307 | (-lam - damping + e22) • GrowingMode.modalOperator 0 0 0 0 0 1 := by |
| 308 | ext z i |
| 309 | fin_cases i <;> simp [GrowingMode.modalOperator] |
| 310 | |
| 311 | theorem FrameData.SmoothOn.coefficient {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 312 | (h : d.SmoothOn Ω) (j : ℤ) : ContDiffOn ℝ ∞ (d.coefficient j) Ω := by |
| 313 | rcases h.modal_errors with ⟨h11, h12, h21, h22⟩ |
| 314 | have hd : ContDiffOn ℝ ∞ (d.damping j) Ω := contDiffOn_const.mul h.viscosity |
| 315 | have hh := ((((h.eigenvalue.sub hd).add h11).smul |
| 316 | (contDiffOn_const (c := GrowingMode.modalOperator 0 0 1 0 0 0))).add |
| 317 | (h12.smul (contDiffOn_const (c := GrowingMode.modalOperator 0 0 0 1 0 0))) |>.add |
| 318 | (h21.smul (contDiffOn_const (c := GrowingMode.modalOperator 0 0 0 0 1 0)))).add |
| 319 | (((h.eigenvalue.neg.sub hd).add h22).smul |
| 320 | (contDiffOn_const (c := GrowingMode.modalOperator 0 0 0 0 0 1))) |
| 321 | apply hh.congr |
| 322 | intro z _ |
| 323 | exact modalOperator_expansion _ _ _ _ _ _ |
| 324 | |
| 325 | theorem FrameData.SmoothOn.forcing {d : FrameData Q} {Ω : Set (Q × ℝ)} |
| 326 | (h : d.SmoothOn Ω) {f : Q × ℝ → Space} (hf : ContDiffOn ℝ ∞ f Ω) : |
| 327 | ContDiffOn ℝ ∞ (d.forcing f) Ω := by |
| 328 | have ht := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 329 | MovingFrameODE.tailCLM).comp_contDiffOn hf |
| 330 | have hr := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 331 | (PiLp.proj 2 (fun _ : Fin 3 => ℝ) 0)).comp_contDiffOn hf |
| 332 | have hx : ContDiffOn ℝ ∞ (d.forceX f) Ω := |
| 333 | (hr.sub (h.rho.mul ((h.frame 0).inner ℝ ht))).neg.div |
| 334 | (contDiffOn_const.add (h.rho.pow 2)) (fun z _ => by positivity) |
| 335 | have hy : ContDiffOn ℝ ∞ (d.forceY f) Ω := ((h.frame 1).inner ℝ ht).neg |
| 336 | have hdiv := hy.div h.eigenvector h.eigenvector_ne_zero |
| 337 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) MovingFrameODE.pairCLM).comp_contDiffOn |
| 338 | (((hx.add hdiv).div_const 2).prodMk ((hx.sub hdiv).div_const 2)) |
| 339 | |
| 340 | /-- Jointly smooth physical/frame inputs give an actually constructed smooth |
| 341 | family of modal paths. -/ |
| 342 | theorem solutionPath_contDiffOn {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 343 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 344 | (hd : d.SmoothOn (U ×ˢ V)) (j : ℤ) (x₀ : Q → State) (f : Q × ℝ → Space) |
| 345 | (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) : |
| 346 | ContDiffOn ℝ ∞ (SmoothPathFamily.odeFamily hab (d.coefficient j) x₀ (d.forcing f)) U := |
| 347 | SmoothPathFamily.contDiffOn_odeFamily_of_joint hab U V hU hV hI |
| 348 | (d.coefficient j) x₀ (d.forcing f) (hd.coefficient j) hx₀ (hd.forcing hf) |
| 349 | |
| 350 | end Smooth |
| 351 | |
| 352 | /-- Geometric perturbations of the actual frame produce the four modal error |
| 353 | bounds. The two reference identities are the chosen eigenpair equations. -/ |
| 354 | theorem FrameData.modal_errors_of_geometry {Q : Type} (d : FrameData Q) (z : Q × ℝ) |
| 355 | (B₀ : Frame) (g₀ : State) {F₀ s M η H κ : ℝ} |
| 356 | (hM : 1 ≤ M) (hη : 0 ≤ η) (hH : 0 ≤ H) |
| 357 | (hρ : |d.rho z| ≤ M) (hs : |s| ≤ M) (hF₀ : |F₀| ≤ M) (hg₀ : ‖g₀‖ ≤ M) |
| 358 | (horth : ⟪B₀ 0, g₀⟫_ℝ = 0) |
| 359 | (hF : |d.F z - F₀| ≤ η) (hg : ‖d.shear z - g₀‖ ≤ η) |
| 360 | (hK : ‖d.frame z 0 - B₀ 0‖ ≤ η) (hN : ‖d.frame z 1 - B₀ 1‖ ≤ η) |
| 361 | (hρd : |d.rho z - s| ≤ η) (hρ' : |d.rhoDot z| ≤ η) (hrot : |d.rotation z| ≤ η) |
| 362 | (hpair₁ : d.eigenvalue z / d.eigenvector z = 2 * F₀ * (B₀ 1 0) / (1 + s ^ 2)) |
| 363 | (hpair₂ : d.eigenvalue z * d.eigenvector z = -(2 * F₀ * (B₀ 1 0) + ⟪B₀ 1, g₀⟫_ℝ)) |
| 364 | (hh : |d.eigenvector z| ≤ H) (hhi : |1 / d.eigenvector z| ≤ H) |
| 365 | (hrate : |d.eigenRate z| ≤ κ) : |
| 366 | |d.error11 z| ≤ (1 + 2 * H) * ((16 * M ^ 2 * (1 + M)) * η) + κ ∧ |
| 367 | |d.error12 z| ≤ (1 + 2 * H) * ((16 * M ^ 2 * (1 + M)) * η) + κ ∧ |
| 368 | |d.error21 z| ≤ (1 + 2 * H) * ((16 * M ^ 2 * (1 + M)) * η) + κ ∧ |
| 369 | |d.error22 z| ≤ (1 + 2 * H) * ((16 * M ^ 2 * (1 + M)) * η) + κ := by |
| 370 | obtain ⟨ha, hb, hc⟩ := MovingFrameODE.frame_coefficients_close |
| 371 | hM hη hρ hs hF₀ hg₀ horth hF hg hK hN hρd hρ' hrot |
| 372 | have hb' : |d.errorB z| ≤ (16 * M ^ 2 * (1 + M)) * η := by |
| 373 | simpa only [FrameData.errorB, hpair₁] using hb |
| 374 | have hc' : |d.errorC z| ≤ (16 * M ^ 2 * (1 + M)) * η := by |
| 375 | simpa only [FrameData.errorC, hpair₂] using hc |
| 376 | exact MovingFrameODE.modal_errors_le hH ha hb' hc' hh hhi hrate |
| 377 | |
| 378 | /-- Scalar viscosity keeps the same sign at every nonzero integer harmonic. |
| 379 | The modal energy estimate is derived from entrywise coefficient errors. -/ |
| 380 | theorem FrameData.energy_bound {Q : Type} (d : FrameData Q) (z : Q × ℝ) |
| 381 | {j : ℤ} (hj : j ≠ 0) {referenceDamping C D S : ℝ} |
| 382 | (hlam : 0 ≤ d.eigenvalue z) (hν : 0 ≤ d.viscosity z) |
| 383 | (hνerr : referenceDamping - D / S ≤ d.viscosity z) |
| 384 | (herr : |d.error11 z| ≤ C / S ∧ |d.error12 z| ≤ C / S ∧ |
| 385 | |d.error21 z| ≤ C / S ∧ |d.error22 z| ≤ C / S) (w : State) : |
| 386 | ⟪w, d.coefficient j z w⟫_ℝ ≤ |
| 387 | (d.eigenvalue z - referenceDamping + (D + 4 * C) / S) * ‖w‖ ^ 2 := by |
| 388 | have hd := ViscousPropagator.high_harmonic_damping hj hν hνerr |
| 389 | have he := MovingFrameODE.modal_energy_le hlam (d.damping j z) |
| 390 | herr.1 herr.2.1 herr.2.2.1 herr.2.2.2 w |
| 391 | apply he.trans |
| 392 | apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 393 | change _ - (j : ℝ) ^ 2 * d.viscosity z + _ ≤ _ |
| 394 | rw [show (D + 4 * C) / S = D / S + 4 * (C / S) by ring] |
| 395 | linarith |
| 396 | |
| 397 | section Primary |
| 398 | |
| 399 | variable {Q : Type} [NormedAddCommGroup Q] |
| 400 | variable {a b : ℝ} |
| 401 | |
| 402 | noncomputable def primarySeed (a : ℝ) (P : Q × ℝ → ℝ) (p : Q) : State := !₂[P (p, a), 0] |
| 403 | |
| 404 | noncomputable def primary (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) (p : Q) : ℝ → State := |
| 405 | solution hab d 1 (primarySeed a P) (fun _ => 0) p |
| 406 | |
| 407 | noncomputable def radialPrimary (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) |
| 408 | (p : Q) (v : ℝ) : ℝ := primary hab d P p v 0 + primary hab d P p v 1 |
| 409 | |
| 410 | noncomputable def transversePrimary (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) |
| 411 | (p : Q) (v : ℝ) : ℝ := |
| 412 | d.eigenvector (p, v) * (primary hab d P p v 0 - primary hab d P p v 1) |
| 413 | |
| 414 | omit [NormedAddCommGroup Q] in |
| 415 | theorem primary_initial (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) (p : Q) : |
| 416 | primary hab d P p a = !₂[P (p, a), 0] := solution_initial _ _ _ _ _ _ |
| 417 | |
| 418 | theorem primary_hasDerivAt (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) |
| 419 | {U : Set Q} (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc a b)) |
| 420 | {p : Q} (hp : p ∈ U) {v : ℝ} (hv : v ∈ Icc a b) : |
| 421 | HasDerivAt (primary hab d P p) |
| 422 | (d.coefficient 1 (p, v) (primary hab d P p v)) v := by |
| 423 | have hf : ContinuousOn (d.forcing (fun _ => 0)) (U ×ˢ Icc a b) := by |
| 424 | simpa only [FrameData.forcing_zero_function] using |
| 425 | (continuousOn_const : ContinuousOn (fun _ : Q × ℝ => (0 : State)) (U ×ˢ Icc a b)) |
| 426 | unfold primary |
| 427 | simpa only [FrameData.forcing_zero, add_zero] using |
| 428 | solution_hasDerivAt hab d 1 (primarySeed a P) (fun _ => 0) hA hf hp hv |
| 429 | |
| 430 | /-- The actual constructed real primary has positive radial component, |
| 431 | two-sided reference-envelope comparison, and a small eigenvector ratio error. |
| 432 | Only coefficient estimates and the scalar reference equation are inputs. -/ |
| 433 | theorem primary_bounds (hab : a ≤ b) (d : FrameData Q) (P : Q × ℝ → ℝ) |
| 434 | {U : Set Q} (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc a b)) |
| 435 | {p : Q} (hp : p ∈ U) {S C D L lammin : ℝ} |
| 436 | (hlammin : 0 < lammin) (hC : 0 ≤ C) (hD : 0 ≤ D) (hS : 0 < S) |
| 437 | (hlarge : 2 * GrowingMode.coneConstant lammin C ≤ S) (hslot : b - a ≤ L * S) |
| 438 | (referenceDamping : ℝ → ℝ) |
| 439 | (hlam : ∀ v ∈ Icc a b, lammin ≤ d.eigenvalue (p, v)) |
| 440 | (herr : ∀ v ∈ Icc a b, |
| 441 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 442 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) |
| 443 | (hν : ∀ v ∈ Icc a b, |d.viscosity (p, v) - referenceDamping v| ≤ D / S) |
| 444 | (hPpos : ∀ v ∈ Icc a b, 0 < P (p, v)) |
| 445 | (hP : ∀ v ∈ Icc a b, HasDerivAt (fun t => P (p, t)) |
| 446 | ((d.eigenvalue (p, v) - referenceDamping v) * P (p, v)) v) : |
| 447 | ∀ v ∈ Icc a b, |
| 448 | 0 < radialPrimary hab d P p v ∧ |
| 449 | (Real.exp (-(D + 2 * C) * L) / 2) * P (p, v) ≤ radialPrimary hab d P p v ∧ |
| 450 | radialPrimary hab d P p v ≤ (3 * Real.exp ((D + 2 * C) * L) / 2) * P (p, v) ∧ |
| 451 | |transversePrimary hab d P p v / radialPrimary hab d P p v - d.eigenvector (p, v)| ≤ |
| 452 | 4 * |d.eigenvector (p, v)| * (GrowingMode.coneConstant lammin C / S) := by |
| 453 | have hAslice : ContinuousOn (fun v => d.coefficient 1 (p, v)) (Icc a b) := |
| 454 | hA.comp (continuous_const.prodMk continuous_id).continuousOn (fun v hv => ⟨hp, hv⟩) |
| 455 | have hAi : ContinuousOn (fun v => GrowingMode.modalOperator (d.eigenvalue (p, v)) |
| 456 | (d.viscosity (p, v)) (d.error11 (p, v)) (d.error12 (p, v)) |
| 457 | (d.error21 (p, v)) (d.error22 (p, v))) (Icc a b) := by |
| 458 | simpa only [FrameData.coefficient, FrameData.damping_one] using hAslice |
| 459 | have hode (v : ℝ) (hv : v ∈ Icc a b) := primary_hasDerivAt hab d P hA hp hv |
| 460 | simp only [FrameData.coefficient, FrameData.damping_one] at hode |
| 461 | have hplus : 0 < primary hab d P p a 0 := by |
| 462 | rw [primary_initial] |
| 463 | exact hPpos a ⟨le_rfl, hab⟩ |
| 464 | have hminus : primary hab d P p a 1 = 0 := by rw [primary_initial]; rfl |
| 465 | have hm := GrowingMode.scaled_growing_mode_bounds hab hlammin hC hD hS hlarge hslot |
| 466 | (fun v => d.eigenvalue (p, v)) (fun v => d.viscosity (p, v)) referenceDamping |
| 467 | (fun v => d.error11 (p, v)) (fun v => d.error12 (p, v)) |
| 468 | (fun v => d.error21 (p, v)) (fun v => d.error22 (p, v)) |
| 469 | (fun v => P (p, v)) hAi hode hlam herr hν hPpos hP hplus hminus |
| 470 | have hratio : primary hab d P p a 0 / P (p, a) = 1 := by |
| 471 | rw [primary_initial] |
| 472 | exact div_self (hPpos a ⟨le_rfl, hab⟩).ne' |
| 473 | simp only [hratio, mul_one] at hm |
| 474 | obtain ⟨hr, hrhalf, _⟩ := GrowingMode.scaled_cone_conditions hlammin hC hS hlarge |
| 475 | intro v hv |
| 476 | obtain ⟨hzpos, hzcone, hzlo, hzhi⟩ := hm v hv |
| 477 | obtain ⟨hxlo, hxhi, hxratio⟩ := GrowingMode.original_coordinate_bounds |
| 478 | (h := d.eigenvector (p, v)) hzpos hr.le hrhalf hzcone |
| 479 | refine ⟨?_, ?_, ?_, hxratio⟩ |
| 480 | · change 0 < primary hab d P p v 0 + primary hab d P p v 1 |
| 481 | linarith |
| 482 | · change _ ≤ primary hab d P p v 0 + primary hab d P p v 1 |
| 483 | nlinarith |
| 484 | · change primary hab d P p v 0 + primary hab d P p v 1 ≤ _ |
| 485 | nlinarith |
| 486 | |
| 487 | end Primary |
| 488 | |
| 489 | section Forward |
| 490 | |
| 491 | variable {Q : Type} [NormedAddCommGroup Q] |
| 492 | variable {a b : ℝ} |
| 493 | |
| 494 | theorem solution_forward_bound (hab : a ≤ b) (d : FrameData Q) {j : ℤ} (hj : j ≠ 0) |
| 495 | (x₀ : Q → State) (f : Q × ℝ → Space) {U : Set Q} |
| 496 | (hA : ContinuousOn (d.coefficient j) (U ×ˢ Icc a b)) |
| 497 | (hf : ContinuousOn (d.forcing f) (U ×ˢ Icc a b)) |
| 498 | {p : Q} (hp : p ∈ U) (referenceDamping rate P : ℝ → ℝ) |
| 499 | {S C D : ℝ} (hS : 0 < S) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 500 | (hPpos : ∀ v, 0 < P v) (hP : ∀ v, HasDerivAt P (rate v * P v) v) |
| 501 | (hreference : ∀ v ∈ Icc a b, rate v = d.eigenvalue (p, v) - referenceDamping v) |
| 502 | (hlam : ∀ v ∈ Icc a b, 0 ≤ d.eigenvalue (p, v)) |
| 503 | (hν : ∀ v ∈ Icc a b, 0 ≤ d.viscosity (p, v)) |
| 504 | (hνerr : ∀ v ∈ Icc a b, referenceDamping v - D / S ≤ d.viscosity (p, v)) |
| 505 | (herr : ∀ v ∈ Icc a b, |
| 506 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 507 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) : |
| 508 | ∀ v ∈ Icc a b, ‖solution hab d j x₀ f p v‖ ≤ |
| 509 | Real.exp (((D + 4 * C) / S) * (v - a)) * P v * |
| 510 | (‖x₀ p‖ / P a + ∫ s in a..v, ‖d.forcing f (p, s)‖ / P s) := by |
| 511 | have hode (v : ℝ) (hv : v ∈ Icc a b) := solution_hasDerivAt hab d j x₀ f hA hf hp hv |
| 512 | have hu : ContinuousOn (solution hab d j x₀ f p) (Icc a b) := |
| 513 | fun v hv => (hode v hv).continuousAt.continuousWithinAt |
| 514 | have hforce : ContinuousOn (fun v => d.forcing f (p, v)) (Icc a b) := |
| 515 | hf.comp (continuous_const.prodMk continuous_id).continuousOn (fun v hv => ⟨hp, hv⟩) |
| 516 | have he (v : ℝ) (hv : v ∈ Ico a b) (w : State) : |
| 517 | ⟪w, d.coefficient j (p, v) w⟫_ℝ ≤ (rate v + (D + 4 * C) / S) * ‖w‖ ^ 2 := by |
| 518 | have hv' := Ico_subset_Icc_self hv |
| 519 | rw [hreference v hv'] |
| 520 | exact d.energy_bound (p, v) hj (hlam v hv') (hν v hv') (hνerr v hv') (herr v hv') w |
| 521 | have hbnd := ViscousPropagator.norm_le_envelope_mul_integral_on |
| 522 | (fun v => d.coefficient j (p, v)) rate P (div_nonneg (by positivity) hS.le) |
| 523 | hPpos hP hu hforce (fun v hv => (hode v (Ico_subset_Icc_self hv)).hasDerivWithinAt) he |
| 524 | simpa only [solution_initial] using hbnd |
| 525 | |
| 526 | /-- The same forward propagator constant applies to every nonzero harmonic. |
| 527 | The start of the finite interval may be any earlier slot time. -/ |
| 528 | theorem homogeneous_forward_bound (hab : a ≤ b) (d : FrameData Q) {j : ℤ} (hj : j ≠ 0) |
| 529 | (x₀ : Q → State) {U : Set Q} |
| 530 | (hA : ContinuousOn (d.coefficient j) (U ×ˢ Icc a b)) |
| 531 | {p : Q} (hp : p ∈ U) (referenceDamping rate P : ℝ → ℝ) |
| 532 | {S C D L : ℝ} (hS : 0 < S) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 533 | (hslot : b - a ≤ L * S) |
| 534 | (hPpos : ∀ v, 0 < P v) (hP : ∀ v, HasDerivAt P (rate v * P v) v) |
| 535 | (hreference : ∀ v ∈ Icc a b, rate v = d.eigenvalue (p, v) - referenceDamping v) |
| 536 | (hlam : ∀ v ∈ Icc a b, 0 ≤ d.eigenvalue (p, v)) |
| 537 | (hν : ∀ v ∈ Icc a b, 0 ≤ d.viscosity (p, v)) |
| 538 | (hνerr : ∀ v ∈ Icc a b, referenceDamping v - D / S ≤ d.viscosity (p, v)) |
| 539 | (herr : ∀ v ∈ Icc a b, |
| 540 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 541 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) : |
| 542 | ∀ v ∈ Icc a b, ‖solution hab d j x₀ (fun _ => 0) p v‖ ≤ |
| 543 | Real.exp ((D + 4 * C) * L) * (P v / P a) * ‖x₀ p‖ := by |
| 544 | have hf : ContinuousOn (d.forcing (fun _ => 0)) (U ×ˢ Icc a b) := by |
| 545 | rw [FrameData.forcing_zero_function] |
| 546 | exact continuousOn_const |
| 547 | have hbnd := solution_forward_bound hab d hj x₀ (fun _ => 0) hA hf hp referenceDamping rate P |
| 548 | hS hC hD hPpos hP hreference hlam hν hνerr herr |
| 549 | simp only [FrameData.forcing_zero, norm_zero, zero_div, intervalIntegral.integral_zero, add_zero] at hbnd |
| 550 | intro v hv |
| 551 | have hexp : Real.exp (((D + 4 * C) / S) * (v - a)) ≤ Real.exp ((D + 4 * C) * L) := by |
| 552 | apply Real.exp_le_exp.mpr |
| 553 | have hfactor : ((D + 4 * C) / S) * (L * S) = (D + 4 * C) * L := by |
| 554 | field_simp |
| 555 | rw [← hfactor] |
| 556 | exact mul_le_mul_of_nonneg_left ((sub_le_sub_right hv.2 a).trans hslot) |
| 557 | (div_nonneg (by positivity) hS.le) |
| 558 | calc |
| 559 | _ ≤ Real.exp (((D + 4 * C) / S) * (v - a)) * P v * (‖x₀ p‖ / P a) := hbnd v hv |
| 560 | _ ≤ Real.exp ((D + 4 * C) * L) * P v * (‖x₀ p‖ / P a) := |
| 561 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hexp (hPpos v).le) |
| 562 | (div_nonneg (norm_nonneg _) (hPpos a).le) |
| 563 | _ = _ := by ring |
| 564 | |
| 565 | /-- Zero-initial source solves are constructed by the same operator, and retain |
| 566 | every prescribed small amplitude factor in the source bound. -/ |
| 567 | theorem zero_initial_source_bound (hab : a ≤ b) (d : FrameData Q) {j : ℤ} (hj : j ≠ 0) |
| 568 | (f : Q × ℝ → Space) {U : Set Q} |
| 569 | (hA : ContinuousOn (d.coefficient j) (U ×ˢ Icc a b)) |
| 570 | (hf : ContinuousOn (d.forcing f) (U ×ˢ Icc a b)) |
| 571 | {p : Q} (hp : p ∈ U) (referenceDamping rate P : ℝ → ℝ) |
| 572 | {S C D K : ℝ} (hS : 0 < S) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 573 | (hPpos : ∀ v, 0 < P v) (hP : ∀ v, HasDerivAt P (rate v * P v) v) |
| 574 | (hreference : ∀ v ∈ Icc a b, rate v = d.eigenvalue (p, v) - referenceDamping v) |
| 575 | (hlam : ∀ v ∈ Icc a b, 0 ≤ d.eigenvalue (p, v)) |
| 576 | (hν : ∀ v ∈ Icc a b, 0 ≤ d.viscosity (p, v)) |
| 577 | (hνerr : ∀ v ∈ Icc a b, referenceDamping v - D / S ≤ d.viscosity (p, v)) |
| 578 | (herr : ∀ v ∈ Icc a b, |
| 579 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 580 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) |
| 581 | (hsource : ∀ v ∈ Icc a b, ‖d.forcing f (p, v)‖ ≤ K * P v) : |
| 582 | ∀ v ∈ Icc a b, ‖solution hab d j (fun _ => 0) f p v‖ ≤ |
| 583 | Real.exp (((D + 4 * C) / S) * (v - a)) * P v * (K * (v - a)) := by |
| 584 | have hode (v : ℝ) (hv : v ∈ Icc a b) := solution_hasDerivAt hab d j (fun _ => 0) f hA hf hp hv |
| 585 | apply ViscousPropagator.zero_initial_source_bound (fun v => d.coefficient j (p, v)) rate P |
| 586 | (div_nonneg (by positivity) hS.le) hPpos hP |
| 587 | (fun v hv => (hode v hv).continuousAt.continuousWithinAt) |
| 588 | (hf.comp (continuous_const.prodMk continuous_id).continuousOn (fun v hv => ⟨hp, hv⟩)) |
| 589 | (fun v hv => (hode v (Ico_subset_Icc_self hv)).hasDerivWithinAt) |
| 590 | _ (solution_initial hab d j (fun _ => 0) f p) hsource |
| 591 | intro v hv w |
| 592 | have hv' := Ico_subset_Icc_self hv |
| 593 | rw [hreference v hv'] |
| 594 | exact d.energy_bound (p, v) hj (hlam v hv') (hν v hv') (hνerr v hv') (herr v hv') w |
| 595 | |
| 596 | end Forward |
| 597 | |
| 598 | section PhaseFrame |
| 599 | |
| 600 | variable {Q : Type} |
| 601 | |
| 602 | /-- Build the actual frame from a supplied phase covector. All frame rates |
| 603 | are computed from its supplied derivative; viscosity is the physical scalar |
| 604 | multiple of the squared phase norm. -/ |
| 605 | noncomputable def FrameData.ofNormal (n nDot : Q × ℝ → Space) |
| 606 | (hne : ∀ z, MovingFrameODE.tail (n z) ≠ 0) |
| 607 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 608 | (lam h hRate viscosityScale : Q × ℝ → ℝ) : FrameData Q where |
| 609 | beta z := MovingFrameODE.normalScale (n z) |
| 610 | betaDot z := PhaseEstimates.scaleDerivative (n z) (nDot z) |
| 611 | rho z := MovingFrameODE.radialSlope (n z) |
| 612 | rhoDot z := PhaseEstimates.slopeDerivative (n z) (nDot z) |
| 613 | rotation z := PhaseEstimates.angularVelocity (n z) (nDot z) |
| 614 | F := F |
| 615 | shear := g |
| 616 | frame z := MovingFrameODE.normalFrame (n z) (hne z) |
| 617 | eigenvalue := lam |
| 618 | eigenvector := h |
| 619 | eigenRate := hRate |
| 620 | viscosity z := viscosityScale z * ‖n z‖ ^ 2 |
| 621 | |
| 622 | theorem FrameData.ofNormal_normal (n nDot : Q × ℝ → Space) |
| 623 | (hne : ∀ z, MovingFrameODE.tail (n z) ≠ 0) |
| 624 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 625 | (lam h hRate viscosityScale : Q × ℝ → ℝ) (z : Q × ℝ) : |
| 626 | (FrameData.ofNormal n nDot hne F g lam h hRate viscosityScale).normal z = n z := |
| 627 | MovingFrameODE.normal_reconstructed (hne z) |
| 628 | |
| 629 | theorem FrameData.ofNormal_kinematics (n nDot : Q × ℝ → Space) |
| 630 | (hne : ∀ z, MovingFrameODE.tail (n z) ≠ 0) |
| 631 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 632 | (lam h hRate viscosityScale : Q × ℝ → ℝ) (p : Q) (I : Set ℝ) |
| 633 | (hn : ∀ v ∈ I, HasDerivAt (fun t => n (p, t)) (nDot (p, v)) v) |
| 634 | (hh : ∀ v ∈ I, h (p, v) ≠ 0) |
| 635 | (hdh : ∀ v ∈ I, HasDerivAt (fun t => h (p, t)) (hRate (p, v) * h (p, v)) v) : |
| 636 | (FrameData.ofNormal n nDot hne F g lam h hRate viscosityScale).Kinematics p I := by |
| 637 | refine ⟨fun v _ => (MovingFrameODE.normalScale_pos (hne (p, v))).ne', hh, |
| 638 | ?_, ?_, hdh, ?_, ?_⟩ |
| 639 | · intro v hv |
| 640 | exact PhaseEstimates.hasDerivAt_normalScale (hn v hv) (hne (p, v)) |
| 641 | · intro v hv |
| 642 | exact PhaseEstimates.hasDerivAt_radialSlope (hn v hv) (hne (p, v)) |
| 643 | · intro v hv |
| 644 | simpa only [FrameData.ofNormal, MovingFrameODE.normalFrame_zero, |
| 645 | MovingFrameODE.normalFrame_one] using |
| 646 | (PhaseEstimates.hasDerivAt_actual_frame (hn v hv) (hne (p, v))).1 |
| 647 | · intro v hv |
| 648 | simpa only [FrameData.ofNormal, MovingFrameODE.normalFrame_zero, |
| 649 | MovingFrameODE.normalFrame_one] using |
| 650 | (PhaseEstimates.hasDerivAt_actual_frame (hn v hv) (hne (p, v))).2 |
| 651 | |
| 652 | theorem FrameData.Kinematics.normal_hasDerivAt {d : FrameData Q} {p : Q} {I : Set ℝ} |
| 653 | (hk : d.Kinematics p I) {v : ℝ} (hv : v ∈ I) : |
| 654 | HasDerivAt (fun t => d.normal (p, t)) (d.normalMotion (p, v)) v := |
| 655 | MovingFrameODE.hasDerivAt_normal (hk.beta_deriv v hv) (hk.rho_deriv v hv) (hk.frameK_deriv v hv) |
| 656 | |
| 657 | theorem FrameData.ofNormal_normalMotion (n nDot : Q × ℝ → Space) |
| 658 | (hne : ∀ z, MovingFrameODE.tail (n z) ≠ 0) |
| 659 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 660 | (lam h hRate viscosityScale : Q × ℝ → ℝ) {p : Q} {v : ℝ} |
| 661 | (hn : HasDerivAt (fun t => n (p, t)) (nDot (p, v)) v) : |
| 662 | (FrameData.ofNormal n nDot hne F g lam h hRate viscosityScale).normalMotion (p, v) = nDot (p, v) := by |
| 663 | have hbeta := PhaseEstimates.hasDerivAt_normalScale hn (hne (p, v)) |
| 664 | have hrho := PhaseEstimates.hasDerivAt_radialSlope hn (hne (p, v)) |
| 665 | have hK : HasDerivAt (fun t => MovingFrameODE.normalFrame (n (p, t)) (hne (p, t)) 0) |
| 666 | (PhaseEstimates.angularVelocity (n (p, v)) (nDot (p, v)) • |
| 667 | MovingFrameODE.normalFrame (n (p, v)) (hne (p, v)) 1) v := by |
| 668 | simpa only [MovingFrameODE.normalFrame_zero, MovingFrameODE.normalFrame_one] using |
| 669 | (PhaseEstimates.hasDerivAt_actual_frame hn (hne (p, v))).1 |
| 670 | have hd := MovingFrameODE.hasDerivAt_normal hbeta hrho hK |
| 671 | have heq : (fun t => MovingFrameODE.normal (MovingFrameODE.normalScale (n (p, t))) |
| 672 | (MovingFrameODE.radialSlope (n (p, t))) (MovingFrameODE.normalFrame (n (p, t)) (hne (p, t)))) = |
| 673 | (fun t => n (p, t)) := by |
| 674 | funext t |
| 675 | exact MovingFrameODE.normal_reconstructed (hne (p, t)) |
| 676 | rw [heq] at hd |
| 677 | exact hd.unique hn |
| 678 | |
| 679 | end PhaseFrame |
| 680 | |
| 681 | section ParameterJets |
| 682 | |
| 683 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 684 | |
| 685 | /-- Full ordinary Fréchet jets of the same constructed solution. All numerical |
| 686 | jet assumptions concern explicitly defined coefficients, initial data and |
| 687 | forcing; the output jet bound is derived by the triangular variational ODE. -/ |
| 688 | theorem norm_iteratedFDeriv_solution_le_polynomial {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 689 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 690 | (hd : d.SmoothOn (U ×ˢ V)) {j : ℤ} (hj : j ≠ 0) |
| 691 | (x₀ : Q → State) (f : Q × ℝ → Space) |
| 692 | (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) |
| 693 | {p : Q} (hp : p ∈ U) (referenceDamping rate W : ℝ → ℝ) |
| 694 | {S C D K w : ℝ} (hS : 1 ≤ S) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 695 | (hK : 1 ≤ K) (hw : 0 ≤ w) |
| 696 | (hW : ∀ v, 0 < W v) (hdW : ∀ v, HasDerivAt W (rate v * W v) v) |
| 697 | (hreference : ∀ v ∈ Icc a b, rate v = d.eigenvalue (p, v) - referenceDamping v) |
| 698 | (hlam : ∀ v ∈ Icc a b, 0 ≤ d.eigenvalue (p, v)) |
| 699 | (hν : ∀ v ∈ Icc a b, 0 ≤ d.viscosity (p, v)) |
| 700 | (hνerr : ∀ v ∈ Icc a b, referenceDamping v - D / S ≤ d.viscosity (p, v)) |
| 701 | (herr : ∀ v ∈ Icc a b, |
| 702 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 703 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) |
| 704 | (hExp : Real.exp (((D + 4 * C) / S) * (b - a)) ≤ K) (hslot : b - a ≤ K * S) |
| 705 | (m N : ℕ) |
| 706 | (hAj : ∀ k : ℕ, k ≤ N → ∀ v : Icc a b, |
| 707 | ‖iteratedFDeriv ℝ k (fun q => d.coefficient j (q, v)) p‖ ≤ K * S ^ m) |
| 708 | (hxj : ∀ k : ℕ, k ≤ N → ‖iteratedFDeriv ℝ k x₀ p‖ ≤ w * K * S ^ m * W a) |
| 709 | (hfj : ∀ k : ℕ, k ≤ N → ∀ v : Icc a b, |
| 710 | ‖iteratedFDeriv ℝ k (fun q => d.forcing f (q, v)) p‖ ≤ w * K * S ^ m * W v) |
| 711 | (n : ℕ) (hn : n ≤ N) (v : Icc a b) : |
| 712 | ‖iteratedFDeriv ℝ n (fun q => solution hab d j x₀ f q v) p‖ ≤ |
| 713 | w * ((2 : ℝ) ^ (N + 1) * K ^ 3) ^ (n + 1) * S ^ ((m + 1) * (n + 1)) * W v := by |
| 714 | have heq : (fun q => solution hab d j x₀ f q v) = |
| 715 | (fun q => SmoothPathFamily.odeFamily hab (d.coefficient j) x₀ (d.forcing f) q v) := by |
| 716 | funext q |
| 717 | exact extendedFamily_eq_path _ _ _ _ _ _ |
| 718 | rw [heq] |
| 719 | apply WeightedODEJets.norm_iteratedFDeriv_odeFamily_le_polynomial hab U V hU hV hI |
| 720 | (d.coefficient j) x₀ (d.forcing f) (hd.coefficient j) hx₀ (hd.forcing hf) hp |
| 721 | rate W (div_nonneg (by positivity) (zero_le_one.trans hS)) hW hdW |
| 722 | _ hExp hS hK hw hslot m N hAj hxj hfj n hn v |
| 723 | intro t z |
| 724 | rw [hreference t t.2] |
| 725 | exact d.energy_bound (p, t) hj (hlam t t.2) (hν t t.2) (hνerr t t.2) (herr t t.2) z |
| 726 | |
| 727 | end ParameterJets |
| 728 | |
| 729 | noncomputable def referenceProfile (c₀ u ell v : ℝ) : ℝ := |
| 730 | c₀ * Real.sqrt (1 + PulseGrowth.slotMagnitude u ell v ^ 2) |
| 731 | |
| 732 | noncomputable def referenceProfileRate (u ell v : ℝ) : ℝ := |
| 733 | PulseGrowth.slotMagnitude u ell v * (u / ell) / |
| 734 | (1 + PulseGrowth.slotMagnitude u ell v ^ 2) |
| 735 | |
| 736 | theorem hasDerivAt_referenceProfile (c₀ u ell v : ℝ) : |
| 737 | HasDerivAt (referenceProfile c₀ u ell) |
| 738 | (referenceProfileRate u ell v * referenceProfile c₀ u ell v) v := by |
| 739 | have hs : HasDerivAt (PulseGrowth.slotMagnitude u ell) (u / ell) v := by |
| 740 | unfold PulseGrowth.slotMagnitude |
| 741 | simpa only [id_eq, mul_one] using |
| 742 | (((hasDerivAt_id v).const_mul u).div_const ell).const_add (u / 2) |
| 743 | have hr := ((hs.fun_pow 2).const_add 1).sqrt (by positivity) |
| 744 | convert! hr.const_mul c₀ using 1 |
| 745 | unfold referenceProfileRate referenceProfile |
| 746 | have hp := PulseGrowth.radius_pos (PulseGrowth.slotMagnitude u ell v) |
| 747 | have hsq := Real.sq_sqrt (PulseGrowth.one_add_sq_pos (PulseGrowth.slotMagnitude u ell v)).le |
| 748 | simp only [Nat.cast_ofNat, Nat.reduceSub, pow_one] |
| 749 | generalize u / ell = q |
| 750 | field_simp [hp.ne', (PulseGrowth.one_add_sq_pos (PulseGrowth.slotMagnitude u ell v)).ne'] |
| 751 | nlinarith only [congrArg (fun z : ℝ => c₀ * PulseGrowth.slotMagnitude u ell v * q * z) hsq] |
| 752 | |
| 753 | theorem referenceProfile_ne_zero {c₀ : ℝ} (hc₀ : c₀ ≠ 0) (u ell v : ℝ) : |
| 754 | referenceProfile c₀ u ell v ≠ 0 := |
| 755 | mul_ne_zero hc₀ (PulseGrowth.radius_pos _).ne' |
| 756 | |
| 757 | theorem referenceEigenvalue_lower {lam u ell v : ℝ} (hlam : 0 < lam) (hu : 0 ≤ u) |
| 758 | (hell : 0 < ell) (hv : v ∈ Icc 0 ell) : |
| 759 | lam / Real.sqrt (1 + (3 * u / 2) ^ 2) ≤ ViscousPropagator.referenceEigenvalue lam u ell v := by |
| 760 | have hs := GaussianEnvelope.slotMagnitude_mem_interval hu hell hv |
| 761 | have hs0 := PulseGrowth.slotMagnitude_nonneg hu hell hv.1 |
| 762 | apply div_le_div_of_nonneg_left hlam.le (PulseGrowth.radius_pos _) |
| 763 | apply Real.sqrt_le_sqrt |
| 764 | nlinarith [hs.2] |
| 765 | |
| 766 | noncomputable def referenceEnvelope {Q : Type} (lam u : Q → ℝ) (ell : ℝ) (z : Q × ℝ) : ℝ := |
| 767 | GaussianEnvelope.envelope (GaussianEnvelope.referenceRate (lam z.1) (u z.1) ell) |
| 768 | (ell / 2) z.2 |
| 769 | |
| 770 | section GaussianPrimary |
| 771 | |
| 772 | variable {Q : Type} [NormedAddCommGroup Q] |
| 773 | |
| 774 | /-- The actual primary is bounded above and below by the manuscript's Gaussian |
| 775 | envelopes. The reference scalar equation and spectral gap are derived here |
| 776 | from the displayed reference rate; they are not assumptions about a solution. -/ |
| 777 | theorem primary_gaussian_bounds {ell : ℝ} (hell : 0 < ell) (d : FrameData Q) |
| 778 | (lam u c₀ : Q → ℝ) {U : Set Q} |
| 779 | (hA : ContinuousOn (d.coefficient 1) (U ×ˢ Icc 0 ell)) |
| 780 | {p : Q} (hp : p ∈ U) (hlam : 0 < lam p) (hu : 0 < u p) |
| 781 | {S C D L : ℝ} (hC : 0 ≤ C) (hD : 0 ≤ D) (hS : 0 < S) |
| 782 | (hlarge : 2 * GrowingMode.coneConstant |
| 783 | (lam p / Real.sqrt (1 + (3 * u p / 2) ^ 2)) C ≤ S) |
| 784 | (hslot : ell ≤ L * S) |
| 785 | (heigen : ∀ v ∈ Icc 0 ell, |
| 786 | d.eigenvalue (p, v) = ViscousPropagator.referenceEigenvalue (lam p) (u p) ell v) |
| 787 | (hprofile : ∀ v ∈ Icc 0 ell, d.eigenvector (p, v) = referenceProfile (c₀ p) (u p) ell v) |
| 788 | (herr : ∀ v ∈ Icc 0 ell, |
| 789 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 790 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) |
| 791 | (hν : ∀ v ∈ Icc 0 ell, |
| 792 | |d.viscosity (p, v) - ViscousPropagator.referenceViscosity (lam p) (u p) ell v| ≤ D / S) : |
| 793 | ∃ b B : ℝ, 0 < b ∧ 0 < B ∧ ∀ v ∈ Icc 0 ell, |
| 794 | 0 < radialPrimary hell.le d (referenceEnvelope lam u ell) p v ∧ |
| 795 | (Real.exp (-(D + 2 * C) * L) / 2) * Real.exp (-B * (v - ell / 2) ^ 2 / ell) ≤ |
| 796 | radialPrimary hell.le d (referenceEnvelope lam u ell) p v ∧ |
| 797 | radialPrimary hell.le d (referenceEnvelope lam u ell) p v ≤ |
| 798 | (3 * Real.exp ((D + 2 * C) * L) / 2) * Real.exp (-b * (v - ell / 2) ^ 2 / ell) ∧ |
| 799 | |transversePrimary hell.le d (referenceEnvelope lam u ell) p v / |
| 800 | radialPrimary hell.le d (referenceEnvelope lam u ell) p v - referenceProfile (c₀ p) (u p) ell v| ≤ |
| 801 | 4 * |referenceProfile (c₀ p) (u p) ell v| * |
| 802 | (GrowingMode.coneConstant (lam p / Real.sqrt (1 + (3 * u p / 2) ^ 2)) C / S) := by |
| 803 | have hgap : 0 < lam p / Real.sqrt (1 + (3 * u p / 2) ^ 2) := |
| 804 | div_pos hlam (PulseGrowth.radius_pos _) |
| 805 | have hPpos (v : ℝ) (_ : v ∈ Icc 0 ell) : 0 < referenceEnvelope lam u ell (p, v) := |
| 806 | GaussianEnvelope.envelope_pos _ _ _ |
| 807 | have hdP (v : ℝ) (hv : v ∈ Icc 0 ell) : |
| 808 | HasDerivAt (fun t => referenceEnvelope lam u ell (p, t)) |
| 809 | ((d.eigenvalue (p, v) - ViscousPropagator.referenceViscosity (lam p) (u p) ell v) * |
| 810 | referenceEnvelope lam u ell (p, v)) v := by |
| 811 | rw [heigen v hv] |
| 812 | exact ViscousPropagator.hasDerivAt_envelope |
| 813 | (ViscousPropagator.continuous_referenceRate (lam p) (u p) ell) (ell / 2) v |
| 814 | have hbnd := primary_bounds hell.le d (referenceEnvelope lam u ell) hA hp |
| 815 | hgap hC hD hS hlarge (by simpa only [sub_zero] using hslot) |
| 816 | (ViscousPropagator.referenceViscosity (lam p) (u p) ell) |
| 817 | (fun v hv => (heigen v hv).symm ▸ referenceEigenvalue_lower hlam hu.le hell hv) |
| 818 | herr hν hPpos hdP |
| 819 | obtain ⟨b, B, hb, hB, hg⟩ := GaussianEnvelope.reference_uniform_gaussian_bounds hlam hu |
| 820 | refine ⟨b, B, hb, hB, ?_⟩ |
| 821 | intro v hv |
| 822 | obtain ⟨hpos, hlo, hhi, hrat⟩ := hbnd v hv |
| 823 | have hgauss := hg ell hell v hv |
| 824 | refine ⟨hpos, ?_, ?_, ?_⟩ |
| 825 | · exact (mul_le_mul_of_nonneg_left hgauss.1 (by positivity)).trans hlo |
| 826 | · exact hhi.trans (mul_le_mul_of_nonneg_left hgauss.2 (by positivity)) |
| 827 | · simpa only [hprofile v hv] using hrat |
| 828 | |
| 829 | end GaussianPrimary |
| 830 | |
| 831 | section SmoothPrimary |
| 832 | |
| 833 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 834 | |
| 835 | /-- Smoothness of the actual initial envelope, proved using integration as a |
| 836 | bounded linear map on the fixed compact time interval. -/ |
| 837 | theorem initialEnvelope_contDiffOn {a b : ℝ} (hab : a ≤ b) |
| 838 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 839 | (rate : Q × ℝ → ℝ) (hrate : ContDiffOn ℝ ∞ rate (U ×ˢ V)) (midpoint : Icc a b) : |
| 840 | ContDiffOn ℝ ∞ |
| 841 | (fun p => GaussianEnvelope.envelope (fun t => rate (p, t)) midpoint a) U := by |
| 842 | let T : C(Icc a b, ℝ) →L[ℝ] ℝ := |
| 843 | (ContinuousMap.evalCLM ℝ midpoint).comp (ParametricODE.integrator hab) |
| 844 | have hpath := SmoothPathFamily.contDiffOn_pathFamily_of_joint U V hU hV hI rate hrate |
| 845 | have hc := ((ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) T).comp_contDiffOn hpath).neg.exp |
| 846 | apply hc.congr |
| 847 | intro p hp |
| 848 | have hslice := SmoothPathFamily.slice_continuous |
| 849 | (hrate.continuousOn.mono (Set.prod_mono Subset.rfl hI)) hp |
| 850 | have hint : (∫ s in a..(midpoint : ℝ), |
| 851 | ParametricODE.extend hab (SmoothPathFamily.pathFamily rate p) s) = |
| 852 | ∫ s in a..(midpoint : ℝ), rate (p, s) := by |
| 853 | apply intervalIntegral.integral_congr |
| 854 | intro s hs |
| 855 | rw [uIcc_of_le midpoint.2.1] at hs |
| 856 | have hs' : s ∈ Icc a b := ⟨hs.1, hs.2.trans midpoint.2.2⟩ |
| 857 | rw [ParametricODE.extend, projIcc_of_mem hab hs'] |
| 858 | exact SmoothPathFamily.pathFamily_apply rate p hslice ⟨s, hs'⟩ |
| 859 | change Real.exp (∫ s in (midpoint : ℝ)..a, rate (p, s)) = |
| 860 | Real.exp (-(∫ s in a..(midpoint : ℝ), |
| 861 | ParametricODE.extend hab (SmoothPathFamily.pathFamily rate p) s)) |
| 862 | rw [hint, intervalIntegral.integral_symm] |
| 863 | |
| 864 | theorem referenceRate_contDiffOn {U : Set Q} (V : Set ℝ) |
| 865 | (lam u : Q → ℝ) (ell : ℝ) (hlam : ContDiffOn ℝ ∞ lam U) (hu : ContDiffOn ℝ ∞ u U) : |
| 866 | ContDiffOn ℝ ∞ (fun z : Q × ℝ => GaussianEnvelope.referenceRate (lam z.1) (u z.1) ell z.2) |
| 867 | (U ×ˢ V) := by |
| 868 | have hl : ContDiffOn ℝ ∞ (fun z : Q × ℝ => lam z.1) (U ×ˢ V) := |
| 869 | hlam.comp contDiffOn_fst (fun _ hz => hz.1) |
| 870 | have hu' : ContDiffOn ℝ ∞ (fun z : Q × ℝ => u z.1) (U ×ˢ V) := |
| 871 | hu.comp contDiffOn_fst (fun _ hz => hz.1) |
| 872 | have hs : ContDiffOn ℝ ∞ (fun z : Q × ℝ => PulseGrowth.slotMagnitude (u z.1) ell z.2) |
| 873 | (U ×ˢ V) := (hu'.div_const 2).add ((hu'.mul contDiffOn_snd).div_const ell) |
| 874 | have hs2 := (contDiffOn_const (c := (1 : ℝ))).add (hs.pow 2) |
| 875 | have hu2 := (contDiffOn_const (c := (1 : ℝ))).add (hu'.pow 2) |
| 876 | have hr := hs2.sqrt (fun z _ => (PulseGrowth.one_add_sq_pos _).ne') |
| 877 | have hur := hu2.sqrt (fun z _ => (PulseGrowth.one_add_sq_pos _).ne') |
| 878 | exact (hl.div hr (fun z _ => (PulseGrowth.radius_pos _).ne')).sub |
| 879 | ((hl.mul hs2).div (hu2.mul hur) (fun z _ => (PulseGrowth.dampingDenominator_pos _).ne')) |
| 880 | |
| 881 | /-- The manuscript normalization `z₊(0)=P(0), z₋(0)=0` is itself a smooth |
| 882 | parameter family, obtained from the explicit reference rate. -/ |
| 883 | theorem primarySeed_reference_contDiffOn {ell : ℝ} (hell : 0 ≤ ell) |
| 884 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc 0 ell ⊆ V) |
| 885 | (lam u : Q → ℝ) (hlam : ContDiffOn ℝ ∞ lam U) (hu : ContDiffOn ℝ ∞ u U) : |
| 886 | ContDiffOn ℝ ∞ (primarySeed 0 (referenceEnvelope lam u ell)) U := by |
| 887 | have hm : ell / 2 ∈ Icc 0 ell := by constructor <;> linarith |
| 888 | have hE := initialEnvelope_contDiffOn hell U V hU hV hI |
| 889 | (fun z : Q × ℝ => GaussianEnvelope.referenceRate (lam z.1) (u z.1) ell z.2) |
| 890 | (referenceRate_contDiffOn V lam u ell hlam hu) ⟨ell / 2, hm⟩ |
| 891 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) MovingFrameODE.pairCLM).comp_contDiffOn |
| 892 | (hE.prodMk contDiffOn_const) |
| 893 | |
| 894 | theorem primary_reference_path_contDiffOn {ell : ℝ} (hell : 0 ≤ ell) (d : FrameData Q) |
| 895 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc 0 ell ⊆ V) |
| 896 | (hd : d.SmoothOn (U ×ˢ V)) (lam u : Q → ℝ) |
| 897 | (hlam : ContDiffOn ℝ ∞ lam U) (hu : ContDiffOn ℝ ∞ u U) : |
| 898 | ContDiffOn ℝ ∞ (SmoothPathFamily.odeFamily hell (d.coefficient 1) |
| 899 | (primarySeed 0 (referenceEnvelope lam u ell)) (d.forcing (fun _ => 0))) U := |
| 900 | solutionPath_contDiffOn hell d U V hU hV hI hd 1 |
| 901 | (primarySeed 0 (referenceEnvelope lam u ell)) (fun _ => 0) |
| 902 | (primarySeed_reference_contDiffOn hell U V hU hV hI lam u hlam hu) contDiffOn_const |
| 903 | |
| 904 | /-- Parameter smoothness of the constructed extension at every time in the |
| 905 | closed slot, including its endpoints. -/ |
| 906 | theorem solution_contDiffOn {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 907 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 908 | (hd : d.SmoothOn (U ×ˢ V)) (j : ℤ) (x₀ : Q → State) (f : Q × ℝ → Space) |
| 909 | (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) (v : Icc a b) : |
| 910 | ContDiffOn ℝ ∞ (fun q => solution hab d j x₀ f q v) U := by |
| 911 | have hpath := solutionPath_contDiffOn hab d U V hU hV hI hd j x₀ f hx₀ hf |
| 912 | have heval := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 913 | (ContinuousMap.evalCLM ℝ v)).comp_contDiffOn hpath |
| 914 | apply heval.congr |
| 915 | intro q _ |
| 916 | exact extendedFamily_eq_path _ _ _ _ _ _ |
| 917 | |
| 918 | /-- Reconstructed ambient tangent vectors inherit parameter smoothness from |
| 919 | the same constructed modal path and the explicit smooth frame data. -/ |
| 920 | theorem ambientSolution_contDiffOn {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 921 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 922 | (hd : d.SmoothOn (U ×ˢ V)) (j : ℤ) (x₀ : Q → State) (f : Q × ℝ → Space) |
| 923 | (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) (v : Icc a b) : |
| 924 | ContDiffOn ℝ ∞ (fun q => ambientSolution hab d j x₀ f q v) U := by |
| 925 | have hz := solution_contDiffOn hab d U V hU hV hI hd j x₀ f hx₀ hf v |
| 926 | have hz0 := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 927 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0)).comp_contDiffOn hz |
| 928 | have hz1 := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 929 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 1)).comp_contDiffOn hz |
| 930 | have hs : MapsTo (fun q : Q => (q, (v : ℝ))) U (U ×ˢ V) := fun _ hq => ⟨hq, hI v.2⟩ |
| 931 | have hc : ContDiffOn ℝ ∞ (fun q : Q => (q, (v : ℝ))) U := |
| 932 | contDiffOn_id.prodMk contDiffOn_const |
| 933 | have hr := hd.rho.comp hc hs |
| 934 | have hh := hd.eigenvector.comp hc hs |
| 935 | have hK := (hd.frame 0).comp hc hs |
| 936 | have hN := (hd.frame 1).comp hc hs |
| 937 | have hx := hz0.add hz1 |
| 938 | have hy := hh.mul (hz0.sub hz1) |
| 939 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) MovingFrameODE.packCLM).comp_contDiffOn |
| 940 | (hx.prodMk (((hr.neg.mul hx).smul hK).add (hy.smul hN))) |
| 941 | |
| 942 | end SmoothPrimary |
| 943 | |
| 944 | section Joint |
| 945 | |
| 946 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 947 | |
| 948 | /-- Genuine joint parameter/time smoothness of the constructed solution on |
| 949 | the closed slot. The joint theorem constructs a smooth representative by |
| 950 | time rescaling, rather than claiming the clamped extension smooth outside. -/ |
| 951 | theorem solution_joint_contDiffOn {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 952 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 953 | (hd : d.SmoothOn (U ×ˢ V)) (j : ℤ) (x₀ : Q → State) (f : Q × ℝ → Space) |
| 954 | (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) : |
| 955 | ContDiffOn ℝ ∞ (fun z : Q × ℝ => solution hab d j x₀ f z.1 z.2) (U ×ˢ Icc a b) := |
| 956 | JointODE.contDiffOn_solutionExtension_joint hab U V hU hV hI |
| 957 | (d.coefficient j) x₀ (d.forcing f) (hd.coefficient j) hx₀ (hd.forcing hf) |
| 958 | |
| 959 | theorem ambientSolution_joint_contDiffOn {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 960 | (U : Set Q) (V : Set ℝ) (hU : IsOpen U) (hV : IsOpen V) (hI : Icc a b ⊆ V) |
| 961 | (hd : d.SmoothOn (U ×ˢ V)) (j : ℤ) (x₀ : Q → State) (f : Q × ℝ → Space) |
| 962 | (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) : |
| 963 | ContDiffOn ℝ ∞ (fun z : Q × ℝ => ambientSolution hab d j x₀ f z.1 z.2) (U ×ˢ Icc a b) := by |
| 964 | have hz := solution_joint_contDiffOn hab d U V hU hV hI hd j x₀ f hx₀ hf |
| 965 | have hz0 := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 966 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 0)).comp_contDiffOn hz |
| 967 | have hz1 := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 968 | (PiLp.proj 2 (fun _ : Fin 2 => ℝ) 1)).comp_contDiffOn hz |
| 969 | have hs : U ×ˢ Icc a b ⊆ U ×ˢ V := Set.prod_mono Subset.rfl hI |
| 970 | have hr := hd.rho.mono hs |
| 971 | have hh := hd.eigenvector.mono hs |
| 972 | have hK := (hd.frame 0).mono hs |
| 973 | have hN := (hd.frame 1).mono hs |
| 974 | have hx := hz0.add hz1 |
| 975 | have hy := hh.mul (hz0.sub hz1) |
| 976 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) MovingFrameODE.packCLM).comp_contDiffOn |
| 977 | (hx.prodMk (((hr.neg.mul hx).smul hK).add (hy.smul hN))) |
| 978 | |
| 979 | end Joint |
| 980 | |
| 981 | /-- The physical viscosity perturbation follows from closeness of the actual |
| 982 | phase normal. This gives the damping input without assuming an ODE bound. -/ |
| 983 | theorem viscosity_error_of_normal_comparison {n n₀ : Space} {κ η M : ℝ} |
| 984 | (hκ : 0 ≤ κ) (hclose : ‖n - n₀‖ ≤ η) (hn₀ : ‖n₀‖ ≤ M) : |
| 985 | |κ * ‖n‖ ^ 2 - κ * ‖n₀‖ ^ 2| ≤ κ * η * (2 * M + η) := by |
| 986 | have hη : 0 ≤ η := (norm_nonneg _).trans hclose |
| 987 | have hd : |‖n‖ - ‖n₀‖| ≤ η := (abs_norm_sub_norm_le n n₀).trans hclose |
| 988 | have hs : ‖n‖ + ‖n₀‖ ≤ 2 * M + η := by linarith [(abs_le.mp hd).2] |
| 989 | have he : κ * ‖n‖ ^ 2 - κ * ‖n₀‖ ^ 2 = κ * ((‖n‖ - ‖n₀‖) * (‖n‖ + ‖n₀‖)) := by ring |
| 990 | rw [he, abs_mul, abs_of_nonneg hκ, abs_mul, |
| 991 | abs_of_nonneg (add_nonneg (norm_nonneg n) (norm_nonneg n₀))] |
| 992 | calc |
| 993 | κ * (|‖n‖ - ‖n₀‖| * (‖n‖ + ‖n₀‖)) ≤ κ * (η * (2 * M + η)) := |
| 994 | mul_le_mul_of_nonneg_left |
| 995 | (mul_le_mul hd hs (add_nonneg (norm_nonneg n) (norm_nonneg n₀)) hη) hκ |
| 996 | _ = _ := by ring |
| 997 | |
| 998 | /-- The source transformation has a uniform norm bound from elementary frame |
| 999 | and eigenvector bounds, independently of the harmonic index. -/ |
| 1000 | theorem FrameData.forcing_norm_le {Q : Type} (d : FrameData Q) (f : Q × ℝ → Space) |
| 1001 | (z : Q × ℝ) {R H : ℝ} (hR : 0 ≤ R) (hH : 0 ≤ H) |
| 1002 | (hrho : |d.rho z| ≤ R) (hh : |1 / d.eigenvector z| ≤ H) : |
| 1003 | ‖d.forcing f z‖ ≤ (1 + R + H) * ‖f z‖ := by |
| 1004 | have hf0 : |f z 0| ≤ ‖f z‖ := by |
| 1005 | simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le (f z) 0 |
| 1006 | have hi (i : Fin 2) : |⟪d.frame z i, MovingFrameODE.tail (f z)⟫_ℝ| ≤ ‖f z‖ := by |
| 1007 | apply (abs_real_inner_le_norm _ _).trans |
| 1008 | rw [(d.frame z).norm_eq_one i, one_mul] |
| 1009 | exact PhaseEstimates.tail_norm_le _ |
| 1010 | have hx : |d.forceX f z| ≤ (1 + R) * ‖f z‖ := by |
| 1011 | unfold FrameData.forceX |
| 1012 | apply (MovingFrameODE.abs_div_le_of_one_le _ _ (by nlinarith [sq_nonneg (d.rho z)])).trans |
| 1013 | rw [abs_neg] |
| 1014 | calc |
| 1015 | |f z 0 - d.rho z * ⟪d.frame z 0, MovingFrameODE.tail (f z)⟫_ℝ| ≤ |
| 1016 | |f z 0| + |d.rho z * ⟪d.frame z 0, MovingFrameODE.tail (f z)⟫_ℝ| := abs_sub _ _ |
| 1017 | _ = |f z 0| + |d.rho z| * |⟪d.frame z 0, MovingFrameODE.tail (f z)⟫_ℝ| := by rw [abs_mul] |
| 1018 | _ ≤ ‖f z‖ + R * ‖f z‖ := add_le_add hf0 (mul_le_mul hrho (hi 0) (abs_nonneg _) hR) |
| 1019 | _ = _ := by ring |
| 1020 | have hy : |d.forceY f z| ≤ ‖f z‖ := by simpa only [FrameData.forceY, abs_neg] using hi 1 |
| 1021 | have hdiv : |d.forceY f z / d.eigenvector z| ≤ H * ‖f z‖ := by |
| 1022 | calc |
| 1023 | |d.forceY f z / d.eigenvector z| = |1 / d.eigenvector z| * |d.forceY f z| := by |
| 1024 | rw [abs_div, abs_div, abs_one] |
| 1025 | ring |
| 1026 | _ ≤ _ := mul_le_mul hh hy (abs_nonneg _) hH |
| 1027 | apply (MovingFrameODE.plane_norm_le_coordinate_sum (d.forcing f z)).trans |
| 1028 | change |(d.forceX f z + d.forceY f z / d.eigenvector z) / 2| + |
| 1029 | |(d.forceX f z - d.forceY f z / d.eigenvector z) / 2| ≤ _ |
| 1030 | rw [abs_div, abs_div] |
| 1031 | rw [abs_of_pos (by norm_num : (0 : ℝ) < 2)] |
| 1032 | nlinarith [abs_add_le (d.forceX f z) (d.forceY f z / d.eigenvector z), |
| 1033 | abs_sub (d.forceX f z) (d.forceY f z / d.eigenvector z)] |
| 1034 | |
| 1035 | private theorem norm_pack_le (x : ℝ) (v : State) : ‖MovingFrameODE.pack x v‖ ≤ |x| + ‖v‖ := by |
| 1036 | have hs := MovingFrameODE.inner_pack x x v v |
| 1037 | simp only [real_inner_self_eq_norm_sq] at hs |
| 1038 | nlinarith [norm_nonneg (MovingFrameODE.pack x v), norm_nonneg v, abs_nonneg x, |
| 1039 | sq_abs x, mul_nonneg (abs_nonneg x) (norm_nonneg v)] |
| 1040 | |
| 1041 | theorem FrameData.ambient_norm_le {Q : Type} (d : FrameData Q) (z : Q × ℝ) (w : State) |
| 1042 | {R H : ℝ} (hrho : |d.rho z| ≤ R) (hh : |d.eigenvector z| ≤ H) : |
| 1043 | ‖d.ambient z w‖ ≤ 2 * (1 + R + H) * ‖w‖ := by |
| 1044 | have hR : 0 ≤ R := (abs_nonneg _).trans hrho |
| 1045 | have hH : 0 ≤ H := (abs_nonneg _).trans hh |
| 1046 | have hw (i : Fin 2) : |w i| ≤ ‖w‖ := by |
| 1047 | simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le w i |
| 1048 | have hx : |w 0 + w 1| ≤ 2 * ‖w‖ := (abs_add_le _ _).trans (by linarith [hw 0, hw 1]) |
| 1049 | have hdiff : |w 0 - w 1| ≤ 2 * ‖w‖ := (abs_sub _ _).trans (by linarith [hw 0, hw 1]) |
| 1050 | have htail : ‖(-d.rho z * (w 0 + w 1)) • d.frame z 0 + |
| 1051 | (d.eigenvector z * (w 0 - w 1)) • d.frame z 1‖ ≤ |
| 1052 | |d.rho z| * |w 0 + w 1| + |d.eigenvector z| * |w 0 - w 1| := by |
| 1053 | apply (norm_add_le _ _).trans_eq |
| 1054 | simp only [norm_smul, Real.norm_eq_abs, abs_mul, abs_neg, (d.frame z).norm_eq_one, mul_one] |
| 1055 | change ‖MovingFrameODE.pack (w 0 + w 1) |
| 1056 | ((-d.rho z * (w 0 + w 1)) • d.frame z 0 + |
| 1057 | (d.eigenvector z * (w 0 - w 1)) • d.frame z 1)‖ ≤ _ |
| 1058 | apply (norm_pack_le _ _).trans |
| 1059 | have hrx := mul_le_mul hrho hx (abs_nonneg _) hR |
| 1060 | have hhy := mul_le_mul hh hdiff (abs_nonneg _) hH |
| 1061 | nlinarith |
| 1062 | |
| 1063 | /-- The inverse coordinate transformation is uniformly bounded too, so the |
| 1064 | modal forward estimate is a genuine ambient tangent propagator estimate. -/ |
| 1065 | theorem FrameData.norm_le_ambient {Q : Type} (d : FrameData Q) (z : Q × ℝ) (w : State) |
| 1066 | {H : ℝ} (hne : d.eigenvector z ≠ 0) (hh : |1 / d.eigenvector z| ≤ H) : |
| 1067 | ‖w‖ ≤ (1 + H) * ‖d.ambient z w‖ := by |
| 1068 | have hH : 0 ≤ H := (abs_nonneg _).trans hh |
| 1069 | have hx : |w 0 + w 1| ≤ ‖d.ambient z w‖ := by |
| 1070 | simpa only [FrameData.ambient, MovingFrameODE.tangent, MovingFrameODE.pack_zero, Real.norm_eq_abs] |
| 1071 | using PiLp.norm_apply_le (d.ambient z w) 0 |
| 1072 | have hy : |d.eigenvector z * (w 0 - w 1)| ≤ ‖d.ambient z w‖ := by |
| 1073 | have he : ⟪d.frame z 1, MovingFrameODE.tail (d.ambient z w)⟫_ℝ = |
| 1074 | d.eigenvector z * (w 0 - w 1) := by |
| 1075 | simp only [FrameData.ambient, MovingFrameODE.tangent, MovingFrameODE.tail_pack, |
| 1076 | inner_add_right, inner_smul_right, MovingFrameODE.frame_inner10, |
| 1077 | MovingFrameODE.frame_inner11, mul_zero, mul_one, zero_add] |
| 1078 | rw [← he] |
| 1079 | apply (abs_real_inner_le_norm _ _).trans |
| 1080 | rw [(d.frame z).norm_eq_one 1, one_mul] |
| 1081 | exact PhaseEstimates.tail_norm_le _ |
| 1082 | have hdiff : |w 0 - w 1| ≤ H * ‖d.ambient z w‖ := by |
| 1083 | calc |
| 1084 | |w 0 - w 1| = |1 / d.eigenvector z| * |d.eigenvector z * (w 0 - w 1)| := by |
| 1085 | rw [← abs_mul] |
| 1086 | congr 1 |
| 1087 | field_simp |
| 1088 | _ ≤ _ := mul_le_mul hh hy (abs_nonneg _) hH |
| 1089 | have hp : 2 * |w 0| ≤ |w 0 + w 1| + |w 0 - w 1| := by |
| 1090 | have hi := abs_add_le (w 0 + w 1) (w 0 - w 1) |
| 1091 | have he : w 0 + w 1 + (w 0 - w 1) = 2 * w 0 := by ring |
| 1092 | rw [he, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2)] at hi |
| 1093 | exact hi |
| 1094 | have hq : 2 * |w 1| ≤ |w 0 + w 1| + |w 0 - w 1| := by |
| 1095 | have hi := abs_sub (w 0 + w 1) (w 0 - w 1) |
| 1096 | have he : w 0 + w 1 - (w 0 - w 1) = 2 * w 1 := by ring |
| 1097 | rw [he, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2)] at hi |
| 1098 | exact hi |
| 1099 | have hn := MovingFrameODE.plane_norm_le_coordinate_sum w |
| 1100 | nlinarith |
| 1101 | |
| 1102 | section AmbientForward |
| 1103 | |
| 1104 | variable {Q : Type} [NormedAddCommGroup Q] |
| 1105 | |
| 1106 | /-- The forward estimate in actual ambient tangent norm, with constants |
| 1107 | independent of the nonzero integer harmonic. -/ |
| 1108 | theorem ambient_homogeneous_forward_bound {a b : ℝ} (hab : a ≤ b) (d : FrameData Q) |
| 1109 | {j : ℤ} (hj : j ≠ 0) (x₀ : Q → State) {U : Set Q} |
| 1110 | (hA : ContinuousOn (d.coefficient j) (U ×ˢ Icc a b)) |
| 1111 | {p : Q} (hp : p ∈ U) (referenceDamping rate P : ℝ → ℝ) |
| 1112 | {S C D L R H : ℝ} (hS : 0 < S) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 1113 | (hslot : b - a ≤ L * S) |
| 1114 | (hPpos : ∀ v, 0 < P v) (hP : ∀ v, HasDerivAt P (rate v * P v) v) |
| 1115 | (hreference : ∀ v ∈ Icc a b, rate v = d.eigenvalue (p, v) - referenceDamping v) |
| 1116 | (hlam : ∀ v ∈ Icc a b, 0 ≤ d.eigenvalue (p, v)) |
| 1117 | (hν : ∀ v ∈ Icc a b, 0 ≤ d.viscosity (p, v)) |
| 1118 | (hνerr : ∀ v ∈ Icc a b, referenceDamping v - D / S ≤ d.viscosity (p, v)) |
| 1119 | (herr : ∀ v ∈ Icc a b, |
| 1120 | |d.error11 (p, v)| ≤ C / S ∧ |d.error12 (p, v)| ≤ C / S ∧ |
| 1121 | |d.error21 (p, v)| ≤ C / S ∧ |d.error22 (p, v)| ≤ C / S) |
| 1122 | (hrho : ∀ v ∈ Icc a b, |d.rho (p, v)| ≤ R) |
| 1123 | (hh : ∀ v ∈ Icc a b, |d.eigenvector (p, v)| ≤ H) |
| 1124 | (hne : d.eigenvector (p, a) ≠ 0) (hhi : |1 / d.eigenvector (p, a)| ≤ H) : |
| 1125 | ∀ v ∈ Icc a b, ‖ambientSolution hab d j x₀ (fun _ => 0) p v‖ ≤ |
| 1126 | (2 * (1 + R + H) * (1 + H) * Real.exp ((D + 4 * C) * L)) * |
| 1127 | (P v / P a) * ‖ambientSolution hab d j x₀ (fun _ => 0) p a‖ := by |
| 1128 | have hbnd := homogeneous_forward_bound hab d hj x₀ hA hp referenceDamping rate P |
| 1129 | hS hC hD hslot hPpos hP hreference hlam hν hνerr herr |
| 1130 | have hstart : ‖x₀ p‖ ≤ (1 + H) * ‖ambientSolution hab d j x₀ (fun _ => 0) p a‖ := by |
| 1131 | simpa only [ambientSolution, solution_initial] using |
| 1132 | d.norm_le_ambient (p, a) (x₀ p) hne hhi |
| 1133 | have hR : 0 ≤ R := (abs_nonneg _).trans (hrho a ⟨le_rfl, hab⟩) |
| 1134 | have hH : 0 ≤ H := (abs_nonneg _).trans (hh a ⟨le_rfl, hab⟩) |
| 1135 | have hfac : 0 ≤ 2 * (1 + R + H) := by positivity |
| 1136 | intro v hv |
| 1137 | calc |
| 1138 | _ ≤ (2 * (1 + R + H)) * ‖solution hab d j x₀ (fun _ => 0) p v‖ := |
| 1139 | d.ambient_norm_le (p, v) _ (hrho v hv) (hh v hv) |
| 1140 | _ ≤ (2 * (1 + R + H)) * |
| 1141 | (Real.exp ((D + 4 * C) * L) * (P v / P a) * ‖x₀ p‖) := |
| 1142 | mul_le_mul_of_nonneg_left (hbnd v hv) hfac |
| 1143 | _ ≤ (2 * (1 + R + H)) * |
| 1144 | (Real.exp ((D + 4 * C) * L) * (P v / P a) * |
| 1145 | ((1 + H) * ‖ambientSolution hab d j x₀ (fun _ => 0) p a‖)) := by |
| 1146 | apply mul_le_mul_of_nonneg_left _ hfac |
| 1147 | exact mul_le_mul_of_nonneg_left hstart |
| 1148 | (mul_nonneg (Real.exp_pos _).le (div_pos (hPpos v) (hPpos a)).le) |
| 1149 | _ = _ := by ring |
| 1150 | |
| 1151 | end AmbientForward |
| 1152 | |
| 1153 | section LocalPhaseFrame |
| 1154 | |
| 1155 | variable {Q : Type} |
| 1156 | |
| 1157 | /-- Total frame selection. The fallback is outside the nonvanishing phase |
| 1158 | chart and imposes no hypothesis on those unused parameter values. -/ |
| 1159 | noncomputable def localFrame (n : Space) : Frame := by |
| 1160 | classical |
| 1161 | exact if hn : MovingFrameODE.tail n ≠ 0 then MovingFrameODE.normalFrame n hn |
| 1162 | else EuclideanSpace.basisFun (Fin 2) ℝ |
| 1163 | |
| 1164 | theorem localFrame_eq {n : Space} (hn : MovingFrameODE.tail n ≠ 0) : |
| 1165 | localFrame n = MovingFrameODE.normalFrame n hn := by |
| 1166 | simp [localFrame, hn] |
| 1167 | |
| 1168 | /-- The actual phase-derived coefficients require nonvanishing only on the |
| 1169 | chart where they are used. -/ |
| 1170 | noncomputable def FrameData.ofNormalLocal (n nDot : Q × ℝ → Space) |
| 1171 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 1172 | (lam h hRate viscosityScale : Q × ℝ → ℝ) : FrameData Q where |
| 1173 | beta z := MovingFrameODE.normalScale (n z) |
| 1174 | betaDot z := PhaseEstimates.scaleDerivative (n z) (nDot z) |
| 1175 | rho z := MovingFrameODE.radialSlope (n z) |
| 1176 | rhoDot z := PhaseEstimates.slopeDerivative (n z) (nDot z) |
| 1177 | rotation z := PhaseEstimates.angularVelocity (n z) (nDot z) |
| 1178 | F := F |
| 1179 | shear := g |
| 1180 | frame z := localFrame (n z) |
| 1181 | eigenvalue := lam |
| 1182 | eigenvector := h |
| 1183 | eigenRate := hRate |
| 1184 | viscosity z := viscosityScale z * ‖n z‖ ^ 2 |
| 1185 | |
| 1186 | theorem FrameData.ofNormalLocal_normal (n nDot : Q × ℝ → Space) |
| 1187 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 1188 | (lam h hRate viscosityScale : Q × ℝ → ℝ) {z : Q × ℝ} |
| 1189 | (hn : MovingFrameODE.tail (n z) ≠ 0) : |
| 1190 | (FrameData.ofNormalLocal n nDot F g lam h hRate viscosityScale).normal z = n z := by |
| 1191 | change MovingFrameODE.normal _ _ (localFrame (n z)) = n z |
| 1192 | rw [localFrame_eq hn] |
| 1193 | exact MovingFrameODE.normal_reconstructed hn |
| 1194 | |
| 1195 | theorem FrameData.ofNormalLocal_kinematics (n nDot : Q × ℝ → Space) |
| 1196 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 1197 | (lam h hRate viscosityScale : Q × ℝ → ℝ) (p : Q) (I : Set ℝ) |
| 1198 | (hn : ∀ v ∈ I, HasDerivAt (fun t => n (p, t)) (nDot (p, v)) v) |
| 1199 | (hne : ∀ v ∈ I, MovingFrameODE.tail (n (p, v)) ≠ 0) |
| 1200 | (hh : ∀ v ∈ I, h (p, v) ≠ 0) |
| 1201 | (hdh : ∀ v ∈ I, HasDerivAt (fun t => h (p, t)) (hRate (p, v) * h (p, v)) v) : |
| 1202 | (FrameData.ofNormalLocal n nDot F g lam h hRate viscosityScale).Kinematics p I := by |
| 1203 | have hframe (v : ℝ) (hv : v ∈ I) (i : Fin 2) : |
| 1204 | (fun t => localFrame (n (p, t)) i) =ᶠ[𝓝 v] |
| 1205 | (fun t => if i = 0 then MovingFrameODE.normalDirection (n (p, t)) |
| 1206 | else MovingFrameODE.quarterTurn (MovingFrameODE.normalDirection (n (p, t)))) := by |
| 1207 | have ht := MovingFrameODE.tailCLM.hasFDerivAt.comp_hasDerivAt v (hn v hv) |
| 1208 | filter_upwards [ht.continuousAt.eventually_ne (hne v hv)] with t ht' |
| 1209 | rw [localFrame_eq ht'] |
| 1210 | fin_cases i |
| 1211 | · simpa only [Fin.zero_eta, ↓reduceIte] using MovingFrameODE.normalFrame_zero (n (p, t)) ht' |
| 1212 | · simpa only [Fin.mk_one, one_ne_zero, ↓reduceIte] using MovingFrameODE.normalFrame_one (n (p, t)) ht' |
| 1213 | refine ⟨fun v hv => (MovingFrameODE.normalScale_pos (hne v hv)).ne', hh, |
| 1214 | ?_, ?_, hdh, ?_, ?_⟩ |
| 1215 | · intro v hv |
| 1216 | exact PhaseEstimates.hasDerivAt_normalScale (hn v hv) (hne v hv) |
| 1217 | · intro v hv |
| 1218 | exact PhaseEstimates.hasDerivAt_radialSlope (hn v hv) (hne v hv) |
| 1219 | · intro v hv |
| 1220 | have he := hframe v hv 0 |
| 1221 | simp only [ite_true] at he |
| 1222 | have hd := (PhaseEstimates.hasDerivAt_actual_frame (hn v hv) (hne v hv)).1 |
| 1223 | have hk := hd.congr_of_eventuallyEq he |
| 1224 | simpa only [FrameData.ofNormalLocal, localFrame_eq (hne v hv), MovingFrameODE.normalFrame_one] using hk |
| 1225 | · intro v hv |
| 1226 | have he := hframe v hv 1 |
| 1227 | simp only [one_ne_zero, ite_false] at he |
| 1228 | have hd := (PhaseEstimates.hasDerivAt_actual_frame (hn v hv) (hne v hv)).2 |
| 1229 | have hk := hd.congr_of_eventuallyEq he |
| 1230 | simpa only [FrameData.ofNormalLocal, localFrame_eq (hne v hv), MovingFrameODE.normalFrame_zero] using hk |
| 1231 | |
| 1232 | theorem FrameData.ofNormalLocal_normalMotion (n nDot : Q × ℝ → Space) |
| 1233 | (F : Q × ℝ → ℝ) (g : Q × ℝ → State) |
| 1234 | (lam h hRate viscosityScale : Q × ℝ → ℝ) {p : Q} {v : ℝ} |
| 1235 | (hn : HasDerivAt (fun t => n (p, t)) (nDot (p, v)) v) |
| 1236 | (hne : MovingFrameODE.tail (n (p, v)) ≠ 0) : |
| 1237 | (FrameData.ofNormalLocal n nDot F g lam h hRate viscosityScale).normalMotion (p, v) = nDot (p, v) := by |
| 1238 | have htail := MovingFrameODE.tailCLM.hasFDerivAt.comp_hasDerivAt v hn |
| 1239 | have hnear := htail.continuousAt.eventually_ne hne |
| 1240 | have hKeq : (fun t => localFrame (n (p, t)) 0) =ᶠ[𝓝 v] |
| 1241 | (fun t => MovingFrameODE.normalDirection (n (p, t))) := by |
| 1242 | filter_upwards [hnear] with t ht |
| 1243 | rw [localFrame_eq ht] |
| 1244 | exact MovingFrameODE.normalFrame_zero (n (p, t)) ht |
| 1245 | have hK : HasDerivAt (fun t => localFrame (n (p, t)) 0) |
| 1246 | (PhaseEstimates.angularVelocity (n (p, v)) (nDot (p, v)) • localFrame (n (p, v)) 1) v := by |
| 1247 | simpa only [localFrame_eq hne, MovingFrameODE.normalFrame_one] using |
| 1248 | (PhaseEstimates.hasDerivAt_actual_frame hn hne).1.congr_of_eventuallyEq hKeq |
| 1249 | have hd := MovingFrameODE.hasDerivAt_normal |
| 1250 | (PhaseEstimates.hasDerivAt_normalScale hn hne) (PhaseEstimates.hasDerivAt_radialSlope hn hne) hK |
| 1251 | have heq : (fun t => n (p, t)) =ᶠ[𝓝 v] |
| 1252 | (fun t => MovingFrameODE.normal (MovingFrameODE.normalScale (n (p, t))) |
| 1253 | (MovingFrameODE.radialSlope (n (p, t))) (localFrame (n (p, t)))) := by |
| 1254 | filter_upwards [hnear] with t ht |
| 1255 | rw [localFrame_eq ht] |
| 1256 | exact (MovingFrameODE.normal_reconstructed ht).symm |
| 1257 | exact (hd.congr_of_eventuallyEq heq).unique hn |
| 1258 | |
| 1259 | end LocalPhaseFrame |
| 1260 | |
| 1261 | end NavierStokes.PrimaryODE |