OAI/Combinatorics/ContingencyTables/Machines/QuadraticPrefixRuntime.lean
3 declarations, 0 contain sorry, 0 declared as axioms
Expected time from geometrically accurate quadratic-cost prefixes
- lemma
OAI.ContingencyTables.QuadraticPrefixRuntime.weighted_geometricline 12 - theorem
OAI.ContingencyTables.QuadraticPrefixRuntime.quadratic_boundline 21Source documentation
Quadratic simulation overhead preserves a finite expected running time. The small prefactor
δis retained through the entire estimate.theorem quadratic_bound (f : ℕ → ℝ) (T : ℕ) (hT : 0<T) (δ : ℝ) (hδ : 0≤δ) (h0 : ∀ t,0≤f t) (hm : Antitone f) (hstart : f 0≤δ) (hstep : ∀ N,f (T*(N+1)^2)≤δ*(1/2:ℝ)^N) : Summable f ∧ (∑' t,f t)≤11*δ*T := by … - theorem
OAI.ContingencyTables.QuadraticPrefixRuntime.expected_timeline 64Source documentation
A bounded cheap prefix followed by a rare quadratic-cost correction.
theorem expected_time (tail : ℕ → ℝ) (S T : ℕ) (hT : 0<T) (δ : ℝ) (hδ : 0≤δ) (h0 : ∀ t,0≤tail t) (h1 : ∀ t,tail t≤1) (hm : Antitone tail) (hgate : tail S≤δ) (hstep : ∀ N,tail (S+T*(N+1)^2)≤δ*(1/2:ℝ)^N) : Summable tail ∧ (∑' t,tail t)≤S+11*δ*T := by …