import Euler.FieldTowerVolumeSobolev import Euler.PacketInverseFlowGevrey import Euler.PacketContinuousInverse import Euler.PacketVolumeDivergence import Euler.SmoothL2CoefficientPath import Euler.FieldTowerAlgebra import Euler.FlowL2Transport import Euler.PacketSourceCorrectionCoefficients /-! Actual Eulerian reconstructions have every spatial derivative in L², continuously in time. Sobolev embedding also supplies bounded smooth coefficient paths for the velocity and pressure force. -/ /-! ## From `Euler/PacketInverseFlowSobolevBound.lean` The text of `Euler/PacketInverseFlowSobolevBound.lean`, folded into this file, which was its only importer. -/ section /-! A finite-order Sobolev composition constant obtained from the actual parent deformation. No inverse-flow derivative budget is assumed. -/ noncomputable section namespace EulerPacketInverseFlowGevrey open Set EulerSmoothLimit EulerGevrey EulerPacketPiola open scoped ContDiff BoundedContinuousFunction def finiteOrderConstant (C R : ℝ) (n : ℕ) : ℝ := 1+9*C^2*(sourceInverseRadius C R)^n*(n.factorial : ℝ)^2 theorem sourceInverseRadius_one_le (C R : ℝ) (hR : 0 ≤ R) : 1 ≤ sourceInverseRadius C R := by unfold sourceInverseRadius have h : 0 ≤ 18*C^2*R := by positivity linarith theorem finiteOrderConstant_one_le (C R : ℝ) (hR : 0 ≤ R) (n : ℕ) : 1 ≤ finiteOrderConstant C R n := by have hL := (sourceInverseRadius_pos C R hR).le unfold finiteOrderConstant have h : 0 ≤ 9*C^2*(sourceInverseRadius C R)^n*(n.factorial : ℝ)^2 := by positivity linarith 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) (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hdet : ∀ t x, (operatorMatrix (D.F.field t x)).det = 1) (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → (Space →L[ℝ] Space)) x‖ ≤ C*majorant R 0 n) include hX hY hXY hR hC hdet hF in theorem inverseFlow_finiteOrderBound (n i : ℕ) (hi : 1 ≤ i) (hin : i ≤ n) (t : Icc (0 : ℝ) D.T) (x : Space) : ‖iteratedFDeriv ℝ i (Y t) x‖ ≤ (finiteOrderConstant C R n)^i := by obtain ⟨j,rfl⟩ := Nat.exists_eq_succ_of_ne_zero (by omega : i ≠ 0) have hjn : j ≤ n := by omega have hL := sourceInverseRadius_one_le C R hR have hD := finiteOrderConstant_one_le C R hR n have hfac : (j.factorial : ℝ) ≤ (n.factorial : ℝ) := by exact_mod_cast Nat.factorial_le hjn have hbound : 9*C^2*(sourceInverseRadius C R)^j*(j.factorial : ℝ)^2 ≤ 9*C^2*(sourceInverseRadius C R)^n*(n.factorial : ℝ)^2 := by gcongr calc _ ≤ 9*C^2*(sourceInverseRadius C R)^j*(j.factorial : ℝ)^2 := inverseFlow_gevrey D X Y hX hY hXY R C hR hC hdet hF j t x _ ≤ finiteOrderConstant C R n := by exact hbound.trans (by unfold finiteOrderConstant; linarith) _ = (finiteOrderConstant C R n)^1 := (pow_one _).symm _ ≤ _ := pow_le_pow_right₀ hD hi end EulerPacketInverseFlowGevrey end end /-! ## From `Euler/PacketSourceVolumeSobolev.lean` The text of `Euler/PacketSourceVolumeSobolev.lean`, folded into this file, which was its only importer. -/ section /-! Spatial Sobolev paths for the actual inverse parent flow. Its measure preservation, smoothness, derivative bounds and jet continuity are all derived from the source deformation and inverse identities. -/ noncomputable section namespace EulerPacketSourceVolumeSobolev open Set MeasureTheory EulerSmoothLimit EulerAllOrderCorrectionData EulerFlowL2Transport EulerPacketInverseFlowGevrey EulerPacketPiola EulerCylinderPhysicalTensor EulerGraphPressurePotential EulerGevrey open scoped ContDiff variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) {P : ℝ} [Fact (0 < P)] (Z : FieldTower P D.T) (k : ℝ) (m : Space) (X Y : Icc (0 : ℝ) D.T → Space → Space) (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) (hYX : ∀ t, Function.LeftInverse (Y t) (X t)) (hXY : ∀ t, Function.RightInverse (Y t) (X t)) (hYjoint : Continuous (Function.uncurry Y)) (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hdet : ∀ t x, (operatorMatrix (D.F.field t x)).det = 1) (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → (Space →L[ℝ] Space)) x‖ ≤ C*majorant R 0 n) include hX hYX hXY hYjoint hdet in theorem inversePath_volume (t : Icc (0 : ℝ) D.T) : MeasurePreserving (inversePath Y hYjoint t) volume volume := by apply inversePath_measurePreserving X Y (fun s x => D.F.field s x) hX hYX hXY hYjoint intro s x rw [← EulerPacketVolumeDivergence.operatorMatrix_det] exact hdet s x def tensorPath (n : ℕ) : C(Icc (0 : ℝ) D.T,Lp (Space [×n]→L[ℝ] Space) 2 (volume : Measure Space)) := Z.volumeTensorPath k m (inversePath Y hYjoint) (inversePath_volume D X Y hX hYX hXY hYjoint hdet) n (finiteOrderConstant C R n) (zero_le_one.trans (finiteOrderConstant_one_le C R hR n)) (fun i _ _ => continuousInverse_jet_continuous D X Y hX hXY hYjoint i) (fun i hi hin => inverseFlow_finiteOrderBound D X Y hX (continuousInverse_differentiable D X Y hX hXY hYjoint) hXY R C hR hC hdet hF n i hi hin) theorem tensorPath_ae (n : ℕ) (t : Icc (0 : ℝ) D.T) : (tensorPath D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF n t : Space → (Space [×n]→L[ℝ] Space)) =ᵐ[volume] iteratedFDeriv ℝ n (fun x => Z.pointField t (cylinderGraph P k m (Y t x))) := Z.volumeTensorPath_ae k m (inversePath Y hYjoint) (inversePath_volume D X Y hX hYX hXY hYjoint hdet) n (finiteOrderConstant C R n) (zero_le_one.trans (finiteOrderConstant_one_le C R hR n)) (fun i _ _ => continuousInverse_jet_continuous D X Y hX hXY hYjoint i) (fun i hi hin => inverseFlow_finiteOrderBound D X Y hX (continuousInverse_differentiable D X Y hX hXY hYjoint) hXY R C hR hC hdet hF n i hi hin) (continuousInverse_contDiff D X Y hX hXY hYjoint) t end EulerPacketSourceVolumeSobolev end end /-! ## From `Euler/PacketSourceSmoothField.lean` The text of `Euler/PacketSourceSmoothField.lean`, folded into this file, which was its only importer. -/ section /-! The actual source-flow pullback is a smooth spatial L² field at every time. Its tensor paths also give a bounded smooth coefficient path, with continuity in the uniform norm at every spatial order. -/ noncomputable section namespace EulerPacketSourceVolumeSobolev open Set MeasureTheory EulerSmoothLimit EulerAllOrderCorrectionData EulerFlowL2Transport EulerPacketInverseFlowGevrey EulerPacketPiola EulerCylinderPhysicalTensor EulerGraphPressurePotential EulerGevrey EulerLpTranslation EulerMeanCoefficients open scoped ContDiff variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) {P : ℝ} [Fact (0 < P)] (Z : FieldTower P D.T) (k : ℝ) (m : Space) (X Y : Icc (0 : ℝ) D.T → Space → Space) (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) (hYX : ∀ t, Function.LeftInverse (Y t) (X t)) (hXY : ∀ t, Function.RightInverse (Y t) (X t)) (hYjoint : Continuous (Function.uncurry Y)) (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hdet : ∀ t x, (operatorMatrix (D.F.field t x)).det=1) (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → (Space →L[ℝ] Space)) x‖ ≤ C*majorant R 0 n) def smoothField (t : Icc (0 : ℝ) D.T) : SmoothL2Field Space where field x := Z.pointField t (cylinderGraph P k m (Y t x)) smooth := (Z.physicalPointField_smooth k m t).comp (continuousInverse_contDiff D X Y hX hXY hYjoint t) integrable n := (Lp.memLp (tensorPath D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF n t)).ae_eq (tensorPath_ae D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF n t) theorem smoothField_jetLp (n : ℕ) (t : Icc (0 : ℝ) D.T) : (smoothField D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF t).jetLp n = tensorPath D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF n t := by apply Lp.ext exact (SmoothL2Field.jetLp_ae _ n).trans (tensorPath_ae D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF n t).symm theorem smoothField_jetLp_continuous (n : ℕ) : Continuous (fun t => (smoothField D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF t).jetLp n) := by simp only [smoothField_jetLp] exact (tensorPath D Z k m X Y hX hYX hXY hYjoint R C hR hC hdet hF n).continuous end EulerPacketSourceVolumeSobolev end end /-! ## From `Euler/PacketPhysicalFieldTower.lean` The text of `Euler/PacketPhysicalFieldTower.lean`, folded into this file, which was its only importer. -/ section /-! Reconstruction W=κFz is a genuine all-order field tower. Its graph restriction and its actual inverse-flow pullback are continuous spatial L² paths, with no independent integrability assumption on the perturbation. -/ noncomputable section namespace EulerPacketPhysicalField open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerAllOrderCorrectionData EulerPacketCorrectionCoefficients EulerCylinderPhysicalTensor EulerGraphPressurePotential EulerFlowL2Transport variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) (P : ℝ) [Fact (0 < P)] (κ : ℝ) (Z : FieldTower P D.T) def reconstructedTower : FieldTower P D.T := (Z.multiply ((frameCoefficient D).toCoefficientTower P)).smul κ theorem reconstructedTower_pointField (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : (reconstructedTower D P κ Z).pointField t x = κ • D.F.field t x.1 (Z.pointField t x) := by rw [reconstructedTower,FieldTower.smul_pointField,FieldTower.multiply_pointField] rfl variable (X Y : Icc (0 : ℝ) D.T → Space → Space) (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) (hYX : ∀ t, Function.LeftInverse (Y t) (X t)) (hXY : ∀ t, Function.RightInverse (Y t) (X t)) (hY : Continuous (Function.uncurry Y)) (hdet : ∀ t x, (D.F.field t x).det=1) end EulerPacketPhysicalField end end noncomputable section namespace EulerPacketPhysicalField open Set MeasureTheory EulerSmoothLimit EulerAllOrderCorrectionData EulerPacketCorrectionCoefficients EulerGraphPressurePotential EulerGevrey EulerLpTranslation EulerMeanCoefficients EulerPacketPiola variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) (P : ℝ) [Fact (0 < P)] (κ : ℝ) (Z : FieldTower P D.T) def pressureForceTower : FieldTower P D.T := (Z.multiply ((inverseCoefficient D).adjoint.toCoefficientTower P)).smul κ theorem pressureForceTower_pointField (t : Icc (0 : ℝ) D.T) (x : EulerLiftedGradientSpace.LiftDomain P) : (pressureForceTower D P κ Z).pointField t x = κ • (D.FInv.field t x.1).adjoint (Z.pointField t x) := by rw [pressureForceTower, FieldTower.smul_pointField, FieldTower.multiply_pointField] rfl variable (k : ℝ) (X Y : Icc (0 : ℝ) D.T → Space → Space) (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) (hYX : ∀ t, Function.LeftInverse (Y t) (X t)) (hXY : ∀ t, Function.RightInverse (Y t) (X t)) (hY : Continuous (Function.uncurry Y)) (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hdet : ∀ t x, (operatorMatrix (D.F.field t x)).det=1) (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → (Space →L[ℝ] Space)) x‖ ≤ C*majorant R 0 n) def eulerianSmoothField (t : Icc (0 : ℝ) D.T) : SmoothL2Field Space := EulerPacketSourceVolumeSobolev.smoothField D (reconstructedTower D P κ Z) k D.m₀ X Y hX hYX hXY hY R C hR hC hdet hF t theorem eulerianSmoothField_apply (t : Icc (0 : ℝ) D.T) (x : Space) : (eulerianSmoothField D P κ Z k X Y hX hYX hXY hY R C hR hC hdet hF t).field x = κ • D.F.field t (Y t x) (Z.pointField t (cylinderGraph P k D.m₀ (Y t x))) := reconstructedTower_pointField D P κ Z t (cylinderGraph P k D.m₀ (Y t x)) theorem eulerianSmoothField_jetLp_continuous (n : ℕ) : Continuous (fun t => (eulerianSmoothField D P κ Z k X Y hX hYX hXY hY R C hR hC hdet hF t).jetLp n) := EulerPacketSourceVolumeSobolev.smoothField_jetLp_continuous D (reconstructedTower D P κ Z) k D.m₀ X Y hX hYX hXY hY R C hR hC hdet hF n def pressureForceSmoothField (t : Icc (0 : ℝ) D.T) : SmoothL2Field Space := EulerPacketSourceVolumeSobolev.smoothField D (pressureForceTower D P κ Z) k D.m₀ X Y hX hYX hXY hY R C hR hC hdet hF t theorem pressureForceSmoothField_apply (t : Icc (0 : ℝ) D.T) (x : Space) : (pressureForceSmoothField D P κ Z k X Y hX hYX hXY hY R C hR hC hdet hF t).field x = κ • (D.FInv.field t (Y t x)).adjoint (Z.pointField t (cylinderGraph P k D.m₀ (Y t x))) := pressureForceTower_pointField D P κ Z t (cylinderGraph P k D.m₀ (Y t x)) theorem pressureForceSmoothField_jetLp_continuous (n : ℕ) : Continuous (fun t => (pressureForceSmoothField D P κ Z k X Y hX hYX hXY hY R C hR hC hdet hF t).jetLp n) := EulerPacketSourceVolumeSobolev.smoothField_jetLp_continuous D (pressureForceTower D P κ Z) k D.m₀ X Y hX hYX hXY hY R C hR hC hdet hF n end EulerPacketPhysicalField