import Euler.CylinderAngleRepresentative import Euler.CylinderAnglePrimitive import Euler.ParameterSobolevProductGevrey import Euler.LpCylinderOrbit import Euler.CylinderTimeRegularity import Euler.LpCylinderRectangularRegularity import Euler.PacketPeriodicPotential import Euler.AnglePrimitiveMap /-! The literal periodic vector potential as an actual continuous cylinder L² path. -/ /-! ## From `Euler/CylinderAngleWordBounds.lean` The text of `Euler/CylinderAngleWordBounds.lean`, folded into this file, which was its only importer. -/ section /-! Same-radius mixed-word and continuous-time estimates for the actual angular operator. -/ noncomputable section namespace EulerCylinderAnglePrimitive open Set MeasureTheory EulerLiftedGradientSpace EulerParameterWordGevrey EulerGevrey EulerLpCylinderTranslation open scoped ContDiff variable (P : ℝ) [Fact (0 < P)] theorem primitive_hasDerivWithinAt (s : Set ℝ) (t : ℝ) (u : ℝ → LiftL2 P) (ut : LiftL2 P) (hu : HasDerivWithinAt u ut s t) : HasDerivWithinAt (fun r => primitive P (u r)) (primitive P ut) s t := (primitive P).hasFDerivAt.comp_hasDerivWithinAt t hu theorem primitive_mixed_translation (a : LiftTangent) (u : LiftL2 P) : primitive P (translate P a u) = translate P a (primitive P u) := primitive_translation P _ u variable {X ι : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [Fintype ι] variable {K : Type*} [TopologicalSpace K] [CompactSpace K] private local instance : NormedAddCommGroup C(K,LiftL2 P) := inferInstance private local instance : NormedSpace ℝ C(K,LiftL2 P) := inferInstance private local instance : NormedAddCommGroup (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance private local instance : NormedSpace ℝ (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance def pathPrimitive : C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P) := (primitive P).compLeftContinuous ℝ K omit [CompactSpace K] in @[simp] theorem pathPrimitive_apply (u : C(K,LiftL2 P)) (t : K) : pathPrimitive P u t = primitive P (u t) := rfl theorem pathPrimitive_norm : ‖pathPrimitive (K := K) P‖ ≤ P := by have hP : 0 ≤ P := le_of_lt (Fact.out : 0 < P) apply ContinuousLinearMap.opNorm_le_bound _ hP intro u apply (ContinuousMap.norm_le _ (mul_nonneg hP (norm_nonneg u))).mpr intro t exact ((primitive P).le_of_opNorm_le (primitive_norm P) (u t)).trans (mul_le_mul_of_nonneg_left (u.norm_coe_le_norm t) hP) /-- The angular operation preserves the same fixed base order and radius in the true time supremum. -/ theorem pathPrimitive_block_bound (directions : ι → X) (q : ℕ) (f : X → C(K,LiftL2 P)) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : block directions q (fun y => pathPrimitive P (f y)) n x ≤ P*block directions q f n x := by have h := block_comp_clm_le (E := C(K,LiftL2 P)) (F := C(K,LiftL2 P)) directions q (pathPrimitive (K := K) P) f hf n x have hn : ‖pathPrimitive (K := K) P‖ ≤ P := pathPrimitive_norm P exact h.trans (mul_le_mul_of_nonneg_right hn (block_nonneg directions q f n x)) end EulerCylinderAnglePrimitive end end /-! ## From `Euler/CylinderAngleEvolution.lean` The text of `Euler/CylinderAngleEvolution.lean`, folded into this file, which was its only importer. -/ section /-! Time differentiation of the actual normalized angular integral on the cylinder. -/ noncomputable section namespace EulerCylinderAnglePrimitive open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerMetricTransport EulerVolterraConvolution open scoped ContDiff variable (P : ℝ) [Fact (0 < P)] {K : Type*} [TopologicalSpace K] [CompactSpace K] omit [CompactSpace K] in theorem pathPrimitive_translation (p : C(K,LiftL2 P)) (a : LiftTangent) : pathPrimitive P (pathTranslate P a p) = pathTranslate P a (pathPrimitive P p) := by apply ContinuousMap.ext intro t exact primitive_mixed_translation P a (p t) theorem pathPrimitive_orbit_contDiff (p : C(K,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (pathPrimitive P p)) := by simpa only [Function.comp_def, pathPrimitive_translation] using (pathPrimitive (K := K) P).contDiff.comp hp theorem primitive_sobolevPath (p : C(K,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (q : ℕ) (t : K) : sobolevPath P q (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t = sobolevPrimitive P q (sobolevPath P q p hp t) := by apply value_injective P change value P (sobolevPath P q (pathPrimitive P p) _ t) = primitive P (value P (sobolevPath P q p hp t)) rw [sobolevPath_value, sobolevPath_value] rfl /-- The representative of the time-dependent L² primitive is the same explicit angular integral. -/ theorem pointField_primitive_formula (p : C(K,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (hmean : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P)))=0) (t : K) (y : Vector3) (θ : ℝ) : pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t (y,(θ : AddCircle P)) = EulerAngleMeanZeroPrimitive.primitive P (fun s => pointField P p hp t (y,(s : AddCircle P))) θ := by unfold pointField rw [primitive_sobolevPath P p hp 3 t] apply pointEvaluation_primitive_classical P (sobolevPath P 3 p hp t) (pointField P p hp t) (smoothField_continuous P _ (pointField_smooth P p hp t)) · simpa only [sobolevPath_value] using pointField_ae P p hp t · exact hmean t section Time variable (T : ℝ) (hT : 0 ≤ T) (p f : C(Icc (0 : ℝ) T,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a f)) (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT p) (f t) (Icc (0 : ℝ) T) t) include hd in theorem pathPrimitive_time_derivative (t : Icc (0 : ℝ) T) : HasDerivWithinAt (extendPath T hT (pathPrimitive P p)) (pathPrimitive P f t) (Icc (0 : ℝ) T) t := primitive_hasDerivWithinAt P _ t (extendPath T hT p) (f t) (hd t) end Time end EulerCylinderAnglePrimitive end end noncomputable section namespace EulerCylinderPotential open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace EulerMetricTransport EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerLpCylinderRectangular EulerCylinderAnglePrimitive EulerMeanCoefficients EulerPacketCrossProduct EulerParameterWordGevrey EulerGevrey open scoped ContDiff BoundedContinuousFunction variable (P : ℝ) [Fact (0 < P)] {K : Type*} [TopologicalSpace K] [CompactSpace K] (B : C(K,Space →ᵇ Space →L[ℝ] Space)) (hB : ContDiff ℝ ∞ (translateCoefficientPath B)) (p : C(K,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) def potentialPath : C(K,LiftL2 P) := fullMultiplierMap P B (pathPrimitive P p) include hB hp in theorem potentialPath_orbit : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (potentialPath P B p)) := product_orbit_contDiff P B hB (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) def potentialField (t : K) : LiftDomain P → Space := pointField P (potentialPath P B p) (potentialPath_orbit P B hB p hp) t theorem potentialPath_ae (t : K) : (potentialPath P B p t : LiftDomain P → Space) =ᵐ[liftMeasure P] fun x => B t x.1 (pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t x) := by filter_upwards [EulerLpOperatorField.full_ae (liftMeasure P) (fieldLift P (B t)) (pathPrimitive P p t), pointField_ae P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t] with x hB hp exact hB.trans (congrArg (B t x.1) hp) /-- The canonical representative is the coefficient times the literal angular primitive. -/ theorem potentialField_formula (hmean : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P))) = 0) (t : K) (y : Space) (θ : ℝ) : potentialField P B hB p hp t (y,(θ : AddCircle P)) = B t y (EulerAngleMeanZeroPrimitive.primitive P (fun s => pointField P p hp t (y,(s : AddCircle P))) θ) := by have he : potentialField P B hB p hp t = fun x => B t x.1 (pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t x) := by apply Measure.eq_of_ae_eq ((pointField_ae P (potentialPath P B p) (potentialPath_orbit P B hB p hp) t).symm.trans (potentialPath_ae P B p hp t)) · exact smoothField_continuous P _ (pointField_smooth P _ _ t) · exact ((B t).continuous.comp continuous_fst).clm_apply (smoothField_continuous P _ (pointField_smooth P _ _ t)) rw [he] change B t y (pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t (y,(θ : AddCircle P))) = _ rw [pointField_primitive_formula P p hp hmean t y θ] theorem potentialField_source_formula (hmean : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P))) = 0) (m : K → Space → Space) (hBm : ∀ t y, B t y = potentialMultiplier (m t y)) (t : K) (y : Space) (θ : ℝ) : potentialField P B hB p hp t (y,(θ : AddCircle P)) = EulerPacketAngularPotential.potential P (m t y) (fun s => pointField P p hp t (y,(s : AddCircle P))) θ := by rw [potentialField_formula P B hB p hp hmean t y θ, hBm] exact EulerAngleMeanZeroPrimitive.primitive_map _ P _ ((smoothField_continuous P _ (pointField_smooth P p hp t)).comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) θ include hB hp in /-- Angular integration and multiplication retain the input radius and external shift. -/ theorem potentialPath_block_bound {ι : Type*} [Fintype ι] (directions : ι → LiftTangent) (hd : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) (Rc C R D : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) (hD : 0 ≤ D) (hR : sobolevCoefficientRadius ι Rc ≤ R) (hbB : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath B) a‖ ≤ C*majorant Rc 0 n) (d : ℕ) (hbp : ∀ n, block directions q (fun a : LiftTangent => pathTranslate P a p) n 0 ≤ D*majorant R d n) (n : ℕ) : block directions q (fun a : LiftTangent => pathTranslate P a (potentialPath P B p)) n 0 ≤ (3*sobolevCoefficientAmplitude ι q Rc C*(P*D))*majorant R d n := by apply product_orbit_block_bound P B hB directions hd q (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) Rc C R (P*D) hRc hC (mul_nonneg (le_of_lt (Fact.out : 0 < P)) hD) hR hbB d _ n intro j have h := pathPrimitive_block_bound P directions q (fun a : LiftTangent => pathTranslate P a p) hp j 0 simp only [pathPrimitive_translation] at h exact h.trans ((mul_le_mul_of_nonneg_left (hbp j) (le_of_lt (Fact.out : 0 < P))).trans_eq (mul_assoc P D _).symm) end EulerCylinderPotential