OAI/Combinatorics/EditApproximation/Binary/BinaryReadCostBounds.lean
15 declarations, 0 contain sorry, 0 declared as axioms
Lookup overhead is controlled by the loops that actually run. These comparisons require only a bound on one finite-buffer lookup.
- theorem
OAI.EditApproximation.vectorMapWithWork_cost_lowerline 14 - theorem
OAI.EditApproximation.arithmeticMapWithWork_factorline 22 - theorem
OAI.EditApproximation.vectorMapWithWork_factorline 40 - theorem
OAI.EditApproximation.filterWithWork_factorline 60 - theorem
OAI.EditApproximation.allWithWork_factorline 78 - theorem
OAI.EditApproximation.filterMapWithWork_factorline 96 - theorem
OAI.EditApproximation.cost_replace_factorline 116Source documentation
Multiplicative work bounds are preserved when the same nonnegative overhead is added to both counters.
theorem cost_replace_factor (a c old new K : ℕ) (hc : c ≤ a * K) (hK : 1 ≤ K) (ha : a ≤ old) (hn : new + a ≤ old + c) : new ≤ old * K := by … - theorem
OAI.EditApproximation.cost_factor_with_readline 127Source documentation
A compulsory constant instruction pays for one additional lookup.
theorem cost_factor_with_read (a c x r R K : ℕ) (hc : c ≤ a * K) (hr : r ≤ R) (hx : 1 ≤ x) (hK : R + 1 ≤ K) : r + c + x ≤ (a + x) * K := by … - def
OAI.EditApproximation.BinaryFraction.tableReadFactorline 141 - theorem
OAI.EditApproximation.BinaryFraction.tableReadFactor_posline 143 - theorem
OAI.EditApproximation.BinaryFraction.tableReadFactor_absorbline 147 - theorem
OAI.EditApproximation.BinaryFraction.endpointScoreReadWithWork_factorline 156 - theorem
OAI.EditApproximation.BinaryFraction.prefixReadWithWork_factorline 165 - theorem
OAI.EditApproximation.BinaryFraction.bandEnvelopeReadWithWork_factorline 183 - theorem
OAI.EditApproximation.BinaryFraction.onlineLinearReadWithWork_factorline 192