import Euler.DriftCorrectionForcing import Euler.GevreyNonlinearEstimate import Euler.NonlinearEnergyConstants import Euler.CorrectionEnergyScalar import Euler.DriftCorrectionBudget import Euler.CorrectionEnergyRestriction import Euler.MildMajorantEnergy import Euler.CorrectionEnergyBootstrap /-! The actual nonlinear viscous correction closes its shrinking-radius Gevrey bootstrap from the constructed mild equation. -/ /-! ## From `Euler/DriftEnergyConstants.lean` The text of `Euler/DriftEnergyConstants.lean`, folded into this file, which was its only importer. -/ section /-! Separate the full background norm from the drift norm in the radius-loss term. -/ noncomputable section namespace EulerDriftEnergyConstants open EulerGevreyCorrectionBound EulerGevreyMetricEstimate EulerGevreyGrowthCoefficient EulerNonlinearEnergyConstants variable (period : ℝ) [Fact (0 < period)] /-- The full velocity enters the zero-order coefficient; only the drift enters the loss term. -/ def forcingPolynomial (B M Z0 B0 B1 A0 A2 residual c Rc ρ X Y : ℝ) : ℝ := sourceConstant B M * residual + linearCoefficient period B M Z0 B1 A0 A2 c * X + quadraticCoefficient period B M A2 c * X ^ 2 + lossCoefficient period M c * (ρ⁻¹ + Rc) * (B0 + X) * Y /-- The existing polynomial growth constant absorbs the sharp drift forcing without replacing its small drift envelope by the full background envelope. -/ theorem actual_scalar_bound (g0 g1 k B M Z0 B0 B1 A0 A2 c Rc ρ residual X Y b : ℝ) (hg0 : 0 ≤ g0) (hg1 : 0 ≤ g1) (hk : 0 ≤ k) (hB : 0 ≤ B) (hM : 0 ≤ M) (hZ0 : 0 ≤ Z0) (hB0 : 0 ≤ B0) (hB1 : 0 ≤ B1) (hA0 : 0 ≤ A0) (hA2 : 0 ≤ A2) (hc : 0 < c) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) (hr : 0 ≤ residual) (hX : 0 ≤ X) (hY : 0 ≤ Y) : let C := energyConstant period g0 g1 k B M Z0 B1 A0 A2 c (g0 + g1 * X) * X + b * Y + k * forcingPolynomial period B M Z0 B0 B1 A0 A2 residual c Rc ρ X Y ≤ C * (X + X ^ 2 + residual) + (b + C * (ρ⁻¹ + Rc) * (B0 + X)) * Y := by obtain ⟨hl, hq, hd⟩ := coefficients_nonneg period B M Z0 B1 A0 A2 c hB hM hZ0 hB1 hA0 hA2 hc have hs := sourceConstant_nonneg hB hM have h := absorb_scalar_coefficients g0 g1 (k * sourceConstant B M) (k * linearCoefficient period B M Z0 B1 A0 A2 c) (k * quadraticCoefficient period B M A2 c) (k * lossCoefficient period M c) residual X Y B0 (ρ⁻¹ + Rc) (energyConstant period g0 g1 k B M Z0 B1 A0 A2 c) hg0 hg1 (mul_nonneg hk hs) (mul_nonneg hk hl) (mul_nonneg hk hq) (mul_nonneg hk hd) hr hX hY hB0 (add_nonneg (inv_nonneg.mpr hρ.le) hRc) (le_refl _) b calc _ = (g0 + g1 * X) * X + b * Y + ((k * sourceConstant B M) * residual + (k * linearCoefficient period B M Z0 B1 A0 A2 c) * X + (k * quadraticCoefficient period B M A2 c) * X ^ 2 + (k * lossCoefficient period M c) * (ρ⁻¹ + Rc) * (B0 + X) * Y) := by unfold forcingPolynomial ring _ ≤ _ := h end EulerDriftEnergyConstants end end /-! ## From `Euler/DriftNonlinearEstimate.lean` The text of `Euler/DriftNonlinearEstimate.lean`, folded into this file, which was its only importer. -/ section /-! Actual nonlinear forcing with separate full-background and drift envelopes. -/ noncomputable section namespace EulerDriftNonlinearEstimate open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero EulerGevreyCorrectionBound EulerGevreyNonlinearEstimate EulerSobolevDriftNorm EulerFunctionalVelocity /-- The factor four is spent only on the correction drift, recovering the original uniform loss constant. -/ theorem drift_loss_absorption (P M Rc ρ B E Y D : ℝ) (hP : 0 ≤ P) (hM : 0 ≤ M) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) (hB : 0 ≤ B) (hE : 0 ≤ E) (hY : 0 ≤ Y) (hD : D ≤ 4*(B+E)) : (P*ρ⁻¹+8*Rc*M*P)*D*Y ≤ ((4+32*M)*P)*(ρ⁻¹+Rc)*(B+E)*Y := by have ha : 0 ≤ P*ρ⁻¹+8*Rc*M*P := by positivity have hc : 4*(P*ρ⁻¹+8*Rc*M*P) ≤ ((4+32*M)*P)*(ρ⁻¹+Rc) := by have h1 := mul_nonneg hP hRc have h2 := mul_nonneg (mul_nonneg hM hP) (inv_nonneg.mpr hρ.le) linarith only [h1,h2] calc _ ≤ (P*ρ⁻¹+8*Rc*M*P)*(4*(B+E))*Y := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hD ha) hY _ = (4*(P*ρ⁻¹+8*Rc*M*P))*(B+E)*Y := by ring _ ≤ _ := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hc (add_nonneg hB hE)) hY /-- Scalar assembly keeps the independent full-velocity and drift envelopes in their respective terms. -/ theorem polynomial_assembly (S T D Z B P B1 A0 A2 R E Y V F H : ℝ) (hS : 0 ≤ S) (hT : 0 ≤ T) (hE : 0 ≤ E) (hV : V ≤ Z+E) (hF : F ≤ R+(P*B1+A0+2*A2*P*Z)*E+A2*P*E^2) (hH : H ≤ S*F+T*V*E+D*(B+E)*Y) : H ≤ S*R+(S*(P*B1+A0+2*A2*P*Z)+T*Z)*E+(S*A2*P+T)*E^2+D*(B+E)*Y := by have h := add_le_add (add_le_add (mul_le_mul_of_nonneg_left hF hS) (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hV hT) hE)) (le_refl (D*(B+E)*Y)) exact hH.trans (h.trans_eq (by ring)) variable (period : ℝ) [Fact (0 < period)] /-- The literal seven-term Euler forcing has a scalar bound preserving the actual small background drift. -/ theorem correctionForcing_polynomial {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) (hsmall : 4*M*(ρ*Rc) ≤ 1) (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) (C : Fin 3 → SmoothCoefficient period) (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) (hz : weightedNorm period 6 N ρ z ≤ Z0) (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) (hr : weightedNorm period 6 N ρ r ≤ R) : let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) (correctionForcing period hs KG KG0 N hN L hL (z+e) e f (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ sourceConstant B M*R+ (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0)* weightedNorm period 6 N ρ e+ (sourceConstant B M*A2*productConstant period 3+transportConstant period B M)*(weightedNorm period 6 N ρ e)^2+ lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) have hf := orderZeroSource_uniform period hs N hN ρ hρ L hL C0 K0 C K z e r Z0 B1 A0 A2 R hA2 hz hdz hC0 hC hr have hv := (weightedNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ z e).trans (add_le_add hz (le_refl (weightedNorm period 6 N ρ e))) have hB0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb have heD := weightedDriftNorm_velocityMap_le period 6 N ρ hρ L hL e have hD : weightedDriftNorm period 6 N ρ (velocityMap L) (z+e) ≤ 4*(B0+weightedNorm period 6 N ρ e) := by have h := (weightedDriftNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ (velocityMap L) z e).trans (add_le_add hb heD) linarith only [h,hB0] have hraw := EulerDriftCorrectionForcing.correctionForcing_uniform_bound period hs KG KG0 κ m c hc hpos N hN ρ Rc M B hρ hRc hM hbase5 hbase6 hsmall hcoeff hG hG0 L hL (z+e) e f have hloss : (productConstant period 3*ρ⁻¹+8*Rc*M*productConstant period 3)* weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)*weightedLoss period 6 N ρ e ≤ lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by simpa only [lossConstant] using drift_loss_absorption (productConstant period 3) M Rc ρ B0 (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) (weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)) (productConstant_nonneg period 3) (by linarith) hRc hρ hB0 (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) hD have h := hraw.trans (add_le_add (le_refl _) hloss) exact polynomial_assembly (sourceConstant B M) (transportConstant period B M) (lossConstant period M*(ρ⁻¹+Rc)) Z0 B0 (productConstant period 3) B1 A0 A2 R (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) (weightedNorm period 6 N ρ (z+e)) (weightedNorm period 6 N ρ f) _ (sourceConstant_nonneg hB (by linarith)) (transportConstant_nonneg period hB (by linarith)) (weightedNorm_nonneg period 6 N ρ hρ e) hv hf h end EulerDriftNonlinearEstimate end end /-! ## From `Euler/DriftMetricForcing.lean` The text of `Euler/DriftMetricForcing.lean`, folded into this file, which was its only importer. -/ section /-! The actual correction forcing in metric energy with distinct full-background and small-drift budgets. -/ noncomputable section namespace EulerDriftMetricForcing open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero EulerGevreyCorrectionBound EulerGevreyMetricEstimate EulerSobolevDriftNorm EulerFunctionalVelocity variable (period : ℝ) [Fact (0 < period)] /-- The genuine seven-term correction forcing obeys the metric polynomial retaining the small drift envelope. -/ theorem correctionForcing_metric {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) (hsmall : 4*M*(ρ*Rc) ≤ 1) (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) (C : Fin 3 → SmoothCoefficient period) (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) (hz : weightedNorm period 6 N ρ z ≤ Z0) (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) (hr : weightedNorm period 6 N ρ r ≤ R) (KM : LiftL2 period →L[ℝ] LiftL2 period) (cM : ℝ) (hcM : 0 < cM) (hKM : ∀ v, cM^2*‖v‖^2 ≤ ⟪KM v,v⟫_ℝ) : let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) (correctionForcing period hs KG KG0 N hN L hL (z+e) e f (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ EulerDriftEnergyConstants.forcingPolynomial period B M Z0 B0 B1 A0 A2 R cM Rc ρ (energyNorm period N (by omega : N+6 ≤ s+1) ρ KM e) (energyLoss period N (by omega : N+6 ≤ s+1) ρ KM e) := by let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) have h := EulerDriftNonlinearEstimate.correctionForcing_polynomial period hs KG KG0 κ m c hc hpos N hN ρ Rc M B hρ hRc hM hB hbase5 hbase6 hsmall hcoeff hG hG0 L hL C0 K0 C K z e r Z0 B0 B1 A0 A2 R hA2 hz hb hdz hC0 hC hr have hM0 : 0 ≤ M := by linarith have hP := productConstant_nonneg period 3 have hz0 : 0 ≤ Z0 := (weightedNorm_nonneg period 6 N ρ hρ z).trans hz have hb0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb have hb1 : 0 ≤ B1 := (Finset.sum_nonneg (fun i _ => weightedNorm_nonneg period 6 N ρ hρ (derivativeOperator period s i z))).trans hdz have ha0 : 0 ≤ A0 := (weightedCoefficient_nonneg period K0 6 N ρ hρ).trans hC0 have hsf := sourceConstant_nonneg hB hM0 have htf := transportConstant_nonneg period hB hM0 have hlf := lossConstant_nonneg period hM0 have hlin : 0 ≤ sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+ transportConstant period B M*Z0 := by positivity have hquad : 0 ≤ sourceConstant B M*A2*productConstant period 3+transportConstant period B M := by positivity have hconv := metric_polynomial_conversion (sourceConstant B M) (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0) (sourceConstant B M*A2*productConstant period 3+transportConstant period B M) (lossConstant period M*(ρ⁻¹+Rc)) R B0 (metricAmplification cM) (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) (energyNorm period N (by omega : N+6 ≤ s+1) ρ KM e) (energyLoss period N (by omega : N+6 ≤ s+1) ρ KM e) _ hlin hquad (mul_nonneg hlf (add_nonneg (inv_nonneg.mpr hρ.le) hRc)) hb0 (metricAmplification_one_le hcM) (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) (energyNorm_nonneg period N (by omega : N+6 ≤ s+1) ρ hρ KM e) (weightedNorm_le_energy period N (by omega : N+6 ≤ s+1) ρ hρ KM e cM hcM hKM) (weightedLoss_le_energy period N (by omega : N+6 ≤ s+1) ρ hρ KM e cM hcM hKM) h simpa only [EulerDriftEnergyConstants.forcingPolynomial, EulerNonlinearEnergyConstants.linearCoefficient, EulerNonlinearEnergyConstants.quadraticCoefficient, EulerNonlinearEnergyConstants.lossCoefficient, mul_assoc, mul_left_comm] using hconv end EulerDriftMetricForcing end end /-! ## From `Euler/DriftEnergyMajorants.lean` The text of `Euler/DriftEnergyMajorants.lean`, folded into this file, which was its only importer. -/ section /-! Continuous energy majorants that retain the actual small transport drift. -/ noncomputable section namespace EulerDriftEnergyMajorants open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerTimeLpSubintervalBound EulerVolterraConvolution EulerDriftCorrectionBudget open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- The sharp polynomial is evaluated on the actual continuous metric energy paths. -/ def forcingMajorant {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} (S : Budget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := by let X := energyPath period N hN T R (K.operatorPath period) e let Y := lossPath period N hN T R (K.operatorPath period) e refine ⟨fun t => EulerDriftEnergyConstants.forcingPolynomial period S.full.B S.full.M S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 S.full.residual K.c S.full.Rc (R t) (X t) (Y t), ?_⟩ have hi : Continuous (fun t => (R t)⁻¹) := R.continuous.inv₀ (fun t => (S.full.radius_pos t).ne') unfold EulerDriftEnergyConstants.forcingPolynomial fun_prop /-- The genuine scalar majorant retains full velocity only in terms with no derivative loss. -/ def correctionRhs {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} (S : Budget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) (Rdot : C(Icc (0 : ℝ) T, ℝ)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := scalarEnergyRhs T (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) (ContinuousMap.const _ (K.multiplier period)) (energyPath period N hN T R (K.operatorPath period) e) (lossPath period N hN T R (K.operatorPath period) e) (forcingMajorant period S hN K e) /-- The source's radius-loss factor uses the drift envelope, with the unchanged full-data growth constant. -/ theorem correctionRhs_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} (S : Budget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) (Rdot : C(Icc (0 : ℝ) T, ℝ)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : let X := energyPath period N hN T R (K.operatorPath period) e t let Y := lossPath period N hN T R (K.operatorPath period) e t let C := combinedConstant period S.full K correctionRhs period S hN K Rdot e t ≤ C * (X + X ^ 2 + S.full.residual) + (Rdot t / R t + C * ((R t)⁻¹ + S.full.Rc) * (S.drift + X)) * Y := by obtain ⟨hg0, hg1, hk⟩ := K.constants_nonneg period S.full.B0 S.full.B0_nonneg exact EulerDriftEnergyConstants.actual_scalar_bound period (K.growth0 period S.full.B0) (K.growth1 period) (K.multiplier period) S.full.B S.full.M S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 K.c S.full.Rc (R t) S.full.residual (energyPath period N hN T R (K.operatorPath period) e t) (lossPath period N hN T R (K.operatorPath period) e t) (Rdot t / R t) hg0 hg1 hk S.full.B_nonneg (zero_le_one.trans S.full.M_one_le) S.full.B0_nonneg S.drift_nonneg S.full.B1_nonneg S.full.A0_nonneg S.full.A2_nonneg K.c_pos S.full.Rc_nonneg (S.full.radius_pos t) S.full.residual_pos.le (energy_nonneg period S.full hN K e t) (loss_nonneg period S.full hN K e t) end EulerDriftEnergyMajorants end end /-! ## From `Euler/DriftCorrectionEnergyBound.lean` The text of `Euler/DriftCorrectionEnergyBound.lean`, folded into this file, which was its only importer. -/ section /-! The actual time-dependent correction forcing obeys the sharp drift majorant. -/ noncomputable section namespace EulerDriftCorrectionEnergyBound open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators EulerCorrectionEnergyTime EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerH6Pressure EulerSobolevGevreyOperators EulerSobolevTransportCommutator EulerSobolevTransport EulerH6Nonlinear EulerGevreyMetricComparison EulerTimeLp EulerVolterraConvolution EulerSobolevWordValueIdentity EulerRegularizedTopBlocks EulerGevreyOrderZero EulerTimeCorrectionSource EulerWeightedCylinderEnergy EulerCorrectionEnergyData EulerDriftCorrectionBudget EulerDriftEnergyMajorants EulerFunctionalVelocity EulerSobolevDriftNorm open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- The actual correction array is controlled by the continuous drift majorant, independently of its auxiliary higher-Sobolev representative. -/ theorem correctionArray_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} (S : Budget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (V : SobolevSpace period ((q+1)+1)) (τ : Icc (0 : ℝ) T) (hV : truncateOperator period (q+1) V = e τ) : weightedForcingSum (R τ) (fun I : ExternalWord N => I.1.val) (correctionArray period hq D (baseMetricJet period hq D) N hN e V τ) ≤ forcingMajorant period S hN K e τ := by have h := EulerDriftMetricForcing.correctionForcing_metric period hq (D.metric.jet τ) (baseMetricJet period hq D τ) D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos τ) N hN (R τ) S.full.Rc S.full.M S.full.B (S.full.radius_pos τ) S.full.Rc_nonneg S.full.M_one_le S.full.B_nonneg (S.full.inverse_five τ) (S.full.inverse_six τ) (S.full.radius_small τ) (S.full.metric_derivatives τ) (S.full.metric_base τ) (S.full.base_bound period τ) (velocityComponents D.κ D.direction) (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (D.linear.coefficient τ) (D.linear.jet τ) (fun i => (D.quadratic i).coefficient τ) (fun i => (D.quadratic i).jet τ) (D.approximation τ) V (D.residual τ) S.full.B0 S.drift S.full.B1 S.full.A0 S.full.A2 S.full.residual S.full.A2_nonneg (S.full.background τ) (S.drift_bound τ) (S.full.background_derivative τ) (S.full.linear τ) (S.full.quadratic τ) (S.full.residual_bound τ) (K.operatorPath period τ) K.c K.c_pos (K.operator_coercive period τ) have hv : value period V = value period (e τ) := congrArg (value period) hV rw [energyNorm_of_value_eq period N (by omega) hN (R τ) (K.operatorPath period τ) V (e τ) hv, energyLoss_of_value_eq period N (by omega) hN (R τ) (K.operatorPath period τ) V (e τ) hv] at h simpa only [correctionArray, lowerOrderPath, orderZeroPath, ContinuousMap.coe_mk, CoefficientPath.operatorPath, EulerGevreyPressureTransport.transportPressure, hV, forcingMajorant, energyPath_apply, lossPath_apply] using h /-- The full Bochner forcing inherits the drift bound from the actual spatial fields. -/ theorem weightedCorrectionForcing_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} (S : Budget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) (hG : Continuous (fun t => (D.metric.coefficient t).operator)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) : (weightedCorrectionForcing period hq T hT D hG N hN R e U : ℝ → ℝ) ≤ᵐ[timeMeasure T] extendPath T hT (forcingMajorant period S hN K e) := by filter_upwards [weightedCorrectionForcing_ae period hq T hT D hG (baseMetricJet period hq D) N hN R e U hU, reindexMaximalTime_restriction period T hT e U hU] with t hforce hv exact hforce.le.trans (correctionArray_bound period S hN K e (reindexMaximalTime period q T U t) (projIcc 0 T hT t) hv) end EulerDriftCorrectionEnergyBound end end /-! ## From `Euler/DriftCorrectionMildEnergy.lean` The text of `Euler/DriftCorrectionMildEnergy.lean`, folded into this file, which was its only importer. -/ section /-! Actual nonlinear correction mild solutions obey the drift-sensitive integral energy estimate. -/ noncomputable section namespace EulerDriftCorrectionMildEnergy open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData EulerCorrectionEnergyRestriction EulerCorrectionEnergyTime EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerMildMajorantEnergy EulerEnergyWordCoordinates EulerTimeLpSubintervalBound EulerTimeLp EulerVolterraConvolution EulerSobolevHeat EulerSobolevMaximalRegularity EulerDriftCorrectionBudget EulerDriftEnergyMajorants open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- The actual nonlinear lower mild equation yields the full energy-order scalar integral bound on every subinterval. Maximal regularity, the higher nonlinear source, the pressure, and their constraints are all constructed or proved inside the argument. -/ theorem correction_mild_integral {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) (hG : Continuous (fun t => (D.metric.coefficient t).operator)) (N : ℕ) (hN : N+6 ≤ q+1) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) (S : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period T hT D) (hRd : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t) (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) (e₀ : SobolevSpace period (q+1)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (hsol : ∀ t : Icc (0 : ℝ) T, e t = heatOperator period (q+1) (2*ν*t.val).toNNReal e₀ + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) (t.val-r))) (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) (s t : ℝ) (h0s : 0 ≤ s) (hst : s ≤ t) (htT : t ≤ T) : energyPath period N hN T R (K.operatorPath period) e ⟨t,h0s.trans hst,htT⟩ - energyPath period N hN T R (K.operatorPath period) e ⟨s,h0s,hst.trans htT⟩ ≤ ∫ r in s..t, extendPath T hT (correctionRhs period S hN K Rdot e) r := by let Dlow := lowerData period D KG KL KQ hGq hLq hQq let f := forcingPath period hq Dlow e let p := pressurePath period hq Dlow e obtain ⟨U,hU⟩ := exists_maximal_mild_limit period ν hν T hT e₀ f e hsol let F := sourceTime period (by omega : 6 ≤ q+1) T hT D e U let P := signedPressureTime period (by omega : 6 ≤ q+1) T hT D e U let X := energyPath period N hN T R (K.operatorPath period) e let Y := lossPath period N hN T R (K.operatorPath period) e let k : C(Icc (0 : ℝ) T, ℝ) := ContinuousMap.const _ (K.multiplier period) have hF := sourceTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU have hP := signedPressureTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU have henergy := mild_majorized_energy_subinterval period (by omega : 3 ≤ q+1) T hT s t h0s hst htT energyLength energyWord (energyLength_le hN) (fun I : EulerGevreyMetricComparison.ExternalWord N => I.1.val) ν hν D.κ D.direction K.c K.c_pos R Rdot S.full.radius_pos hRd K.metric D.metric.coefficient K.continuous hG K.derivative K.hasDeriv K.symmetric K.coercive K.inverse (fun τ => metricVelocityBound period K.c S.full.B0 (X τ)) (velocityPath period D e) e e₀ f p hsol he (pressurePath_gradient period hq Dlow e) (velocity_divergenceFree period D e hz he) (velocity_bound period S.full hN K e) U F P hU hF hP (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) k (growthPath_bound period S.full hN K e ν hν1) (fun _ => rfl) (fun τ => div_le_div_of_nonneg_right (K.bound_le τ) K.c_pos.le) have hforce := EulerDriftCorrectionEnergyBound.weightedCorrectionForcing_bound period S hN K hG e U hU have hk : ∀ τ, 0 ≤ k τ := fun _ => (K.constants_nonneg period S.full.B0 S.full.B0_nonneg).2.2 exact scalar_rhs_subinterval T hT s t h0s hst htT (growthPath period S.full hN K e) (radiusLossPath R Rdot S.full.radius_pos) k X Y (forcingMajorant period S hN K e) hk (weightedCorrectionForcing period (by omega : 6 ≤ q+1) T hT D hG N hN R e U) hforce henergy end EulerDriftCorrectionMildEnergy end end noncomputable section namespace EulerDriftCorrectionBootstrap open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerCorrectionMildEnergy EulerCorrectionEnergyScalar EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerTimeLp EulerVolterraConvolution EulerSobolevHeat EulerIntegralEnergyBootstrap open EulerDriftCorrectionBudget EulerDriftEnergyMajorants EulerCorrectionEnergyBootstrap open scoped Topology variable (period : ℝ) [Fact (0 < period)] /-- Every actual zero-initial nonlinear correction mild solution satisfies the closed Gevrey estimate. The proof derives its full-order all-subinterval energy inequality, source bound, pressure cancellation, and maximal regularity rather than assuming them. -/ theorem correction_mild_bootstrap {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) (hG : Continuous (fun t => (D.metric.coefficient t).operator)) (N : ℕ) (hN : N+6 ≤ q+1) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) (S : Budget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period T hT D) (C Δ ρ0 : ℝ) (hC : combinedConstant period S.full K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) (hdecay : 2*C*(S.drift+Δ)*T ≤ ρ0/2) (hscale : ρ0*S.full.Rc ≤ 1) (hsmall : 2*S.full.residual*Real.exp (3*C*T) ≤ Δ/2) (hR : ∀ t, R t = ρ0-2*C*(S.drift+Δ)*t.val) (hRdot : ∀ t, Rdot t = -2*C*(S.drift+Δ)) (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (hsol : ∀ t : Icc (0 : ℝ) T, e t = heatOperator period (q+1) (2*ν*t.val).toNNReal 0 + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) (t.val-r))) (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) : ∀ t : Icc (0 : ℝ) T, energyNorm period N hN (R t) (K.operatorPath period t) (e t) ≤ 2*S.full.residual*Real.exp (3*C*t.val) ∧ energyNorm period N hN (R t) (K.operatorPath period t) (e t) ≤ Δ/2 := by let X := energyPath period N hN T R (K.operatorPath period) e let Y := lossPath period N hN T R (K.operatorPath period) e let A := EulerDriftEnergyMajorants.correctionRhs period S hN K Rdot e have hCp : 0 < C := (combinedConstant_pos period S.full K).trans_le hC have hRd : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t := by intro t ht exact affine_radius_derivative T hT R Rdot ρ0 (2*C*(S.drift+Δ)) hR (fun τ => (hRdot τ).trans (by ring)) t ht have hinit : extendPath T hT X 0 ≤ 2*S.full.residual := by have he0 := zero_mild_trace period ν hν T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) e hsol change X (projIcc 0 T hT 0) ≤ _ rw [projIcc_of_mem hT ⟨le_rfl,hT⟩] change energyPath period N hN T R (K.operatorPath period) e ⟨0,le_rfl,hT⟩ ≤ _ rw [energyPath_apply,he0,energyNorm_zero] exact mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) S.full.residual_pos.le have hint : ∀ s ∈ Icc (0 : ℝ) T, ∀ t ∈ Icc (0 : ℝ) T, s ≤ t → extendPath T hT X t-extendPath T hT X s ≤ ∫ r in s..t, extendPath T hT A r := by intro s hs t ht hst have h := EulerDriftCorrectionMildEnergy.correction_mild_integral period hq T hT D KG KL KQ hGq hLq hQq hG N hN R Rdot S K hRd ν hν hν1 0 e hsol hz he s t hs.1 hst ht.2 change X (projIcc 0 T hT t)-X (projIcc 0 T hT s) ≤ _ rw [projIcc_of_mem hT ht,projIcc_of_mem hT hs] exact h have hineq : ∀ t ∈ Ico (0 : ℝ) T, extendPath T hT A t ≤ C*(extendPath T hT X t+(extendPath T hT X t)^2+S.full.residual)+ ((-2*C*(S.drift+Δ))/(ρ0-2*C*(S.drift+Δ)*t)+ C*((ρ0-2*C*(S.drift+Δ)*t)⁻¹+S.full.Rc)*(S.drift+extendPath T hT X t))*extendPath T hT Y t := by intro t ht let τ : Icc (0 : ℝ) T := ⟨t,ht.1,ht.2.le⟩ have h := EulerDriftEnergyMajorants.correctionRhs_bound period S hN K Rdot e τ have h' := raise_energy_constant (combinedConstant period S.full K) C (X τ) (Y τ) S.full.residual (Rdot τ/R τ) ((R τ)⁻¹+S.full.Rc) S.drift hC (energy_nonneg period S.full hN K e τ) (loss_nonneg period S.full hN K e τ) S.full.residual_pos.le (add_nonneg (inv_nonneg.mpr (S.full.radius_pos τ).le) S.full.Rc_nonneg) S.drift_nonneg have hh := h.trans h' change A (projIcc 0 T hT t) ≤ C*(X (projIcc 0 T hT t)+(X (projIcc 0 T hT t))^2+S.full.residual)+ ((-2*C*(S.drift+Δ))/(ρ0-2*C*(S.drift+Δ)*t)+C*((ρ0-2*C*(S.drift+Δ)*t)⁻¹+S.full.Rc)* (S.drift+X (projIcc 0 T hT t)))*Y (projIcc 0 T hT t) rw [projIcc_of_mem hT ⟨ht.1,ht.2.le⟩] simpa only [hR τ,hRdot τ] using hh have hclosed := close_integral_energy_estimate (extendPath T hT X) (extendPath T hT A) (extendPath T hT Y) C S.drift Δ S.full.residual ρ0 T S.full.Rc hCp S.drift_nonneg hΔ hΔ1 S.full.residual_pos hρ0 hT S.full.Rc_nonneg hdecay hscale hsmall (extendPath_continuous T hT X).continuousOn (extendPath_continuous T hT A).continuousOn hinit hint (fun t _ => loss_nonneg period S.full hN K e (projIcc 0 T hT t)) hineq intro t have h := hclosed t.val t.property change X (projIcc 0 T hT t.val) ≤ _ ∧ X (projIcc 0 T hT t.val) ≤ _ at h rw [projIcc_of_mem hT t.property] at h simpa only [X,energyPath_apply] using h end EulerDriftCorrectionBootstrap