import Euler.TransversePacketBudget import Euler.TransversePacketCorrector import Euler.MeanCoefficientPathJets /-! Source-only coefficient budgets for the joined pressure, potential and corrector. -/ /-! ## From `Euler/TransversePacketCoefficientBounds.lean` The text of `Euler/TransversePacketCoefficientBounds.lean`, folded into this file, which was its only importer. -/ section /-! Explicit polynomial coefficient budgets for the actual transverse potential and slow curl. -/ noncomputable section namespace EulerTransversePacketProvider.Data open Set EulerSmoothLimit EulerMeanCoefficients EulerGevrey EulerOperatorGevreyCalculus EulerSourceNormalCoefficient EulerSourcePotentialCoefficient EulerTransverseBoundedFrame EulerTimeLpGramGevrey open scoped ContDiff BoundedContinuousFunction def correctorCoefficientRadius (R Ri : ℝ) : ℝ := R+4*Ri+1 def correctorCoefficientAmplitude (C Ri : ℝ) : ℝ := 1+C+3*C^2+3*Ri*C+27*(3*Ri*C)^2*(3*C^2) variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : Data U) private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance private local instance : NormedAddCommGroup PotentialField := inferInstance private local instance : NormedSpace ℝ PotentialField := inferInstance private local instance : NormedAddCommGroup C(Icc (0 : ℝ) D.T,PotentialField) := inferInstance private local instance : NormedSpace ℝ C(Icc (0 : ℝ) D.T,PotentialField) := inferInstance private local instance : NormedAddCommGroup (Space →L[ℝ] ℝ) := inferInstance private local instance : NormedSpace ℝ (Space →L[ℝ] ℝ) := inferInstance private local instance : NormedAddCommGroup NormalField := inferInstance private local instance : NormedSpace ℝ NormalField := inferInstance private local instance : NormedAddCommGroup C(Icc (0 : ℝ) D.T,NormalField) := inferInstance private local instance : NormedSpace ℝ C(Icc (0 : ℝ) D.T,NormalField) := inferInstance private local instance : NormedAddCommGroup (Space →ᵇ Space) := inferInstance private local instance : NormedSpace ℝ (Space →ᵇ Space) := inferInstance private local instance : NormedAddCommGroup C(Icc (0 : ℝ) D.T,Space →ᵇ Space) := inferInstance private local instance : NormedSpace ℝ C(Icc (0 : ℝ) D.T,Space →ᵇ Space) := inferInstance /-- All four coefficients used in C and C_t follow from the original F⁻¹ and M bounds. -/ theorem corrector_coefficient_bounds (R C Ri : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hRi : 0 ≤ Ri) (hInv : 2*gramCost D.normalLower C 1*(R+1) ≤ Ri) (hI : ∀ n t x, ‖iteratedFDeriv ℝ n (D.FInv.field t : Space → Space →L[ℝ] Space) x‖ ≤ C*majorant R 0 n) (hM : ∀ n t x, ‖iteratedFDeriv ℝ n (D.M.field t : Space → Space →L[ℝ] Space) x‖ ≤ C*majorant R 0 n) : 0 ≤ correctorCoefficientRadius R Ri ∧ 0 ≤ correctorCoefficientAmplitude C Ri ∧ ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.FInv.field) a‖ ≤ correctorCoefficientAmplitude C Ri*majorant (correctorCoefficientRadius R Ri) 0 n ∧ ‖iteratedFDeriv ℝ n (translateCoefficientPath D.inverseDerivative) a‖ ≤ correctorCoefficientAmplitude C Ri*majorant (correctorCoefficientRadius R Ri) 0 n ∧ ‖iteratedFDeriv ℝ n (translateCoefficientPath D.potentialCoefficientPath) a‖ ≤ correctorCoefficientAmplitude C Ri*majorant (correctorCoefficientRadius R Ri) 0 n ∧ ‖iteratedFDeriv ℝ n (translateCoefficientPath D.potentialDerivative) a‖ ≤ correctorCoefficientAmplitude C Ri*majorant (correctorCoefficientRadius R Ri) 0 n := by let Rc := correctorCoefficientRadius R Ri let Cc := correctorCoefficientAmplitude C Ri have hRc : 0 ≤ Rc := by dsimp [Rc,correctorCoefficientRadius]; positivity have hRR : R ≤ Rc := by dsimp [Rc,correctorCoefficientRadius]; linarith have hIR : 4*Ri ≤ Rc := by dsimp [Rc,correctorCoefficientRadius]; linarith have hN : 0 ≤ 3*Ri*C := by positivity have hD : 0 ≤ 3*C^2 := by positivity have hDt : 0 ≤ 27*(3*Ri*C)^2*(3*C^2) := by positivity have hCc : 0 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; positivity have hC0 : C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith have hC1 : 3*C^2 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith have hCN : 3*Ri*C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith have hCT : 27*(3*Ri*C)^2*(3*C^2) ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude] linarith have hIb (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath D.FInv.field) a‖ ≤ C*majorant Rc 0 n := (D.FInv.norm_iteratedFDeriv_translation_le n (C*majorant R 0 n) (mul_nonneg hC (majorant_nonneg R hR 0 n)) (hI n) a).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono R Rc hR hRR 0 n) hC) have hMb (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath D.M.field) a‖ ≤ C*majorant Rc 0 n := (D.M.norm_iteratedFDeriv_translation_le n (C*majorant R 0 n) (mul_nonneg hC (majorant_nonneg R hR 0 n)) (hM n) a).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono R Rc hR hRR 0 n) hC) have hnormal (n : ℕ) (t : Icc (0 : ℝ) D.T) (x : Space) : ‖iteratedFDeriv ℝ n (D.normal.field t : Space → Space) x‖ ≤ C*majorant R 0 n := normalCoefficient_derivative_bound D.m₀ D.FInv D.m₀_unit n (C*majorant R 0 n) (hI n) t x have hNb (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath (normalFunctional D.normal D.normalLower D.normalLower_pos D.normal_lower)) a‖ ≤ (3*Ri*C)*majorant Rc 0 n := (normalFunctional_translation_bound D.normal D.normalLower D.normalLower_pos D.normal_lower R C Ri hR hC hInv hnormal n a).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono (4*Ri) Rc (by positivity) hIR 0 n) hN) have hKb (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath D.potentialCoefficientPath) a‖ ≤ (3*Ri*C)*majorant Rc 0 n := (potentialCoefficient_translation_bound D.normal D.normalLower D.normalLower_pos D.normal_lower R C Ri hR hC hInv hnormal n a).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono (4*Ri) Rc (by positivity) hIR 0 n) hN) have hIt (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath D.inverseDerivative) a‖ ≤ (3*C^2)*majorant Rc 0 n := by simpa only [pow_two, mul_assoc] using D.inverseDerivative_bound Rc C C hRc hC hC hIb hMb n a have hmt (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath D.normalDerivative) a‖ ≤ (3*C^2)*majorant Rc 0 n := by simpa only [pow_two, mul_assoc] using D.normalDerivative_bound Rc C C hRc hC hC hIb hMb n a have hKt (n : ℕ) (a : Space) : ‖iteratedFDeriv ℝ n (translateCoefficientPath D.potentialDerivative) a‖ ≤ (27*(3*Ri*C)^2*(3*C^2))*majorant Rc 0 n := potentialTimePath_bound D.normal D.normalDerivative D.normalLower D.normalLower_pos D.normal_lower D.normalDerivative_orbit Rc (3*Ri*C) (3*C^2) hRc hN hD hNb hmt n a refine ⟨hRc,hCc,fun n a => ?_⟩ have hmj := majorant_nonneg Rc hRc 0 n exact ⟨(hIb n a).trans (mul_le_mul_of_nonneg_right hC0 hmj), (hIt n a).trans (mul_le_mul_of_nonneg_right hC1 hmj), (hKb n a).trans (mul_le_mul_of_nonneg_right hCN hmj), (hKt n a).trans (mul_le_mul_of_nonneg_right hCT hmj)⟩ end EulerTransversePacketProvider.Data end end noncomputable section namespace EulerTransversePacketJoin open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerTransversePacketProvider EulerTransversePacketProvider.Data EulerGevrey EulerParameterWordGevrey EulerTimeLpGramGevrey EulerTransverseBoundedFrame EulerTransverseForwardCoefficientGevrey EulerSourceCylinderTimeBounds open scoped ContDiff BoundedContinuousFunction variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] /-- Original inverse-deformation and strain jets, with one fixed inverse radius. -/ structure NormalBudget (D : Data U) (q : ℕ) (R : ℝ) where Rc : ℝ C : ℝ Ri : ℝ Rc_nonneg : 0 ≤ Rc C_nonneg : 0 ≤ C inverse_radius : 2*gramCost D.normalLower C 1*(Rc+1) ≤ Ri inverse_bound : ∀ n t x, ‖iteratedFDeriv ℝ n (D.FInv.field t : Space → Space →L[ℝ] Space) x‖ ≤ C*majorant Rc 0 n strain_bound : ∀ n t x, ‖iteratedFDeriv ℝ n (D.M.field t : Space → Space →L[ℝ] Space) x‖ ≤ C*majorant Rc 0 n radius : sobolevCoefficientRadius (Fin 4) (correctorCoefficientRadius Rc Ri) ≤ R namespace NormalBudget variable {D : Data U} {q : ℕ} {R : ℝ} (N : NormalBudget D q R) theorem Ri_nonneg : 0 ≤ N.Ri := (inverseRadius_bounds D.normalLower N.C N.Rc N.Ri D.normalLower_pos N.Rc_nonneg N.inverse_radius).1 def coefficientRadius : ℝ := correctorCoefficientRadius N.Rc N.Ri def coefficientAmplitude : ℝ := correctorCoefficientAmplitude N.C N.Ri def blockAmplitude : ℝ := sobolevCoefficientAmplitude (Fin 4) q N.coefficientRadius N.coefficientAmplitude theorem coefficient_bounds : 0 ≤ N.coefficientRadius ∧ 0 ≤ N.coefficientAmplitude ∧ ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.FInv.field) a‖ ≤ N.coefficientAmplitude*majorant N.coefficientRadius 0 n ∧ ‖iteratedFDeriv ℝ n (translateCoefficientPath D.inverseDerivative) a‖ ≤ N.coefficientAmplitude*majorant N.coefficientRadius 0 n ∧ ‖iteratedFDeriv ℝ n (translateCoefficientPath D.potentialCoefficientPath) a‖ ≤ N.coefficientAmplitude*majorant N.coefficientRadius 0 n ∧ ‖iteratedFDeriv ℝ n (translateCoefficientPath D.potentialDerivative) a‖ ≤ N.coefficientAmplitude*majorant N.coefficientRadius 0 n := D.corrector_coefficient_bounds N.Rc N.C N.Ri N.Rc_nonneg N.C_nonneg N.Ri_nonneg N.inverse_radius N.inverse_bound N.strain_bound theorem blockAmplitude_nonneg : 0 ≤ N.blockAmplitude := sobolevCoefficientAmplitude_nonneg q N.coefficientRadius N.coefficientAmplitude N.coefficient_bounds.1 N.coefficient_bounds.2.1 theorem normal_bound (n : ℕ) (t : Icc (0 : ℝ) D.T) (x : Space) : ‖iteratedFDeriv ℝ n (D.normal.field t : Space → Space) x‖ ≤ N.C*majorant N.Rc 0 n := normalCoefficient_derivative_bound D.m₀ D.FInv D.m₀_unit n _ (N.inverse_bound n) t x theorem pressure_radius : sobolevCoefficientRadius (Fin 4) (4*N.Ri) ≤ R := by apply le_trans _ N.radius unfold sobolevCoefficientRadius correctorCoefficientRadius apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 4) apply mul_le_mul_of_nonneg_left _ (le_trans zero_le_one (le_max_left _ _)) linarith [N.Rc_nonneg] end NormalBudget namespace Budget variable [CompleteSpace U] {D : Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} {B : HistoryData (D.initial τ hτ hτT.le)} {ι : Type*} [Fintype ι] {q : ℕ} (L : Budget D τ hτ hτT B ι q) theorem velocityCost_nonneg : 0 ≤ L.velocityCost := by have hC := sobolevCoefficientAmplitude_nonneg (ι := ι) q L.Rc L.C₀ L.Rc_nonneg L.C₀_nonneg have ht := EulerFixedEvolutionSobolev.traceCost_nonneg τ hτ.le unfold velocityCost positivity theorem derivativeCost_nonneg : 0 ≤ L.derivativeCost := by have hRi := (inverseRadius_bounds (D.tail τ hτ.le hτT).frameLower L.C₀ L.Rc L.Ri (D.tail τ hτ.le hτT).frameLower_pos L.Rc_nonneg L.forward_inverse).1 have h0 := sobolevCoefficientAmplitude_nonneg (ι := ι) q L.Rc L.C₀ L.Rc_nonneg L.C₀_nonneg have h1 := sobolevCoefficientAmplitude_nonneg (ι := ι) q L.Rc L.C₁ L.Rc_nonneg L.C₁_nonneg have ht := EulerFixedEvolutionSobolev.traceCost_nonneg τ hτ.le have hb0 := sobolevCoefficientAmplitude_nonneg (ι := ι) q (4*L.Ri) L.C₀ (by positivity) L.C₀_nonneg have hb1 := sobolevCoefficientAmplitude_nonneg (ι := ι) q (4*L.Ri) L.C₁ (by positivity) L.C₁_nonneg have hC₀ := L.C₀_nonneg have hC₁ := L.C₁_nonneg have hbb := sobolevCoefficientAmplitude_nonneg (ι := ι) q (4*L.Ri) (18*L.Ri*L.C₀*L.C₁) (by positivity) (by positivity) have hbf := sobolevCoefficientAmplitude_nonneg (ι := ι) q (4*L.Ri) (3*L.Ri*L.C₀) (by positivity) (by positivity) unfold derivativeCost physicalCost coordinateCost positivity def commonCost : ℝ := L.velocityCost+L.derivativeCost theorem commonCost_nonneg : 0 ≤ L.commonCost := add_nonneg L.velocityCost_nonneg L.derivativeCost_nonneg theorem velocityCost_le_common : L.velocityCost ≤ L.commonCost := le_add_of_nonneg_right L.derivativeCost_nonneg theorem derivativeCost_le_common : L.derivativeCost ≤ L.commonCost := le_add_of_nonneg_left L.velocityCost_nonneg end Budget end EulerTransversePacketJoin