import Euler.PacketCylinderScalarGradient import Euler.CylinderConstantMapBounds import Euler.ParameterSobolevFiniteSum import Euler.CylinderPotentialWeight /-! Pressure-gradient bounds after literal time-profile division, with no profile extrema or time derivative. -/ /-! ## From `Euler/PacketCylinderScalarGradientBounds.lean` The text of `Euler/PacketCylinderScalarGradientBounds.lean`, folded into this file, which was its only importer. -/ section /-! The actual scalar pressure gradient uses one external word and keeps the same radius. -/ noncomputable section namespace EulerPacketCylinderField open Set Finset EulerLiftedGradientSpace EulerLpCylinderTranslation EulerCylinderConstantMap EulerCylinderScalarPrimitive EulerCylinderSmoothOrbit EulerCylinderSobolev EulerParameterWordGevrey EulerGevrey EulerPacketProfileRecursion open scoped ContDiff variable {P : ℝ} [Fact (0 < P)] section Path variable {K : Type*} [TopologicalSpace K] [CompactSpace K] (p : C(K,CylinderL2 P ℝ)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) def scalarGradientPath : C(K,LiftL2 P) := ∑ i : Fin 3, pathMap P (gradientComponent i) (derivativePath P (pathMap P scalarEmbed p) i.succ) include hp in theorem scalarGradientPath_block_bound (q n : ℕ) (a : LiftTangent) : block standardDirection q (fun b : LiftTangent => pathTranslate P b (scalarGradientPath p)) n a ≤ 3 * block standardDirection q (fun b : LiftTangent => pathTranslate P b p) (n+1) a := by let u := pathMap P scalarEmbed p have hu : ContDiff ℝ ∞ (fun b : LiftTangent => pathTranslate P b u) := pathMap_orbit_contDiff P scalarEmbed p hp let v := fun i : Fin 3 => pathMap P (gradientComponent i) (derivativePath P u i.succ) have hv (i : Fin 3) : ContDiff ℝ ∞ (fun b : LiftTangent => pathTranslate P b (v i)) := pathMap_orbit_contDiff P (gradientComponent i) _ (derivativePath_orbit P u hu i.succ) have hb (i : Fin 3) : block standardDirection q (fun b : LiftTangent => pathTranslate P b (v i)) n a ≤ block standardDirection q (fun b : LiftTangent => pathTranslate P b p) (n+1) a := by have h₁ := pathMap_block_bound P standardDirection q (gradientComponent i) (derivativePath P u i.succ) (derivativePath_orbit P u hu i.succ) n a have h₂ := h₁.trans (mul_le_mul_of_nonneg_right (gradientComponent_norm i) (block_nonneg standardDirection q (fun b : LiftTangent => pathTranslate P b (derivativePath P u i.succ)) n a)) simp only [one_mul] at h₂ have h₃ := h₂.trans (derivativePath_block_bound P u hu i.succ q n a) have h₄ := pathMap_block_bound P standardDirection q scalarEmbed p hp (n+1) a rw [scalarEmbed_norm,one_mul] at h₄ exact h₃.trans h₄ have hfun : (fun b : LiftTangent => pathTranslate P b (scalarGradientPath p)) = ∑ i : Fin 3, (fun b : LiftTangent => pathTranslate P b (v i)) := by funext b simp only [scalarGradientPath,map_sum,Finset.sum_apply,v,u] rw [hfun] have h := block_finset_sum_le standardDirection q univ (fun i : Fin 3 => fun b : LiftTangent => pathTranslate P b (v i)) (fun i _ => hv i) n a exact h.trans ((sum_le_sum (fun i _ => hb i)).trans_eq (by simp only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul,Nat.cast_ofNat])) include hp in theorem scalarGradientPath_majorant (q : ℕ) (R A : ℝ) (d : ℕ) (hb : ∀ n, block standardDirection q (fun b : LiftTangent => pathTranslate P b p) n 0 ≤ A * majorant R d n) (n : ℕ) : block standardDirection q (fun b : LiftTangent => pathTranslate P b (scalarGradientPath p)) n 0 ≤ (3*A) * majorant R (d+1) n := by have h := (scalarGradientPath_block_bound p hp q n 0).trans (mul_le_mul_of_nonneg_left (hb (n+1)) (by norm_num : (0 : ℝ) ≤ 3)) exact h.trans_eq (by simp only [majorant,show n+1+d=n+(d+1) by omega] ring) end Path section Field variable {T : ℝ} (raw : ScalarField) (p : C(Icc (0 : ℝ) T,CylinderL2 P ℝ)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (he : ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(x,θ)) = scalarPointField P p hp t (x,(θ : AddCircle P))) end Field end EulerPacketCylinderField end end noncomputable section namespace EulerPacketCylinderField open Set ContinuousLinearMap Finset EulerSmoothLimit EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular EulerCylinderConstantMap EulerCylinderScalarPrimitive EulerCylinderSmoothOrbit EulerCylinderPotential EulerCylinderSobolev EulerParameterWordGevrey EulerGevrey EulerContinuousTimeWeight EulerPacketProfileRecursion open scoped ContDiff variable {P : ℝ} [Fact (0 < P)] {K : Type*} [TopologicalSpace K] [CompactSpace K] private theorem pathMap_timeWeight {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] (L : E →L[ℝ] F) (g : C(K,ℝ)) (p : C(K,CylinderL2 P E)) : pathMap P L (weight g p) = weight g (pathMap P L p) := by apply ContinuousMap.ext intro t exact (map P L).map_smul (g t) (p t) variable (p : C(K,CylinderL2 P ℝ)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) include hp in theorem scalarWeightedOrbit (g : C(K,ℝ)) : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (weight g p)) := by have he : (fun a : LiftTangent => pathTranslate P a (weight g p)) = weight g ∘ (fun a : LiftTangent => pathTranslate P a p) := funext (fun a => translate_weight P g a p) rw [he] exact (weight g).contDiff.comp hp include hp in theorem scalarGradientPath_weight (g : C(K,ℝ)) : scalarGradientPath (weight g p) = weight g (scalarGradientPath p) := by unfold scalarGradientPath rw [map_sum] apply sum_congr rfl intro i _ rw [pathMap_timeWeight,derivativePath_weight P g (pathMap P scalarEmbed p) (pathMap_orbit_contDiff P scalarEmbed p hp) i.succ,pathMap_timeWeight] include hp in theorem scalarGradientPath_normalize (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) : scalarGradientPath (normalize g hg p) = normalize g hg (scalarGradientPath p) := scalarGradientPath_weight p hp (reciprocal g hg) include hp in theorem scalarGradientPath_normalized_majorant (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) (q : ℕ) (R A : ℝ) (d : ℕ) (hb : ∀ n, block standardDirection q (fun a : LiftTangent => pathTranslate P a (normalize g hg p)) n 0 ≤ A*majorant R d n) (n : ℕ) : block standardDirection q (fun a : LiftTangent => pathTranslate P a (normalize g hg (scalarGradientPath p))) n 0 ≤ (3*A)*majorant R (d+1) n := by rw [← scalarGradientPath_normalize p hp g hg] exact scalarGradientPath_majorant (normalize g hg p) (scalarWeightedOrbit p hp (reciprocal g hg)) q R A d hb n end EulerPacketCylinderField