import Euler.TransverseFixedSpaceInverse import Euler.TransverseStrongEquation import Euler.TimeLpGramInverse import Euler.TimeH1Reconstruction import Euler.ContinuousGramAcceleration import Euler.TimeH1ContinuousDerivative /-! # Continuous coordinate velocity of the actual fixed Dirichlet inverse The acceleration is constructed by the true Gram inverse. The weak solve proves it is the derivative of the solved coordinate velocity; bounded H¹ reconstruction then supplies the actual continuous history path. -/ /-! ## From `Euler/TransverseFixedStrong.lean` The text of `Euler/TransverseFixedStrong.lean`, folded into this file, which was its only importer. -/ section /-! # The actual fixed-coordinate Dirichlet inverse satisfies the strong equation This version uses the range of the frame directly. It applies to supported spatial or cylinder L² spaces, where a pointwise transverse constraint must not be replaced by orthogonality to a single Hilbert-space vector. -/ noncomputable section namespace EulerTransverseFixedStrong open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerTimeLp EulerTerminalTimePrimitive EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FrameTransport EulerTransverseFixedSpaceInverse EulerTransverseCoordinateRegularity EulerTransverseMomentumRegularity EulerTransverseStrongEquation EulerTransverseGramInverse variable {U E : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] (T : ℝ) (hT : 0 ≤ T) (Q Q₁ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) (hsmall : K*(T^2/2) ≤ 1/2) /-- The actual derivative of the physical displacement from the fixed inverse. -/ def physicalDerivative : TimeLp T E →L[ℝ] TimeLp T E := (fixedFrameDerivative T hT Q Q₁).comp (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall) theorem physicalDerivative_range (f : TimeLp T E) (t : Icc (0 : ℝ) T) : ∃ v : U, Q t v = realPrimitive T (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) t := by let w := fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall f refine ⟨terminalPrimitive T hT (w : TimeLp T U) t, ?_⟩ exact (terminalPrimitive_productDerivative T hT Q Q₁ hd (w : TimeLp T U) t).symm /-- The existing coordinate derivative is exactly the solved fixed-space field. -/ theorem coordinateDerivative_eq (f : TimeLp T E) : coordinateDerivative T hT Q Q₁ c hc hQ (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) = (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : TimeLp T U) := coordinateDerivative_productDerivative T hT Q Q₁ c hc hQ hd _ /-- Actual product tests supply the weak momentum identity for this inverse. -/ theorem momentum_weak (f : TimeLp T E) (v : TimeLp T U) (hv : initialTrace T hT v = 0) : ⟪momentum T hT Q (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f),v⟫_ℝ = -⟪momentumForcing T hT Q Q₁ H (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) f, primitiveTimeLp T hT v⟫_ℝ := by apply momentum_weak_of_product_tests T hT Q Q₁ hd H (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) f v exact fixedFrameSolver_weak T hT Q Q₁ H c hc hQ hd K hK hH hsmall f ⟨v,hv⟩ variable (Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (hd₁ : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) include hd₁ hframe in /-- A true H¹ coordinate velocity and equation (10) follow from the fixed coercive solve. There is no assumed strong solution or ambient normal. -/ theorem exists_strong (hTpos : 0 < T) (f : TimeLp T E) : let u := physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f ∃ v : ℝ → U, AbsolutelyContinuousOnInterval v 0 T ∧ (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] v ∧ (∀ᵐ t ∂timeMeasure T, HasDerivAt v (coordinateSecondDerivative T hT Q Q₁ Q₂ c hc hQ H u f t) t) ∧ ∀ᵐ t ∂timeMeasure T, gram (extendPath T hT Q t) (coordinateSecondDerivative T hT Q Q₁ Q₂ c hc hQ H u f t) = (extendPath T hT Q t).adjoint (f t-(2 : ℝ) • extendPath T hT Q₁ t (v t)) := by let u := physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f obtain ⟨v,_,hv,hrep,_,hder,heq⟩ := exists_strong_of_weak_momentum T hT Q Q₁ Q₂ c hc hQ hd hd₁ hTpos H u f (physicalDerivative_range T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) hframe (momentum_weak T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) refine ⟨v,hv,?_,hder,heq⟩ change (coordinateDerivative T hT Q Q₁ c hc hQ (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) : ℝ → U) =ᵐ[timeMeasure T] v at hrep rw [coordinateDerivative_eq T hT Q Q₁ H c hc hQ hd K hK hH hsmall f] at hrep exact hrep end EulerTransverseFixedStrong end end noncomputable section namespace EulerTransverseFixedEvolution open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerTimeLp EulerTerminalTimePrimitive EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FrameTransport EulerTransverseFixedSpaceInverse EulerTransverseFixedStrong EulerTransverseCoordinateRegularity EulerTransverseMomentumRegularity EulerTransverseStrongEquation EulerTransverseGramInverse EulerTransverseGramPath EulerTimeLpGramInverse EulerTimeH1Reconstruction variable {U E : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] (T : ℝ) (hT : 0 ≤ T) (Q Q₁ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) (hsmall : K*(T^2/2) ≤ 1/2) def velocityLp : TimeLp T E →L[ℝ] TimeLp T U := (zeroTraceDerivatives (U := U) T hT).subtypeL.comp (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall) def accelerationLp : TimeLp T E →L[ℝ] TimeLp T U := (gramSolver T hT Q c hc hQ).comp ((timeMultiplier T hT Q).adjoint.comp (ContinuousLinearMap.id ℝ (TimeLp T E)-(2 : ℝ) • (timeMultiplier T hT Q₁).comp (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall))) def velocityPath : TimeLp T E →L[ℝ] C(Icc (0 : ℝ) T,U) := (valuePart T hT).comp (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall)+ (derivativePart T hT).comp (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall) theorem accelerationLp_ae (f : TimeLp T E) : (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] fun t => gramInverse (Q (projIcc 0 T hT t)) c hc (hQ (projIcc 0 T hT t)) ((Q (projIcc 0 T hT t)).adjoint (f t-(2 : ℝ) • Q₁ (projIcc 0 T hT t) (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t))) := by let v := velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f let w := f-(2 : ℝ) • timeMultiplier T hT Q₁ v change (gramSolver T hT Q c hc hQ ((timeMultiplier T hT Q).adjoint w) : ℝ → U) =ᵐ[timeMeasure T] _ rw [gramSolver_eq_multiplier] filter_upwards [timeMultiplier_ae T hT (gramInversePath T Q c hc hQ) ((timeMultiplier T hT Q).adjoint w), momentum_ae T hT Q w, Lp.coeFn_sub f ((2 : ℝ) • timeMultiplier T hT Q₁ v), Lp.coeFn_smul (2 : ℝ) (timeMultiplier T hT Q₁ v),timeMultiplier_ae T hT Q₁ v] with t ha hm hw hs hv change w t = _ at hw change ((timeMultiplier T hT Q).adjoint w) t = _ at hm rw [ha,hm,hw,Pi.sub_apply,hs,Pi.smul_apply,hv] rfl theorem accelerationLp_equation (f : TimeLp T E) : ∀ᵐ t ∂timeMeasure T, gram (extendPath T hT Q t) (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) = (extendPath T hT Q t).adjoint (f t-(2 : ℝ) • extendPath T hT Q₁ t (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t)) := by filter_upwards [accelerationLp_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall f] with t ht change gram (Q (projIcc 0 T hT t)) _ = _ rw [ht] exact gram_inverse_apply _ c hc (hQ (projIcc 0 T hT t)) _ variable (Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (hd₁ : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) include hd₁ hframe in theorem velocityLp_h1 (hTpos : 0 < T) (f : TimeLp T E) : ∃ v : ℝ → U, AbsolutelyContinuousOnInterval v 0 T ∧ (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] v ∧ ∀ᵐ t ∂timeMeasure T, HasDerivAt v (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) t := by obtain ⟨v,hv,hrep,hder,heq⟩ := EulerTransverseFixedStrong.exists_strong T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos f refine ⟨v,hv,hrep,?_⟩ filter_upwards [hder,heq,hrep,accelerationLp_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall f] with t hdt het hvt hat dsimp only [extendPath] at het have hi := congrArg (gramInverse (Q (projIcc 0 T hT t)) c hc (hQ (projIcc 0 T hT t))) het rw [inverse_gram_apply] at hi change (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) t = v t at hvt rw [← hvt,← hat] at hi rw [← hi] exact hdt theorem velocityPath_eq (hTpos : 0 < T) (f : TimeLp T E) (v : ℝ → U) (hv : AbsolutelyContinuousOnInterval v 0 T) (hrep : (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] v) (hder : ∀ᵐ t ∂timeMeasure T, HasDerivAt v (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) t) (t : Icc (0 : ℝ) T) : velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t = v t := reconstruction_eq_path T hTpos _ _ v hv hrep hder t include hd₁ hframe in theorem velocityPath_ae (hTpos : 0 < T) (f : TimeLp T E) : (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] extendPath T hT (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) := by obtain ⟨v,hv,hrep,hder⟩ := velocityLp_h1 T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos f filter_upwards [hrep,ae_restrict_mem measurableSet_Icc] with t ht hmem rw [ht] change v t = velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f (projIcc 0 T hT t) rw [projIcc_of_mem hT hmem] exact (velocityPath_eq T hT Q Q₁ H c hc hQ hd K hK hH hsmall hTpos f v hv hrep hder ⟨t,hmem⟩).symm end EulerTransverseFixedEvolution