import Euler.PacketForwardInitializedPressure import Euler.PacketForwardInitializedCorrectionData import Euler.PacketCoordinateSobolev import Euler.PacketFiniteProfileFields import Euler.AllOrderDriftEquation /-! The literal zero-history initialized packet supplies the all-order approximation residual identity, including its actual pressure gradient. Its velocity, time derivative and residual are the fields already constructed from the source profiles, not additional approximation hypotheses. -/ noncomputable section namespace EulerPacketCylinderField.Field open EulerPacketProfileRecursion theorem toFieldTower_eq_of_path_eq_forward {P T : ℝ} [Fact (0 < P)] {raw raw' : VectorField} (G : Field P T raw) (H : Field P T raw') (h : G.path = H.path) : G.toFieldTower = H.toFieldTower := by cases G cases H dsimp only at h cases h rfl end EulerPacketCylinderField.Field namespace EulerPacketTerminalDatum open Set EulerSmoothLimit EulerSpatialCutoffs EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion EulerPacketPointJets EulerPacketPressure EulerPacketCoordinates EulerLiftedGradientSpace EulerPacketCorrectionCoefficients EulerAllOrderDriftCorrection variable (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : Data U) (hTime : M.T = D.T) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) def forwardInitializedVelocity (N : ℕ) (κ : ℝ) : VectorField := fieldSum (N+1) κ (assembledVelocity N (forwardInitializedProfiles M D δ hδ ξ hs α)) def forwardInitializedVelocityField (N : ℕ) (κ : ℝ) : Field period D.T (forwardInitializedVelocity M D δ hδ ξ hs α N κ) := (ProfileRegularity.velocityField M.T_pos (fun i (_ : i ≤ N) => forwardInitializedProfileWitness M D hTime δ hδ ξ hs α i) κ).changeTime hTime def forwardInitializedVelocityDerivative (N : ℕ) (κ : ℝ) : VectorField := fieldSum (N+1) κ (ProfileRegularity.velocityTimeCoefficients (T := M.T) (N := N) (a := forwardInitializedProfiles M D δ hδ ξ hs α)) def forwardInitializedVelocityDerivativeField (N : ℕ) (κ : ℝ) : Field period D.T (forwardInitializedVelocityDerivative M D δ hδ ξ hs α N κ) := (ProfileRegularity.velocityDerivativeField M.T_pos (fun i (_ : i ≤ N) => forwardInitializedProfileWitness M D hTime δ hδ ξ hs α i) κ).changeTime hTime theorem forwardInitializedVelocityField_time (N : ℕ) (κ : ℝ) : TimeDerivative D.T_pos.le (forwardInitializedVelocityField M D hTime δ hδ ξ hs α N κ) (forwardInitializedVelocityDerivativeField M D hTime δ hδ ξ hs α N κ) := Field.changeTime_derivative _ _ hTime M.T_pos.le D.T_pos.le (ProfileRegularity.velocityField_time M.T_pos (fun i (_ : i ≤ N) => forwardInitializedProfileWitness M D hTime δ hδ ξ hs α i) κ) /-- The pairwise curl construction and the literal velocity sum represent the same normalized coordinate field. -/ theorem forwardInitializedNormalizedField_path_eq (N : ℕ) (k : ℝ) : (forwardInitializedNormalizedField M D hTime δ hδ ξ hs α N k).path = (coordinateField D (forwardInitializedVelocityField M D hTime δ hδ ξ hs α N k⁻¹) k).path := Field.path_eq_of_raw_eq _ _ (fun _ _ _ => rfl) theorem forwardInitializedNormalizedField_tower_eq (N : ℕ) (k : ℝ) : (forwardInitializedNormalizedField M D hTime δ hδ ξ hs α N k).toFieldTower = (coordinateField D (forwardInitializedVelocityField M D hTime δ hδ ξ hs α N k⁻¹) k).toFieldTower := Field.toFieldTower_eq_of_path_eq_forward _ _ (forwardInitializedNormalizedField_path_eq M D hTime δ hδ ξ hs α N k) def forwardInitializedCoordinateResidualField (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) : Field period D.T (normalizedResidual D k (forwardInitializedVelocity M D δ hδ ξ hs α N k⁻¹) (forwardInitializedPressure M D δ hδ ξ hs α N k⁻¹)) := (forwardInitializedNormalizedResidualField M D hTime δ hδ ξ hs α Cagree N hN k hk).congr (fun t x θ => by change k • rawInverse D (t,(x,θ)) (slicedMomentumResidual (Icc (0 : ℝ) D.T) k⁻¹ (rawInverse D (t,(x,θ))) (D.strain (t,(x,θ))) (D.normalField (t,(x,θ))) (forwardInitializedVelocity M D δ hδ ξ hs α N k⁻¹) (forwardInitializedPressure M D δ hδ ξ hs α N k⁻¹) (t,(x,θ))) = k • rawInverse D (t,(x,θ)) (slicedMomentumResidual (Icc (0 : ℝ) M.T) k⁻¹ (rawInverse D (t,(x,θ))) (D.strain (t,(x,θ))) (D.normalField (t,(x,θ))) (forwardInitializedVelocity M D δ hδ ξ hs α N k⁻¹) (forwardInitializedPressure M D δ hδ ξ hs α N k⁻¹) (t,(x,θ))) rw [hTime]) /-- This is the exact initialized correction data used by the quantitative budget, after identifying the two genuine realizations of its fields. -/ theorem forwardInitializedCorrectionData_eq_coordinate (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) (hκ : |k⁻¹| ≤ 1) : forwardInitializedCorrectionData M D hTime δ hδ ξ hs α Cagree N hN k hk = coordinateData D k hκ (forwardInitializedVelocityField M D hTime δ hδ ξ hs α N k⁻¹) (forwardInitializedPressure M D δ hδ ξ hs α N k⁻¹) (forwardInitializedCoordinateResidualField M D hTime δ hδ ξ hs α Cagree N hN k hk) := by unfold forwardInitializedCorrectionData coordinateData correctionDataOfFields rw [forwardInitializedNormalizedField_tower_eq M D hTime δ hδ ξ hs α N k] rfl /-- The actual finite pressure and every-order residual identity, with no assumed pressure field, approximation derivative or residual cancellation. -/ def forwardInitializedApproximationResidual (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) : ApproximationResidual period D.T_pos (forwardInitializedCorrectionData M D hTime δ hδ ξ hs α Cagree N hN k hk) := by have hk0 : k ≠ 0 := by linarith have hκ : |k⁻¹| ≤ 1 := by rw [abs_of_pos (inv_pos.mpr (by linarith : 0 < k))] exact inv_le_one_of_one_le₀ (by linarith) let Pa := forwardInitializedCoordinatePressureField M D hTime δ hδ ξ hs α N k hk0 refine { pressure := Pa.toFieldTower, gradient := ?_, equation := ?_ } · intro t exact forwardInitializedCoordinatePressureField_mem M D hTime δ hδ ξ hs α N k hk0 t · intro q hq t ht rw [forwardInitializedCorrectionData_eq_coordinate M D hTime δ hδ ξ hs α Cagree N hN k hk hκ] exact approximation_hasDerivAt D k hk0 hκ (forwardInitializedVelocityField M D hTime δ hδ ξ hs α N k⁻¹) (forwardInitializedVelocityDerivativeField M D hTime δ hδ ξ hs α N k⁻¹) (forwardInitializedVelocityField_time M D hTime δ hδ ξ hs α N k⁻¹) (forwardInitializedPressure M D δ hδ ξ hs α N k⁻¹) (forwardInitializedCoordinateResidualField M D hTime δ hδ ξ hs α Cagree N hN k hk) Pa q hq t ht end EulerPacketTerminalDatum