import Euler.MeanGramTranslation import Euler.MeanStrongEstimates import Euler.ContinuousGramAcceleration import Euler.TimeH1ContinuousDerivative import Euler.TimeH1Reconstruction import Euler.MeanStrongGevrey import Euler.TimeH1ReconstructionNaturality import Euler.MeanFixedCoefficientGevrey import Euler.ContinuousAccelerationGevrey /-! # Actual spatial orbits of continuous mean acceleration The ordinary solenoidal Gram inverse commutes with simultaneous translation of its data. This identifies the parameterized continuous solve with the genuine spatial orbit of the acceleration, including endpoint times. -/ /-! ## From `Euler/MeanClassicalTime.lean` The text of `Euler/MeanClassicalTime.lean`, folded into this file, which was its only importer. -/ section /-! # Continuous acceleration and classical time derivatives for the mean inverse With a continuous representative of the prescribed forcing, the actual strong equation constructs continuous coordinate acceleration and physical time derivative. The original AC paths have these derivatives at every interior time, and within the interval at both endpoints. -/ noncomputable section namespace EulerMeanVariationalInverse.StrongMeanEvolution open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerTimeLp EulerMeanSolenoidal EulerVolterraConvolution EulerTransverseGramInverse EulerTimeH1FieldProduct EulerTimeH1ContinuousDerivative EulerTimeH1Reconstruction EulerContinuousGramAcceleration -- Fix the Hilbert-space instances before forming continuous operator paths. private local instance : NormedAddCommGroup solenoidalSpace := inferInstance private local instance : InnerProductSpace ℝ solenoidalSpace := inferInstance private local instance : NormedAddCommGroup (solenoidalSpace →L[ℝ] L2) := inferInstance variable {T : ℝ} {hT : 0 ≤ T} {FInv F F₁ : C(Icc (0 : ℝ) T, L2 →L[ℝ] L2)} {A : L2 →L[ℝ] L2} {L : ℝ} {u f : TimeLp T L2} (s : StrongMeanEvolution T hT FInv F F₁ A L u f) /-- The original coordinate velocity is continuous on the closed time interval. -/ def coordinateVelocityPath : C(Icc (0 : ℝ) T, solenoidalSpace) := ⟨fun t => s.velocity t, by have hc : ContinuousOn s.velocity (Icc (0 : ℝ) T) := by simpa only [uIcc_of_le hT] using s.velocity_ac.continuousOn exact hc.domRestrict⟩ @[simp] theorem coordinateVelocityPath_apply (t : Icc (0 : ℝ) T) : s.coordinateVelocityPath t = s.velocity t := rfl /-- This is a continuous representative of the actual L² coordinate velocity. -/ theorem coordinateVelocityPath_ae : (s.velocityLp : ℝ → solenoidalSpace) =ᵐ[timeMeasure T] extendPath T hT s.coordinateVelocityPath := by filter_upwards [s.velocity_ae, ae_restrict_mem measurableSet_Icc] with t hv ht change s.velocityLp t = s.velocity (projIcc 0 T hT t) rw [projIcc_of_mem hT ht] exact hv /-- The already proved projected equation is the ordinary solenoidal Gram equation. -/ theorem gram_equation_ae : ∀ᵐ t ∂timeMeasure T, gram (extendPath T hT (solenoidalFrame T F) t) (s.acceleration t) = (solenoidalFrame T F (projIcc 0 T hT t)).adjoint (f t-(2 : ℝ) • solenoidalFrame T F₁ (projIcc 0 T hT t) (s.velocityLp t)) := by filter_upwards [s.equation, s.velocity_ae] with t ht hv have hh := congrArg (fun v : solenoidalSpace => solenoidalProjection ((F (projIcc 0 T hT t)).adjoint (f t-(2 : ℝ) • F₁ (projIcc 0 T hT t) (v : L2)))) hv exact gram_equation_of_ordinary (F (projIcc 0 T hT t)) (F₁ (projIcc 0 T hT t)) (f t) (s.acceleration t) (s.velocityLp t) (ht.trans hh.symm) variable (c : ℝ) (hc : 0 < c) (hLower : ∀ t v, c*‖v‖^2 ≤ ‖solenoidalFrame T F t v‖^2) (fC : C(Icc (0 : ℝ) T, L2)) /-- Continuous coordinate acceleration constructed by the actual Gram inverse. -/ def classicalAcceleration : C(Icc (0 : ℝ) T, solenoidalSpace) := accelerationPath T (solenoidalFrame T F) (solenoidalFrame T F₁) c hc hLower s.coordinateVelocityPath fC /-- The L² acceleration is genuinely represented by this continuous path. -/ theorem classicalAcceleration_ae (hf : (f : ℝ → L2) =ᵐ[timeMeasure T] extendPath T hT fC) : (s.acceleration : ℝ → solenoidalSpace) =ᵐ[timeMeasure T] extendPath T hT (s.classicalAcceleration c hc hLower fC) := accelerationPath_ae T (solenoidalFrame T F) (solenoidalFrame T F₁) c hc hLower hT s.velocityLp s.acceleration f s.coordinateVelocityPath fC s.coordinateVelocityPath_ae hf s.gram_equation_ae /-- The physical derivative path is the actual continuous product-rule expression. -/ def classicalPhysicalDerivative : C(Icc (0 : ℝ) T, L2) := ⟨fun t => F₁ t (s.coordinateVelocityPath t : L2) + F t (s.classicalAcceleration c hc hLower fC t : L2), (F₁.continuous.clm_apply (solenoidalSpace.subtypeL.continuous.comp s.coordinateVelocityPath.continuous)).add (F.continuous.clm_apply (solenoidalSpace.subtypeL.continuous.comp (s.classicalAcceleration c hc hLower fC).continuous))⟩ /-- This continuous path is the already constructed physical derivative B_t. -/ theorem classicalPhysicalDerivative_ae (hf : (f : ℝ → L2) =ᵐ[timeMeasure T] extendPath T hT fC) : (s.velocityDerivative : ℝ → L2) =ᵐ[timeMeasure T] extendPath T hT (s.classicalPhysicalDerivative c hc hLower fC) := by filter_upwards [fieldProductDerivative_ae T hT (solenoidalFrame T F) (solenoidalFrame T F₁) s.velocityLp s.acceleration, s.coordinateVelocityPath_ae, s.classicalAcceleration_ae c hc hLower fC hf] with t ht hv ha exact ht.trans (congrArg₂ (fun v a : solenoidalSpace => F₁ (projIcc 0 T hT t) (v : L2)+F (projIcc 0 T hT t) (a : L2)) hv ha) /-- The original physical mean velocity now has a classical time derivative at every time, including the endpoint derivatives within the interval. -/ theorem physical_hasDerivWithinAt (hf : (f : ℝ → L2) =ᵐ[timeMeasure T] extendPath T hT fC) (hF : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT F) (F₁ t) (Icc (0 : ℝ) T) t) (t : Icc (0 : ℝ) T) : HasDerivWithinAt s.physicalPath (s.classicalPhysicalDerivative c hc hLower fC t) (Icc (0 : ℝ) T) t := by have hp := s.physical_h1 hF exact hasDerivWithinAt_of_continuous_representative T hT s.velocityDerivative (s.classicalPhysicalDerivative c hc hLower fC) (s.classicalPhysicalDerivative_ae c hc hLower fC hf) s.physicalPath hp.1 hp.2.2 t end EulerMeanVariationalInverse.StrongMeanEvolution end end /-! ## From `Euler/MeanPointwiseGramTranslation.lean` The text of `Euler/MeanPointwiseGramTranslation.lean`, folded into this file, which was its only importer. -/ section /-! # Ordinary spatial covariance of the mean Gram inverse These identities act at one actual time slice in ordinary solenoidal L². They identify the continuous acceleration family with translation of the original acceleration, including endpoint time values. -/ noncomputable section namespace EulerMeanPointwiseGramTranslation open InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerMeanTimeTranslation EulerMeanOperatorTranslation EulerTransverseGramInverse private theorem eq_of_translated_inner (a : Space) (x y : solenoidalSpace) (h : ∀ v, ⟪x,solenoidalTranslation a v⟫_ℝ = ⟪y,solenoidalTranslation a v⟫_ℝ) : x = y := by apply ext_inner_right ℝ intro v simpa only [solenoidalTranslation_add, add_neg_cancel, solenoidalTranslation_zero] using h (solenoidalTranslation (-a) v) theorem frame_translation (a : Space) (F : L2 →L[ℝ] L2) (v : solenoidalSpace) : ((translateOperator a F).comp solenoidalSpace.subtypeL) (solenoidalTranslation a v) = translation a ((F.comp solenoidalSpace.subtypeL) v) := translateOperator_translation a F (v : L2) theorem frameAdjoint_translation (a : Space) (F : L2 →L[ℝ] L2) (f : L2) : ((translateOperator a F).comp solenoidalSpace.subtypeL).adjoint (translation a f) = solenoidalTranslation a ((F.comp solenoidalSpace.subtypeL).adjoint f) := by apply eq_of_translated_inner a intro v exact (adjoint_inner_left ((translateOperator a F).comp solenoidalSpace.subtypeL) (solenoidalTranslation a v) (translation a f)).trans ((congrArg (fun z : L2 => ⟪translation a f,z⟫_ℝ) (frame_translation a F v)).trans (((translation a).inner_map_map f ((F.comp solenoidalSpace.subtypeL) v)).trans ((adjoint_inner_left (F.comp solenoidalSpace.subtypeL) v f).symm.trans ((solenoidalTranslation a).inner_map_map ((F.comp solenoidalSpace.subtypeL).adjoint f) v).symm))) theorem gram_translation (a : Space) (F : L2 →L[ℝ] L2) (v : solenoidalSpace) : gram ((translateOperator a F).comp solenoidalSpace.subtypeL) (solenoidalTranslation a v) = solenoidalTranslation a (gram (F.comp solenoidalSpace.subtypeL) v) := (congrArg ((translateOperator a F).comp solenoidalSpace.subtypeL).adjoint (frame_translation a F v)).trans (frameAdjoint_translation a F ((F.comp solenoidalSpace.subtypeL) v)) theorem translated_lower (a : Space) (F : L2 →L[ℝ] L2) (c : ℝ) (hF : ∀ v : solenoidalSpace, c*‖v‖^2 ≤ ‖(F.comp solenoidalSpace.subtypeL) v‖^2) (v : solenoidalSpace) : c*‖v‖^2 ≤ ‖((translateOperator a F).comp solenoidalSpace.subtypeL) v‖^2 := by have h := hF (solenoidalTranslation (-a) v) change c*‖solenoidalTranslation (-a) v‖^2 ≤ ‖F (translation (-a) (v : L2))‖^2 at h change c*‖v‖^2 ≤ ‖translation a (F (translation (-a) (v : L2)))‖^2 simpa only [LinearIsometry.norm_map] using h theorem gramInverse_translation (a : Space) (F : L2 →L[ℝ] L2) (c : ℝ) (hc : 0 < c) (hF : ∀ v : solenoidalSpace, c*‖v‖^2 ≤ ‖(F.comp solenoidalSpace.subtypeL) v‖^2) (g : solenoidalSpace) : gramInverse ((translateOperator a F).comp solenoidalSpace.subtypeL) c hc (translated_lower a F c hF) (solenoidalTranslation a g) = solenoidalTranslation a (gramInverse (F.comp solenoidalSpace.subtypeL) c hc hF g) := by have he := (gram_translation a F (gramInverse (F.comp solenoidalSpace.subtypeL) c hc hF g)).trans (congrArg (solenoidalTranslation a) (gram_inverse_apply (F.comp solenoidalSpace.subtypeL) c hc hF g)) have hi := congrArg (gramInverse ((translateOperator a F).comp solenoidalSpace.subtypeL) c hc (translated_lower a F c hF)) he exact hi.symm.trans (inverse_gram_apply ((translateOperator a F).comp solenoidalSpace.subtypeL) c hc (translated_lower a F c hF) (solenoidalTranslation a (gramInverse (F.comp solenoidalSpace.subtypeL) c hc hF g))) /-- The actual one-time acceleration operator from the strong mean equation. -/ def acceleration (F F₁ : L2 →L[ℝ] L2) (c : ℝ) (hc : 0 < c) (hF : ∀ v : solenoidalSpace, c*‖v‖^2 ≤ ‖(F.comp solenoidalSpace.subtypeL) v‖^2) (v : solenoidalSpace) (f : L2) : solenoidalSpace := gramInverse (F.comp solenoidalSpace.subtypeL) c hc hF ((F.comp solenoidalSpace.subtypeL).adjoint (f-(2 : ℝ) • F₁ (v : L2))) /-- Simultaneously translating all data gives the actual translated acceleration. -/ theorem acceleration_translation (a : Space) (F F₁ : L2 →L[ℝ] L2) (c : ℝ) (hc : 0 < c) (hF : ∀ v : solenoidalSpace, c*‖v‖^2 ≤ ‖(F.comp solenoidalSpace.subtypeL) v‖^2) (v : solenoidalSpace) (f : L2) : acceleration (translateOperator a F) (translateOperator a F₁) c hc (translated_lower a F c hF) (solenoidalTranslation a v) (translation a f) = solenoidalTranslation a (acceleration F F₁ c hc hF v f) := by have hr : translation a f-(2 : ℝ) • translateOperator a F₁ (solenoidalTranslation a v : L2) = translation a (f-(2 : ℝ) • F₁ (v : L2)) := by exact (congrArg (fun z : L2 => translation a f-(2 : ℝ) • z) (translateOperator_translation a F₁ (v : L2))).trans (((translation a).map_sub f ((2 : ℝ) • F₁ (v : L2))).trans (congrArg (fun z : L2 => translation a f-z) ((translation a).map_smul (2 : ℝ) _))).symm have hg := (congrArg ((translateOperator a F).comp solenoidalSpace.subtypeL).adjoint hr).trans (frameAdjoint_translation a F (f-(2 : ℝ) • F₁ (v : L2))) exact (congrArg (gramInverse ((translateOperator a F).comp solenoidalSpace.subtypeL) c hc (translated_lower a F c hF)) hg).trans (gramInverse_translation a F c hc hF ((F.comp solenoidalSpace.subtypeL).adjoint (f-(2 : ℝ) • F₁ (v : L2)))) end EulerMeanPointwiseGramTranslation end end /-! ## From `Euler/MeanCoordinatePath.lean` The text of `Euler/MeanCoordinatePath.lean`, folded into this file, which was its only importer. -/ section /-! # Actual continuous coordinate-velocity spatial orbits The coordinate velocity is reconstructed from its genuine L² value and acceleration. Consequently its uniform-time spatial derivatives have the same fixed H¹ trace bound as the physical velocity. -/ noncomputable section namespace EulerMeanCoordinatePath open Set ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerMeanTimeTranslation EulerTimeLp EulerTimeH1Reconstruction EulerGevrey open scoped ContDiff /-- Spatial translation of continuous solenoidal coordinate paths. -/ def coordinatePathTranslation (T : ℝ) (a : Space) : C(Icc (0 : ℝ) T,solenoidalSpace) →L[ℝ] C(Icc (0 : ℝ) T,solenoidalSpace) := (solenoidalTranslation a).toContinuousLinearMap.compLeftContinuous ℝ (Icc (0 : ℝ) T) @[simp] theorem coordinatePathTranslation_apply (T : ℝ) (a : Space) (p : C(Icc (0 : ℝ) T,solenoidalSpace)) (t : Icc (0 : ℝ) T) : coordinatePathTranslation T a p t = solenoidalTranslation a (p t) := rfl theorem reconstruction_translation (T : ℝ) (hT : 0 ≤ T) (a : Space) (p q : TimeLp T solenoidalSpace) : coordinatePathTranslation T a (reconstruction T hT (p,q)) = reconstruction T hT (timeSolenoidalTranslation T a p, timeSolenoidalTranslation T a q) := by apply ContinuousMap.ext intro t exact (reconstruction_timeLift T hT (solenoidalTranslation a).toContinuousLinearMap p q t).symm end EulerMeanCoordinatePath namespace EulerMeanVariationalInverse.StrongMeanEvolution open Set ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerMeanTimeTranslation EulerMeanCoordinatePath EulerTimeLp EulerTimeH1Reconstruction EulerGevrey open scoped ContDiff variable {T : ℝ} {hT : 0 ≤ T} {FInv F F₁ : C(Icc (0 : ℝ) T, L2 →L[ℝ] L2)} {A : L2 →L[ℝ] L2} {L : ℝ} {u f : TimeLp T L2} (s : StrongMeanEvolution T hT FInv F F₁ A L u f) theorem coordinateVelocityPath_eq_reconstruction (hTpos : 0 < T) : s.coordinateVelocityPath = reconstruction T hT (s.velocityLp,s.acceleration) := by apply ContinuousMap.ext intro t exact (reconstruction_eq_path T hTpos s.velocityLp s.acceleration s.velocity s.velocity_ac s.velocity_ae s.velocity_derivative t).symm theorem coordinateVelocityPath_orbit_eq (hTpos : 0 < T) : (fun a : Space => coordinatePathTranslation T a s.coordinateVelocityPath) = fun a : Space => reconstruction T hT (timeSolenoidalTranslation T a s.velocityLp, timeSolenoidalTranslation T a s.acceleration) := by funext a exact (congrArg (coordinatePathTranslation T a) (s.coordinateVelocityPath_eq_reconstruction hTpos)).trans (reconstruction_translation T hT a s.velocityLp s.acceleration) /-- Uniform-time coordinate orbit regularity comes from the actual H¹ data. -/ theorem coordinateVelocityPath_translation_contDiff (hTpos : 0 < T) {n : ℕ∞ω} (hv : ContDiff ℝ n (fun a : Space => timeSolenoidalTranslation T a s.velocityLp)) (ha : ContDiff ℝ n (fun a : Space => timeSolenoidalTranslation T a s.acceleration)) : ContDiff ℝ n (fun a : Space => coordinatePathTranslation T a s.coordinateVelocityPath) := Eq.mpr (congrArg (fun g : Space → C(Icc (0 : ℝ) T,solenoidalSpace) => ContDiff ℝ n g) (s.coordinateVelocityPath_orbit_eq hTpos)) (reconstruction_contDiff T hT (fun a : Space => timeSolenoidalTranslation T a s.velocityLp) (fun a : Space => timeSolenoidalTranslation T a s.acceleration) hv ha) end EulerMeanVariationalInverse.StrongMeanEvolution end end noncomputable section namespace EulerMeanContinuousAcceleration open Set ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal EulerMeanTimeTranslation EulerMeanOperatorTranslation EulerMeanVariationalInverse EulerMeanTimeContinuousTranslation EulerMeanCoordinatePath EulerMeanGramTranslation EulerMeanFixedCoefficientRegularity EulerMeanFixedCoefficientGevrey EulerContinuousGramAcceleration EulerContinuousAccelerationGevrey EulerTimeLpGramGevrey EulerGevrey open scoped ContDiff private local instance : NormedAddCommGroup solenoidalSpace := inferInstance private local instance : InnerProductSpace ℝ solenoidalSpace := inferInstance private local instance : NormedAddCommGroup (solenoidalSpace →L[ℝ] L2) := inferInstance private local instance : NormedSpace ℝ (solenoidalSpace →L[ℝ] L2) := inferInstance private local instance : NormedAddCommGroup (L2 →L[ℝ] L2) := inferInstance private local instance : NormedSpace ℝ (L2 →L[ℝ] L2) := inferInstance private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,L2 →L[ℝ] L2) := inferInstance private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,L2 →L[ℝ] L2) := inferInstance private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,solenoidalSpace →L[ℝ] L2) := inferInstance private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,solenoidalSpace →L[ℝ] L2) := inferInstance variable (T : ℝ) (F F₁ : C(Icc (0 : ℝ) T,L2 →L[ℝ] L2)) (c : ℝ) (hc : 0 < c) (hLower : ∀ t v, c*‖v‖^2 ≤ ‖solenoidalFrame T F t v‖^2) (v : C(Icc (0 : ℝ) T,solenoidalSpace)) (f : C(Icc (0 : ℝ) T,L2)) /-- The continuous mean acceleration constructed at each actual time. -/ def meanAccelerationPath : C(Icc (0 : ℝ) T,solenoidalSpace) := accelerationPath T (solenoidalFrame T F) (solenoidalFrame T F₁) c hc hLower v f /-- The genuine spatial orbit equals the actual solve with translated data. -/ theorem meanAccelerationPath_orbit_eq : (fun a : Space => coordinatePathTranslation T a (meanAccelerationPath T F F₁ c hc hLower v f)) = fun a : Space => accelerationPath T (solenoidalFrame T (translatePath T a F)) (solenoidalFrame T (translatePath T a F₁)) c hc (translatedFrame_lower T F c hLower a) (coordinatePathTranslation T a v) (pathTranslation T a f) := by funext a apply ContinuousMap.ext intro t exact (EulerMeanPointwiseGramTranslation.acceleration_translation a (F t) (F₁ t) c hc (hLower t) (v t) (f t)).symm /-- Smooth coefficient and data orbits give the actual continuous acceleration orbit. -/ theorem meanAccelerationPath_translation_contDiff {n : ℕ∞ω} (hF : ContDiff ℝ n (fun a : Space => translatePath T a F)) (hF₁ : ContDiff ℝ n (fun a : Space => translatePath T a F₁)) (hv : ContDiff ℝ n (fun a : Space => coordinatePathTranslation T a v)) (hf : ContDiff ℝ n (fun a : Space => pathTranslation T a f)) : ContDiff ℝ n (fun a : Space => coordinatePathTranslation T a (meanAccelerationPath T F F₁ c hc hLower v f)) := by have hs := acceleration_contDiff T (fun a : Space => solenoidalFrame T (translatePath T a F)) (fun a : Space => solenoidalFrame T (translatePath T a F₁)) c hc (translatedFrame_lower T F c hLower) (fun a : Space => coordinatePathTranslation T a v) (fun a : Space => pathTranslation T a f) (contDiff_solenoidalFrame T (fun a => translatePath T a F) hF) (contDiff_solenoidalFrame T (fun a => translatePath T a F₁) hF₁) hv hf exact Eq.mpr (congrArg (fun g : Space → C(Icc (0 : ℝ) T,solenoidalSpace) => ContDiff ℝ n g) (meanAccelerationPath_orbit_eq T F F₁ c hc hLower v f)) hs end EulerMeanContinuousAcceleration