Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 10, first claim — no spin-block algorithm is competitive within a factor less than e/(e−1)e/(e-1)e/(e−1)

Proved
NonuniformCompetitive.SpinBlock.no_better_ratio

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

competitive-analysislower-boundp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1spin-block

Let C>0C>0C>0 be the context-switch cost of the spin-block problem. If a randomized on-line algorithm AAA (a probability distribution over deterministic on-line algorithms, each choosing the blocking time for the next lock wait from the release times of the previous ones) is ccc-competitive against an oblivious adversary, that is, for some constant aaa and every finite sequence σ\sigmaσ of lock waits

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

then

c ≥ ee−1.c\ \ge\ \frac{e}{e-1}.c ≥ e−1e​.

This is the lower-bound half of Theorem 10: no algorithm, deterministic or randomized, beats the factor e/(e−1)≈1.582e/(e-1)\approx1.582e/(e−1)≈1.582 against an oblivious adversary, while deterministic algorithms cannot beat 222.

Formalization Note The statement quantifies over every randomized algorithm and every factor ccc; deterministic algorithms are the point masses. The additive constant aaa is part of competitiveness, so the bound concerns long sequences of lock waits, not a single wait. On-line algorithms may use the release times of earlier waits, which only strengthens the lower bound. The hypothesis C>0C>0C>0 is the paper's "some large cost CCC".

Preamble
import Mathlib
import Definitions.Def_NonuniformCompetitive_SpinBlock_Randomized
Formal statement
namespace NonuniformCompetitive.SpinBlock

/-- Theorem 10, first claim (p. 559): no algorithm for the spin-block problem is competitive
against an oblivious adversary within a factor less than `e/(e − 1)`. -/
theorem no_better_ratio (C : ℝ) (hC : 0 < C) (A : RandomizedAlg C) (c : ℝ)
    (hA : A.IsCompetitive c) :
    Real.exp 1 / (Real.exp 1 - 1) ≤ c := by sorry

end NonuniformCompetitive.SpinBlock
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), p. 559, Theorem 10, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me