import Euler.PacketSourceCorrectionCoefficients import Euler.PacketMatrixCoefficientAlgebra import Euler.PacketCylinderCoefficientBounds import Euler.GevreyFixedShift import Euler.MeanCoefficientPathJets /-! Source bounds for the actual pressure metric, linear coefficient and three quadratic coefficients. Their common coefficient radius and amplitudes are independent of the correction order, cutoff and frequency. -/ /-! ## From `Euler/PacketMatrixCoefficientGevrey.lean` The text of `Euler/PacketMatrixCoefficientGevrey.lean`, folded into this file, which was its only importer. -/ section /-! Bounds for the actual composition, scalar multiple and spatial derivative of packet matrix-coefficient witnesses. The derivative radius enlargement occurs only in this fixed coefficient budget. -/ noncomputable section namespace EulerPacketCylinderField.MatrixCoefficient open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerBoundedFieldCalculus EulerPacketPointJets EulerGevrey EulerOperatorGevreyCalculus open scoped ContDiff BoundedContinuousFunction private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance variable {T : ℝ} {a b : Domain → Space →L[ℝ] Space} theorem comp_bound (A : MatrixCoefficient T a) (B : MatrixCoefficient T b) (R C D : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) (hbA : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) (hbB : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath B.path) x‖ ≤ D*majorant R 0 n) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.comp B).path) x‖ ≤ (3*C*D)*majorant R 0 n := by have he : translateCoefficientPath (A.comp B).path = fun v => pathCompositionMap (translateCoefficientPath A.path v) (translateCoefficientPath B.path v) := by funext v apply ContinuousMap.ext intro t apply BoundedContinuousFunction.ext intro y rfl rw [he] exact pathComposition_bound (α := Space) (K := Icc (0 : ℝ) T) (U := Space) (E := Space) (F := Space) (translateCoefficientPath A.path) (translateCoefficientPath B.path) A.orbit B.orbit R C D hR hC hD 0 0 hbA hbB n x theorem smul_bound (A : MatrixCoefficient T a) (c R C : ℝ) (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.smul c).path) x‖ ≤ (|c| * C)*majorant R 0 n := by have he : translateCoefficientPath (A.smul c).path = c • translateCoefficientPath A.path := by funext v apply ContinuousMap.ext intro t apply BoundedContinuousFunction.ext intro y rfl rw [he,iteratedFDeriv_const_smul_apply (A.orbit.of_le (by simp)).contDiffAt,norm_smul,Real.norm_eq_abs] exact (mul_le_mul_of_nonneg_left (hb n x) (abs_nonneg c)).trans_eq (by ring) theorem spatialDerivative_norm_le (A : MatrixCoefficient T a) (v : Space) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.spatialDerivative v).path) x‖ ≤ ‖v‖*‖iteratedFDeriv ℝ (n+1) (translateCoefficientPath A.path) x‖ := by have he : translateCoefficientPath (A.spatialDerivative v).path = fun y => fderiv ℝ (translateCoefficientPath A.path) y v := funext (orbitDerivativePath_translation A.path A.orbit v) rw [he] have h := norm_iteratedFDeriv_clm_apply_const (f := fderiv ℝ (translateCoefficientPath A.path)) (c := v) (n := n) (x := x) (A.orbit.fderiv_right (m := ∞) (by simp)).contDiffAt (by simp) simpa only [norm_iteratedFDeriv_fderiv] using h theorem spatialDerivative_bound (A : MatrixCoefficient T a) (v : Space) (hv : ‖v‖ ≤ 1) (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.spatialDerivative v).path) x‖ ≤ (C*R)*majorant (4*R) 0 n := by have h1 := (spatialDerivative_norm_le A v n x).trans (mul_le_mul_of_nonneg_left (hb (n+1) x) (norm_nonneg v)) have h2 : ‖v‖*(C*majorant R 0 (n+1)) ≤ C*majorant R 1 n := by simpa only [one_mul,majorant,Nat.add_zero,Nat.zero_add] using mul_le_mul_of_nonneg_right hv (mul_nonneg hC (majorant_nonneg R hR 0 (n+1))) exact (h1.trans h2).trans ((mul_le_mul_of_nonneg_left (majorant_one_le_radius_four R hR n) hC).trans_eq (by ring)) theorem bound_mono_radius (A : MatrixCoefficient T a) (R S C : ℝ) (hR : 0 ≤ R) (hRS : R ≤ S) (hC : 0 ≤ C) (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant S 0 n := (hb n x).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono R S hR hRS 0 n) hC) end EulerPacketCylinderField.MatrixCoefficient end end noncomputable section namespace EulerPacketCorrectionCoefficients open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerPacketCylinderField EulerGevrey open scoped ContDiff BoundedContinuousFunction variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) (R C0 C1 CI : ℝ) (hR : 0 ≤ R) (hC0 : 0 ≤ C0) (hC1 : 0 ≤ C1) (hCI : 0 ≤ CI) (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → Space →L[ℝ] Space) x‖ ≤ C0*majorant R 0 n) (hF1 : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F₁.field t : Space → Space →L[ℝ] Space) x‖ ≤ C1*majorant R 0 n) (hFI : ∀ n t x, ‖iteratedFDeriv ℝ n (D.FInv.field t : Space → Space →L[ℝ] Space) x‖ ≤ CI*majorant R 0 n) include hR hC0 hF in theorem frameCoefficient_bound (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (frameCoefficient D).path) a‖ ≤ C0*majorant R 0 n := D.F.norm_iteratedFDeriv_translation_le n (C0*majorant R 0 n) (mul_nonneg hC0 (majorant_nonneg R hR 0 n)) (hF n) a include hR hC1 hF1 in theorem frameTimeCoefficient_bound (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (frameTimeCoefficient D).path) a‖ ≤ C1*majorant R 0 n := D.F₁.norm_iteratedFDeriv_translation_le n (C1*majorant R 0 n) (mul_nonneg hC1 (majorant_nonneg R hR 0 n)) (hF1 n) a include hR hCI hFI in theorem inverseCoefficient_bound (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (inverseCoefficient D).path) a‖ ≤ CI*majorant R 0 n := D.FInv.norm_iteratedFDeriv_translation_le n (CI*majorant R 0 n) (mul_nonneg hCI (majorant_nonneg R hR 0 n)) (hFI n) a include hR hCI hFI in theorem metricCoefficient_bound (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (metricCoefficient D).path) a‖ ≤ (3*CI*CI)*majorant (4*R) 0 n := by have hi := inverseCoefficient_bound D R CI hR hCI hFI exact MatrixCoefficient.bound_mono_radius (metricCoefficient D) R (4*R) (3*CI*CI) hR (by linarith) (by positivity) (MatrixCoefficient.comp_bound (inverseCoefficient D) (inverseCoefficient D).adjoint R CI CI hR hCI hCI hi ((inverseCoefficient D).adjoint_bound R CI hi)) n a include hR hC1 hCI hF1 hFI in theorem linearCoefficient_bound (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (linearCoefficient D).path) a‖ ≤ (6*CI*C1)*majorant (4*R) 0 n := by have hi := inverseCoefficient_bound D R CI hR hCI hFI have h1 := frameTimeCoefficient_bound D R C1 hR hC1 hF1 have hp := MatrixCoefficient.comp_bound (inverseCoefficient D) (frameTimeCoefficient D) R CI C1 hR hCI hC1 hi h1 have hs := MatrixCoefficient.smul_bound ((inverseCoefficient D).comp (frameTimeCoefficient D)) 2 R (3*CI*C1) hp apply MatrixCoefficient.bound_mono_radius (linearCoefficient D) R (4*R) (6*CI*C1) hR (by linarith) (by positivity) _ n a intro k x simpa only [linearCoefficient,abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)] using (hs k x).trans_eq (show (|2| * (3*CI*C1))*majorant R 0 k = (6*CI*C1)*majorant R 0 k by rw [abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)]; ring) include hR hC0 hCI hF hFI in theorem quadraticCoefficient_bound (κ : ℝ) (hκ : |κ| ≤ 1) (i : Fin 3) (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (quadraticCoefficient D κ i).path) a‖ ≤ (3*CI*(C0*R))*majorant (4*R) 0 n := by have hi := MatrixCoefficient.bound_mono_radius (inverseCoefficient D) R (4*R) CI hR (by linarith) hCI (inverseCoefficient_bound D R CI hR hCI hFI) have hunit : ‖(EuclideanSpace.single i 1 : Space)‖ ≤ 1 := by simp have hd := MatrixCoefficient.spatialDerivative_bound (frameCoefficient D) (EuclideanSpace.single i 1) hunit R C0 hR hC0 (frameCoefficient_bound D R C0 hR hC0 hF) have hp := MatrixCoefficient.comp_bound (inverseCoefficient D) ((frameCoefficient D).spatialDerivative (EuclideanSpace.single i 1)) (4*R) CI (C0*R) (by positivity) hCI (by positivity) hi hd have hs := MatrixCoefficient.smul_bound ((inverseCoefficient D).comp ((frameCoefficient D).spatialDerivative (EuclideanSpace.single i 1))) κ (4*R) (3*CI*(C0*R)) hp n a exact hs.trans (by have hnon : 0 ≤ (3*CI*(C0*R))*majorant (4*R) 0 n := mul_nonneg (by positivity) (majorant_nonneg (4*R) (by positivity) 0 n) simpa only [one_mul,mul_assoc] using mul_le_mul_of_nonneg_right hκ hnon) end EulerPacketCorrectionCoefficients