In a complete EATR phase any lazy algorithm pays at least
ProvedCompetitivePaging.EATR.adversary_phase_boundConsider 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 and let the requests with indices form a complete EATR phase in which clean vertices are requested. Let be a lazy deterministic on-line algorithm with two servers. Let be the number of servers of that do not coincide with any of EATR's servers at the beginning of the phase, and this number at the end of the phase. Then the cost incurred by on the requests of the phase satisfies
EATR phases have the structure singled out in the paper after the proof of Theorem 2: after the last request to a clean vertex, the other vertex used during the phase is requested. This is the lower bound on the adversary's cost that, summed over phases, makes the and terms telescope, so that the amortized cost of any algorithm per phase is at least .
Formalization Note EATR's servers at the beginning and at the end of a phase are deterministic (the set of the definition file), so and are deterministic too. is a KServer.OnlineAlgorithm 2 M; laziness is the property IsLazy of the definition file.
import Mathlib import Definitions.Def_KServer_model import Definitions.Def_CompetitivePaging_EATR_eatr open scoped ENNReal
namespace CompetitivePaging.EATR
theorem adversary_phase_bound {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') :
(numClean a b σ i i' : ℝ) - (mismatch a b A σ i : ℝ) + (mismatch a b A σ i' : ℝ)
≤ algPhaseCost A σ i 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 whenever . This is the uniform metric; distance holds only for equal points.
- with .
- is any 2-server online algorithm on that is lazy. Lazy means two things. A request to a point where some server of already sits leaves the configuration unchanged. After any request , the new configuration equals the old one with at most one coordinate replaced by .
- is a request list, and are natural numbers such that form a complete phase of the bookkeeping started from (as defined in the bundle above). Concretely:
- ;
- request starts a phase: no phase is in progress and ;
- request ends one: a phase is in progress and is stale;
- no request strictly before in that range ends a phase.
Notation.
- is the number of indices for which is clean, meaning of the bookkeeping just before request .
- is the number of 's two servers (counted by index) that are not in in 's configuration after .
- is the same count at : 's configuration after , compared with .
Claim. The statement asserts
with the left side computed in the real numbers. comes from an imported definition that is not shown here.
Degenerate cases.
- If has exactly two points, from the start. No request can then start a phase, so the complete-phase hypothesis cannot be met and the statement is vacuous. The same applies to any with at most two points.
- With three or more points the hypothesis can be met. For example, request a third point , then : this gives , .
- A complete phase forces and , so every index involved is within range.
- Nothing ties 's initial configuration to . Any such difference enters only through and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.