Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.1 — the price of stability of the fair connection game is at most H(k), and this is tight

Proved
PriceOfStability.Harmonic.price_of_stability_harmonic

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

cost-sharinggame-theorynash-equilibriump2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1price-of-stability

Consider the fair connection game: kkk players, a finite set of edges with nonnegative costs cec_ece​, each player iii choosing a feasible set of edges Si∈ΣiS_i\in\Sigma_iSi​∈Σi​, and the cost of each edge shared equally by the players using it. The cost of a strategy profile is the total cost ∑e∈⋃iSice\sum_{e\in\bigcup_i S_i} c_e∑e∈⋃i​Si​​ce​ of the edges used.

  1. Upper bound (Theorem 2.1). If every player has a feasible strategy, there is a pure Nash equilibrium SSS with
cost⁡(S)≤H(k)⋅cost⁡(P)for every strategy profile P,H(k)=1+12+⋯+1k.\operatorname{cost}(S)\le H(k)\cdot\operatorname{cost}(P)\quad\text{for every strategy profile }P,\qquad H(k)=1+\tfrac12+\dots+\tfrac1k.cost(S)≤H(k)⋅cost(P)for every strategy profile P,H(k)=1+21​+⋯+k1​.
  1. Tightness (Fig. 1.1). For every k≥1k\ge1k≥1 and ε>0\varepsilon>0ε>0, the instance of Fig. 1.1 has a pure Nash equilibrium, every pure Nash equilibrium of it costs H(k)H(k)H(k), and some strategy profile costs 1+ε1+\varepsilon1+ε; so its price of stability is at least H(k)/(1+ε)H(k)/(1+\varepsilon)H(k)/(1+ε), which tends to H(k)H(k)H(k) as ε→0\varepsilon\to0ε→0.

The price of stability compares the best Nash equilibrium with the optimum; the price of anarchy of the same game is kkk.

Formalization Note. Strategy families are arbitrary families of edge sets (the paper's Extensions paragraph); the directed-graph game is the instance in which Σi\Sigma_iΣi​ is the family of edge sets connecting player iii's terminals. H(k)H(k)H(k) is Mathlib's harmonic cast to R\mathbb RR, kkk the number of players. The bound is stated as the existence of a good equilibrium, without dividing by the optimum.

Preamble
import Mathlib
import Definitions.Def_PriceOfStability_Harmonic_fig11

open CongestionPoA.AsymSum
Formal statement
namespace PriceOfStability.Harmonic

/-- Anshelevich et al., *The Price of Stability for Network Design with Fair Cost Allocation*, SIAM J.
Comput. 38 (2008), Theorem 2.1, p. 1607 (PDF p. 6), with its tightness ("Recall from the example in
Figure 1.1 that the upper bound of Theorem 2.1 is tight", p. 1608 (PDF p. 7); Fig. 1.1, p. 1604
(PDF p. 3)).

1. The price of stability of the fair connection game is at most `H(k)`: for every game with
   nonnegative constant edge costs `c_e` in which a profile exists, some pure Nash equilibrium
   `S` has `cost(S) ≤ H(k) · cost(P)` for every profile `P`, `k` the number of players.
2. Tightness: for every `k ≥ 1` and `ε > 0` the instance of Fig. 1.1 has a Nash equilibrium,
   every Nash equilibrium costs `H(k)`, and some profile costs `1 + ε`.

**Formalization Note.** Strategy families are arbitrary families of edge sets (*Extensions*,
p. 1609); the directed-graph game is the instance `Σᵢ = {S ⊆ E : S connects Tᵢ}`. Player and
edge types are quantified in `Type`. `H(k)` is Mathlib's `harmonic` cast to `ℝ`,
`k = Fintype.card ι`. The price of stability is in existence form (never "every equilibrium":
the price of anarchy is `k`), without dividing by the optimum. -/
theorem price_of_stability_harmonic :
    (∀ {ι E : Type} [Fintype ι] [DecidableEq ι] [Fintype E] [DecidableEq E]
      (strategies : ι → Finset (Finset E)) (c : E → ℝ), (∀ e, 0 ≤ c e) →
      (∃ P, IsProfile (fairGame strategies (fun e _ => c e)) P) →
      ∃ S, IsPureNash (fairGame strategies (fun e _ => c e)) S ∧
        ∀ P, IsProfile (fairGame strategies (fun e _ => c e)) P →
          designCost (fun e _ => c e) S ≤
            (harmonic (Fintype.card ι) : ℝ) * designCost (fun e _ => c e) P) ∧
    (∀ (k : ℕ) (ε : ℝ), 1 ≤ k → 0 < ε →
      (∃ S, IsPureNash (fig11 k ε) S) ∧
      (∀ S, IsPureNash (fig11 k ε) S →
        designCost (fun e _ => fig11Cost k ε e) S = (harmonic k : ℝ)) ∧
      ∃ P, IsProfile (fig11 k ε) P ∧ designCost (fun e _ => fig11Cost k ε e) P = 1 + ε) := by sorry

end PriceOfStability.Harmonic
Source
Anshelevich et al., The Price of Stability for Network Design with Fair Cost Allocation, SIAM J. Comput. 38 (2008), DOI 10.1137/070680096, p. 1607 (PDF p. 6), Theorem 2.1; p. 1608 (PDF p. 7), tightness remark; p. 1604 (PDF p. 3), Fig. 1.1
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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