In a phase a lazy adversary pays at least
ProvedCompetitivePaging.Marking.adversary_cost_ge_d_endLet be a set of vertices with the uniform metric, enumerated as , let , and consider the phases of the marking algorithm started from on a request sequence . Let be a lazy schedule of servers on (the adversary ), and let requests form a complete phase. Let be the set of marked vertices at the end of the phase, let
be the number of 's servers outside at the end of the phase, and let be 's cost in the phase. Then
This is the second lower bound on the adversary's cost in a phase used in the proof of Theorem 1; unlike the first, it uses that the adversary is lazy.
import Mathlib import Definitions.Def_KServer_model import Definitions.Def_CompetitivePaging_Marking_markingAlgorithm
namespace CompetitivePaging.Marking
/-- §3, proof of Theorem 1 (p. 4): in a complete phase, a lazy adversary `A` pays at least
`d'`, the number of `A`'s servers outside the set `S` of marked vertices at the end of the
phase. -/
theorem adversary_cost_ge_d_end {n k : ℕ} {M : Type*} [MetricSpace M] [DecidableEq M]
(e : Fin n ≃ M) (hdist : ∀ x y : M, x ≠ y → dist x y = 1) (hk : 1 ≤ k) (hkn : k ≤ n)
(σ : List M) (S : ℕ → KServer.Config k M) (hlazy : IsLazySchedule σ S) (i i' : ℕ)
(hphase : IsCompletePhase k (initVertices e hkn) σ i i') :
((Finset.univ.filter
(fun j : Fin k => S i' j ∉ marksAt k (initVertices e hkn) σ i')).card : ℝ)
≤ ∑ t ∈ Finset.Ico i i', KServer.moveCost (S t) (S (t + 1)) := by sorry
end CompetitivePaging.Marking
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a metric space with decidable equality in which distinct points are at distance exactly .
- is a bijection and .
- .
- is a request sequence.
- is any lazy schedule on . For : if some server of is on then ; otherwise is with one server index reassigned to . is unconstrained.
- is a complete phase: are both phase starts, so , and no index strictly between is one. Here is the marked set just before request , obtained from by the deterministic rule "insert the request; if exactly points are marked, keep only the request". Index is a phase start when .
Quantity.
is the number of server indices whose position just before request lies outside the marked set just before request , i.e. before the reset triggered at . Servers sharing a point are counted separately.
Claim.
where is imported from the k-server model and not defined here.
Degenerate cases.
- When , no phase start exists and the statement is vacuous.
- If , the claim only needs the sum to be at least .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.