import Euler.PhysicalGraphFlowBounds import Euler.PacketLiftedCoefficientBounds /-! A fixed actual correction and the derived approximation bounds construct physical graph-flow data. No new solution or inverse is an input. -/ /-! ## From `Euler/PacketLiftedTimeBounds.lean` The text of `Euler/PacketLiftedTimeBounds.lean`, folded into this file, which was its only importer. -/ section /-! The actual lifted time coefficient has simultaneous sup and cylinder L² bounds from the genuine approximation and correction time derivatives. -/ noncomputable section namespace EulerAllOrderDriftCorrection open Set MeasureTheory EulerAllOrderCorrectionData EulerLiftedGradientSpace EulerSmoothLimit EulerPacketCylinderField EulerPacketProfileRecursion EulerCylinderSmoothOrbit EulerLiftedSmoothTimeField EulerLiftedTransportTrace EulerMetricTransport EulerCylinderCoordinates EulerCylinderSobolevSpace EulerSobolevGevreyOperators EulerCylinderJetLp EulerCylinderCoverDescent open scoped ContDiff BoundedContinuousFunction variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {hT : 0 < T} {A : Data P T} (B : Budget P hT A) {raw_t : VectorField} private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent [×n]→L[ℝ] Space) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent [×n]→L[ℝ] Space) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent [×n]→L[ℝ] LiftTangent) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent [×n]→L[ℝ] LiftTangent) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] LiftTangent)) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] LiftTangent)) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup C(Icc (0 : ℝ) T, LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup C(Icc (0 : ℝ) T, LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] LiftTangent)) := inferInstance private theorem time_envelope_mono {C D R S : ℝ} (hD : 0 ≤ D) (hR : 0 ≤ R) (hCD : C ≤ D) (hRS : R ≤ S) (n : ℕ) : C*R^n*(n.factorial : ℝ)^2 ≤ D*S^n*(n.factorial : ℝ)^2 := mul_le_mul_of_nonneg_right (mul_le_mul hCD (pow_le_pow_left₀ hR hRS n) (pow_nonneg hR n) hD) (sq_nonneg _) theorem Budget.liftedPacketDerivativeCoefficient_periodic (H : Field P T raw_t) (c : AddSubgroup.zmultiples P) (t : Icc (0 : ℝ) T) (x : LiftTangent) : (B.liftedPacketDerivativeCoefficient P H).field t (x.1,(c : ℝ)+x.2) = (B.liftedPacketDerivativeCoefficient P H).field t x := by have hc : coveringMap P (x.1,(c : ℝ)+x.2) = coveringMap P x := EulerCylinderMeasureDescent.coveringMap_deck P c x change transportDirection A.κ A.direction (EulerCylinderSmoothOrbit.pointField P H.path H.orbit t (coveringMap P (x.1,(c : ℝ)+x.2)) + (B.timeDerivativeTower P).pointField t (coveringMap P (x.1,(c : ℝ)+x.2))) = _ rw [hc] rfl theorem Budget.liftedPacketDerivativeCoefficient_jetSeries (H : Field P T raw_t) (n : ℕ) (t : Icc (0 : ℝ) T) : (fun q => jetSeries P ((B.liftedPacketDerivativeCoefficient P H).field t : LiftTangent → LiftTangent) q n) = tensor P (fun q => transportDirection A.κ A.direction (H.toFieldTower.pointField t q + (B.timeDerivativeTower P).pointField t q)) n := by have he : ((B.liftedPacketDerivativeCoefficient P H).field t : LiftTangent → LiftTangent) = fun x => transportDirection A.κ A.direction (H.toFieldTower.pointField t (coveringMap P x) + (B.timeDerivativeTower P).pointField t (coveringMap P x)) := by funext x change transportDirection A.κ A.direction (H.toSmoothTimeField.field t x + (B.timeDerivativeTower P).pointField t (coveringMap P x)) = _ rw [H.toSmoothTimeField_apply] change transportDirection A.κ A.direction (raw_t (t,x) + (B.timeDerivativeTower P).pointField t (coveringMap P x)) = transportDirection A.κ A.direction (H.toFieldTower.pointField t (x.1,(x.2 : AddCircle P)) + (B.timeDerivativeTower P).pointField t (coveringMap P x)) rw [H.toFieldTower_pointField_raw] rw [he] rfl theorem Budget.liftedPacketDerivativeCoefficient_memLp (H : Field P T raw_t) (n : ℕ) (t : Icc (0 : ℝ) T) : MemLp (fun q => jetSeries P ((B.liftedPacketDerivativeCoefficient P H).field t : LiftTangent → LiftTangent) q n) 2 (liftMeasure P) := by rw [B.liftedPacketDerivativeCoefficient_jetSeries P H] exact tensor_map_memLp P (transportLinear A.κ A.direction) (fun q => H.toFieldTower.pointField t q + (B.timeDerivativeTower P).pointField t q) (fun q => (H.toFieldTower.pointField_smooth t q).add ((B.timeDerivativeTower P).pointField_smooth t q)) n (tensor_add_memLp P _ _ (H.toFieldTower.pointField_smooth t) ((B.timeDerivativeTower P).pointField_smooth t) n (H.toFieldTower.coverTensor_memLp n t) ((B.timeDerivativeTower P).coverTensor_memLp n t)) theorem Budget.liftedPacketDerivativeCoefficient_L2_bound (H : Field P T raw_t) (R ρ Ch Ce : ℝ) (hκ : |A.κ| ≤ 1) (hm : ‖A.direction‖ ≤ 1) (hR : 0 ≤ R) (hρ : 0 < ρ) (hCh : 0 ≤ Ch) (hCe : 0 ≤ Ce) (hH : H.WordBound 6 R Ch 0) (hE : ∀ n (t : Icc (0 : ℝ) T), weightedNorm P 6 n ρ ((B.timeDerivativeTower P).realization (n+6) t) ≤ Ce) (n : ℕ) (t : Icc (0 : ℝ) T) : (eLpNorm (fun q => jetSeries P ((B.liftedPacketDerivativeCoefficient P H).field t : LiftTangent → LiftTangent) q n) 2 (liftMeasure P)).toReal ≤ (2*liftedInputConstant P*(Ch+Ce)) * (liftedInputRadius R ρ)^n * (n.factorial : ℝ)^2 := by have hh := (hH.coverTensor_bound n t).trans (time_envelope_mono hCh (mul_nonneg (norm_nonneg _) hR) le_rfl (liftedInputRadius_packet R ρ hR hρ) n) have he := ((B.timeDerivativeTower P).coverTensor_weighted n ρ Ce hρ t (hE n t)).trans (time_envelope_mono hCe (mul_nonneg (norm_nonneg _) (inv_nonneg.mpr hρ.le)) le_rfl (liftedInputRadius_error R ρ hR) n) let f := H.toFieldTower.pointField t let g := (B.timeDerivativeTower P).pointField t have hf := H.toFieldTower.pointField_smooth t have hg := (B.timeDerivativeTower P).pointField_smooth t have hF := H.toFieldTower.coverTensor_memLp n t have hG := (B.timeDerivativeTower P).coverTensor_memLp n t have hs := (tensor_add_norm_le P f g hf hg n hF hG).trans (add_le_add hh he) have hb := tensor_transport_norm_le_full P A.κ A.direction (fun q => f q+g q) (fun q => (hf q).add (hg q)) n (tensor_add_memLp P f g hf hg n hF hG) rw [B.liftedPacketDerivativeCoefficient_jetSeries P H] apply hb.trans calc _ ≤ 2*(eLpNorm (tensor P (fun q => f q+g q) n) 2 (liftMeasure P)).toReal := mul_le_mul_of_nonneg_right (by linarith) ENNReal.toReal_nonneg _ ≤ 2*(Ch*(liftedInputRadius R ρ)^n*(n.factorial : ℝ)^2 + Ce*(liftedInputRadius R ρ)^n*(n.factorial : ℝ)^2) := mul_le_mul_of_nonneg_left hs (by norm_num) _ = (2*(Ch+Ce))*(liftedInputRadius R ρ)^n*(n.factorial : ℝ)^2 := by ring _ ≤ _ := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right (by nlinarith [liftedInputConstant_one_le P] : 2*(Ch+Ce) ≤ 2*liftedInputConstant P*(Ch+Ce)) (pow_nonneg (liftedInputRadius_pos R ρ hR hρ).le n)) (sq_nonneg _) end EulerAllOrderDriftCorrection end end noncomputable section namespace EulerAllOrderDriftCorrection open Set MeasureTheory EulerAllOrderCorrectionData EulerLiftedGradientSpace EulerSmoothLimit EulerPacketCylinderField EulerPacketProfileRecursion EulerSobolevGevreyOperators EulerPhysicalGraphFlowBounds EulerCylinderCoverDescent open scoped ContDiff def physicalInputRadius (R Rt ρ : ℝ) : ℝ := max (liftedInputRadius R ρ) (liftedInputRadius Rt ρ) def physicalInputSize (P k C0 Cn Ev : ℝ) [Fact (0 < P)] : ℝ := liftedInputConstant P*((C0+Cn)/k+2*Ev) private theorem envelope_radius_mono {C R S : ℝ} (hC : 0 ≤ C) (hR : 0 ≤ R) (hRS : R ≤ S) (n : ℕ) : C*R^n*(n.factorial : ℝ)^2 ≤ C*S^n*(n.factorial : ℝ)^2 := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ hR hRS n) hC) (sq_nonneg _) variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {hT : 0 < T} {A : EulerAllOrderCorrectionData.Data P T} (B : Budget P hT A) {raw raw_t : VectorField} def Budget.physicalFlowData (G : Field P T raw) (H : Field P T raw_t) (hGfield : A.approximation = G.toFieldTower) (htime : TimeDerivative hT.le G H) (k R Rt ρ C0 Cn Ch Ev Et : ℝ) (hk : 1 ≤ k) (hκ : A.κ = k⁻¹) (hm : ‖A.direction‖ ≤ 1) (hR : 0 ≤ R) (hRt : 0 ≤ Rt) (hρ : 0 < ρ) (hC0 : 0 ≤ C0) (hCn : 0 ≤ Cn) (hCh : 0 ≤ Ch) (hEv : 0 ≤ Ev) (hEt : 0 ≤ Et) (hG : G.WordBound 6 R C0 0) (hN : (G.map (normalComponentMap A.direction)).WordBound 6 R (Cn/k) 0) (hH : H.WordBound 6 Rt Ch 0) (hE : ∀ n (t : Icc (0 : ℝ) T), weightedNorm P 6 n ρ ((B.fieldTower P).realization (n+6) t) ≤ Ev) (hEtower : ∀ n (t : Icc (0 : ℝ) T), weightedNorm P 6 n ρ ((B.timeDerivativeTower P).realization (n+6) t) ≤ Et) (hsmall : physicalInputSize P k C0 Cn Ev * physicalInputRadius R Rt ρ * T ≤ 1/8) : EulerPhysicalGraphFlowBounds.Data P T := by have hrv := (liftedInputRadius_pos R ρ hR hρ) have hrt := (liftedInputRadius_pos Rt ρ hRt hρ) have hK : 0 ≤ liftedInputConstant P := zero_le_one.trans (liftedInputConstant_one_le P) have hamp : 0 ≤ physicalInputSize P k C0 Cn Ev := by dsimp [physicalInputSize] positivity have hamp1 : 0 ≤ 2*liftedInputConstant P*(Ch+Et) := by positivity have hκ1 : |A.κ| ≤ 1 := by rw [hκ,abs_of_pos (inv_pos.mpr (by linarith : 0 < k))] exact inv_le_one_of_one_le₀ hk refine { time_nonneg := hT.le A := B.liftedPacketCoefficient P G A₁ := B.liftedPacketDerivativeCoefficient P H time_derivative := B.liftedPacketCoefficient_timeDerivative P G H htime periodic := B.liftedPacketCoefficient_periodic P G periodic_time := B.liftedPacketDerivativeCoefficient_periodic P H divergence := B.liftedPacketCoefficient_trace P G hGfield B := physicalInputSize P k C0 Cn Ev R := physicalInputRadius R Rt ρ C := physicalInputSize P k C0 Cn Ev S := physicalInputRadius R Rt ρ C₁ := 2*liftedInputConstant P*(Ch+Et) S₁ := physicalInputRadius R Rt ρ B_nonneg := hamp R_pos := hrv.trans_le (le_max_left _ _) C_nonneg := hamp S_nonneg := hrv.le.trans (le_max_left _ _) C₁_nonneg := hamp1 S₁_nonneg := hrv.le.trans (le_max_left _ _) small := hsmall sup_bound := ?_ integrable := fun t n => B.liftedPacketCoefficient_memLp P G hGfield n t lp_bound := ?_ integrable_time := fun t n => B.liftedPacketDerivativeCoefficient_memLp P H n t lp_bound_time := ?_ } · intro n exact (B.liftedPacketCoefficient_jet_bound P G k R ρ C0 Cn Ev hk hκ hm hR hρ hC0 hCn hEv hG hN hE n).trans (envelope_radius_mono hamp hrv.le (le_max_left _ _) n) · intro t n exact (B.liftedPacketCoefficient_L2_bound P G hGfield k R ρ C0 Cn Ev hk hκ hm hR hρ hC0 hCn hEv hG hN hE n t).trans (envelope_radius_mono hamp hrv.le (le_max_left _ _) n) · intro t n exact (B.liftedPacketDerivativeCoefficient_L2_bound P H Rt ρ Ch Et hκ1 hm hRt hρ hCh hEt hH hEtower n t).trans (envelope_radius_mono hamp1 hrt.le (le_max_right _ _) n) end EulerAllOrderDriftCorrection