Documentation

CslibFrontier.GameTheory.Graphical.ExactTreeNash

Exact rectangular-union TreeNash (ExactTreeNash) #

This module formalizes the geometric representation and exact dynamic-programming algorithm ExactTreeNash for binary-action tree graphical games from [Kea07], §7.3.2 and Theorem 7.6 (p. 168).

Rectangular representation of TreeNash tables #

In a binary-action graphical game M : GraphicalGame ι (fun _ => Bool) whose interaction graph M.graph is a tree (hT : M.graph.IsTree) rooted at r : ι, parameterize each player's binary mixed strategy by p ∈ [0, 1] via boolMixed p : Bool → ℝ (boolMixed p false = p, boolMixed p true = 1 - p, matching [Kea07], §7.2, p. 162).

For each non-root vertex v ≠ r, the exact downstream table treePassTable of [Kea07], §7.3 is proved equal to a finite union of nonempty axis-aligned closed rectangles [wLo, wHi] × [vLo, vHi] ⊆ [0, 1]² (UnitClosedRect), computed bottom-up by exactTreeNashTable:

Machine-model (Word-RAM / Turing-machine) exponential running-time bounds for Theorem 7.6 remain separate under #7789; this module establishes the exact rectangular-union representation, exponential rectangle-count bound ≤ 8 ^ n, exact equilibrium computation, completeness over all mixed Nash equilibria, and rationality over rational payoffs.

Main definitions #

Main results #

References #

Binary mixed strategy parameterization #

Parameterization of a binary mixed strategy by p ∈ [0, 1]: plays false (action 0 in [Kea07], §7.2, p. 162) with probability p and true (action 1) with probability 1 - p.

Closed intervals and axis-aligned rectangles in [0, 1] #

A nonempty closed subinterval [lo, hi] ⊆ [0, 1] ([Kea07], §7.3.2, p. 168).

  • lo : ℝ

    Lower endpoint in [0, 1].

  • hi : ℝ

    Upper endpoint in [0, 1].

  • lo_nonneg : 0 ≤ self.lo

    The lower endpoint is nonnegative.

  • lo_le_hi : self.lo ≤ self.hi

    The interval is nonempty (lo ≤ hi).

  • hi_le_one : self.hi ≤ 1

    The upper endpoint is at most 1.

Membership in a closed subinterval [lo, hi].

A singleton closed interval [p, p] for p ∈ [0, 1].

@[simp]
theorem Cslib.GameTheory.UnitClosedInterval.mem_singleton {p : ℝ} {hp0 : 0 ≤ p} {hp1 : p ≤ 1} {x : ℝ} :
(singleton p hp0 hp1).mem x ↔ x = p

Closed intersection of two unit intervals, or none if disjoint.

A nonempty axis-aligned closed rectangle [wLo, wHi] × [vLo, vHi] ⊆ [0, 1]² ([Kea07], §7.3.2, p. 168).

Membership of (w, v) in an axis-aligned rectangle.

Multiaffine functions on hypercube boxes and edge-walk zero extraction #

Finite unions of affine half-lines on [0, 1] (at most 2 intervals) #

Finite Cartesian product of lists over a Fintype #

Binary graphical-game payoff difference and exact rectangular TreeNash #

@[irreducible]
noncomputable def Cslib.GameTheory.GraphicalGame.exactTreeNashTable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r v : ι) :

Downstream rectangular table of ExactTreeNash ([Kea07], §7.3.2, p. 168): recursively computes a finite list of axis-aligned closed rectangles in [0, 1]² representing the exact TreeNash table T(w, v) passed from non-root vertex v ≠ r to hT.parent r v.

theorem Cslib.GameTheory.GraphicalGame.mem_exactTreeNashTable_iff_treePassTable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) {v : ι} (hv : v ≠ r) (w pv : ℝ) :
(∃ R ∈ M.exactTreeNashTable hT r v, R.mem w pv) ↔ M.treePassTable hT r (fun (x : ι) => {x : Bool → ℝ | IsMixedStrategy x}) 0 v (boolMixed w) (boolMixed pv)

Exactness of exactTreeNashTable ([Kea07], §7.3.2, p. 168): the finite union of rectangles in exactTreeNashTable M hT r v coincides with the continuous TreeNash downstream table treePassTable for exact mixed Nash equilibria.

noncomputable def Cslib.GameTheory.GraphicalGame.subtreeCard {ι : Type u_1} [Fintype ι] {G : SimpleGraph ι} (hT : G.IsTree) (r v : ι) :

Number of vertices in the upstream subtree UP_G(v) = hT.treeSide v (hT.parent r v) for v ≠ r.

theorem Cslib.GameTheory.GraphicalGame.exactTreeNashTable_length_le_subtree {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) {v : ι} (hv : v ≠ r) :

Exponential rectangle-count bound for ExactTreeNash ([Kea07], §7.3.2, p. 168): the downstream rectangular table at v ≠ r contains at most 8 ^ subtreeCard hT r v rectangles (and hence at most 8 ^ Fintype.card ι rectangles).

theorem Cslib.GameTheory.GraphicalGame.exactTreeNashTable_length_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r v : ι) :

Global exponential bound (exactTreeNashTable M hT r v).length ≤ 8 ^ Fintype.card ι.

Root interval table of ExactTreeNash #

noncomputable def Cslib.GameTheory.GraphicalGame.exactTreeNashRootTable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) :

Root interval table of ExactTreeNash ([Kea07], §7.3.2, p. 168): computes a finite list of closed subintervals of [0, 1] whose union equals the set of all exact mixed Nash equilibrium probabilities for the root r.

theorem Cslib.GameTheory.GraphicalGame.mem_exactTreeNashRootTable_iff_rootPassTable {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) (pr : ℝ) :
(∃ I ∈ M.exactTreeNashRootTable hT r, I.mem pr) ↔ M.rootPassTable hT r (fun (x : ι) => {x : Bool → ℝ | IsMixedStrategy x}) 0 (boolMixed pr)

Exactness of exactTreeNashRootTable ([Kea07], §7.3.2, p. 168): the finite union of closed intervals in exactTreeNashRootTable M hT r coincides with rootPassTable.

Exponential upper bound on the number of closed intervals in exactTreeNashRootTable: at most 3 * 8 ^ (Fintype.card ι - 1) ≤ 8 ^ Fintype.card ι.

Nonemptiness of exactTreeNashRootTable (guaranteed by Nash's existence theorem).

Constructive upstream witness extraction and rationality #

noncomputable def Cslib.GameTheory.GraphicalGame.exactTreeNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) :
ι → Bool → ℝ

Exact mixed strategy profile computed by ExactTreeNash ([Kea07], §7.3.2 & Theorem 7.6, p. 168).

theorem Cslib.GameTheory.GraphicalGame.exactTreeNash_isMixedNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) :

Soundness of ExactTreeNash ([Kea07], Theorem 7.6, p. 168): exactTreeNash computes an exact mixed Nash equilibrium of any finite binary tree graphical game.

theorem Cslib.GameTheory.GraphicalGame.isMixedNash_iff_exactTreeNash {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) (p : ι → Bool → ℝ) :
M.toCostGame.IsMixedNash p ↔ (∀ (i : ι), IsMixedStrategy (p i)) ∧ (∃ I ∈ M.exactTreeNashRootTable hT r, I.mem (p r false)) ∧ (∀ (v : ι), v ≠ r → ∃ R ∈ M.exactTreeNashTable hT r v, R.mem (p (hT.parent r v) false) (p v false)) ∧ ∀ (i : ι), M.IsBestResponse i (p i) fun (j : ↑(M.graph.neighborSet i)) => p ↑j

Completeness and exact representation of all Nash equilibria ([Kea07], Theorem 7.6, p. 168): a binary mixed strategy profile p is an exact mixed Nash equilibrium of M.toCostGame if and only if p r false lies in exactTreeNashRootTable, every edge (hT.parent r v, v) lies in exactTreeNashTable, and every vertex plays a local best response to its neighbors.

Exact rationality over rational payoff matrices #

theorem Cslib.GameTheory.GraphicalGame.exactTreeNash_rational {ι : Type u_1} [Fintype ι] [DecidableEq ι] (M : GraphicalGame ι fun (x : ι) => Bool) (hT : M.graph.IsTree) (r : ι) (hrat : ∀ (i : ι) (u : ClosedNeighborhood M.graph i → Bool), M.localPayoff i u ∈ Set.range Rat.cast) (i : ι) (b : Bool) :

Rationality of ExactTreeNash over rational payoffs: if every local payoff of a finite binary tree graphical game M is rational, then every strategy coordinate of M.exactTreeNash is rational (yielding a rational exact mixed Nash equilibrium).