import Mathlib.Analysis.Analytic.Binomial import Mathlib.Analysis.Calculus.BumpFunction.Convolution import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars import Mathlib.Analysis.Calculus.ImplicitContDiff import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno import Mathlib.Analysis.Calculus.LineDeriv.Measurable import Mathlib.Analysis.Calculus.VectorField import Mathlib.Analysis.Complex.RemovableSingularity import Mathlib.Analysis.ODE.ExistUnique import Mathlib.LinearAlgebra.Multilinear.Pi import Mathlib.LinearAlgebra.PiTensorProduct.Generators import YM.Bid.Drops import YM.Bid.Fuels import YM.Next.FLUCTUATIONS.Scales import YM.Push.ABSOLUTE_SUMS.Delay import YM.Push.ABSOLUTE_SUMS.Path import YM.Work.A05.Read import YM.Work.A07 import YM.Work.B04 /-! # Numerical costs for the support/hit estimates Gates for the estimates of THIS module. ageom etc. Separates pre-L price requirements for support reserve and post-L fixed-delay polynomial losses. Actual dynamics estimates still have to *earn* vertex prices, INCLUDING under successive step applications. In particular no claim of support or path width maintenance under RG. -/ set_option autoImplicit false noncomputable section namespace YM.Push.AbsoluteSums.Fees open Filter Lattice RG Pressure Footprint open scoped BigOperators Topology /-- Pre-L exponent fit. -/ lemma exponent (l : ℕ) {A ε a : ℝ} (hε : 0 < ε) (ha : 0 ≤ a) (hA : 2*ε < A) : ∃ n : ℕ, ∀ (c f : Side) (p : Ratio c f), n ≤ p.count.val → reserve A a (conversion p l) ε := by have hz : 0 < A-2*ε := by linarith obtain ⟨n,hn⟩ := exists_nat_gt ((10*preCost l)*a/(A-2*ε)) refine ⟨n,fun c f p he => ⟨ha,hε,?_⟩⟩ have hl : (n:ℝ) ≤ p.count.val := by exact_mod_cast he have hp : 0 < (p.count.val:ℝ) := by positivity have hh := (div_le_iff₀ hz).mp (hn.le.trans hl) unfold conversion; field_simp; linarith variable (G : Gauge) (L : Side) lemma horizons (l : ℕ) {σ a ε : ℝ} (he : 0 < ε) (ha : 0 ≤ a) (hs : 2*ε < σ) : ∀ᶠ x : ℝ in atTop, let B := radiusB x 0 < B ∧ radiusB (betaF G x L) ≤ 2*B ∧ ∀ (c f : Side) (p : Ratio c f), p.count=L → reserve σ a (Paths.legFee p l B) ε := by have h1 : Tendsto (fun x : ℝ => (radiusB x:ℝ)) atTop atTop := tendsto_natCast_atTop_atTop.comp Work.E01.radiusB_tendsto let k := G.slopeConstant*Real.log (L.val:ℝ) let A := a*(10*preCost l/(L.val:ℝ)) filter_upwards [Stock.stepsize k, Work.E01.radiusB_tendsto.eventually_ge_atTop 1, h1.eventually_ge_atTop (A/(σ-2*ε))] with x hx ht he' intro B change radiusB (betaF G x L)^2 ≤ 2*B^2 at hx refine ⟨ht,(by nlinarith),fun c f p hp => ⟨ha,he,?_⟩⟩ have heB : (0:ℝ)