import Euler.BasePacketSetup import Euler.ParentHomogeneousPacketLowBounds import Euler.ParentInitializedState import Euler.ParentFirstPacketLowGuards import Euler.ParentForwardInitialSupport import Euler.BasePacketUniformCosts import Euler.ParentUniformForwardChild /-! One actual first-packet correction, its physical flow, labels and source errors. The uniform scalar frequency guard constructs the record. -/ /-! ## From `Euler/BasePacketLowBounds.lean` The text of `Euler/BasePacketLowBounds.lean`, folded into this file, which was its only importer. -/ section /-! The first packet's size and sign hypotheses are proved for the concrete base solution on its actual restricted horizon. -/ noncomputable section namespace EulerBaseDatum open Set InnerProductSpace EulerSmoothLimit EulerParentPacketFrames EulerBaseEulerGuards EulerPacketSupport EulerPacketFirstLowBounds variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) def firstPacketData : EulerTransversePacketProvider.Data FirstPlane := (packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData firstNormal firstNormal_unit firstFrame support compact theorem firstPacket_primary_size (t : Icc (0 : ℝ) T) (x : Space) : ‖(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x‖* ‖EulerPacketForwardFactorization.canonicalVelocity (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x‖ ≤ firstRatio := by apply primary_size_le (firstPacketData β hβ ell hell hell1 T hT hTB) initialCoefficientCost initialCoefficientCost_nonneg x (fun s => packetBase_strain_bound β hβ ell hell hell1 T hT hTB s x) (packetBase_short T hTB) firstCoordinate · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData firstNormal firstNormal_unit firstFrame support compact).normal.field (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x‖=1 rw [source_normal_initial] exact firstNormal_unit · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData firstNormal firstNormal_unit firstFrame support compact).frame.field (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x firstCoordinate‖=1 rw [source_frame_initial,firstCoordinate_map] simp theorem firstPacket_primary_flux (t : Icc (0 : ℝ) T) (x : Space) : 0 ≤ ⟪(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x, (firstPacketData β hβ ell hell hell1 T hT hTB).M.field t x (EulerPacketForwardFactorization.canonicalVelocity (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x)⟫_ℝ := by apply primary_flux_nonneg (firstPacketData β hβ ell hell hell1 T hT hTB) x firstCoordinate t intro hx exact (by norm_num : (0 : ℝ) ≤ 1/2).trans (firstPacket_pressure_numerator β hβ ell hell hell1 T hT hTB t x hx) theorem packetBase_physical_strain (t : Icc (0 : ℝ) T) (x : Space) : ‖fderiv ℝ (fun y => (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.velocity (t,y)) x‖ ≤ initialCoefficientCost := by rw [← (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.strain_at_normalized_inverse t x] exact packetBase_strain_bound β hβ ell hell hell1 T hT hTB t _ theorem packetBase_physical_force (t : Icc (0 : ℝ) T) (x : Space) : ‖fderiv ℝ ((packetBaseState β hβ ell hell hell1 T hT hTB).evolution.force t) x‖ ≤ initialCoefficientCost := by let E := (packetBaseState β hβ ell hell hell1 T hT hTB).evolution have h := packetBase_curvature_bound β hβ ell hell hell1 T hT hTB t (ell⁻¹ • E.inverse.field t x) erw [E.curvature_eq] at h change ‖fderiv ℝ (E.force t) ((packetBaseParent β hβ ell hell hell1 T hT hTB).position t (ell • (ell⁻¹ • E.inverse.field t x)))‖ ≤ _ at h simp only [smul_smul,mul_inv_cancel₀ hell.ne',one_smul] at h erw [E.inverse.right_inverse] at h exact h end EulerBaseDatum end end /-! ## From `Euler/BaseFirstPacket.lean` The text of `Euler/BaseFirstPacket.lean`, folded into this file, which was its only importer. -/ section /-! The first packet over the concrete base solution produces an actual smooth Euler state and its localized source bounds. All analytic input comes from the same initialized correction, graph flow, and error bounds. -/ noncomputable section namespace EulerBaseDatum open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum EulerPacketFirstLowBounds EulerMeanHarmonic variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) def firstPacketMeanData : EulerMeanPacketProvider.Data := (packetBaseParent β hβ ell hell hell1 T hT hTB).meanData (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) theorem firstPacketAgreement : EulerPacketCylinderField.SourceCoefficientAgreement (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) := (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceAgreement firstNormal firstNormal_unit firstFrame support compact (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) variable (δ : ℝ) (hδ : 0 < δ) (hchild : ℝ) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) (Q : Budget period hT (forwardInitializedCorrectionData (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk)) (G : EulerPhysicalGraphFlowBounds.Data period T) (hG : G.A=Q.liftedPacketCoefficient period (forwardInitializedNormalizedField (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) N k)) (hgraph : ∀ t q, graphConstraint k firstNormal (G.A.field t q)=0) (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) def firstPacketState (labels : LabelData ((packetBaseParent β hβ ell hell hell1 T hT hTB).child G k firstNormal hgraph nextEll hnext hnext1)) : SmoothState ((packetBaseParent β hβ ell hell hell1 T hT hTB).child G k firstNormal hgraph nextEll hnext hnext1) := (packetBaseState β hβ ell hell hell1 T hT hTB).forwardChild (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) firstNormal firstNormal_unit firstFrame support compact symmetric δ hδ firstCoordinate (subset_refl _) (δ*hchild) N hN k hk Q G hG hgraph nextEll hnext hnext1 labels def firstPacketLowBounds (hquarter : ell ≤ 1/4) (hδ1 : δ ≤ 1) (hhchild : 0 ≤ hchild) (ev ep : ℝ) (herr : (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.HomogeneousSourceErrors firstNormal firstNormal_unit firstFrame support compact Q (forwardInitializedApproximationResidual (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk) k δ hchild firstCoordinate ev ep) (hsmall : (initialCoefficientCost+2*initialCoefficientCost*δ*(hchild*firstRatio)+ep)*(T^2/2)+ initialCoefficientCost*T+ boundaryLocalizationC2*(initialCoefficientCost+hchild*firstRatio+ev)*ell^3*T ≤ 1/2) : LowBounds ((packetBaseParent β hβ ell hell hell1 T hT hTB).child G k firstNormal hgraph nextEll hnext hnext1) := (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.firstChildLowBounds (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) firstNormal firstNormal_unit firstFrame support compact δ hδ hδ1 hchild hhchild firstCoordinate (subset_refl _) N hN k hk Q G hG hgraph nextEll hnext hnext1 rfl hquarter (subset_halfBall.trans Metric.ball_subset_closedBall) ev ep initialCoefficientCost initialCoefficientCost herr (firstPacket_primary_size β hβ ell hell hell1 T hT hTB) (firstPacket_primary_flux β hβ ell hell hell1 T hT hTB) (packetBase_physical_strain β hβ ell hell hell1 T hT hTB) (packetBase_physical_force β hβ ell hell hell1 T hT hTB) hsmall end EulerBaseDatum end end noncomputable section namespace EulerBaseDatum open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum EulerPacketSourceFrequency EulerPacketUniformSource EulerPacketPhysicalLowBounds EulerPacketFirstLowBounds EulerMeanHarmonic variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) (δ : ℝ) (hδ : 0 < δ) (hchild k : ℝ) (hk : UniversalFrequency k) (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) section ConstructorInjectivity attribute [local irreducible] Parent.child initialParent structure FirstPacketChoice where hn : 1 ≤ truncation k Q : Budget period hT (forwardInitializedCorrectionData (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) (truncation k) hn k hk.four) G : EulerPhysicalGraphFlowBounds.Data period T graph : ∀ t q, graphConstraint k firstNormal (G.A.field t q)=0 coefficient : G.A=Q.liftedPacketCoefficient period (forwardInitializedNormalizedField (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) (truncation k) k) labels : LabelData ((packetBaseParent β hβ ell hell hell1 T hT hTB).child G k firstNormal graph nextEll hnext hnext1) label_constant : labels.K=k^80 displacement_bound : ∀ (t : Icc (0 : ℝ) T) (x : Space), ‖(G.displacementField k firstNormal ell hell t).field x‖ ≤ k^(-(1/4 : ℝ)) errors : (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.HomogeneousSourceErrors firstNormal firstNormal_unit firstFrame support compact Q (forwardInitializedApproximationResidual (firstPacketMeanData β hβ ell hell hell1 T hT hTB) (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) (truncation k) hn k hk.four) k δ hchild firstCoordinate (k^(-(1/4 : ℝ))) (k^(-(1/4 : ℝ))) end ConstructorInjectivity theorem exists_firstPacketChoice (hδ1 : δ ≤ 1) (hh : 0 < hchild) (hfrequency : EulerPacketInitializedOutputCost.uniformConstant* (profileEnvelope (firstParameterSize T δ hchild))^EulerPacketInitializedOutputCost.uniformPower ≤ smallPower k) (hKk : solutionLabelConstant ≤ k) (hinv : ell⁻¹ ≤ k^(3/4 : ℝ)) : Nonempty (FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) := by let A := packetBaseParent β hβ ell hell hell1 T hT hTB let S := packetBaseState β hβ ell hell hell1 T hT hTB let H := packetBaseLowBounds β hβ ell hell hell1 T hT hTB let J := firstPacketInputs β hβ ell hell hell1 T hT hTB have hp := firstPacket_uniform_primitives β hβ ell hell hell1 T hT hTB δ hδ hδ1 hchild hh.le obtain ⟨hn,Q,G,hgraph,hG,herror,hdisplacement,LC,hLC⟩ := S.labels.forward_uniform_child S.evolution.inverse H firstNormal firstNormal_unit firstFrame support compact J δ hδ hδ1 firstCoordinate (subset_refl _) (δ*hchild) (mul_pos hδ hh) (profileEnvelope (firstParameterSize T δ hchild)) hp.1 hp.2.1 k hk hfrequency hKk hinv nextEll hnext hnext1 refine ⟨⟨hn,Q,G,hgraph,hG,LC,hLC,hdisplacement,?_⟩⟩ intro t x constructor · erw [A.normalizedPacketVelocity_forwardInitialized H firstNormal firstNormal_unit firstFrame support compact δ hδ firstCoordinate (subset_refl _) (δ*hchild) (truncation k) hn k hk.four Q S.evolution.inverse t] exact (herror t x).1 · erw [A.normalizedPacketPressure_forwardInitialized H firstNormal firstNormal_unit firstFrame support compact δ hδ firstCoordinate (subset_refl _) (δ*hchild) (truncation k) hn k hk.four Q S.evolution.inverse t] conv_lhs => enter [1, 2] erw [forwardPressureTerm_eq_coefficient (D := A.transverseData firstNormal firstNormal_unit firstFrame support compact) firstCoordinate] exact (herror t x).2 namespace FirstPacketChoice variable (F : FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) def parent : Parent := (packetBaseParent β hβ ell hell hell1 T hT hTB).child F.G k firstNormal F.graph nextEll hnext hnext1 def state : SmoothState F.parent := firstPacketState β hβ ell hell hell1 T hT hTB δ hδ hchild (truncation k) F.hn k hk.four F.Q F.G F.coefficient F.graph nextEll hnext hnext1 F.labels theorem state_label_constant : F.state.labels.K=k^80 := F.label_constant def lowBounds (hquarter : ell ≤ 1/4) (hδ1 : δ ≤ 1) (hh : 0 ≤ hchild) (hsmall : (initialCoefficientCost+2*initialCoefficientCost*δ*(hchild*firstRatio)+k^(-(1/4 : ℝ)))*(T^2/2)+ initialCoefficientCost*T+ boundaryLocalizationC2*(initialCoefficientCost+hchild*firstRatio+k^(-(1/4 : ℝ)))*ell^3*T ≤ 1/2) : LowBounds F.parent := firstPacketLowBounds β hβ ell hell hell1 T hT hTB δ hδ hchild (truncation k) F.hn k hk.four F.Q F.G F.coefficient F.graph nextEll hnext hnext1 hquarter hδ1 hh (k^(-(1/4 : ℝ))) (k^(-(1/4 : ℝ))) F.errors hsmall end FirstPacketChoice end EulerBaseDatum