import Euler.ParentEulerChild import Euler.ParentEulerSobolev import Euler.ParentPacketScaledBounds import Euler.ParentParticleInverse import Euler.PacketEulerianRegularity import Euler.SmoothL2ScalingContinuity import Euler.ParentEulerState import Euler.ParentPacketParity import Euler.ParentPacketJoinedInput import Euler.PacketLiftedParity import Euler.PacketForwardInitializedCorrectionParity /-! The recursive physical state consists of the actual Euler solution, its all-order Sobolev fields, its particle-label bounds, and its symmetry. Restriction and the exact packet construction preserve these data. -/ /-! ## From `Euler/ParentPacketSobolevFields.lean` The text of `Euler/ParentPacketSobolevFields.lean`, folded into this file, which was its only importer. -/ section /-! Actual physical L² fields of a packet over a parent. The genuine inverse and the proved parent label bound supply all reconstruction regularity, and the physical spatial scale is retained exactly. -/ noncomputable section namespace EulerParentPacketFrames open Set EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerPacketPhysicalField EulerAllOrderCorrectionData EulerPacketParentLabelBounds EulerTransverseFrameCoordinates EulerGraphPressurePotential namespace ParticleInverse variable {A : Parent} (I : ParticleInverse A) theorem normalized_scaled (t : Icc (0 : ℝ) A.T) (x : Space) : I.normalized t (A.ell⁻¹ • x)=A.ell⁻¹ • I.field t x := by simp only [normalized,Parent.packetInverse,projIcc_of_mem A.T_pos.le t.property, smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] end ParticleInverse namespace LabelData variable {A : Parent} (L : LabelData A) (I : ParticleInverse A) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) (support : Set Space) (hSupport : IsCompact support) (P : ℝ) [Fact (0 < P)] (κ : ℝ) (Z : FieldTower P A.T) (k : ℝ) def packetVelocityField (t : Icc (0 : ℝ) A.T) : SmoothL2Field Space := scaleField A.ell A.ell_pos (eulerianSmoothField (A.transverseData m hm J support hSupport) P κ Z k (fun s x => A.packetPosition (s,x)) I.normalized A.packetPosition_spatial I.normalized_left I.normalized_right I.normalized_continuous L.scaledRadius (frameAmplitude L.K) L.scaledRadius_nonneg (frameAmplitude_nonneg L.K) A.frame_det L.frame_scaled_bound t) def packetForceField (t : Icc (0 : ℝ) A.T) : SmoothL2Field Space := scaleField A.ell A.ell_pos (pressureForceSmoothField (A.transverseData m hm J support hSupport) P κ Z k (fun s x => A.packetPosition (s,x)) I.normalized A.packetPosition_spatial I.normalized_left I.normalized_right I.normalized_continuous L.scaledRadius (frameAmplitude L.K) L.scaledRadius_nonneg (frameAmplitude_nonneg L.K) A.frame_det L.frame_scaled_bound t) theorem packetVelocityField_apply (t : Icc (0 : ℝ) A.T) (x : Space) : (L.packetVelocityField I m hm J support hSupport P κ Z k t).field x = A.ell • (κ • A.frame.field t (A.ell⁻¹ • I.field t x) (Z.pointField t (cylinderGraph P k m (A.ell⁻¹ • I.field t x)))) := by rw [packetVelocityField,scaleField_apply] erw [eulerianSmoothField_apply,I.normalized_scaled] rfl theorem packetForceField_apply (t : Icc (0 : ℝ) A.T) (x : Space) : (L.packetForceField I m hm J support hSupport P κ Z k t).field x = A.ell • (κ • (A.inverse.field t (A.ell⁻¹ • I.field t x)).adjoint (Z.pointField t (cylinderGraph P k m (A.ell⁻¹ • I.field t x)))) := by rw [packetForceField,scaleField_apply] erw [pressureForceSmoothField_apply,I.normalized_scaled] rfl theorem packetVelocityField_continuous (n : ℕ) : Continuous (fun t => (L.packetVelocityField I m hm J support hSupport P κ Z k t).jetLp n) := continuous_jetLp_scaleField A.ell A.ell_pos A.ell_le_one _ (eulerianSmoothField_jetLp_continuous (A.transverseData m hm J support hSupport) P κ Z k (fun s x => A.packetPosition (s,x)) I.normalized A.packetPosition_spatial I.normalized_left I.normalized_right I.normalized_continuous L.scaledRadius (frameAmplitude L.K) L.scaledRadius_nonneg (frameAmplitude_nonneg L.K) A.frame_det L.frame_scaled_bound) n theorem packetForceField_continuous (n : ℕ) : Continuous (fun t => (L.packetForceField I m hm J support hSupport P κ Z k t).jetLp n) := continuous_jetLp_scaleField A.ell A.ell_pos A.ell_le_one _ (pressureForceSmoothField_jetLp_continuous (A.transverseData m hm J support hSupport) P κ Z k (fun s x => A.packetPosition (s,x)) I.normalized A.packetPosition_spatial I.normalized_left I.normalized_right I.normalized_continuous L.scaledRadius (frameAmplitude L.K) L.scaledRadius_nonneg (frameAmplitude_nonneg L.K) A.frame_det L.frame_scaled_bound) n end LabelData end EulerParentPacketFrames end end /-! ## From `Euler/ParentPacketCorrectionParity.lean` The text of `Euler/ParentPacketCorrectionParity.lean`, folded into this file, which was its only importer. -/ section /-! Actual odd parent fields supply the parity data for both initialized packet branches. The resulting corrected coefficient, and hence the actual next particle map, retain oddness without a new symmetry premise. -/ noncomputable section namespace EulerParentPacketFrames.OddData open Set EulerSmoothLimit EulerSpatialCutoffs EulerPacketTerminalDatum EulerPacketCylinderField EulerPacketProfileRecursion EulerCorrectionAssembly EulerTimeIntervalRestriction EulerGraphInvariantFlow EulerAllOrderCorrectionData EulerAllOrderDriftCorrection variable {A : Parent} (O : OddData A) (H : LowBounds A) {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) (S : Set Space) (hS : IsCompact S) (hSym : ∀ x, -x ∈ S ↔ x ∈ S) (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ S) (α : ℝ) include O hSym theorem forwardCorrectionParity (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) : ParityData period (forwardInitializedCorrectionData (A.meanData H) (A.transverseData m hm R S hS) rfl δ hδ ξ hs α (A.sourceAgreement m hm R S hS H) N hN k hk) := forwardInitializedCorrectionParityData (A.meanData H) (A.transverseData m hm R S hS) rfl δ hδ ξ hs α (O.meanEvenData H) hSym O.frame_even O.strain_even (A.sourceAgreement m hm R S hS H) N hN k hk theorem joinedCorrectionParity (τ : ℝ) (hτ : 0 < τ) (hτT : τ < A.T) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) : ParityData period (initializedCorrectionData (A.meanData H) (A.transverseData m hm R S hS) rfl τ hτ hτT (A.historyOn H m hm R S hS τ hτ hτT) δ hδ ξ hs α (A.sourceAgreement m hm R S hS H) N hN k hk) := by apply initializedCorrectionParityData (A.meanData H) (A.transverseData m hm R S hS) rfl τ hτ hτT (A.historyOn H m hm R S hS τ hτ hτT) δ hδ ξ hs α (O.meanEvenData H) hSym O.frame_even O.strain_even _ (A.sourceAgreement m hm R S hS H) N hN k hk intro t x exact O.curvature_even (initialInclusion A.T τ hτT.le t) x omit hSym [CompleteSpace U] in theorem childOfPacket {P : ℝ} [Fact (0 < P)] {C : EulerAllOrderCorrectionData.Data P A.T} (B : Budget P A.T_pos C) (E : ParityData P C) {raw : VectorField} (V : Field P A.T raw) (hV : C.approximation=V.toFieldTower) (G : EulerPhysicalGraphFlowBounds.Data P A.T) (hG : G.A=B.liftedPacketCoefficient P V) (k : ℝ) (hgraph : ∀ t z, graphConstraint k C.direction (G.A.field t z)=0) (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) : OddData (A.child G k C.direction hgraph nextEll hnext hnext1) := by apply O.child G _ k C.direction hgraph nextEll hnext hnext1 intro t rw [hG] exact B.liftedPacketCoefficient_odd P V hV E t end EulerParentPacketFrames.OddData end end /-! ## From `Euler/ParentEulerSobolevChild.lean` The text of `Euler/ParentEulerSobolevChild.lean`, folded into this file, which was its only importer. -/ section /-! The constructed child Euler evolution remains in the actual all-order spatial Sobolev class. Its fields are the parent fields plus the very same exact packet used in the particle-map construction. -/ noncomputable section namespace EulerParentPacketFrames.SobolevData open Set EulerSmoothLimit EulerTransverseFrameCoordinates EulerAllOrderCorrectionData EulerAllOrderDriftCorrection EulerPacketCorrectionCoefficients EulerGraphInvariantFlow EulerLpTranslation EulerLpTranslation.SmoothL2Field variable {A : Parent} {E : Evolution A} (F : SobolevData E) (L : LabelData A) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) (support : Set Space) (hSupport : IsCompact support) {P : ℝ} [Fact (0 < P)] {κ : ℝ} {hκ : |κ| ≤ 1} {Z R : FieldTower P A.T} (B : Budget P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) (residual : ApproximationResidual P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) {raw : EulerPacketProfileRecursion.VectorField} (V : EulerPacketCylinderField.Field P A.T raw) (hV : Z=V.toFieldTower) (G : EulerPhysicalGraphFlowBounds.Data P A.T) (hG : G.A=B.liftedPacketCoefficient P V) (k : ℝ) (hk : k*κ=1) (hgraph : ∀ t q, graphConstraint k m (G.A.field t q)=0) (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) def child : SobolevData (E.child m hm J support hSupport B residual V hV G hG k hk hgraph nextEll hnext hnext1) where velocity t := addField (F.velocity t) (L.packetVelocityField E.inverse m hm J support hSupport P κ (exactPacketOfResidual P B residual).velocity k t) force t := addField (F.force t) (L.packetForceField E.inverse m hm J support hSupport P κ (exactPacketOfResidual P B residual).pressure k t) velocity_match t x := by erw [Evolution.child_velocity,A.exactPacketVelocity_eq_corrected] erw [addField_field,L.packetVelocityField_apply] change E.velocity (t,x)+_=(F.velocity t).field x+_ erw [F.velocity_match] rfl force_match t x := by erw [Evolution.child_force] erw [Parent.exactPacketForce,addField_field,F.force_match,L.packetForceField_apply] simp only [ExactLiftedPacket.graphPressure,map_smul] rfl velocity_continuous := continuous_jetLp_addField _ _ F.velocity_continuous (L.packetVelocityField_continuous E.inverse m hm J support hSupport P κ (exactPacketOfResidual P B residual).velocity k) force_continuous := continuous_jetLp_addField _ _ F.force_continuous (L.packetForceField_continuous E.inverse m hm J support hSupport P κ (exactPacketOfResidual P B residual).pressure k) end EulerParentPacketFrames.SobolevData end end /-! ## From `Euler/ParentEulerParity.lean` The text of `Euler/ParentEulerParity.lean`, folded into this file, which was its only importer. -/ section /-! The physical velocity and pressure force inherit the genuine particle symmetry, so their values vanish at the fixed origin. -/ noncomputable section namespace EulerParentPacketFrames.Evolution open Set EulerSmoothLimit variable {A : Parent} (E : Evolution A) (O : OddData A) include O theorem strain_origin (t : Icc (0 : ℝ) A.T) : A.strain.field t 0=fderiv ℝ (fun y => E.velocity (t,y)) 0 := by rw [E.strain_eq,smul_zero,O.position_zero] end EulerParentPacketFrames.Evolution end end /-! ## From `Euler/ParentEulerEndpoints.lean` The text of `Euler/ParentEulerEndpoints.lean`, folded into this file, which was its only importer. -/ section /-! The physical gradient is continuous up to the endpoints in the actual Sobolev class. Incompressibility therefore holds at time zero and the final time as well as in the open Euler interval. -/ noncomputable section namespace EulerParentPacketFrames.SobolevData open Set EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSobolevBoundedField EulerMeanCoefficients open scoped Topology variable {A : Parent} {E : Evolution A} (S : SobolevData E) include S end EulerParentPacketFrames.SobolevData end end noncomputable section namespace EulerParentPacketFrames open Set EulerSmoothLimit EulerTransverseFrameCoordinates EulerAllOrderCorrectionData EulerAllOrderDriftCorrection EulerPacketCorrectionCoefficients EulerGraphInvariantFlow EulerCorrectionAssembly structure SmoothState (A : Parent) where evolution : Evolution A regularity : SobolevData evolution labels : LabelData A odd : OddData A namespace SmoothState variable {A : Parent} (S : SmoothState A) def restrictTime (T : ℝ) (hT : 0 < T) (hTA : T ≤ A.T) : SmoothState (A.restrictTime T hT hTA) where evolution := S.evolution.restrictTime T hT hTA regularity := S.regularity.restrictTime T hT hTA labels := S.labels.restrictTime T hT hTA odd := S.odd.restrictTime T hT hTA variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) (support : Set Space) (hSupport : IsCompact support) {P : ℝ} [Fact (0 < P)] {κ : ℝ} {hκ : |κ| ≤ 1} {Z R : FieldTower P A.T} (B : Budget P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) (residual : ApproximationResidual P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) {raw : EulerPacketProfileRecursion.VectorField} (V : EulerPacketCylinderField.Field P A.T raw) (hV : Z=V.toFieldTower) (symmetry : ParityData P (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) (G : EulerPhysicalGraphFlowBounds.Data P A.T) (hG : G.A=B.liftedPacketCoefficient P V) (k : ℝ) (hk : k*κ=1) (hgraph : ∀ t q, graphConstraint k m (G.A.field t q)=0) (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) def packetChild (labels : LabelData (A.child G k m hgraph nextEll hnext hnext1)) : SmoothState (A.child G k m hgraph nextEll hnext hnext1) where evolution := S.evolution.child m hm J support hSupport B residual V hV G hG k hk hgraph nextEll hnext hnext1 regularity := S.regularity.child S.labels m hm J support hSupport B residual V hV G hG k hk hgraph nextEll hnext hnext1 labels := labels odd := S.odd.childOfPacket B symmetry V hV G hG k hgraph nextEll hnext hnext1 end SmoothState end EulerParentPacketFrames