Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§5, p. 566 — the minimising πk=(α−1)((2d/(2d−1))k−1)\pi_k=(\alpha-1)((2d/(2d-1))^k-1)πk​=(α−1)((2d/(2d−1))k−1) are monotone probabilities and make every phase constraint tight

Proved
NonuniformCompetitive.Isosceles.lp_attained

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

competitive-analysislinear-programmingp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let d≥1d\ge1d≥1 be an integer, let

α=e2d−1+1/4d(e2d−1−1)+1/2d,e2d−1=(2d2d−1)2d−1,\alpha=\frac{e_{2d-1}+1/4d}{(e_{2d-1}-1)+1/2d},\qquad e_{2d-1}=\left(\frac{2d}{2d-1}\right)^{2d-1},α=(e2d−1​−1)+1/2de2d−1​+1/4d​,e2d−1​=(2d−12d​)2d−1,

and define

πk=(α−1)((2d2d−1)k−1)(1≤k≤2d−1),π2d=1.\pi_k=(\alpha-1)\left(\left(\frac{2d}{2d-1}\right)^k-1\right)\quad(1\le k\le 2d-1),\qquad \pi_{2d}=1.πk​=(α−1)((2d−12d​)k−1)(1≤k≤2d−1),π2d​=1.

Then

  1. 0≤π1≤π2≤⋯≤π2d−1≤π2d=10\le\pi_1\le\pi_2\le\cdots\le\pi_{2d-1}\le\pi_{2d}=10≤π1​≤π2​≤⋯≤π2d−1​≤π2d​=1;
  2. every phase constraint of the LP holds with equality at this α\alphaα:
(πk) 2d+∑i=1k(1−πi)=αk(1≤k<2d),2d+∑i=12d−1(1−πi)+12=α⋅2d.(\pi_k)\,2d+\sum_{i=1}^{k}(1-\pi_i)=\alpha k\quad(1\le k<2d),\qquad 2d+\sum_{i=1}^{2d-1}(1-\pi_i)+\tfrac12=\alpha\cdot 2d.(πk​)2d+i=1∑k​(1−πi​)=αk(1≤k<2d),2d+i=1∑2d−1​(1−πi​)+21​=α⋅2d.

Item 1 says the πk\pi_kπk​ are valid, nondecreasing covering probabilities, so a lazy phase-based algorithm with these probabilities exists; item 2 says its expected cost on every phase is exactly α\alphaα times the off-line cost of the phase. Together with the LP lower bound, it shows that α\alphaα is the minimum of the phase LP.

Formalization Note π\piπ is any function N→R\mathbb N\to\mathbb RN→R agreeing with the closed form on 1≤k≤2d−11\le k\le 2d-11≤k≤2d−1 and equal to 111 at 2d2d2d; its other values are unused.

Preamble
import Mathlib
import Definitions.Def_NonuniformCompetitive_Isosceles_isoscelesRatio
Formal statement
namespace NonuniformCompetitive.Isosceles

/-- §5, p. 566 (Karlin–Manasse–McGeoch–Owicki 1994): the minimiser of the phase LP is a valid
probability schedule. Let `1 ≤ d` and `α = isoscelesRatio d`. If
`π_k = (α - 1) ((2d/(2d-1))^k - 1)` for `1 ≤ k ≤ 2d - 1` and `π_{2d} = 1`, then
`0 ≤ π_1 ≤ π_2 ≤ ⋯ ≤ π_{2d} = 1`, and every constraint of the phase LP holds with equality:
`2d · π_k + ∑_{i=1}^{k} (1 - π_i) = α k` for `1 ≤ k < 2d`, and
`2d + ∑_{i=1}^{2d-1} (1 - π_i) + 1/2 = α · 2d`. -/
theorem lp_attained (d : ℕ) (hd : 1 ≤ d) (π : ℕ → ℝ)
    (hπ : ∀ k : ℕ, 1 ≤ k → k ≤ 2 * d - 1 →
      π k = (isoscelesRatio d - 1) * (((2 * d : ℝ) / (2 * d - 1)) ^ k - 1))
    (hπ2d : π (2 * d) = 1) :
    0 ≤ π 1 ∧
    (∀ k : ℕ, 1 ≤ k → k < 2 * d → π k ≤ π (k + 1)) ∧
    (∀ k : ℕ, 1 ≤ k → k < 2 * d →
      π k * (2 * d : ℝ) + ∑ i ∈ Finset.Icc 1 k, (1 - π i) = isoscelesRatio d * (k : ℝ)) ∧
    (2 * d : ℝ) + ∑ i ∈ Finset.Icc 1 (2 * d - 1), (1 - π i) + 1 / 2
      = isoscelesRatio d * (2 * d : ℝ) := by sorry

end NonuniformCompetitive.Isosceles
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), DOI 10.1007/BF01189993, p. 566, §5, proof of Theorem 12: closed form of πk\pi_kπk​ and the claim 0≤π1≤⋯≤π2d=10\le\pi_1\le\cdots\le\pi_{2d}=10≤π1​≤⋯≤π2d​=1; equalities (*) on p. 565 and "By setting this to an equality" on p. 566
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