Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Claim 4.1, proof — the deviation inequalities x1+x2+y2/2+y3/2≥y1+y3/2x_1+x_2+y_2/2+y_3/2\ge y_1+y_3/2x1​+x2​+y2​/2+y3​/2≥y1​+y3​/2 and its mirror

Proved
PriceOfStability.Undirected.deviation_inequality

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

nash-equilibriumnetwork-designp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1price-of-stability

Consider the two-player undirected fair connection game with nonnegative edge costs, common terminal sss and personal terminals t1,t2t_1,t_2t1​,t2​. Let (S1′,S2′)(S_1',S_2')(S1′​,S2′​) be a pure Nash equilibrium and let (S1,S2)(S_1,S_2)(S1​,S2​) be a profile in which each SiS_iSi​ is an inclusion-minimal set of edges connecting tit_iti​ with sss. With x1=cost(S1∖S2)x_1=\mathrm{cost}(S_1\setminus S_2)x1​=cost(S1​∖S2​), x2=cost(S2∖S1)x_2=\mathrm{cost}(S_2\setminus S_1)x2​=cost(S2​∖S1​), y1=cost(S1′∖S2′)y_1=\mathrm{cost}(S_1'\setminus S_2')y1​=cost(S1′​∖S2′​), y2=cost(S2′∖S1′)y_2=\mathrm{cost}(S_2'\setminus S_1')y2​=cost(S2′​∖S1′​), y3=cost(S1′∩S2′)y_3=\mathrm{cost}(S_1'\cap S_2')y3​=cost(S1′​∩S2′​),

y1+y32 ≤ x1+x2+y22+y32andy2+y32 ≤ x1+x2+y12+y32.y_1+\tfrac{y_3}{2}\ \le\ x_1+x_2+\tfrac{y_2}{2}+\tfrac{y_3}{2}\qquad\text{and}\qquad y_2+\tfrac{y_3}{2}\ \le\ x_1+x_2+\tfrac{y_1}{2}+\tfrac{y_3}{2}.y1​+2y3​​ ≤ x1​+x2​+2y2​​+2y3​​andy2​+2y3​​ ≤ x1​+x2​+2y1​​+2y3​​.

The left sides are the players' payments at the equilibrium; the right sides bound what player 1 (resp. 2) would pay by deviating to X1∪X2∪Y2∪Y3X_1\cup X_2\cup Y_2\cup Y_3X1​∪X2​∪Y2​∪Y3​ (resp. X1∪X2∪Y1∪Y3X_1\cup X_2\cup Y_1\cup Y_3X1​∪X2​∪Y1​∪Y3​), which still connects its terminals.

Formalization Note. Inclusion-minimality of S1,S2S_1,S_2S1​,S2​ is implicit in the paper, which treats them as paths. It is needed: if S1=S2S_1=S_2S1​=S2​ is a non-minimal common tree, then x1=x2=0x_1=x_2=0x1​=x2​=0 and the inequalities can fail. The optimal solution of Claim 4.1 can always be pruned to minimal strategies without increasing its cost. Players 1,21,21,2 are 0, 1.

Preamble
import Definitions.Def_PriceOfStability_Undirected_Model
open CongestionPoA.AsymSum
Formal statement
namespace PriceOfStability.Undirected

/-- The deviation inequalities (Anshelevich et al., SIAM J. Comput. 38 (2008), Claim 4.1, proof,
p. 1613, PDF p. 12). Let `(S′₁, S′₂)` be a Nash equilibrium of the two-player undirected fair
connection game with nonnegative edge costs and `(S₁, S₂)` a profile in which each `Sᵢ` is an
inclusion-minimal strategy. With `xᵢ`, `yᵢ` as in (4.1), player 1's deviation to
`X₁ ∪ X₂ ∪ Y₂ ∪ Y₃` and player 2's symmetric deviation give
`x₁ + x₂ + y₂/2 + y₃/2 ≥ y₁ + y₃/2` and `x₁ + x₂ + y₁/2 + y₃/2 ≥ y₂ + y₃/2`.

**Formalization Note.** The inclusion-minimality of `S₁`, `S₂` is implicit in the paper, whose
argument ("following X₁ until X₁ meets with X₂, then following X₂ back to t₂") treats them as paths;
for arbitrary connecting sets `X₁ ∪ X₂` need not connect `t₁` with `t₂`. Players `0`, `1` are the
paper's 1, 2. -/
theorem deviation_inequality {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)
    (c : Sym2 V → ℝ) (s : V) (t : Fin 2 → V) (hc : ∀ e, 0 ≤ c e)
    (S S' : Fin 2 → Finset (Sym2 V)) (hS : ∀ i, IsMinimalStrategy G s t i (S i))
    (hS' : IsPureNash (twoPlayerGame G c s t) S') :
    setCost c (S' 0 \ S' 1) + setCost c (S' 0 ∩ S' 1) / 2 ≤
        setCost c (S 0 \ S 1) + setCost c (S 1 \ S 0) + setCost c (S' 1 \ S' 0) / 2 +
          setCost c (S' 0 ∩ S' 1) / 2 ∧
      setCost c (S' 1 \ S' 0) + setCost c (S' 0 ∩ S' 1) / 2 ≤
        setCost c (S 0 \ S 1) + setCost c (S 1 \ S 0) + setCost c (S' 0 \ S' 1) / 2 +
          setCost c (S' 0 ∩ S' 1) / 2 := by sorry

end PriceOfStability.Undirected
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. 1613 (PDF p. 12), Claim 4.1, proof (deviation of player 1 and symmetric reasoning)
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