Documentation

CslibFrontier.GameTheory.NetworkFormation.FairConnection

Fair connection games on directed and undirected networks #

In the fair connection game (global connection game or Shapley network design game) of Anshelevich, Dasgupta, Kleinberg, Tardos, Wexler and Roughgarden [ADK+08] ([TW07], Section 19.3.1), k players build a subnetwork of an edge-weighted graph:

Viewing the edges of each simple path as its resource set embeds both the directed multigraph game (Cslib.GameTheory.FairConnectionGame, allowing parallel arcs and zero-cost feeder arcs) and the undirected simple-graph game (Cslib.GameTheory.UndirectedFairConnectionGame, where players traversing an undirected edge in opposite directions share its cost) into Cslib.GameTheory.CongestionGame.fairCostSharing ([TW07], Section 19.3.2). Through that bridge:

Matching tightness and separation witnesses (PoS → H_k on directed single-sink networks vs. PoS = 1 on the undirected counterpart, PoA = k on parallel links, and a game whose socially best pure Nash equilibrium does not minimize Rosenthal's potential) are in CslibFrontier/GameTheory/NetworkFormation/Witnesses.lean.

Main definitions #

Main results #

References #

Directed Fair Connection Games #

structure Cslib.GameTheory.FairConnectionGame (ι : Type u_1) (V : Type u_2) (E : Type u_3) :
Type (max (max u_1 u_2) u_3)

A fair connection game (global connection game or Shapley network design game, [ADK+08]; [TW07], Section 19.3.1) on a directed multigraph with vertices V and edges E: edge e goes from src e to tgt e with fixed construction cost edgeCost e, and each player i : ι connects source i to sink i along a simple directed path, sharing the cost of each used edge equally among its users.

  • src : E → V

    Source endpoint of each directed edge.

  • tgt : E → V

    Target endpoint of each directed edge.

  • edgeCost : E → ℝ

    Fixed construction cost c_e of edge e.

  • source : ι → V

    Source terminal s_i of player i.

  • sink : ι → V

    Sink terminal t_i of player i.

@[reducible, inline]
abbrev Cslib.GameTheory.FairConnectionGame.Path {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) (i : ι) :
Type u_3

A strategy of player i in G: a simple directed path of arcs from G.source i to G.sink i.

Instances For
    def Cslib.GameTheory.FairConnectionGame.Path.arcs {ι : Type u_1} {V : Type u_2} {E : Type u_3} {G : FairConnectionGame ι V E} {i : ι} (p : G.Path i) :

    Underlying arc list of a player's simple path.

    theorem Cslib.GameTheory.FairConnectionGame.Path.isDipath {ι : Type u_1} {V : Type u_2} {E : Type u_3} {G : FairConnectionGame ι V E} {i : ι} (p : G.Path i) :

    Path.arcs p is a valid simple dipath from G.source i to G.sink i.

    theorem Cslib.GameTheory.FairConnectionGame.Path.nodup {ι : Type u_1} {V : Type u_2} {E : Type u_3} {G : FairConnectionGame ι V E} {i : ι} (p : G.Path i) :

    Every strategy path uses each arc at most once.

    def Cslib.GameTheory.FairConnectionGame.pathEdges {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [DecidableEq E] {i : ι} (p : G.Path i) :

    Finite set of edges traversed by the path p.

    @[simp]
    theorem Cslib.GameTheory.FairConnectionGame.mem_pathEdges_iff {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [DecidableEq E] {i : ι} {p : G.Path i} {e : E} :
    instance Cslib.GameTheory.FairConnectionGame.instFinitePath {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Finite E] (i : ι) :
    Finite (G.Path i)

    Every player's sink terminal is reachable from its source terminal by a simple directed path.

    def Cslib.GameTheory.FairConnectionGame.IsSteinerSubgraph {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) (F : Finset E) :

    F is a centralized Steiner subnetwork of G if for every player i, F contains the arcs of a simple directed path from G.source i to G.sink i.

    noncomputable def Cslib.GameTheory.FairConnectionGame.toCongestionGame {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [DecidableEq E] :

    Embedding of G as a fair cost-sharing atomic congestion game on edge sets ([TW07], Section 19.3.2).

    noncomputable def Cslib.GameTheory.FairConnectionGame.toCostGame {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] :

    Strategic cost-minimization game of G under Shapley equal cost sharing c_e / k_e.

    def Cslib.GameTheory.FairConnectionGame.edgeLoad {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Path i) (e : E) :

    Number k_e(s) of players whose chosen paths traverse edge e at profile s.

    @[simp]
    theorem Cslib.GameTheory.FairConnectionGame.toCongestionGame_load {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Path i) (e : E) :
    theorem Cslib.GameTheory.FairConnectionGame.toCostGame_cost {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (i : ι) (s : (i : ι) → G.Path i) :
    G.toCostGame.cost i s = ∑ e ∈ G.pathEdges (s i), G.edgeCost e / ↑(G.edgeLoad s e)

    Shapley equal cost-sharing formula: player i pays ∑ e ∈ pathEdges (s i), c_e / k_e(s).

    def Cslib.GameTheory.FairConnectionGame.formedEdges {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Path i) :

    Subnetwork ⋃ i, pathEdges (s i) formed by the players' chosen paths at profile s.

    theorem Cslib.GameTheory.FairConnectionGame.mem_formedEdges_iff {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] {s : (i : ι) → G.Path i} {e : E} :
    e ∈ G.formedEdges s ↔ 0 < G.edgeLoad s e
    theorem Cslib.GameTheory.FairConnectionGame.isSteinerSubgraph_formedEdges {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Path i) :
    theorem Cslib.GameTheory.FairConnectionGame.socialCost_eq_sum_formedEdges {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Path i) :
    G.toCostGame.socialCost s = ∑ e ∈ G.formedEdges s, G.edgeCost e

    Social cost is the total cost of the formed subnetwork: summing all players' equal cost shares cancels k_e(s) on every used edge, leaving ∑ e ∈ formedEdges s, edgeCost e.

    theorem Cslib.GameTheory.FairConnectionGame.exists_profile_socialCost_le_steinerCost {ι : Type u_1} {V : Type u_2} {E : Type u_3} (G : FairConnectionGame ι V E) [Fintype ι] [DecidableEq E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) {F : Finset E} (hF : G.IsSteinerSubgraph F) :
    ∃ (s : (i : ι) → G.Path i), G.formedEdges s ⊆ F ∧ G.toCostGame.socialCost s ≤ ∑ e ∈ F, G.edgeCost e

    Every centralized Steiner subnetwork F induces a path profile s with formedEdges s ⊆ F and (for nonnegative edge costs) socialCost s ≤ ∑ e ∈ F, edgeCost e.

    Rosenthal's harmonic potential, pure Nash equilibria, PoS ≤ H_k, and PoA ≤ k #

    noncomputable def Cslib.GameTheory.FairConnectionGame.potential {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [Fintype E] (s : (i : ι) → G.Path i) :

    Rosenthal's harmonic potential of G: Φ s = ∑ e, edgeCost e * H (edgeLoad s e) ([Ros73]; [TW07], Section 19.3.1).

    theorem Cslib.GameTheory.FairConnectionGame.potential_eq {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [Fintype E] (s : (i : ι) → G.Path i) :
    G.potential s = ∑ e : E, G.edgeCost e * ↑(harmonic (G.edgeLoad s e))

    Every finite fair connection game is an exact potential game ([TW07], Lemma 19.7): a unilateral path change by player i changes G.potential by the exact change in player i's cost.

    theorem Cslib.GameTheory.FairConnectionGame.socialCost_le_potential {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [Fintype E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) (s : (i : ι) → G.Path i) :

    Potential lower bound ([TW07], Lemma 19.8, first inequality): with nonnegative edge costs, socialCost s ≤ potential s.

    theorem Cslib.GameTheory.FairConnectionGame.potential_le_harmonic_mul_socialCost {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [Fintype E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) (s : (i : ι) → G.Path i) :

    Potential upper bound ([TW07], Lemma 19.8, second inequality): with nonnegative edge costs and k = Fintype.card ι players, potential s ≤ H k * socialCost s.

    theorem Cslib.GameTheory.FairConnectionGame.hasFIP {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] :

    Finite improvement property ([TW07], Section 19.3.1): on a finite edge set, every sequence of strictly improving unilateral path deviations is finite.

    theorem Cslib.GameTheory.FairConnectionGame.exists_isPureNash {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hconn : G.TerminalsConnected) :
    ∃ (s : (i : ι) → G.Path i), G.toCostGame.IsPureNash s

    Pure Nash equilibrium existence ([TW07], Section 19.3.1): every fair connection game on finitely many edges in which each player's sink is reachable from its source admits a pure Nash equilibrium.

    theorem Cslib.GameTheory.FairConnectionGame.exists_isPureNash_socialCost_le_harmonic_mul {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hconn : G.TerminalsConnected) (hc : ∀ (e : E), 0 ≤ G.edgeCost e) :
    ∃ (s : (i : ι) → G.Path i), G.toCostGame.IsPureNash s ∧ ∀ (s' : (i : ι) → G.Path i), G.toCostGame.socialCost s ≤ ↑(harmonic (Fintype.card ι)) * G.toCostGame.socialCost s'

    Anshelevich et al. H_k price-of-stability theorem ([ADK+08]; [TW07], Theorem 19.10): in a k-player fair connection game (k = Fintype.card ι) on finitely many edges with nonnegative edge costs and connected terminal pairs, there exists a pure Nash equilibrium s (a global minimizer of Rosenthal's potential) with socialCost s ≤ H k * socialCost s' for every strategy profile s'.

    theorem Cslib.GameTheory.FairConnectionGame.exists_isPureNash_socialCost_le_harmonic_mul_steinerCost {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hconn : G.TerminalsConnected) (hc : ∀ (e : E), 0 ≤ G.edgeCost e) :
    ∃ (s : (i : ι) → G.Path i), G.toCostGame.IsPureNash s ∧ ∀ (F : Finset E), G.IsSteinerSubgraph F → G.toCostGame.socialCost s ≤ ↑(harmonic (Fintype.card ι)) * ∑ e ∈ F, G.edgeCost e

    Anshelevich et al. H_k theorem against centralized Steiner subnetworks ([ADK+08]; [TW07], Theorem 19.10): when at least one Steiner subnetwork exists (equivalently G.TerminalsConnected), there exists a pure Nash equilibrium s whose formed network costs at most H k times ∑ e ∈ F, edgeCost e for every centralized Steiner subnetwork F : Finset E.

    theorem Cslib.GameTheory.FairConnectionGame.exists_reflTransGen_isPureNash_socialCost_le_harmonic_mul {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) (s₀ : (i : ι) → G.Path i) :

    Better-response dynamics from any profile reach an H_k-competitive pure Nash equilibrium ([TW07], Section 19.3.1 and Theorem 19.10): started at a socially optimal profile, improving unilateral path deviations terminate at a pure Nash equilibrium within factor H k of OPT.

    theorem Cslib.GameTheory.FairConnectionGame.isSmooth {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) :

    (k, 0)-smoothness of fair connection games ([Rou15b], Definition 2.1; [TW07], Section 19.3).

    theorem Cslib.GameTheory.FairConnectionGame.socialCost_le_card_mul_of_isPureNash {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) {s : (i : ι) → G.Path i} (hs : G.toCostGame.IsPureNash s) (s' : (i : ι) → G.Path i) :

    Price of anarchy at most k ([Rou15b], Theorem 3.2; [TW07], Section 19.3): every pure Nash equilibrium s of a k-player fair connection game with nonnegative edge costs satisfies socialCost s ≤ k * socialCost s' for every profile s'.

    theorem Cslib.GameTheory.FairConnectionGame.socialCost_le_card_mul_steinerCost_of_isPureNash {ι : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype ι] [DecidableEq E] (G : FairConnectionGame ι V E) [DecidableEq ι] [Finite E] (hc : ∀ (e : E), 0 ≤ G.edgeCost e) {s : (i : ι) → G.Path i} (hs : G.toCostGame.IsPureNash s) {F : Finset E} (hF : G.IsSteinerSubgraph F) :
    G.toCostGame.socialCost s ≤ ↑(Fintype.card ι) * ∑ e ∈ F, G.edgeCost e

    Price of anarchy at most k against centralized Steiner subnetworks: every pure Nash equilibrium s costs at most k * ∑ e ∈ F, edgeCost e for every Steiner subnetwork F.

    Undirected Fair Connection Games #

    structure Cslib.GameTheory.UndirectedFairConnectionGame (ι : Type u_1) (V : Type u_2) :
    Type (max u_1 u_2)

    A fair connection game on an undirected simple graph graph : SimpleGraph V ([ADK+08]; [RT07]): each undirected edge e : Sym2 V has cost edgeCost e, and each player i : ι chooses a simple undirected path in graph between source i and sink i. Players traversing the same unordered edge s(u, v) in either direction share its cost equally.

    • graph : SimpleGraph V

      Underlying undirected graph.

    • edgeCost : Sym2 V → ℝ

      Fixed construction cost c_e of unordered edge e : Sym2 V.

    • source : ι → V

      Source terminal s_i of player i.

    • sink : ι → V

      Sink terminal t_i of player i.

    @[reducible, inline]

    Strategy of player i in G: a simple undirected path in G.graph from G.source i to G.sink i.

    Instances For

      Finite set of unordered edges Sym2 V traversed by an undirected simple path p.

      @[simp]
      theorem Cslib.GameTheory.UndirectedFairConnectionGame.mem_pathEdges_iff {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [DecidableEq V] {i : ι} {p : G.Path i} {e : Sym2 V} :
      e ∈ G.pathEdges p ↔ e ∈ (↑p).edges

      Every player's source and sink terminals lie in the same connected component of G.graph.

      Embedding of G into CongestionGame.fairCostSharing on unordered edges Sym2 V.

      Strategic cost-minimization game of G under Shapley equal cost sharing.

      def Cslib.GameTheory.UndirectedFairConnectionGame.edgeLoad {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [Fintype ι] [DecidableEq V] (s : (i : ι) → G.Path i) (e : Sym2 V) :

      Number k_e(s) of players whose undirected paths traverse edge e : Sym2 V.

      theorem Cslib.GameTheory.UndirectedFairConnectionGame.toCostGame_cost {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [Fintype ι] [DecidableEq V] (i : ι) (s : (i : ι) → G.Path i) :
      G.toCostGame.cost i s = ∑ e ∈ G.pathEdges (s i), G.edgeCost e / ↑(G.edgeLoad s e)

      Subnetwork ⋃ i, pathEdges (s i) of unordered edges formed at profile s.

      noncomputable def Cslib.GameTheory.UndirectedFairConnectionGame.potential {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [Fintype ι] [DecidableEq V] [Fintype V] (s : (i : ι) → G.Path i) :

      Rosenthal's harmonic potential on undirected edges Sym2 V.

      theorem Cslib.GameTheory.UndirectedFairConnectionGame.potential_eq {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [Fintype ι] [DecidableEq V] [Fintype V] (s : (i : ι) → G.Path i) :
      G.potential s = ∑ e : Sym2 V, G.edgeCost e * ↑(harmonic (G.edgeLoad s e))
      theorem Cslib.GameTheory.UndirectedFairConnectionGame.exists_isPureNash_socialCost_le_harmonic_mul {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [Fintype ι] [DecidableEq ι] [DecidableEq V] [Finite V] (hconn : G.TerminalsConnected) (hc : ∀ (e : Sym2 V), 0 ≤ G.edgeCost e) :
      ∃ (s : (i : ι) → G.Path i), G.toCostGame.IsPureNash s ∧ ∀ (s' : (i : ι) → G.Path i), G.toCostGame.socialCost s ≤ ↑(harmonic (Fintype.card ι)) * G.toCostGame.socialCost s'
      theorem Cslib.GameTheory.UndirectedFairConnectionGame.socialCost_le_card_mul_of_isPureNash {ι : Type u_1} {V : Type u_2} (G : UndirectedFairConnectionGame ι V) [Fintype ι] [DecidableEq ι] [DecidableEq V] [Finite V] (hc : ∀ (e : Sym2 V), 0 ≤ G.edgeCost e) {s : (i : ι) → G.Path i} (hs : G.toCostGame.IsPureNash s) (s' : (i : ι) → G.Path i) :