Theorem 6 — is realizable iff
ProvedCompetitivePaging.Combining.realizable_iffLet and let be a sequence of positive reals. Then is realizable — for every type of paging algorithm and every deterministic on-line algorithms of that type there is one deterministic on-line algorithm of the same type that is -competitive against each — if and only if
For example, with and any two paging algorithms can be combined into one that costs at most twice either of them, up to an additive constant, while no pair of ratios with can be achieved against every pair of algorithms.
Formalization Note Realizability quantifies over every type: every and every finite type with the uniform metric. The hypothesis is the paper's ("let be a positive integer"); for the realizability of the empty sequence would demand an algorithm of every type, which does not exist for servers on a nonempty vertex set.
import Mathlib import Definitions.Def_KServer_model import Definitions.Def_CompetitivePaging_Combining_Realizable
namespace CompetitivePaging.Combining
/-- **Theorem 6** (Fiat, Karp, Luby, McGeoch, Sleator, Young 1991, p. 9). A sequence
`c = (c(1), …, c(m))` of positive reals is realizable if and only if `∑_{i} 1 / c(i) ≤ 1`. -/
theorem realizable_iff {m : ℕ} (hm : 0 < m) (c : Fin m → ℝ) (hc : ∀ i, 0 < c i) :
Realizable c ↔ ∑ i, 1 / c i ≤ 1 := by sorry
end CompetitivePaging.Combining
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a natural number with . Let be a finite sequence of real numbers indexed by , and assume every entry is strictly positive:
The statement asserts a two-way equivalence: satisfies the predicate if and only if the sum of the reciprocals of its entries is at most :
The predicate is defined in an imported module (the Definitions.Def_CompetitivePaging_Combining_Realizable file, namespace CompetitivePaging.Combining). That module's code is not part of the declaration I was given, so I cannot expand it here. The meaning of the left-hand side depends entirely on that definition. In particular, the statement itself does not say what "realizable" means: whether it involves paging, the -server model (also imported), competitive ratios, or anything else. The statement uses a non-strict inequality (, not ), and each side both implies and is implied by the other. The doc comment before the theorem (about Theorem 6 of Fiat, Karp, Luby, McGeoch, Sleator and Young, 1991) describes what the author intends. It is not part of what the code asserts.
Degenerate cases. The hypothesis rules out the empty sequence. For the sum would have been , but that case is excluded, so the statement says nothing about it. The hypothesis rules out division by zero, so none of the reciprocals falls back to a default value. With only one entry (), the statement says that is realizable exactly when , which means exactly when . More generally, the right-hand side can only hold if every , because each term is positive and would exceed on its own otherwise. The hypotheses can always be satisfied (for example, and ), so the theorem is not vacuous. The statement fixes nothing about the value of for sequences that have a zero or negative entry: such sequences are outside its hypotheses.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.