Documentation

CslibFrontier.GameTheory.Graphical.NashProp

NashProp: local constraint propagation for arbitrary graphical games #

This module formalizes the local table-refutation phase of NashProp ([Kea07], §7.3.3, pp. 168–169, originating in Ortiz and Kearns 2003), generalizing the discretized downstream pass of ApproximateTreeNash (CslibFrontier.GameTheory.Graphical.TreeNash) from trees to arbitrary finite undirected graphical games.

Algorithm and semantics #

Given a finite graphical game M : GraphicalGame ι S, finite allowed strategy grids allowed : ∀ i, Finset (S i → ℝ) (such as the binary τ = 1 / m grid binaryTauGridFinset m), and additive best-response tolerance ε : ℝ, NashProp maintains a Boolean table T : NashPropTable M allowed on every directed edge (v, w) (w : M.graph.neighborSet v):

Main definitions #

Main results #

References #

Finite τ-grid Finset for binary games #

Explicit strategy function for grid point k / m on Bool.

Finite Finset of binary mixed strategies on the τ = 1 / m grid ({0, 1/m, …, 1}) ([Kea07], §§7.3.1, 7.3.3, pp. 167–169).

NashProp directed-edge tables and local constraint propagation #

@[reducible, inline]
abbrev Cslib.GameTheory.GraphicalGame.OtherNeighbors {ι : Type u_1} (G : SimpleGraph ι) (v w : ι) :
Type u_1

Neighbors of v in G other than a designated neighbor w (the "upstream" roles when v updates its table toward w in NashProp, [Kea07], §7.3.3, p. 169).

def Cslib.GameTheory.GraphicalGame.assembleOtherNeighbors {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : SimpleGraph ι} {v : ι} (w : ↑(G.neighborSet v)) (xw : S ↑w → ℝ) (u : (c : OtherNeighbors G v ↑w) → S ↑c → ℝ) (j : ↑(G.neighborSet v)) :
S ↑j → ℝ

Assemble a neighbor mixed-strategy profile at v from strategy xw at neighbor w and strategies u on OtherNeighbors G v w.

@[simp]
theorem Cslib.GameTheory.GraphicalGame.assembleOtherNeighbors_restrict {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : SimpleGraph ι} {v : ι} (w : ↑(G.neighborSet v)) (p : (i : ι) → S i → ℝ) :
(assembleOtherNeighbors w (p ↑w) fun (c : OtherNeighbors G v ↑w) => p ↑c) = fun (j : ↑(G.neighborSet v)) => p ↑j
@[reducible, inline]
abbrev Cslib.GameTheory.GraphicalGame.NashPropTable {ι : Type u_1} {S : ι → Type u_2} (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) :
Type (max u_1 u_2)

Directed-edge Boolean tables maintained by NashProp over finite allowed grids allowed ([Kea07], §7.3.3, pp. 168–169).

def Cslib.GameTheory.GraphicalGame.nashPropInit {ι : Type u_1} {S : ι → Type u_2} (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) :
M.NashPropTable allowed

Initial all-true (1) NashProp table ([Kea07], §7.3.3, p. 169).

noncomputable def Cslib.GameTheory.GraphicalGame.nashPropStep {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) (T : M.NashPropTable allowed) :
M.NashPropTable allowed

One synchronous round of NashProp local constraint propagation ([Kea07], §7.3.3, pp. 168–169): at each directed edge (v, w), marks (xw, xv) consistent iff there exist grid strategies u for the other neighbors of v supported by incoming neighbor tables such that xv is locally an ε-best response to (xw, u).

theorem Cslib.GameTheory.GraphicalGame.nashPropStep_eq_true_iff {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) (T : M.NashPropTable allowed) (v : ι) (w : ↑(M.graph.neighborSet v)) (xw : ↥(allowed ↑w)) (xv : ↥(allowed v)) :
M.nashPropStep allowed ε T v w xw xv = true ↔ ∃ (u : (c : OtherNeighbors M.graph v ↑w) → ↥(allowed ↑c)), (∀ (c : OtherNeighbors M.graph v ↑w), T ↑c ⟨v, ⋯⟩ xv (u c) = true) ∧ M.IsApproxBestResponse ε v (↑xv) (assembleOtherNeighbors w ↑xw fun (c : OtherNeighbors M.graph v ↑w) => ↑(u c))
theorem Cslib.GameTheory.GraphicalGame.nashPropStep_monotone {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) :
Monotone (M.nashPropStep allowed ε)

Monotonicity of nashPropStep: enlarging incoming tables never removes a valid entry.

noncomputable def Cslib.GameTheory.GraphicalGame.nashPropIter {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) :
ℕ → M.NashPropTable allowed

k-th synchronous iteration of NashProp starting from all-true (nashPropInit).

@[simp]
theorem Cslib.GameTheory.GraphicalGame.nashPropIter_zero {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) :
M.nashPropIter allowed ε 0 = M.nashPropInit allowed
@[simp]
theorem Cslib.GameTheory.GraphicalGame.nashPropIter_succ {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) (k : ℕ) :
M.nashPropIter allowed ε (k + 1) = M.nashPropStep allowed ε (M.nashPropIter allowed ε k)
theorem Cslib.GameTheory.GraphicalGame.nashPropIter_antitone {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) :
Antitone (M.nashPropIter allowed ε)

Antitonicity of NashProp iterations ([Kea07], §7.3.3, p. 169): table entries only change from true (1) to false (0), never back.

Exact entry count and polynomial-round stabilization #

noncomputable def Cslib.GameTheory.GraphicalGame.nashPropTotalEntries {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) :

Total number of directed-edge table entries across all edges of M.graph.

theorem Cslib.GameTheory.GraphicalGame.nashPropTotalEntries_binaryTauGridFinset {ι : Type u_1} [Fintype ι] (M : GraphicalGame ι fun (x : ι) => Bool) {m : ℕ} (hm : 1 ≤ m) [Fintype ↑M.graph.edgeSet] :
(M.nashPropTotalEntries fun (x : ι) => binaryTauGridFinset m) = 2 * M.graph.edgeFinset.card * (m + 1) ^ 2

Exact directed-edge entry count on the binary τ = 1 / m grid: 2 * |E(G)| * (m + 1) ^ 2.

theorem Cslib.GameTheory.GraphicalGame.nashPropIter_stabilizes {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) (k : ℕ) :
k ≥ M.nashPropTotalEntries allowed → M.nashPropIter allowed ε k = M.nashPropIter allowed ε (M.nashPropTotalEntries allowed)

Polynomial-round stabilization of NashProp ([Kea07], §7.3.3, p. 169): starting from all-true, nashPropIter reaches a fixed point within nashPropTotalEntries M allowed rounds, after which all subsequent iterates are constant.

noncomputable def Cslib.GameTheory.GraphicalGame.nashPropFixpoint {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) :
M.NashPropTable allowed

The converged Phase-1 NashProp table (nashPropIter at nashPropTotalEntries).

theorem Cslib.GameTheory.GraphicalGame.nashPropStep_nashPropFixpoint {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) :
M.nashPropStep allowed ε (M.nashPropFixpoint allowed ε) = M.nashPropFixpoint allowed ε

nashPropFixpoint is a fixed point of nashPropStep.

theorem Cslib.GameTheory.GraphicalGame.le_nashPropFixpoint_of_le_step {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (allowed : (i : ι) → Finset (S i → ℝ)) (ε : ℝ) {T : M.NashPropTable allowed} (hT : T ≤ M.nashPropStep allowed ε T) :
T ≤ M.nashPropFixpoint allowed ε

nashPropFixpoint is the greatest post-fixed point of nashPropStep: every table T with T ≤ nashPropStep M allowed ε T is contained in nashPropFixpoint.

Superset soundness for ε-Nash equilibria #

theorem Cslib.GameTheory.GraphicalGame.IsApproxNash.mem_nashPropFixpoint {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {M : GraphicalGame ι S} {allowed : (i : ι) → Finset (S i → ℝ)} {ε : ℝ} {q : (i : ι) → S i → ℝ} (hq_allow : ∀ (i : ι), q i ∈ allowed i) (hq_nash : M.IsApproxNash ε q) (v : ι) (w : ↑(M.graph.neighborSet v)) :
M.nashPropFixpoint allowed ε v w ⟨q ↑w, ⋯⟩ ⟨q v, ⋯⟩ = true

Superset soundness of NashProp ([Kea07], §7.3.3, p. 169): every ε-Nash equilibrium q with ∀ i, q i ∈ allowed i survives in nashPropFixpoint on every directed edge (v, w).

theorem Cslib.GameTheory.GraphicalGame.exists_mem_nashPropFixpoint_of_isMixedNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) [DecidableRel M.graph.Adj] {d : ℕ} {ε : ℝ} (hε : 0 < ε) (hpay : ∀ (i : ι) (u : ClosedNeighborhood M.graph i → Bool), 0 ≤ M.localPayoff i u ∧ M.localPayoff i u ≤ 1) (hdeg : ∀ (i : ι), M.graph.degree i ≤ d) {p : ι → Bool → ℝ} (hp : M.toCostGame.IsMixedNash p) :
have m := max 1 ⌈↑d / ε⌉₊; ∃ (q : ι → Bool → ℝ) (hq_allow : ∀ (i : ι), q i ∈ binaryTauGridFinset m), M.IsApproxNash ε q ∧ (∀ (i : ι), ∑ b : Bool, |p i b - q i b| ≤ 1 / ↑m) ∧ ∀ (v : ι) (w : ↑(M.graph.neighborSet v)), M.nashPropFixpoint (fun (x : ι) => binaryTauGridFinset m) ε v w ⟨q ↑w, ⋯⟩ ⟨q v, ⋯⟩ = true

Approximation completeness of NashProp ([Kea07], Lemma 7.4 & §7.3.3, pp. 167–169): for any degree-d, [0, 1]-payoff binary graphical game M, any ε > 0, resolution m = max 1 ⌈(d : ℝ) / ε⌉₊, and any exact mixed Nash equilibrium p of M.toCostGame, the L₁-nearest τ-grid strategy q is an ε-Nash equilibrium within L₁ distance 1 / m of p that survives in nashPropFixpoint on every edge.

Exactness of NashProp on trees #

theorem Cslib.GameTheory.GraphicalGame.nashPropFixpoint_imp_treePassTable {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {M : GraphicalGame ι S} (hT : M.graph.IsTree) (r : ι) {allowed : (i : ι) → Finset (S i → ℝ)} {ε : ℝ} {v : ι} (hv : v ≠ r) (xw : ↥(allowed (hT.parent r v))) (xv : ↥(allowed v)) (hmem : M.nashPropFixpoint allowed ε v ⟨hT.parent r v, ⋯⟩ xw xv = true) :
M.treePassTable hT r (fun (i : ι) => ↑(allowed i)) ε v ↑xw ↑xv

On a tree hT : M.graph.IsTree rooted at r, every surviving NashProp entry oriented downstream (v → hT.parent r v) satisfies the TreeNash downstream table treePassTable.

theorem Cslib.GameTheory.GraphicalGame.nashPropFixpoint_and_symm_iff_exists_isApproxNash {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {M : GraphicalGame ι S} (hT : M.graph.IsTree) {allowed : (i : ι) → Finset (S i → ℝ)} {ε : ℝ} {v w : ι} (hadj : M.graph.Adj v w) (xw : ↥(allowed w)) (xv : ↥(allowed v)) :
M.nashPropFixpoint allowed ε v ⟨w, hadj⟩ xw xv = true ∧ M.nashPropFixpoint allowed ε w ⟨v, ⋯⟩ xv xw = true ↔ ∃ (q : (i : ι) → S i → ℝ), (∀ (i : ι), q i ∈ allowed i) ∧ M.IsApproxNash ε q ∧ q w = ↑xw ∧ q v = ↑xv

Bidirectional exactness of NashProp on trees: when M.graph is a tree, a pair (xw, xv) on an edge hadj : M.graph.Adj v w survives in nashPropFixpoint in both directions (v → w) and (w → v) if and only if (xw, xv) extends to a global ε-Nash equilibrium in allowed.