import Euler.CylinderSmoothTimeField import Euler.PacketFieldTensorBounds import Euler.SmoothTimeFieldAlgebra import Euler.CorrectionSmoothTimeField import Euler.AllOrderDriftFieldDecomposition import Euler.CylinderJetLp /-! Actual smooth four-dimensional coefficients of the corrected packet. The lifted field equals the constructed exact velocity, has the genuine time derivative, is periodic, and has zero divergence. -/ /-! ## From `Euler/PacketFieldSmoothTimeField.lean` The text of `Euler/PacketFieldSmoothTimeField.lean`, folded into this file, which was its only importer. -/ section /-! The actual finite packet fields supply bounded smooth cover coefficients. Their fixed-Hq word bounds give uniform tensor-jet bounds, with a single fixed coordinate radius conversion. -/ noncomputable section namespace EulerPacketCylinderField.Field open Set EulerSmoothLimit EulerLiftedGradientSpace EulerCylinderSmoothOrbit EulerCylinderSmoothTimeField EulerCylinderCoordinates EulerCylinderSobolevSpace EulerPacketProfileRecursion EulerGevrey open scoped ContDiff BoundedContinuousFunction variable {P T : ℝ} [Fact (0 < P)] {raw raw_t : VectorField} private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent [×n]→L[ℝ] Space) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent [×n]→L[ℝ] Space) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance def toSmoothTimeField (G : Field P T raw) : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent Space := ofPath P G.path G.orbit theorem toSmoothTimeField_apply (G : Field P T raw) (t : Icc (0 : ℝ) T) (x : LiftTangent) : G.toSmoothTimeField.field t x = raw (t,x) := (G.raw_eq t x.1 x.2).symm theorem toSmoothTimeField_timeDerivative (G : Field P T raw) (H : Field P T raw_t) (hT : 0 ≤ T) (hd : TimeDerivative hT G H) : SmoothTimeField.TimeDerivative T hT G.toSmoothTimeField H.toSmoothTimeField := by intro t x exact pointField_hasDerivWithinAt P T hT G.path H.path G.orbit H.orbit hd t (coveringMap P x) theorem toSmoothTimeField_map_jet (G : Field P T raw) (L : Space →L[ℝ] Space) (n : ℕ) : (G.map L).toSmoothTimeField.jet n = (G.toSmoothTimeField.map L).jet n := by apply SmoothTimeField.jet_eq_of_field_eq intro t x rw [(G.map L).toSmoothTimeField_apply, SmoothTimeField.map_apply, G.toSmoothTimeField_apply] theorem WordBound.toSmoothTimeField_jet_bound {G : Field P T raw} {q : ℕ} {R A : ℝ} (hG : G.WordBound q R A 0) (hq : 3 ≤ q) (hR : 0 ≤ R) (hA : 0 ≤ A) (n : ℕ) : ‖G.toSmoothTimeField.jet n‖ ≤ (sobolevEmbeddingConstant P 3*A) * (‖coordinateEquiv.symm.toContinuousLinearMap‖*R)^n * (n.factorial : ℝ)^2 := by have hS := sobolevEmbeddingConstant_nonneg P 3 apply ofPath_jet_norm_le P G.path G.orbit n _ (by positivity) intro t x have he : (fun y => pointField P G.path G.orbit t (coveringMap P y)) = fun y => raw (t,y) := funext (fun y => (G.raw_eq t y.1 y.2).symm) rw [he] apply (hG.raw_tensor_le hq t n x).trans_eq simp only [majorant, Nat.add_zero, mul_pow] ring end EulerPacketCylinderField.Field end end noncomputable section namespace EulerAllOrderDriftCorrection open Set MeasureTheory EulerAllOrderCorrectionData EulerLiftedGradientSpace EulerSmoothLimit EulerPacketCylinderField EulerPacketProfileRecursion EulerCylinderSmoothOrbit EulerLiftedSmoothTimeField EulerLiftedTransportTrace EulerMetricTransport open scoped ContDiff BoundedContinuousFunction variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {hT : 0 < T} {A : Data P T} (B : Budget P hT A) {raw raw_t : VectorField} def Budget.packetCoefficient (G : Field P T raw) : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent Space := G.toSmoothTimeField.add (B.correctionCoefficient P) def Budget.packetDerivativeCoefficient (H : Field P T raw_t) : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent Space := H.toSmoothTimeField.add (B.correctionDerivativeCoefficient P) def Budget.liftedPacketCoefficient (G : Field P T raw) : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := lift (B.packetCoefficient P G) A.κ A.direction def Budget.liftedPacketDerivativeCoefficient (H : Field P T raw_t) : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent := lift (B.packetDerivativeCoefficient P H) A.κ A.direction theorem Budget.packetCoefficient_eq_corrected (G : Field P T raw) (hG : A.approximation = G.toFieldTower) (t : Icc (0 : ℝ) T) (x : LiftTangent) : (B.packetCoefficient P G).field t x = (B.correctedFieldTower P).pointField t (coveringMap P x) := by rw [B.correctedFieldTower_eq P, FieldTower.add_pointField, hG] change G.toSmoothTimeField.field t x + (B.fieldTower P).pointField t (coveringMap P x) = _ rw [G.toSmoothTimeField_apply] change raw (t,x) + (B.fieldTower P).pointField t (coveringMap P x) = G.toFieldTower.pointField t (x.1,(x.2 : AddCircle P)) + (B.fieldTower P).pointField t (coveringMap P x) rw [G.toFieldTower_pointField_raw] theorem Budget.liftedPacketCoefficient_eq_corrected (G : Field P T raw) (hG : A.approximation = G.toFieldTower) (t : Icc (0 : ℝ) T) (x : LiftTangent) : (B.liftedPacketCoefficient P G).field t x = transportDirection A.κ A.direction ((B.correctedFieldTower P).pointField t (coveringMap P x)) := by change transportDirection A.κ A.direction ((B.packetCoefficient P G).field t x) = _ rw [B.packetCoefficient_eq_corrected P G hG] theorem Budget.packetCoefficient_timeDerivative (G : Field P T raw) (H : Field P T raw_t) (h : TimeDerivative hT.le G H) : SmoothTimeField.TimeDerivative T hT.le (B.packetCoefficient P G) (B.packetDerivativeCoefficient P H) := (G.toSmoothTimeField_timeDerivative H hT.le h).add (B.correctionCoefficient_timeDerivative P) theorem Budget.liftedPacketCoefficient_timeDerivative (G : Field P T raw) (H : Field P T raw_t) (h : TimeDerivative hT.le G H) : SmoothTimeField.TimeDerivative T hT.le (B.liftedPacketCoefficient P G) (B.liftedPacketDerivativeCoefficient P H) := (B.packetCoefficient_timeDerivative P G H h).map (transportLinear A.κ A.direction) theorem Budget.liftedPacketCoefficient_periodic (G : Field P T raw) (c : AddSubgroup.zmultiples P) (t : Icc (0 : ℝ) T) (x : LiftTangent) : (B.liftedPacketCoefficient P G).field t (x.1,(c : ℝ)+x.2) = (B.liftedPacketCoefficient P G).field t x := by have hc : coveringMap P (x.1,(c : ℝ)+x.2) = coveringMap P x := EulerCylinderMeasureDescent.coveringMap_deck P c x change transportDirection A.κ A.direction (EulerCylinderSmoothOrbit.pointField P G.path G.orbit t (coveringMap P (x.1,(c : ℝ)+x.2)) + (B.fieldTower P).pointField t (coveringMap P (x.1,(c : ℝ)+x.2))) = _ rw [hc] rfl theorem Budget.liftedPacketCoefficient_trace (G : Field P T raw) (hG : A.approximation = G.toFieldTower) (t : Icc (0 : ℝ) T) (x : LiftTangent) : LinearMap.trace ℝ LiftTangent (fderiv ℝ ((B.liftedPacketCoefficient P G).field t : LiftTangent → LiftTangent) x).toLinearMap = 0 := by have he : ((B.liftedPacketCoefficient P G).field t : LiftTangent → LiftTangent) = coverVelocity P A.κ A.direction ((B.correctedFieldTower P).pointField t) := funext (B.liftedPacketCoefficient_eq_corrected P G hG t) rw [he] exact coverVelocity_trace_zero P A.κ A.direction ((B.correctedFieldTower P).pointField t) ((B.correctedFieldTower P).field t) (B.correctedFieldTower_divergence P t) ((B.correctedFieldTower P).pointField_ae t) ((B.correctedFieldTower P).pointField_smooth t) x end EulerAllOrderDriftCorrection