import Euler.ContinuousInverseDerivative import Euler.InverseMapJetContinuity import Euler.PacketInverseFlowGevrey /-! The actual inverse parent flow needs only continuity as an input. Its differentiability, smooth spatial slices, and jointly continuous spatial jets follow from the prescribed Jacobian and inverse identities. -/ /-! ## From `Euler/PacketInverseFlowContinuity.lean` The text of `Euler/PacketInverseFlowContinuity.lean`, folded into this file, which was its only importer. -/ section /-! # Joint spatial-jet continuity for the prescribed inverse parent flow The smooth bounded coefficient paths already carry genuine continuous spatial jets. Their evaluation, together with the actual inverse identity, supplies all inverse-flow continuity hypotheses used by Sobolev transport. -/ noncomputable section open scoped ContDiff BoundedContinuousFunction namespace EulerMeanCoefficients.SmoothCoefficientPath open EulerSmoothLimit theorem jet_joint_continuous {K V : Type*} [TopologicalSpace K] [CompactSpace K] [NormedAddCommGroup V] [NormedSpace ℝ V] (A : SmoothCoefficientPath K V) (n : ℕ) : Continuous (fun p : K × Space => iteratedFDeriv ℝ n (A.field p.1 : Space → V) p.2) := by have heq : (fun p : K × Space => iteratedFDeriv ℝ n (A.field p.1 : Space → V) p.2) = fun p => A.jet n p.1 p.2 := by funext p exact (A.jet_eq n p.1 p.2).symm rw [heq] fun_prop end EulerMeanCoefficients.SmoothCoefficientPath namespace EulerPacketInverseFlowGevrey open Set EulerSmoothLimit EulerGevreyComposition variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) (X Y : Icc (0 : ℝ) D.T → Space → Space) (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) (hY : ∀ t, Differentiable ℝ (Y t)) (hXY : ∀ t x, X t (Y t x) = x) (hYjoint : Continuous (Function.uncurry Y)) include hX hY hXY hYjoint in /-- Every spatial inverse-flow jet is jointly continuous in time and space, derived from the original coefficient path and actual inverse relation. -/ theorem inverseFlow_jet_continuous (n : ℕ) : Continuous (fun p : Icc (0 : ℝ) D.T × Space => iteratedFDeriv ℝ n (Y p.1) p.2) := by exact continuous_iteratedFDeriv_of_fderiv_eq_comp Y (fun t => (D.FInv.field t : Space → Space →L[ℝ] Space)) hYjoint hY D.FInv.smooth D.FInv.jet_joint_continuous (inverseFlow_fderiv D X Y hX hY hXY) n end EulerPacketInverseFlowGevrey end end noncomputable section open scoped ContDiff namespace EulerPacketInverseFlowGevrey open Set EulerSmoothLimit EulerContinuousInverseDerivative variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) (X Y : Icc (0 : ℝ) D.T → Space → Space) (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) (hXY : ∀ t x, X t (Y t x) = x) (hY : Continuous (Function.uncurry Y)) include hX hXY hY in theorem continuousInverse_hasFDerivAt (t : Icc (0 : ℝ) D.T) (x : Space) : HasFDerivAt (Y t) (D.FInv.field t (Y t x)) x := hasFDerivAt_inverse (X t) (Y t) x (D.F.field t (Y t x)) (D.FInv.field t (Y t x)) (hY.uncurry_left t).continuousAt (hX t (Y t x)) (Filter.Eventually.of_forall (hXY t)) (D.inverse_left t (Y t x)) include hX hXY hY in theorem continuousInverse_differentiable (t : Icc (0 : ℝ) D.T) : Differentiable ℝ (Y t) := fun x => (continuousInverse_hasFDerivAt D X Y hX hXY hY t x).differentiableAt include hX hXY hY in theorem continuousInverse_contDiff (t : Icc (0 : ℝ) D.T) : ContDiff ℝ ∞ (Y t) := inverseFlow_contDiff D X Y hX (continuousInverse_differentiable D X Y hX hXY hY) hXY t include hX hXY hY in theorem continuousInverse_jet_continuous (n : ℕ) : Continuous (fun p : Icc (0 : ℝ) D.T × Space => iteratedFDeriv ℝ n (Y p.1) p.2) := inverseFlow_jet_continuous D X Y hX (continuousInverse_differentiable D X Y hX hXY hY) hXY hY n end EulerPacketInverseFlowGevrey