import Euler.PacketInitializedResidualEquation import Euler.PacketInitializedCorrectionChoice import Euler.PacketInitializedCorrectionData import Euler.PacketInitializedProfiles import Euler.PacketPrimarySourceRegularity import Euler.PacketProfileParity import Euler.PacketTerminalInitialData import Euler.PacketJoinedSourceProfiles import Euler.PacketFieldParityAlgebra import Euler.PacketCorrectionCoefficientParity /-! Source budgets and the actual initialized residual construct exact corrected lifted packets at every sufficiently large frequency. -/ /-! ## From `Euler/PacketPrimarySourceParity.lean` The text of `Euler/PacketPrimarySourceParity.lean`, folded into this file, which was its only importer. -/ section /-! Joint parity of the actual terminal-history primary and its continuation. The compact terminal wave supplies the odd input without an additional assumption on the constructed solution. -/ noncomputable section namespace EulerTransversePacketPrimary open Set EulerSmoothLimit EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion EulerLpCylinderTranslation EulerCylinderFieldReflection variable {P : ℝ} [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) (O : Operators) (hcorrector : O.curlCorrector = D.curlCorrector P) (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) (hY : reflection P (Y.value : CylinderL2 P U) = -(Y.value : CylinderL2 P U)) include hcorrector hSym hF hM hH hY theorem profileParity : ProfileParity D.T (primaryProfile O (vector τ hτ hτT B Y) (scalar τ hτ hτT B Y)) where high := vector_odd τ hτ hτT B Y hSym hF hM hH hY mean := JointOdd.zero D.T corrector := by intro t x θ change O.curlCorrector (vector τ hτ hτT B Y) (t,(-x,-θ)) = -O.curlCorrector (vector τ hτ hτT B Y) (t,(x,θ)) rw [hcorrector] exact curlCorrector_odd τ hτ hτT B Y hSym hF hM hH hY t x θ pressure := scalarGradient_odd τ hτ hτT B Y hSym hF hM hH hY highPressure := scalar_even τ hτ hτT B Y hSym hF hM hH hY meanPressure _ _ _ := rfl end EulerTransversePacketPrimary namespace EulerPacketTerminalDatum open Set EulerSmoothLimit EulerSpatialCutoffs EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion EulerTransversePacketPrimary variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (O : Operators) (hcorrector : O.curlCorrector = D.curlCorrector period) (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) include hcorrector hSym hF hM hH theorem primary_profile_parity : ProfileParity D.T (primaryProfile O (vector τ hτ hτT B (initialData D δ hδ ξ hs)) (scalar τ hτ hτT B (initialData D δ hδ ξ hs))) := profileParity τ hτ hτT B (initialData D δ hδ ξ hs) O hcorrector hSym hF hM hH (terminal_reflection δ hδ ξ) end EulerPacketTerminalDatum end end /-! ## From `Euler/PacketInitializedProfilesParity.lean` The text of `Euler/PacketInitializedProfilesParity.lean`, folded into this file, which was its only importer. -/ section /-! Every initialized profile inherits reflection parity from the actual terminal wave and the prescribed source coefficient symmetries. -/ noncomputable section namespace EulerPacketTerminalDatum open Set EulerSmoothLimit EulerSpatialCutoffs EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion variable (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : Data U) (hTime : M.T = D.T) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) include hTime in theorem initializedProfiles_parity (eM : EulerMeanPacketProvider.EvenData M) (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) (hDM : ∀ t x, D.M.field t (-x) = D.M.field t x) (hBH : ∀ t x, B.H.field t (-x) = B.H.field t x) (p : ℕ) : ProfileParity M.T (initializedProfiles M D τ hτ hτT B δ hδ ξ hs α p) := by have hp := primary_profile_parity τ hτ hτT B δ hδ (α • ξ) hs (joinedSourceOperators period M D τ hτ hτT B) rfl hSym hF hDM hBH have hpM : ProfileParity M.T (joinedTerminalPrimary period M D τ hτ hτT B (initialData D δ hδ (α • ξ) hs)) := hp.changeTime hTime.symm exact joinedSourceProfiles_parity period M D hTime τ hτ hτT B (joinedTerminalPrimary period M D τ hτ hτT B (initialData D δ hδ (α • ξ) hs)) (joinedTerminalPrimaryWitness period M D hTime τ hτ hτT B (initialData D δ hδ (α • ξ) hs)) eM hSym hF hDM hBH hpM p end EulerPacketTerminalDatum end end /-! ## From `Euler/PacketInitializedFieldParity.lean` The text of `Euler/PacketInitializedFieldParity.lean`, folded into this file, which was its only importer. -/ section /-! The literal initialized packet and its exact residual tail are odd as actual cylinder L² paths, before and after coordinate normalization. -/ noncomputable section namespace EulerPacketTerminalDatum open Set EulerSmoothLimit EulerSpatialCutoffs EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion EulerPacketPointJets EulerCylinderFieldReflection variable (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : Data U) (hTime : M.T = D.T) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) (eM : EulerMeanPacketProvider.EvenData M) (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) (hDM : ∀ t x, D.M.field t (-x) = D.M.field t x) (hBH : ∀ t x, B.H.field t (-x) = B.H.field t x) include hTime eM hSym hF hDM hBH theorem initializedVelocity_odd (N : ℕ) (κ : ℝ) : JointOdd M.T (fieldSum (N+1) κ (assembledVelocity N (initializedProfiles M D τ hτ hτT B δ hδ ξ hs α))) := ProfileParity.velocity_odd (fun i _ => initializedProfiles_parity M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH i) κ theorem initializedPacketField_odd (N : ℕ) (κ : ℝ) : (initializedPacketField M D hTime τ hτ hτT B δ hδ ξ hs α N κ).ReflectionOdd := by apply Field.reflectionOdd_of_raw exact (initializedVelocity_odd M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH N κ).matrix_apply _ (joinedSourceCoefficientEven period M D τ hτ hτT B hF hDM).inverse theorem initializedNormalizedField_odd (N : ℕ) (k : ℝ) : (initializedNormalizedField M D hTime τ hτ hτT B δ hδ ξ hs α N k).ReflectionOdd := ((initializedPacketField_odd M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH N k⁻¹).smul k).changeTime hTime theorem initializedResidualField_odd (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (κ : ℝ) (hκ : κ ≠ 0) : (initializedResidualField M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN κ hκ).ReflectionOdd := by let a := initializedProfiles M D τ hτ hτT B δ hδ ξ hs α let G := fun (i : ℕ) (_ : i ≤ N) => initializedProfileWitness M D hTime τ hτ hτT B δ hδ ξ hs α i have H : ∀ i, i ≤ N → ProfileParity M.T (a i) := fun i _ => initializedProfiles_parity M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH i have ha : a 0 = 0 := profiles_zero _ _ have htail := ProfileRegularity.residualTail_odd M.T_pos G H (joinedSourceCoefficientData period M D τ hτ hτT B hTime) (joinedSourceCoefficientEven period M D τ hτ hτT B hF hDM) ha κ intro t exact (ProfileRegularity.tailSumField M.T_pos G (joinedSourceCoefficientData period M D τ hτ hτT B hTime) ha κ).reflection_neg_of_raw_odd t (htail t) theorem initializedNormalizedResidualField_odd (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) : (initializedNormalizedResidualField M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk).ReflectionOdd := by have h := initializedResidualField_odd M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH Cagree N hN k⁻¹ (inv_ne_zero (by linarith)) exact ((h.multiply (joinedSourceCoefficientData period M D τ hτ hτT B hTime).inverse (joinedSourceCoefficientEven period M D τ hτ hτT B hF hDM).inverse).smul k).changeTime hTime end EulerPacketTerminalDatum end end /-! ## From `Euler/PacketInitializedCorrectionParity.lean` The text of `Euler/PacketInitializedCorrectionParity.lean`, folded into this file, which was its only importer. -/ section /-! The actual initialized correction data have all the joint parities required by the drift-aware correction and pressure construction. -/ noncomputable section namespace EulerPacketTerminalDatum open Set EulerSmoothLimit EulerSpatialCutoffs EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion EulerPacketCorrectionCoefficients EulerCylinderFieldReflection variable (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : Data U) (hTime : M.T = D.T) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) theorem initializedCorrectionParityData (eM : EulerMeanPacketProvider.EvenData M) (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) (hDM : ∀ t x, D.M.field t (-x) = D.M.field t x) (hBH : ∀ t x, B.H.field t (-x) = B.H.field t x) (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) : EulerCorrectionAssembly.ParityData period (initializedCorrectionData M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk) := by refine { metric := metricTower_even D hF period linear := linearTower_even D hF hDM period quadratic := quadraticTower_odd D hF period k⁻¹ approximation := ?_ residual := ?_ } · intro t change -reflection period ((initializedNormalizedField M D hTime τ hτ hτT B δ hδ ξ hs α N k).path t) = _ rw [initializedNormalizedField_odd M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH N k t,neg_neg] rfl · intro t change -reflection period ((initializedNormalizedResidualField M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk).path t) = _ rw [initializedNormalizedResidualField_odd M D hTime τ hτ hτT B δ hδ ξ hs α eM hSym hF hDM hBH Cagree N hN k hk t,neg_neg] rfl end EulerPacketTerminalDatum end end noncomputable section namespace EulerAllOrderDriftCorrection open Set EulerAllOrderCorrectionData EulerLiftedGradientSpace EulerGevreyMetricEstimate EulerCorrectionOperators EulerSobolevCoefficientPressure EulerVolterraConvolution EulerCorrectionAssembly EulerCylinderReflection EulerCorrectionResidualCancellation variable (P : ℝ) [Fact (0 < P)] {T : ℝ} (hT : 0 < T) (A : Data P T) /-- The output fields and all their properties are conclusions of the constructed correction and the verified approximate residual. -/ structure ExactLiftedPacket (B : Budget P hT A) where velocity : FieldTower P T pressure : FieldTower P T zero_initial_correction : ∀ q, velocity.realization q ⟨0,le_rfl,hT.le⟩-A.approximation.realization q ⟨0,le_rfl,hT.le⟩=0 divergence : ∀ t, velocity.field t ∈ divergenceFreeSpace P A.κ A.direction gradient : ∀ t, pressure.field t ∈ gradientSpace P A.κ A.direction energy : ∀ (n : ℕ) t, energyNorm P n (by omega : n+6 ≤ (n+6)+1) (B.radius t) (B.metric.operatorPath P t) (velocity.realization ((n+6)+1) t-A.approximation.realization ((n+6)+1) t) ≤ 2*(B.spatial (n+6) (by omega)).full.residual*Real.exp (3*B.growthCoefficient*t.val) ∧ energyNorm P n (by omega : n+6 ≤ (n+6)+1) (B.radius t) (B.metric.operatorPath P t) (velocity.realization ((n+6)+1) t-A.approximation.realization ((n+6)+1) t) ≤ B.delta/2 equation : ∀ (q : ℕ) (hq : 6 ≤ q) t (ht : t ∈ Ioo 0 T), HasDerivAt (extendPath T hT.le (velocity.realization q)) (-nonlinearity P (A.atOrder P q) hq ⟨t,ht.1.le,ht.2.le⟩ (velocity.realization (q+1) ⟨t,ht.1.le,ht.2.le⟩)- coefficientSobolevOperator P (A.metric.jet q ⟨t,ht.1.le,ht.2.le⟩) (pressure.realization q ⟨t,ht.1.le,ht.2.le⟩)) t variable {hT A} def exactPacketOfResidual (B : Budget P hT A) (R : ApproximationResidual P hT A) : ExactLiftedPacket P hT A B where velocity := B.correctedFieldTower P pressure := B.correctedPressureTower P R zero_initial_correction q := by rw [B.correctedFieldTower_initial P q,sub_self] divergence := B.correctedFieldTower_divergence P gradient := B.correctedPressureTower_gradient P R energy := B.correctedFieldTower_error_energy P equation := B.correctedFieldTower_hasDerivAt P R theorem exactPacketOfResidual_velocity_odd (B : Budget P hT A) (R : ApproximationResidual P hT A) (E : ParityData P A) (t : Icc (0 : ℝ) T) : -reflection P ((exactPacketOfResidual P B R).velocity.field t) = (exactPacketOfResidual P B R).velocity.field t := by change -reflection P (A.approximation.field t+B.commonPath P t) = A.approximation.field t+B.commonPath P t rw [map_add,neg_add,E.approximation,B.commonPath_odd P E] end EulerAllOrderDriftCorrection namespace EulerPacketTerminalDatum open Set Filter EulerSmoothLimit EulerSpatialCutoffs EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion EulerAllOrderDriftCorrection EulerPacketCorrectionScalar EulerPacketSourceFrequency EulerCylinderReflection open scoped ContDiff variable (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : Data U) (hTime : M.T = D.T) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) (B : HistoryData (D.initial τ hτ hτT.le)) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) def initializedExactPacket (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) (Q : Budget period D.T_pos (initializedCorrectionData M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk)) : ExactLiftedPacket period D.T_pos (initializedCorrectionData M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk) Q := exactPacketOfResidual period Q (initializedApproximationResidual M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk) end EulerPacketTerminalDatum