Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 14 — the collinear 1–1–2 triangle has exact ratio 3/2

Open
NonuniformCompetitive.Snoopy.Supplement.theorem_14

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

competitive-analysisonline-algorithmsp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1

Let a metric space consist of exactly three points a,b,da,b,da,b,d with d(a,b)=d(b,d)=1d(a,b)=d(b,d)=1d(a,b)=d(b,d)=1 and d(a,d)=2d(a,d)=2d(a,d)=2. From every initial two-server configuration s0s_0s0​,

(∀A,c: A is c-competitive from s0⇒c≥3/2)and∃A: A is (3/2)-competitive from s0.\bigl(\forall A,c:\ A\text{ is }c\text{-competitive from }s_0\Rightarrow c\ge3/2\bigr) \quad\text{and}\quad \exists A:\ A\text{ is }(3/2)\text{-competitive from }s_0.(∀A,c: A is c-competitive from s0​⇒c≥3/2)and∃A: A is (3/2)-competitive from s0​.

Algorithms are randomized causal server algorithms, and the adversary is oblivious. Both clauses retain an additive constant independent of the finite request sequence.

The entire three-point metric and both optimality claims are included, without restricting the request sequence to a phase family.

Differences from the source:

  • encoding: a triangle with integer edge lengths 1, 1, 2 → a metric type exhausted by a,b,d with the three exact distance equalities; reason: the equalities imply distinctness and specify the complete metric, with no request-time restriction
  • reading: the display omits the adversary phrase → the oblivious mixed-strategy comparison from the published KServer model; reason: this is the standing adversary convention of §5
  • encoding: lower bound and attainment at 3/2 → their conjunction for every initial labelled configuration; reason: labels are bookkeeping for actual server paths; the additive constant absorbs any fixed initial repositioning
Preamble
import Mathlib
import Definitions.Def_KServer_randomized
Formal statement
namespace NonuniformCompetitive.Snoopy.Supplement

/-- Theorem 14, pp.568–569: the whole three-point collinear metric, with
arbitrary finite request words and arbitrary initial configurations. The adversary
is oblivious by the standing convention of §5. Both optimality clauses are retained. -/
theorem theorem_14 {M : Type} [MetricSpace M]
    (a b d : M) (hab : dist a b = 1) (hbd : dist b d = 1) (had : dist a d = 2)
    (hM : ∀ x : M, x = a ∨ x = b ∨ x = d) (s₀ : KServer.Config 2 M) :
    (∀ (A : KServer.RandomizedAlgorithm 2 M) (c : ℝ),
      A.IsCompetitiveFrom s₀ c → (3 / 2 : ℝ) ≤ c) ∧
    (∃ A : KServer.RandomizedAlgorithm 2 M, A.IsCompetitiveFrom s₀ (3 / 2 : ℝ)) := by sorry

end NonuniformCompetitive.Snoopy.Supplement
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), DOI 10.1007/BF01189993, p. 568, Theorem 14 and governing context

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