Requesting vertex costs a randomized algorithm at least in expectation
ProvedCompetitivePaging.LowerBound.expCost_append_ge_uncoveredProbLet be a uniform metric space: any two distinct points are at distance . Let be a randomized on-line -server algorithm on (a probability space of coin outcomes and a deterministic on-line algorithm for each outcome), let be a request sequence, and let be a vertex such that the event " is not covered after " is measurable. Write for the expected cost of on and for the probability that is not covered after . Then
where is followed by one request to .
This is the link between the adversary's probability vector and the cost of the on-line algorithm: every request to a vertex adds at least to 's expected cost.
Formalization Note The paper states that the expected cost of the request "is "; that is exact for an algorithm that moves one server only when the requested vertex is uncovered. For an arbitrary algorithm, extra movements only add cost, so the statement is the inequality. Expected costs are values in (lower Lebesgue integrals), as in the published KServer_randomized definitions.
import Mathlib import Definitions.Def_KServer_model import Definitions.Def_KServer_randomized import Definitions.Def_CompetitivePaging_LowerBound_uncoveredProb
namespace CompetitivePaging.LowerBound
theorem expCost_append_ge_uncoveredProb {k : ℕ} (M : Type) [MetricSpace M]
(hd : ∀ x y : M, x ≠ y → dist x y = 1) (A : KServer.RandomizedAlgorithm k M)
(σ : List M) (i : M)
(hmeas : @MeasurableSet A.ι A.ms {ω | i ∉ Set.range ((A.alg ω).conf σ)}) :
A.expCost σ + ENNReal.ofReal (uncoveredProb A σ i) ≤ A.expCost (σ ++ [i]) := by sorry
end CompetitivePaging.LowerBound
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting is:
- is any natural number.
- is a metric space in which any two distinct points are at distance exactly . may be empty, have one point, or be infinite.
- is a randomized online algorithm with servers on .
- is a finite request list.
- is a point of .
One hypothesis is assumed: the set is measurable.
The conclusion is an inequality in the extended nonnegative reals :
The pieces are:
- is the expected cost of on a request sequence. It is defined in an imported file that is not shown, and takes values in .
- is followed by one more request, at .
- is the real number obtained from . It is carried back into , with negative values sent to ; since the value is never negative, it is carried back unchanged.
Degenerate cases:
- Infinite expected cost: if , the claim requires .
- : is never covered, so the added term is , converted to a real number (and if that measure is infinite).
- One-point : the distance hypothesis holds vacuously.
- Empty : the claim compares the cost of the empty sequence with the cost of the one-request sequence .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.