Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 6.1, proof — joining an edge used by one other player raises Φe\Phi_eΦe​ by wiw_iwi​ times the new share

Proved
PriceOfStability.WeightedPotential.join_shared_edge

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

cost-sharingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1potential-gameprice-of-stabilityweighted-game

Let GGG be a weighted cost-sharing game with weights wi≥1w_i \ge 1wi​≥1 and edge costs ce≥0c_e \ge 0ce​≥0 in which each edge lies in the strategy spaces of at most two players. Let SSS be a profile and eee an edge used in SSS by exactly one player jjj, and let a player i≠ji \ne ji=j switch to a feasible strategy TTT containing eee, giving the profile S′=(S−i,T)S' = (S_{-i}, T)S′=(S−i​,T). Then

Φe(S′)−Φe(S)=ce(wi−wiwjwi+wj)=ce wi2wi+wj=wi⋅wiWe′ ce,\Phi_e(S') - \Phi_e(S) = c_e\Bigl(w_i - \frac{w_i w_j}{w_i + w_j}\Bigr) = \frac{c_e\, w_i^2}{w_i + w_j} = w_i \cdot \frac{w_i}{W'_e}\, c_e ,Φe​(S′)−Φe​(S)=ce​(wi​−wi​+wj​wi​wj​​)=wi​+wj​ce​wi2​​=wi​⋅We′​wi​​ce​,

where We′=wi+wjW'_e = w_i + w_jWe′​=wi​+wj​ is the weight on eee in S′S'S′; that is, the change in the edge potential equals wiw_iwi​ times the cost iii incurs on eee after joining.

This is the computation the paper displays in the proof of Theorem 6.1, the basic case of the weighted potential identity.

Formalization Note "The edge already supported another player jjj" is encoded as: the set of users of eee in SSS is exactly {j}\{j\}{j}. The conclusion states both the closed form cewi2/(wi+wj)c_e w_i^2/(w_i+w_j)ce​wi2​/(wi​+wj​) and the form wiw_iwi​ times iii's new payment for eee.

Preamble
import Mathlib
import Definitions.Def_PriceOfStability_WeightedPotential_Model
Formal statement
namespace PriceOfStability.WeightedPotential

variable {ι E : Type*} [Fintype ι] [DecidableEq ι] [Fintype E] [DecidableEq E]

/-- Anshelevich et al., SIAM J. Comput. 38 (2008), Theorem 6.1, proof, p. 1620 (PDF p. 19),
displayed computation: "Consider a player i and an edge e that player i joins. If the edge already
supported another player j, then i's cost for using e is c_e w_i/(w_i+w_j), while the change in
Φ_e(S) is c_e(w_i − w_i w_j/(w_i + w_j)) = c_e w_i^2/(w_i + w_j). Thus the change in potential when
i joins e equals the cost i incurs, scaled up by a factor of w_i."

In a standard weighted game in which every edge lies in the strategy spaces of at most two players,
let `S` be a profile in which edge `e` is used by exactly one player `j ≠ i` (so `i` does not use
it), and let `i` switch to a feasible strategy `T ∋ e`. Then the edge potential of `e` rises by
`c_e wᵢ²/(wᵢ + wⱼ)`, which is `wᵢ` times `i`'s payment `(wᵢ/W_e) c_e` for `e` after the switch.

**Formalization Note.** "The edge already supported another player j" and "player i joins e" are
`users S e = {j}` together with `e ∈ T`; the hypotheses of Theorem 6.1 are kept as binders. -/
theorem join_shared_edge (G : WeightedGame ι E) (hG : G.IsStandard)
    (hspace : ∀ e, (Finset.univ.filter (fun i => e ∈ strategySpace G i)).card ≤ 2)
    (S : ι → Finset E) (hS : IsProfile G S) (i j : ι) (hij : i ≠ j)
    (T : Finset E) (hT : T ∈ G.strategies i) (e : E)
    (hjoin : users S e = {j}) (heT : e ∈ T) :
    edgePotential G (Function.update S i T) e - edgePotential G S e
        = G.edgeCost e * G.weight i ^ 2 / (G.weight i + G.weight j) ∧
      edgePotential G (Function.update S i T) e - edgePotential G S e
        = G.weight i * (G.weight i / edgeWeight G (Function.update S i T) e * G.edgeCost e) := by sorry

end PriceOfStability.WeightedPotential
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. 1620 (PDF p. 19), Theorem 6.1, proof, displayed computation
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me