With servers on vertices an adversary forces a move at every step
ProvedCompetitivePaging.Combining.exists_sequence_forcing_movesLet and let be a set of vertices with the uniform metric. For every deterministic on-line algorithm with servers on and every there is a request sequence of length that causes to move a server at every step; in particular
Together with the shuttle algorithms this gives the necessity half of Theorem 6: on the algorithm pays at least while the shuttle algorithms together pay at most .
Formalization Note The paper writes ; equality holds for a lazy , and for an arbitrary (which may move several servers at one step) the statement is the inequality, which is what the necessity argument uses. The vertex set is given by e : Fin m × Fin 2 ≃ M, as in the shuttle item.
import Mathlib import Definitions.Def_KServer_model
namespace CompetitivePaging.Combining
/-- Fiat et al. 1991, §6, proof of Theorem 6 (necessity), p. 10. With `2m − 1` servers on a
vertex set `M` of size `2m` (enumerated by `e : Fin m × Fin 2 ≃ M`) with the uniform metric,
for every deterministic on-line algorithm `A` and every `N` there is a request sequence `τ(N)` of
length `N` that causes `A` to move a server at every step; hence `C_A(τ(N)) ≥ N`. -/
theorem exists_sequence_forcing_moves {m : ℕ} (hm : 0 < m) {M : Type} [MetricSpace M]
(hM : ∀ x y : M, x ≠ y → dist x y = 1) (e : Fin m × Fin 2 ≃ M)
(A : KServer.OnlineAlgorithm (2 * m - 1) M) (N : ℕ) :
∃ τ : List M, τ.length = N ∧
(∀ j < N, A.conf (τ.take j) ≠ A.conf (τ.take (j + 1))) ∧
(N : ℝ) ≤ A.cost τ := by sorry
end CompetitivePaging.Combining
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting and hypotheses:
- Size: .
- Metric: is a type with a metric in which any two distinct points are at distance exactly .
- Enumeration: is a bijection from onto . It enters the statement only as a hypothesis, and its only effect is that has exactly points.
- Algorithm: is any on-line algorithm with servers on . The notion is imported and not shown. has a configuration for each finite sequence , and a real cost .
- Length: is arbitrary.
The theorem asserts that there is a request sequence satisfying all three of the following.
- Length: .
- A change at every step: for every ,
Here is the first requests. The two configurations are compared as maps from server labels to vertices. So a change means that at least one labelled server is at a different vertex, and a relabelling of the servers also counts as a change. 3. Cost: .
Degenerate cases.
- : is empty, the second condition is vacuous, and the claim is .
- : has points and has server.
- : since , this subtraction of natural numbers does not truncate.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.