Corollary 5: no randomized paging algorithm with servers is -competitive for
ProvedCompetitivePaging.LowerBound.no_competitive_below_harmonicLet and let be a set of vertices with the uniform metric: any two distinct vertices are at distance . Consider the uniform -server problem on , that is, paging with a cache of pages out of . Let be the -th harmonic number.
For every randomized on-line algorithm with servers on , every initial configuration and every real , the algorithm is not -competitive from : there is no constant such that for every request sequence
where is the expected cost of on against an oblivious adversary and is the optimal off-line cost of serving from .
This is the lower bound matching, up to the factor , the upper bound for the marking algorithm, and exactly for .
Formalization Note Randomized algorithms and competitiveness are the published KServer.RandomizedAlgorithm and IsCompetitiveFrom (every drawn deterministic algorithm starts at ; the right-hand side is clamped at by ENNReal.ofReal, which only weakens the property being refuted). No laziness or injectivity is assumed of or . The uniform metric is a hypothesis on an abstract space with points; is Mathlib's harmonic k cast to .
import Mathlib import Definitions.Def_KServer_model import Definitions.Def_KServer_randomized
namespace CompetitivePaging.LowerBound
theorem no_competitive_below_harmonic (n k : ℕ) (hk : 1 ≤ k) (hkn : k + 1 ≤ n) (M : Type)
[MetricSpace M] (e : Fin n ≃ M) (hd : ∀ x y : M, x ≠ y → dist x y = 1)
(A : KServer.RandomizedAlgorithm k M) (C₀ : KServer.Config k M) (c : ℝ)
(hc : c < (harmonic k : ℝ)) :
¬ A.IsCompetitiveFrom C₀ c := by sorry
end CompetitivePaging.LowerBound
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns a metric space , together with two natural numbers and subject to
Two hypotheses fix the shape of :
- Size. is a bijection from onto , so has exactly points. is an ordinary type, and is not used anywhere else in the statement.
- Distances. Every pair of distinct points in satisfies . Since is a metric space, . So carries the uniform (discrete) metric on points.
The remaining inputs are universally quantified:
- is any object of type
KServer.RandomizedAlgorithm. Going by the name, this is a randomized algorithm for the -server problem on . - is any object of type
KServer.Config. Going by the name, this is a configuration of servers in . - is any real number satisfying
where is the -th harmonic number. It is computed exactly as a rational number and then cast to a real.
The Lean code of these definitions (from the imported files Def_KServer_model and Def_KServer_randomized) was not given to me. The meaning of RandomizedAlgorithm, Config and the predicate IsCompetitiveFrom therefore cannot be unfolded here, and this read-back does not say what they contain. In particular, it cannot say:
- how "competitive" is defined;
- whether an additive constant is allowed;
- whether the adversary is oblivious or adaptive;
- whether the cost is an expectation;
- whether configurations may place more than one server on the same point.
The conclusion is that does not satisfy the predicate IsCompetitiveFrom with starting configuration and ratio . Put together: on every uniform metric space with at least points, for every , every randomized -server algorithm and every starting configuration, the predicate IsCompetitiveFrom fails for every real ratio strictly below .
The inequality on is strict. Nothing is said about or any .
Degenerate cases:
- is excluded, by .
- The smallest allowed case is with . There , and the claim is that no ratio works, on a uniform space with at least two points.
- The one-point space is excluded, because . The empty space is excluded for the same reason.
- Negative ratios are included. may be zero or negative, since is its only constraint. The claim then covers those values of too; whether that says anything non-trivial depends on the undisclosed definition of
IsCompetitiveFrom. - Satisfiability of the hypotheses. They can be satisfied for every admissible and , since the uniform metric on points exists. The statement is not vacuous in that way.
- No default-value arithmetic. No division, natural-number subtraction, integral or supremum appears explicitly in the statement, so none of Lean's default values can arise at the surface. Any such behaviour would sit inside the unseen definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.