Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4 (first claim) — no snoopy-caching algorithm beats ep/(ep−1)e_p/(e_p-1)ep​/(ep​−1) against an oblivious adversary

Proved
NonuniformCompetitive.Snoopy.no_better_ratio

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

competitive-analysisonline-algorithmsp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-algorithmssnoopy-caching

Consider the single-block snoopy-caching task system with n≥2n \ge 2n≥2 processors and block-transfer cost p≥1p \ge 1p≥1 (block size p−1p-1p−1), and fix any initial state s0s_0s0​ (the block shared, or private to one cache). If a randomized on-line algorithm AAA is ccc-competitive against an oblivious adversary from s0s_0s0​, that is, for some constant aaa and every admissible request sequence σ\sigmaσ,

ECA(σ)≤c⋅Copt(s0,σ)+a,\mathbf{E}C_A(\sigma) \le c\cdot C_{opt}(s_0,\sigma) + a,ECA​(σ)≤c⋅Copt​(s0​,σ)+a,

then

c≥epep−1,ep=(1+1p)p.c \ge \frac{e_p}{e_p - 1}, \qquad e_p = \left(1 + \frac1p\right)^p .c≥ep​−1ep​​,ep​=(1+p1​)p.

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 n≥2n \ge 2n≥2 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 iii directly follows a read or write of iii), the paper's standing assumption that every write is preceded by a read.

Preamble
import Mathlib
import Definitions.Def_NonuniformCompetitive_Snoopy_ep
import Definitions.Def_NonuniformCompetitive_Snoopy_model
import Definitions.Def_NonuniformCompetitive_Snoopy_randomized
Formal statement
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
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), p. 551, Theorem 4, first claim (lower bound)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me