Theorem 4 (first claim) — no snoopy-caching algorithm beats against an oblivious adversary
ProvedNonuniformCompetitive.Snoopy.no_better_ratioConsider the single-block snoopy-caching task system with processors and block-transfer cost (block size ), and fix any initial state (the block shared, or private to one cache). If a randomized on-line algorithm is -competitive against an oblivious adversary from , that is, for some constant and every admissible request sequence ,
then
This is the lower-bound half of Theorem 4. It applies to every randomized algorithm, not only to phase-based ones, and hence also to deterministic algorithms (point-mass distributions).
Formalization Note The hypothesis is needed: with a single processor the block can stay private at no cost. Theorem 4 concerns a system with many blocks; its proof reduces it to one block (p. 551), which is what is stated. Competitiveness is required only on admissible sequences (every write of processor directly follows a read or write of ), the paper's standing assumption that every write is preceded by a read.
import Mathlib import Definitions.Def_NonuniformCompetitive_Snoopy_ep import Definitions.Def_NonuniformCompetitive_Snoopy_model import Definitions.Def_NonuniformCompetitive_Snoopy_randomized
namespace NonuniformCompetitive.Snoopy
/-- Theorem 4, first claim (Karlin et al. 1994, p. 551): in the single-block snoopy-caching
task system with `n ≥ 2` processors and block-transfer cost `p ≥ 1`, no randomized on-line
algorithm is competitive against an oblivious adversary within a factor less than
`e_p / (e_p − 1)`: from every initial state `s₀`, if `A` is `c`-competitive from `s₀` on
admissible request sequences, then `c ≥ e_p / (e_p − 1)`. -/
theorem no_better_ratio (n p : ℕ) (hn : 2 ≤ n) (hp : 1 ≤ p) (s₀ : State n)
(A : RandomizedAlgorithm n p) (c : ℝ) (hA : A.IsCompetitiveFrom s₀ c) :
ep p / (ep p - 1) ≤ c := by sorry
end NonuniformCompetitive.Snoopy
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.