import Euler.TransversePacketEndpointPointwise import Euler.TransversePacketPrimaryField import Euler.CylinderSliceRepresentatives /-! The actual joined primary, restricted to its history interval, is the literal compact periodic wave times the finite-dimensional endpoint history. In particular its angular derivative at zero has the manuscript's δ⁻¹ factor. -/ noncomputable section namespace EulerTransversePacketPrimary open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace EulerLpCylinderTranslation EulerCylinderSmoothOrbit EulerMetricTransport EulerTransversePacketProvider EulerVolterraConvolution EulerPacketTerminalDatum EulerSpatialCutoffs EulerPeriodicProfile variable {P : ℝ} [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) theorem vector_eq_history (f : LiftDomain P → U) (hf : Continuous f) (hrep : (Y.value : CylinderL2 P U) =ᵐ[liftMeasure P] f) (t : Icc (0 : ℝ) τ) (x : Space) (θ : ℝ) : vector τ hτ hτT B Y (t,(x,θ)) = B.coefficients.labelVelocity x (f (x,(θ : AddCircle P))) t := by let tg : Icc (0 : ℝ) D.T := ⟨t,t.property.1,t.property.2.trans hτT.le⟩ have he := congrFun (pointField_eq_of_slice_eq P (velocityPath τ hτ hτT B Y) (pastVelocity τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) (pastVelocity_orbit τ hτ hτT B Y) tg t (velocityPath_left τ hτ hτT B Y t)) (x,(θ : AddCircle P)) change pointField P (velocityPath τ hτ hτT B Y) _ (D.clamp tg) _ = _ rw [Data.clamp_coe] exact he.trans (EulerTransversePacketEndpoint.velocityPath_eq_history B (endpointData τ hτ hτT Y) f hf hrep t (x,(θ : AddCircle P))) omit P [Fact (0 < P)] Y in theorem vector_compact_wave_history (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) τ) (x : Space) (θ : ℝ) : vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,θ)) = (innerCutoff x*profile δ θ) • B.coefficients.labelVelocity x ξ t := by rw [vector_eq_history τ hτ hτT B (initialData D δ hδ ξ hs) (field δ ξ) (smoothField_continuous period _ (field_smooth δ hδ ξ)) (terminal_ae δ hδ ξ)] rw [field_coe,map_smul] rfl omit P [Fact (0 < P)] Y in theorem angular_derivative_zero_history (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) τ) (x : Space) : HasDerivAt (fun θ : ℝ => vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,θ))) ((innerCutoff x*δ⁻¹) • B.coefficients.labelVelocity x ξ t) 0 := by have he : (fun θ : ℝ => vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(x,θ))) = (fun θ => (innerCutoff x*profile δ θ) • B.coefficients.labelVelocity x ξ t) := funext (vector_compact_wave_history τ hτ hτT B δ hδ ξ hs t x) rw [he] have hp := (profile_hasDerivAt δ hδ 0).differentiableAt.hasDerivAt rw [profile_deriv_zero δ hδ] at hp exact (hp.const_mul (innerCutoff x)).smul_const (B.coefficients.labelVelocity x ξ t) omit P [Fact (0 < P)] Y in theorem angular_derivative_zero_origin (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) τ) : deriv (fun θ : ℝ => vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(0,θ))) 0 = δ⁻¹ • B.coefficients.labelVelocity 0 ξ t := by simpa only [innerCutoff_zero,one_mul] using (angular_derivative_zero_history τ hτ hτT B δ hδ ξ hs t 0).deriv omit P [Fact (0 < P)] Y in theorem angular_derivative_zero_origin_norm (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (t : Icc (0 : ℝ) τ) : ‖deriv (fun θ : ℝ => vector τ hτ hτT B (initialData D δ hδ ξ hs) (t,(0,θ))) 0‖ = δ⁻¹ * ‖B.coefficients.labelVelocity 0 ξ t‖ := by rw [angular_derivative_zero_origin τ hτ hτT B δ hδ ξ hs t,norm_smul, Real.norm_eq_abs,abs_of_pos (inv_pos.mpr hδ)] end EulerTransversePacketPrimary