Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§5, p. 568 — the twelve phase constraints of the 3-4-5 triangle force α≥1652/1069\alpha \ge 1652/1069α≥1652/1069

Proved
NonuniformCompetitive.Triangle345.lp_lower_bound

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

competitive-analysisk-serverlinear-programmingp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1

This is the linear-programming lower bound in the proof of Theorem 13 of Karlin, Manasse, McGeoch and Owicki for the two-server problem on the triangle with points a,b,ca,b,ca,b,c and distances d(ab)=3d(ab)=3d(ab)=3, d(ac)=5d(ac)=5d(ac)=5, d(bc)=4d(bc)=4d(bc)=4.

A phase-based randomized algorithm AAA is described by nine probabilities π1,…,π9\pi_1,\dots,\pi_9π1​,…,π9​: after a given prefix of a phase, πi\pi_iπi​ is the probability that AAA occupies a given configuration (the second table on p. 567 of the paper). A potential Φab,Φac,Φbc\Phi_{ab},\Phi_{ac},\Phi_{bc}Φab​,Φac​,Φbc​ is attached to each configuration of the two servers, and α\alphaα is the LP bound. Each of the twelve possible phases, starting in configuration sss and ending in configuration s′s's′, gives the constraint

A’s expected cost≤α⋅(opt’s cost)+Φs−Φs′.\text{A's expected cost} \le \alpha\cdot(\text{opt's cost}) + \Phi_s - \Phi_{s'}.A’s expected cost≤α⋅(opt’s cost)+Φs​−Φs′​.

Concretely, the twelve constraints are

  1. 8−4π1≤4α+Φab−Φac8-4\pi_1 \le 4\alpha+\Phi_{ab}-\Phi_{ac}8−4π1​≤4α+Φab​−Φac​ (phase {a,b}\{a,b\}{a,b}, requests cacaca);
  2. 16+2π1−4π2−2π3−4π4≤8α+Φab−Φab16+2\pi_1-4\pi_2-2\pi_3-4\pi_4 \le 8\alpha+\Phi_{ab}-\Phi_{ab}16+2π1​−4π2​−2π3​−4π4​≤8α+Φab​−Φab​ (requests cbabacbabacbaba);
  3. 14+2π1−4π2−2π3+6π4−4π5≤12α+Φab−Φac14+2\pi_1-4\pi_2-2\pi_3+6\pi_4-4\pi_5 \le 12\alpha+\Phi_{ab}-\Phi_{ac}14+2π1​−4π2​−2π3​+6π4​−4π5​≤12α+Φab​−Φac​ (requests cbabcacbabcacbabca);
  4. 11+2π1−4π2−2π3+6π4+2π5≤11α+Φab−Φbc11+2\pi_1-4\pi_2-2\pi_3+6\pi_4+2\pi_5 \le 11\alpha+\Phi_{ab}-\Phi_{bc}11+2π1​−4π2​−2π3​+6π4​+2π5​≤11α+Φab​−Φbc​ (requests cbabcbcbabcbcbabcb);
  5. 8+2π1−4π2+6π3≤8α+Φab−Φac8+2\pi_1-4\pi_2+6\pi_3 \le 8\alpha+\Phi_{ab}-\Phi_{ac}8+2π1​−4π2​+6π3​≤8α+Φab​−Φac​ (requests cbaccbaccbac);
  6. 5+2π1+6π2≤5α+Φab−Φbc5+2\pi_1+6\pi_2 \le 5\alpha+\Phi_{ab}-\Phi_{bc}5+2π1​+6π2​≤5α+Φab​−Φbc​ (requests cbccbccbc);
  7. 10−4π6−2π7≤4α+Φac−Φab10-4\pi_6-2\pi_7 \le 4\alpha+\Phi_{ac}-\Phi_{ab}10−4π6​−2π7​≤4α+Φac​−Φab​ (phase {a,c}\{a,c\}{a,c}, requests babbabbab);
  8. 6−4π6+6π7≤6α+Φac−Φac6-4\pi_6+6\pi_7 \le 6\alpha+\Phi_{ac}-\Phi_{ac}6−4π6​+6π7​≤6α+Φac​−Φac​ (requests bacbacbac);
  9. 3+6π6≤3α+Φac−Φbc3+6\pi_6 \le 3\alpha+\Phi_{ac}-\Phi_{bc}3+6π6​≤3α+Φac​−Φbc​ (requests bcbcbc);
  10. 11−2π8−4π9≤5α+Φbc−Φab11-2\pi_8-4\pi_9 \le 5\alpha+\Phi_{bc}-\Phi_{ab}11−2π8​−4π9​≤5α+Φbc​−Φab​ (phase {b,c}\{b,c\}{b,c}, requests abaabaaba);
  11. 6−2π8+6π9≤6α+Φbc−Φbc6-2\pi_8+6\pi_9 \le 6\alpha+\Phi_{bc}-\Phi_{bc}6−2π8​+6π9​≤6α+Φbc​−Φbc​ (requests abcabcabc);
  12. 3+6π8≤3α+Φbc−Φac3+6\pi_8 \le 3\alpha+\Phi_{bc}-\Phi_{ac}3+6π8​≤3α+Φbc​−Φac​ (requests acacac).

The claim is that for all real numbers π1,…,π9,Φab,Φac,Φbc,α\pi_1,\dots,\pi_9,\Phi_{ab},\Phi_{ac},\Phi_{bc},\alphaπ1​,…,π9​,Φab​,Φac​,Φbc​,α satisfying these twelve inequalities,

α≥16521069.\alpha \ge \frac{1652}{1069}.α≥10691652​.

Together with Theorem 3 of the paper (a lower bound on the LP bound of phase-based algorithms is a lower bound on the competitive factor of every algorithm), this is the source of the lower bound in Theorem 13.

Formalization Note All thirteen variables are free real numbers, exactly as the paper permits ("we can permit the probabilities and potentials to be free variables"); no constraint 0≤πi≤10\le\pi_i\le10≤πi​≤1 is imposed, which makes the statement stronger than the boxed one. The constraints are written out one per hypothesis, in the order of the table on p. 568; the self-loop phases 2, 8, 11 keep the literal Φs−Φs\Phi_s-\Phi_sΦs​−Φs​ term.

Preamble
import Mathlib
Formal statement
namespace NonuniformCompetitive.Triangle345

/-- Karlin–Manasse–McGeoch–Owicki (Algorithmica 11, 1994), §5, p. 568: the phase LP for the
two-server problem on the triangle with `d(ab) = 3`, `d(ac) = 5`, `d(bc) = 4`.
The variables `π₁, …, π₉` (the probabilities of the second table of p. 567), the potentials
`Φab, Φac, Φbc` of the three configurations and the ratio `α` are free real numbers (no `[0,1]`
box, as the paper permits). Each hypothesis `hᵢ` is the constraint of the `i`-th phase of the
table on p. 568, `A's cost ≤ α · opt's cost + Φ_initial − Φ_final`.
Minimizing `α` subject to these twelve constraints gives `1652/1069`, so every feasible `α` is at
least `1652/1069`. -/
theorem lp_lower_bound (π₁ π₂ π₃ π₄ π₅ π₆ π₇ π₈ π₉ Φab Φac Φbc α : ℝ)
    -- phase 1: {a,b}, requests ca, final {a,c}, opt 4
    (h1 : 8 - 4 * π₁ ≤ 4 * α + Φab - Φac)
    -- phase 2: {a,b}, requests cbaba, final {a,b}, opt 8
    (h2 : 16 + 2 * π₁ - 4 * π₂ - 2 * π₃ - 4 * π₄ ≤ 8 * α + Φab - Φab)
    -- phase 3: {a,b}, requests cbabca, final {a,c}, opt 12
    (h3 : 14 + 2 * π₁ - 4 * π₂ - 2 * π₃ + 6 * π₄ - 4 * π₅ ≤ 12 * α + Φab - Φac)
    -- phase 4: {a,b}, requests cbabcb, final {b,c}, opt 11
    (h4 : 11 + 2 * π₁ - 4 * π₂ - 2 * π₃ + 6 * π₄ + 2 * π₅ ≤ 11 * α + Φab - Φbc)
    -- phase 5: {a,b}, requests cbac, final {a,c}, opt 8
    (h5 : 8 + 2 * π₁ - 4 * π₂ + 6 * π₃ ≤ 8 * α + Φab - Φac)
    -- phase 6: {a,b}, requests cbc, final {b,c}, opt 5
    (h6 : 5 + 2 * π₁ + 6 * π₂ ≤ 5 * α + Φab - Φbc)
    -- phase 7: {a,c}, requests bab, final {a,b}, opt 4
    (h7 : 10 - 4 * π₆ - 2 * π₇ ≤ 4 * α + Φac - Φab)
    -- phase 8: {a,c}, requests bac, final {a,c}, opt 6
    (h8 : 6 - 4 * π₆ + 6 * π₇ ≤ 6 * α + Φac - Φac)
    -- phase 9: {a,c}, requests bc, final {b,c}, opt 3
    (h9 : 3 + 6 * π₆ ≤ 3 * α + Φac - Φbc)
    -- phase 10: {b,c}, requests aba, final {a,b}, opt 5
    (h10 : 11 - 2 * π₈ - 4 * π₉ ≤ 5 * α + Φbc - Φab)
    -- phase 11: {b,c}, requests abc, final {b,c}, opt 6
    (h11 : 6 - 2 * π₈ + 6 * π₉ ≤ 6 * α + Φbc - Φbc)
    -- phase 12: {b,c}, requests ac, final {a,c}, opt 3
    (h12 : 3 + 6 * π₈ ≤ 3 * α + Φbc - Φac) :
    (1652 / 1069 : ℝ) ≤ α := by sorry

end NonuniformCompetitive.Triangle345
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), p. 568, §5 (proof of Theorem 13): table of A's costs and the LP minimum α = 1652/1069; phases from the first table on p. 567
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