Documentation

CslibFrontier.GameTheory.Congestion.AsymmetricScheduling

Asymmetric parallel-link scheduling games and tight affine price of anarchy #

In an asymmetric parallel-link scheduling game ([Rou07], Exercise 18.3, p. 485; [Sur07]; [CFK+11]), finitely many players i : ι with demand weights weight i each select a single link from a player-specific subset allowed i : Finset E of parallel links E, paying weight i * latency e (load s e) on their chosen link e.

This module formalizes both parts of [Rou07], Exercise 18.3 (p. 485):

  1. Part (a) — Reduction to directed atomic selfish routing (AtomicRoutingGame, AsymmetricSchedulingGame.toAtomicRoutingGame, AsymmetricSchedulingGame.reductionPathEquiv, AsymmetricSchedulingGame.toAtomicRoutingGame_cost_eq, AsymmetricSchedulingGame.toAtomicRoutingGame_isPureNash_iff): every asymmetric parallel-link scheduling game is cost- and equilibrium-isomorphic to a single-sink directed multigraph atomic selfish routing game whose arc latencies consist solely of the original link latencies plus the all-zero latency function. Each player i gets a source vertex source i connected by zero-latency feeder arcs to entry vertices entry e for e ∈ allowed i, and each entry e connects to the common sink via a single arc carrying latency e; simple directed source i–sink paths are in exact bijection with allowed i.
  2. Part (b) — Exact affine price of anarchy (5 / 2 unweighted and (3 + √5) / 2 weighted):

Main definitions #

Main results #

References #

structure Cslib.GameTheory.AsymmetricSchedulingGame (ι : Type u_1) (E : Type u_2) :
Type (max u_1 u_2)

An asymmetric parallel-link scheduling game ([Rou07], Exercise 18.3, p. 485): each player i : ι has demand weight i and chooses a single link from its prescribed subset allowed i : Finset E, incurring per-unit latency latency e (load s e).

  • allowed : ι → Finset E

    The subset of parallel links permitted to player i.

  • weight : ι → ℝ

    The demand weight routed by player i.

  • latency : E → ℝ → ℝ

    The per-unit latency of link e as a function of total load on e.

@[reducible, inline]

A strategy of player i in G: a single permitted link e ∈ G.allowed i.

View G as a WeightedCongestionGame with singleton resource sets {a.val}.

The strategic cost game induced by G.

G has affine latencies if every link latency has the form a e * x + b e with a e, b e ≥ 0.

theorem Cslib.GameTheory.AsymmetricSchedulingGame.load_eq_sum {ι : Type u_1} {E : Type u_2} (G : AsymmetricSchedulingGame ι E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Strategy i) (e : E) :
G.toWeightedCongestionGame.load s e = ∑ i : ι with ↑(s i) = e, G.weight i

Load on link e equals the total weight of players choosing e.

theorem Cslib.GameTheory.AsymmetricSchedulingGame.toCostGame_cost {ι : Type u_1} {E : Type u_2} (G : AsymmetricSchedulingGame ι E) [Fintype ι] [DecidableEq E] (s : (i : ι) → G.Strategy i) (i : ι) :
G.toCostGame.cost i s = G.weight i * G.latency (↑(s i)) (G.toWeightedCongestionGame.load s ↑(s i))

Player i's cost is weight i * latency (s i).val (load s (s i).val).

theorem Cslib.GameTheory.AsymmetricSchedulingGame.socialCost_le_golden_mul_of_isPureNash {ι : Type u_1} {E : Type u_2} (G : AsymmetricSchedulingGame ι E) [Fintype ι] [DecidableEq ι] [DecidableEq E] [Finite E] (h : G.HasAffineLatencies) (hw : ∀ (i : ι), 0 ≤ G.weight i) {s : (i : ι) → G.Strategy i} (hs : G.toCostGame.IsPureNash s) (s' : (i : ι) → G.Strategy i) :

Weighted affine price of anarchy upper bound (3 + √5) / 2 for asymmetric parallel-link scheduling ([Rou07], Exercise 18.3(b), p. 485).

theorem Cslib.GameTheory.AsymmetricSchedulingGame.socialCost_le_five_halves_mul_of_isPureNash {ι : Type u_1} {E : Type u_2} (G : AsymmetricSchedulingGame ι E) [Fintype ι] [DecidableEq ι] [DecidableEq E] [Finite E] (h : G.HasAffineLatencies) (hw : ∀ (i : ι), G.weight i = 1) {s : (i : ι) → G.Strategy i} (hs : G.toCostGame.IsPureNash s) (s' : (i : ι) → G.Strategy i) :

Unweighted affine price of anarchy upper bound 5 / 2 for asymmetric parallel-link scheduling ([Rou07], Exercise 18.3(b), p. 485).

Exercise 18.3(a): directed atomic selfish routing reduction #

structure Cslib.GameTheory.AtomicRoutingGame (ι : Type u_1) (V : Type u_2) (A : Type u_3) :
Type (max (max u_1 u_2) u_3)

A directed multigraph atomic selfish routing game ([Rou07], Section 18.2.2, pp. 465–466): each player i : ι routes demand weight i along a simple directed source i–sink i path (Cslib.Multidigraph.IsDipath) in (src, tgt : A → V).

  • src : A → V

    Source endpoint of each directed arc.

  • tgt : A → V

    Target endpoint of each directed arc.

  • source : ι → V

    Source vertex of player i.

  • sink : ι → V

    Sink vertex of player i.

  • weight : ι → ℝ

    Demand weight routed by player i.

  • latency : A → ℝ → ℝ

    Latency function of each directed arc.

@[reducible, inline]
abbrev Cslib.GameTheory.AtomicRoutingGame.Path {ι : Type u_1} {V : Type u_2} {A : Type u_3} (R : AtomicRoutingGame ι V A) (i : ι) :
Type u_3

A strategy of player i: a simple directed source i–sink i arc path.

Weighted atomic congestion game induced by R, using the arc set q.val.toFinset of each simple path.

def Cslib.GameTheory.AtomicRoutingGame.toCostGame {ι : Type u_1} {V : Type u_2} {A : Type u_3} (R : AtomicRoutingGame ι V A) [Fintype ι] [DecidableEq A] :

Strategic cost game induced by R.

inductive Cslib.GameTheory.AsymmetricSchedulingGame.ReductionVertex (ι : Type u_1) (E : Type u_2) :
Type (max u_1 u_2)

Vertices of the Exercise 18.3(a) reduction digraph: one source source i per player, one entry node entry e per parallel link, and a common sink.

@[instance_reducible]
def Cslib.GameTheory.AsymmetricSchedulingGame.instDecidableEqReductionVertex.decEq {ι✝ : Type u_1} {E✝ : Type u_2} [DecidableEq ι✝] [DecidableEq E✝] (x✝ x✝¹ : ReductionVertex ι✝ E✝) :
Decidable (x✝ = x✝¹)
inductive Cslib.GameTheory.AsymmetricSchedulingGame.ReductionArc {ι : Type u_1} {E : Type u_2} (G : AsymmetricSchedulingGame ι E) :
Type (max u_1 u_2)

Directed arcs of the Exercise 18.3(a) reduction digraph: zero-latency feeder arcs source i → entry a.val for each permitted link a : G.Strategy i, and one link arc entry e → sink carrying G.latency e for each e : E.

@[instance_reducible]
def Cslib.GameTheory.AsymmetricSchedulingGame.instDecidableEqReductionArc.decEq {ι✝ : Type u_1} {E✝ : Type u_2} {G✝ : AsymmetricSchedulingGame ι✝ E✝} [DecidableEq ι✝] [DecidableEq E✝] (x✝ x✝¹ : G✝.ReductionArc) :
Decidable (x✝ = x✝¹)

Source endpoint of a reduction arc.

Target endpoint of a reduction arc.

Arc latency in the reduction digraph: 0 on feeder arcs and G.latency e on link e.

Directed atomic selfish routing reduction ([Rou07], Exercise 18.3(a), p. 485): maps an asymmetric parallel-link scheduling game G to a single-sink directed multigraph atomic routing game using only the original latencies of G and the all-zero latency function.

Every arc latency in G.toAtomicRoutingGame is either one of G's link latencies or the all-zero function ([Rou07], Exercise 18.3(a), p. 485).

The canonical 2-arc dipath [feeder i a, link a.val] corresponding to strategy a.

Every simple directed source i–sink path in G.toAtomicRoutingGame has the form reductionPath a for a unique a : G.Strategy i.

Strategy-space bijection between G.Strategy i and simple directed source i–sink paths in G.toAtomicRoutingGame ([Rou07], Exercise 18.3(a), p. 485).

theorem Cslib.GameTheory.AsymmetricSchedulingGame.toAtomicRoutingGame_cost_eq {ι : Type u_1} {E : Type u_2} (G : AsymmetricSchedulingGame ι E) [Fintype ι] [DecidableEq ι] [DecidableEq E] (s : (i : ι) → G.Strategy i) (i : ι) :
(G.toAtomicRoutingGame.toCostGame.cost i fun (j : ι) => G.reductionPath (s j)) = G.toCostGame.cost i s

Exact player-cost equivalence between G and G.toAtomicRoutingGame ([Rou07], Exercise 18.3(a), p. 485).

Exact social-cost equivalence between G and G.toAtomicRoutingGame.

Exact pure-Nash equivalence between G and G.toAtomicRoutingGame ([Rou07], Exercise 18.3(a), p. 485).

Exercise 18.3(b): tight weighted (3 + √5) / 2 chain #

Weighted linear parallel-link chain of length L + 1 ([Rou07], Exercise 18.3(b), p. 485): player i : Fin (L + 1) has demand φ ^ i and may choose link i.castSucc or i.succ, and link e : Fin (L + 2) has linear latency φ ^ (2 * (L - e)) * x.

Equilibrium profile of weightedChain L: each player i chooses i.castSucc.

Benchmark profile of weightedChain L: each player i chooses i.succ.

Exact social cost of weightedChainNE L: (L + 1) * ((1 + √5) / 2) ^ (2 * L).

Exact social cost of weightedChainOpt L for 1 ≤ L: (L + ((1 + √5) / 2) ^ 2) * ((1 + √5) / 2) ^ (2 * L - 2).

Tightness of (3 + √5) / 2 for weighted affine asymmetric scheduling ([Rou07], Exercise 18.3(b), p. 485; [CFK+11]): for every r < (3 + √5) / 2, some weighted linear asymmetric parallel-link scheduling game has a pure Nash equilibrium s and a profile s' with 0 < socialCost s' and r * socialCost s' < socialCost s.

Exercise 18.3(b): tight unweighted 5 / 2 tree-plus-tail family #

@[reducible, inline]

Players of unweightedTreeTail k L: binary-tree players on levels 0 ≤ ℓ ≤ k and geometric- tail players on levels 0 ≤ t < L attached to each of the 2 ^ (k + 1) leaves.

Unweighted linear parallel-link tree-plus-tail game ([Rou07], Exercise 18.3(b), p. 485; [CFK+11]): all players have unit weight and two allowed links {neLink, optLink}, with pure linear link latencies.

treeTailNE k L is a pure Nash equilibrium of unweightedTreeTail k L for 1 ≤ L.

theorem Cslib.GameTheory.AsymmetricSchedulingGame.socialCost_treeTailNE (k : ℕ) {L : ℕ} (hL : 1 ≤ L) :
(unweightedTreeTail k L).toCostGame.socialCost (treeTailNE k L) = (20 - 4 * (1 / 2) ^ L) * (4 / 3) ^ k - 12

Exact social cost of treeTailNE k L for 1 ≤ L: (20 - 4 * (1 / 2) ^ L) * (4 / 3) ^ k - 12.

Exact social cost of treeTailOpt k L for 1 ≤ L: 8 * (4 / 3) ^ k - 4.

Tightness of 5 / 2 for unweighted affine asymmetric scheduling ([Rou07], Exercise 18.3(b), p. 485; [CFK+11]): for every r < 5 / 2, some unweighted linear asymmetric parallel-link scheduling game has a pure Nash equilibrium s and a profile s' with 0 < socialCost s' and r * socialCost s' < socialCost s.