Documentation

CslibFrontier.GameTheory.Network.Contagion

Networked Coordination Games and Morris's 1/2 Contagion Threshold #

This module formalizes the game-theoretic contagion model on locally finite graphs from [Kle07], Section 24.2 (pp. 614–618, and Exercises 24.1–24.2, p. 632), originally due to [Mor00].

Each vertex of a locally finite undirected graph G : SimpleGraph V chooses between an old behavior A (false) and a new behavior B (true) and plays a symmetric 2 × 2 coordination game (CoordinationPayoffs) across each incident edge, summing the resulting payoffs. In the normalized game CoordinationPayoffs.normalized q with parameter q, matching on A yields q, matching on B yields 1 - q, and mismatching yields 0 ([Kle07], pp. 614–615). Holding other vertices fixed at adopter set S, choosing B weakly beats A at vertex v iff q * G.degree v ≤ (G.neighborSet v ∩ S).ncard (breaking ties in favor of B, avoiding division by zero at isolated vertices, and matching the fraction d_v^B / d_v ≥ q whenever 0 < G.degree v). Every general symmetric coordination payoff matrix with uBA < uAA and uAB < uBB induces the exact same best-response step as the normalized game at threshold p = (uAA - uBA) / ((uAA - uBA) + (uBB - uAB)) ([Kle07], Exercise 24.2, p. 632).

Starting from an initial adopter set S, synchronous best-response dynamics iterate bestResponseStep G q (h_q), while progressive dynamics iterate progressiveStep G q (h̄_q(X) = X ∪ h_q(X)). A set S is contagious for an update rule step (IsContagious) iff every vertex w eventually stays in step^[j] S for all sufficiently large j ([Kle07], p. 615). The contagion threshold contagionThreshold G is the supremum of q ∈ [0, 1] admitting a finite contagious set (formalizing Morris's supremum and [Kle07], p. 615, where it is called the maximum).

Scope notes #

Main definitions #

Main results #

References #

Coordination game payoffs #

Payoffs of a symmetric two-action coordination game played across each edge of a network, where A (false) is the old behavior and B (true) is the new behavior ([Kle07], Section 24.2, pp. 614–615; Exercise 24.2, p. 632). On an edge (v, w), node v receives uXY when v chooses X and w chooses Y.

  • uAA : ℝ

    Payoff when both endpoints choose A.

  • uBA : ℝ

    Payoff when the player chooses B and the neighbor chooses A.

  • uAB : ℝ

    Payoff when the player chooses A and the neighbor chooses B.

  • uBB : ℝ

    Payoff when both endpoints choose B.

Strictly better payoffs for matching behaviors on each edge (uAA > uBA and uBB > uAB, [Kle07], Exercise 24.2, p. 632).

The normalized coordination game with parameter q: matching on A pays q, matching on B pays 1 - q, and opposite behaviors pay 0 ([Kle07], Section 24.2, pp. 614–615).

The normalized coordination game with 0 < q < 1 satisfies IsCoordination.

The equivalent adoption threshold q = (uAA - uBA) / ((uAA - uBA) + (uBB - uAB)) of a general symmetric coordination game ([Kle07], Exercise 24.2, p. 632).

Single-edge payoff to a player choosing mine against a neighbor choosing other (false = old behavior A, true = new behavior B).

noncomputable def Cslib.GameTheory.Network.CoordinationPayoffs.payoffA {V : Type u_1} (p : CoordinationPayoffs) (G : SimpleGraph V) (S : Set V) (v : V) :

Payoff to vertex v from choosing old behavior A when the set of B-adopters is S.

noncomputable def Cslib.GameTheory.Network.CoordinationPayoffs.payoffB {V : Type u_1} (p : CoordinationPayoffs) (G : SimpleGraph V) (S : Set V) (v : V) :

Payoff to vertex v from choosing new behavior B when the set of B-adopters is S.

theorem Cslib.GameTheory.Network.CoordinationPayoffs.payoffA_def {V : Type u_1} (p : CoordinationPayoffs) (G : SimpleGraph V) (S : Set V) (v : V) :
p.payoffA G S v = p.uAA * ↑(G.neighborSet v \ S).ncard + p.uAB * ↑(G.neighborSet v ∩ S).ncard
theorem Cslib.GameTheory.Network.CoordinationPayoffs.payoffB_def {V : Type u_1} (p : CoordinationPayoffs) (G : SimpleGraph V) (S : Set V) (v : V) :
p.payoffB G S v = p.uBA * ↑(G.neighborSet v \ S).ncard + p.uBB * ↑(G.neighborSet v ∩ S).ncard
@[simp]
theorem Cslib.GameTheory.Network.CoordinationPayoffs.normalized_payoffA {V : Type u_1} (G : SimpleGraph V) (q : ℝ) (S : Set V) (v : V) :
(normalized q).payoffA G S v = q * ↑(G.neighborSet v \ S).ncard
@[simp]
theorem Cslib.GameTheory.Network.CoordinationPayoffs.normalized_payoffB {V : Type u_1} (G : SimpleGraph V) (q : ℝ) (S : Set V) (v : V) :
(normalized q).payoffB G S v = (1 - q) * ↑(G.neighborSet v ∩ S).ncard

Synchronous best-response update for general edge payoffs p: a vertex adopts B iff its payoff from B is at least its payoff from A (ties broken in favor of B, [Kle07], Section 24.2, p. 615 and Exercise 24.2, p. 632).

Total payoff of vertex v in the networked coordination game on G at strategy profile s : V → Bool ([Kle07], Section 24.2, p. 615).

theorem Cslib.GameTheory.Network.CoordinationPayoffs.payoff_def {V : Type u_1} (p : CoordinationPayoffs) (G : SimpleGraph V) [G.LocallyFinite] (v : V) (s : V → Bool) :
p.payoff G v s = ∑ w ∈ G.neighborFinset v, p.edgePayoff (s v) (s w)

The networked coordination game viewed as a strategic CostGame (with costs equal to negated payoffs).

Evaluating payoff when v chooses A (false) against the rest of profile s yields payoffA at {w | s w = true}.

Evaluating payoff when v chooses B (true) against the rest of profile s yields payoffB at {w | s w = true}.

Every fixed point of p.bestResponseStep G defines a pure Nash equilibrium of the networked coordination game p.toCostGame G.

Threshold best-response and progressive contagion dynamics #

Synchronous nonprogressive best-response update h_q on G with threshold q: vertex v adopts B iff q * d_v ≤ d_v^B ([Kle07], Section 24.2, p. 615). Using the cross-multiplied inequality matches the payoff comparison (1 - q) * d_v^B ≥ q * d_v^A with ties broken in favor of B, without dividing by zero at isolated vertices.

theorem Cslib.GameTheory.Network.mem_bestResponseStep_iff {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] (q : ℝ) (S : Set V) (v : V) :
v ∈ bestResponseStep G q S ↔ q * ↑(G.degree v) ≤ ↑(G.neighborSet v ∩ S).ncard
theorem Cslib.GameTheory.Network.mem_bestResponseStep_iff_div {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] (q : ℝ) (S : Set V) {v : V} (hv : 0 < G.degree v) :
v ∈ bestResponseStep G q S ↔ q ≤ ↑(G.neighborSet v ∩ S).ncard / ↑(G.degree v)

At any vertex of positive degree, v ∈ bestResponseStep G q S iff at least a q fraction of v's neighbors belong to S ([Kle07], Section 24.2, p. 615).

Payoff derivation of h_q: in the normalized coordination game with parameter q, the best-response update equals bestResponseStep G q ([Kle07], Section 24.2, p. 615).

Exercise 24.2 ([Kle07], p. 632): any symmetric 2 × 2 coordination game with uBA < uAA and uAB < uBB has the exact same best-response update map as the normalized coordination game with parameter q = p.threshold = (uAA - uBA) / ((uAA - uBA) + (uBB - uAB)).

theorem Cslib.GameTheory.Network.bestResponseStep_antitone_threshold {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] {q₁ q₂ : ℝ} (hq : q₁ ≤ q₂) (S : Set V) :
bestResponseStep G q₂ S ⊆ bestResponseStep G q₁ S

Synchronous progressive update h̄_q(S) = S ∪ h_q(S): nodes already following B remain with B, and any node with at least a q fraction of neighbors in S switches to B ([Kle07], Section 24.2, p. 616).

Equation (24.1) / Exercise 24.1 ([Kle07], Section 24.2, p. 617; Exercise 24.1, p. 632): for every S and every j ≥ 0, iterating progressiveStep j + 1 times equals applying bestResponseStep once to the j-th progressive iterate and adjoining the initial set S.

def Cslib.GameTheory.Network.IsContagious {V : Type u_1} (step : Set V → Set V) (S : Set V) :

A set S is contagious with respect to an update operator step if every vertex w is eventually permanently converted: there exists k such that w ∈ step^[j] S for all j ≥ k ([Kle07], Section 24.2, pp. 615–616).

Because iterates of progressiveStep are nondecreasing, S is progressive-contagious iff the union of all iterates ⋃ j, (progressiveStep G q)^[j] S is Set.univ.

theorem Cslib.GameTheory.Network.isContagious_bestResponseStep_of_le {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] {q₁ q₂ : ℝ} (hq : q₁ ≤ q₂) {S : Set V} (hS : IsContagious (bestResponseStep G q₂) S) :

Contagion equivalence for Exercise 24.2 ([Kle07], p. 632): for any symmetric coordination payoffs p with p.IsCoordination, a set S is contagious under p iff it is contagious under the normalized threshold p.threshold.

The contagion threshold of a locally finite graph G: the supremum of thresholds q ∈ [0, 1] for which there exists a finite contagious set with respect to bestResponseStep G q ([Kle07], Section 24.2, p. 615; [Mor00]).

theorem Cslib.GameTheory.Network.le_contagionThreshold {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q ≤ 1) (S : Finset V) (hS : IsContagious (bestResponseStep G q) ↑S) :

Theorem 24.1: Progressive vs. nonprogressive contagion #

Theorem 24.1 ([Kle07], Section 24.2, p. 617; [Mor00]): for any locally finite graph G and any threshold q ≤ 1, there exists a finite contagious set with respect to the nonprogressive update bestResponseStep G q iff there exists one with respect to the progressive update progressiveStep G q.

Progressive and nonprogressive contagion have the exact same contagion threshold on every locally finite graph ([Kle07], Section 24.2, p. 617; [Mor00]).

Theorem 24.2: Morris's 1/2 contagion threshold bound #

theorem Cslib.GameTheory.Network.not_isContagious_progressiveStep_of_half_lt {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] [Infinite V] (hdeg : ∀ (v : V), 0 < G.degree v) {q : ℝ} (hq : 1 / 2 < q) (S : Finset V) :

Theorem 24.2 (progressive form) ([Kle07], Section 24.2, p. 618; [Mor00]): on any infinite locally finite graph with no isolated vertices, no finite set is contagious for progressiveStep G q whenever q > 1 / 2.

theorem Cslib.GameTheory.Network.not_isContagious_bestResponseStep_of_half_lt {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] [Infinite V] (hdeg : ∀ (v : V), 0 < G.degree v) {q : ℝ} (hq : 1 / 2 < q) (S : Finset V) :

Theorem 24.2 (nonprogressive form) ([Kle07], Section 24.2, p. 618; [Mor00]): on any infinite locally finite graph with no isolated vertices, no finite set is contagious for bestResponseStep G q whenever q > 1 / 2.

theorem Cslib.GameTheory.Network.contagionThreshold_le_half {V : Type u_1} (G : SimpleGraph V) [G.LocallyFinite] [Infinite V] (hdeg : ∀ (v : V), 0 < G.degree v) :

Theorem 24.2 ([Kle07], Section 24.2, p. 618; [Mor00]): the contagion threshold of any infinite locally finite graph with no isolated vertices is at most 1 / 2.

Tightness: the two-way infinite path on ℤ #

The two-way infinite path graph on ℤ: vertices x and y are adjacent iff y = x + 1 or x = y + 1 ([Kle07], Section 24.2, p. 616).

On intPathGraph at threshold q = 1 / 2, one nonprogressive step expands any integer interval [a, b] with at least two vertices (a < b) to [a - 1, b + 1] ([Kle07], Section 24.2, p. 616).

On intPathGraph at q = 1 / 2, {0, 1} is contagious under bestResponseStep ([Kle07], Section 24.2, p. 616).

On intPathGraph at q = 1 / 2, starting from a single node {0} produces the parity-alternating sets {x | -k ≤ x ≤ k ∧ x % 2 = k % 2} at step k.

Starting from {0} on intPathGraph at q = 1 / 2 is not contagious for the nonprogressive update (no node is permanently converted because memberships alternate in parity), even though every node is visited infinitely often.

Starting from {0} on intPathGraph at q = 1 / 2 is contagious for the progressive update progressiveStep, showing why Theorem 24.1 must replace the seed set rather than keeping the same set.

Tightness of Theorem 24.2 ([Kle07], Section 24.2, p. 616): the contagion threshold of the two-way infinite path on ℤ is exactly 1 / 2.