import Euler.AllOrderDriftFinite import Euler.CorrectionAssemblyPressureParity /-! Actual common pressure and a canonically normalized scalar graph pressure constructed from all-order drift-aware input budgets. -/ noncomputable section namespace EulerAllOrderDriftCorrection open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData EulerCorrectionAssembly EulerGraphPressurePotential EulerMetricTransport EulerCylinderReflection EulerSobolevReflection EulerCorrectionOperators open scoped ContDiff variable (period : ℝ) [Fact (0 < period)] variable {T : ℝ} {hT : 0 < T} {A : Data period T} /-- The actual signed L² pressure of the family constructed from drift-aware budgets. -/ def Budget.commonPressure (B : Budget period hT A) : C(Icc (0 : ℝ) T, LiftL2 period) := (B.family period).commonPressure period /-- Actual continuous Sobolev realizations at every order of the same constructed pressure. -/ def Budget.pressureTower (B : Budget period hT A) : FieldTower period T := (B.family period).pressureTower period (B.comparisonData period) /-- Evaluating the genuine finite-order pressure solver on the constructed correction gives exactly the corresponding realization of the common pressure tower. -/ theorem Budget.pressure_eq_realization (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : (A.atOrder period q).pressure period hq t (B.solution period q hq t) = (B.pressureTower period).realization q t := congrArg (fun f => f t) ((B.family period).signedPressurePath_eq_realization period (B.comparisonData period) q hq) /-- Bounded Sobolev evaluation fixes a canonical pointwise representative of the pressure. -/ def Budget.pointPressure (B : Budget period hT A) (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := (B.family period).pointPressure period t x /-- The canonical representative agrees almost everywhere with the actual constructed pressure. -/ theorem Budget.pointPressure_ae (B : Budget period hT A) (t : Icc (0 : ℝ) T) : (B.commonPressure period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] B.pointPressure period t := (B.family period).pointPressure_ae period t /-- The selected actual pressure representative is jointly continuous, including endpoint times. -/ theorem Budget.pointPressure_joint_continuous (B : Budget period hT A) : Continuous (B.pointPressure period).uncurry := (B.family period).pointPressure_joint_continuous period /-- The same pressure representative is smooth in all cylinder coordinates at every time. -/ theorem Budget.pointPressure_smooth (B : Budget period hT A) (t : Icc (0 : ℝ) T) (x : LiftDomain period) : ContDiff ℝ ∞ (localFieldLift period (B.pointPressure period t) x) := (B.family period).pointPressure_smooth period (B.comparisonData period) t x /-- The scalar graph pressure constructed by radial integration, with its additive gauge fixed at zero. -/ def Budget.normalizedGraphPotential (B : Budget period hT A) (k : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : ℝ := (B.family period).normalizedGraphPotential period k t x /-- The actual normalized scalar pressure is spatially smooth on each time slice. -/ theorem Budget.normalizedGraphPotential_smooth (B : Budget period hT A) (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) : ContDiff ℝ ∞ (B.normalizedGraphPotential period k t) := (B.family period).normalizedGraphPotential_smooth period (B.comparisonData period) k hk t /-- Its actual scalar gradient is precisely the signed pressure from the constructed correction. -/ theorem Budget.normalizedGraphPotential_gradient (B : Budget period hT A) (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) (x : Vector3) : gradient (B.normalizedGraphPotential period k t) x = A.κ • B.pointPressure period t (cylinderGraph period k A.direction x) := (B.family period).normalizedGraphPotential_gradient period (B.comparisonData period) k hk t x end EulerAllOrderDriftCorrection