Per phase, EATR's expected cost is at most times any lazy algorithm's amortized cost
ProvedCompetitivePaging.EATR.phase_ratioConsider the uniform -server problem on a metric space in which any two distinct points are at distance , and algorithm EATR started with its servers on two distinct vertices . Let be a request sequence, let the requests with indices form a complete EATR phase, and let be a lazy deterministic on-line algorithm with two servers. With the cost of on the requests of the phase and the numbers of servers of not coinciding with EATR's servers at the beginning and at the end of the phase,
The quantity is the amortized cost of for the phase, at least ; EATR's expected cost is , and . Summed over the phases, the and terms telescope, which yields Theorem 3.
import Mathlib import Definitions.Def_KServer_model import Definitions.Def_CompetitivePaging_EATR_eatr open scoped ENNReal
namespace CompetitivePaging.EATR
theorem phase_ratio {M : Type*} [MetricSpace M] [DecidableEq M]
(hunif : ∀ x y : M, x ≠ y → dist x y = 1) (a b : M) (hab : a ≠ b)
(A : KServer.OnlineAlgorithm 2 M) (hA : IsLazy A) (σ : List M) (i i' : ℕ)
(hph : IsCompletePhase a b σ i i') :
eatrPhaseCost a b σ i i'
≤ (3 / 2 : ℝ) * (algPhaseCost A σ i i' + (mismatch a b A σ i : ℝ)
- (mismatch a b A σ i' : ℝ)) := by sorry
end CompetitivePaging.EATR
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a metric space with decidable equality, and for all .
- with .
- is any lazy 2-server online algorithm on . A request to a point where one of 's servers sits changes nothing. Otherwise the configuration changes in at most one coordinate, which becomes the requested point.
- are such that form a complete phase of EATR's bookkeeping started from (as defined in the bundle above).
Notation.
- is EATR's expected cost on these requests. It counts expected newly covered vertices per request.
- is 's cost. comes from an imported definition that is not shown here.
- is the number of 's servers (counted by index) outside after .
- is the same count at .
Claim. The statement asserts, in the real numbers,
Degenerate cases.
- If has at most two points, no phase can start, and the statement is vacuous.
- A complete phase forces , so no out-of-range default values enter either sum.
- Nothing constrains 's initial configuration to be . The quantity is not required to be nonnegative by any hypothesis beyond what the conclusion itself implies.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.