Documentation

CslibFrontier.GameTheory.Graphical.MarkovNetwork

Local Markov networks and tree correlated equilibria for graphical games #

This module formalizes [Kea07], §§7.4.2–7.4.3 (Definition 7.11, Lemma 7.12, Theorems 7.13 and 7.14, pp. 172–175), characterizing correlated equilibria of graphical games via local Markov networks and the polynomial-size local linear program on trees.

Boundary-support subtlety for Lemma 7.12 and Theorem 7.13 #

In [Kea07], §7.4.2 (pp. 172–174), Lemma 7.12 and Theorem 7.13 are stated without a positivity hypothesis on the joint distribution P. That unguarded statement is false at zero-support boundary distributions on non-chordal graphs: on the 4-cycle C₄ (SimpleGraph.cycleGraph 4) with binary actions Bool, there is a {0, 1}-payoff graphical game M and a correlated equilibrium σ (uniform on the four Hamming-weight-1 profiles) such that every τ with M.ExpectedPayoffEquiv τ σ equals σ, yet σ is not representable as a local Markov network on C₄ even with nonnegative potentials ψ_i ≥ 0 (exists_ce_not_expectedPayoffEquiv_isLocalMarkovNetwork_cycle4, exists_not_localNeighborhoodEquiv_isLocalMarkovNetwork_cycle4).

Accordingly, this module establishes all four facets faithfully:

  1. Definition 7.11 (p. 172): IsLocalMarkovNetwork (nonnegative potentials ψ_i ≥ 0, partition function Z > 0) and its strictly positive refinement IsPositiveLocalMarkovNetwork (ψ_i > 0), with normalized/unnormalized equivalence and complete-graph universality (isLocalMarkovNetwork_top).
  2. Checked C₄ counterexample: refutes the literal unguarded forms of Lemma 7.12 and Theorem 7.13 at zero-support boundary distributions.
  3. Positive-support Lemma 7.12 & Theorem 7.13 and general ε-approximation:
  4. Unconditional tree Markov networks and exact Theorem 7.14 (pp. 174–175):

Main definitions #

Main results #

References #

Private utilities on finite standard simplices #

1. Local Markov networks ([Kea07], Definition 7.11, p. 172) #

def Cslib.GameTheory.IsLocalMarkovNetwork {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :

A joint distribution σ is representable as a local Markov network with graph G ([Kea07], Definition 7.11, p. 172) if there exist nonnegative local potential functions ψ i : (∀ j : ClosedNeighborhood G i, S j.1) → ℝ (0 ≤ ψ i u) and a positive normalization constant Z > 0 such that σ.weights s = (∏ i, ψ i (fun j => s j.1)) / Z for every profile s.

def Cslib.GameTheory.IsPositiveLocalMarkovNetwork {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :

A joint distribution σ is representable as a strictly positive local Markov network with graph G if its potentials in Definition 7.11 ([Kea07], p. 172) are everywhere strictly positive (0 < ψ i u).

theorem Cslib.GameTheory.IsPositiveLocalMarkovNetwork.weights_pos {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] {G : SimpleGraph ι} {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (h : IsPositiveLocalMarkovNetwork G σ) (s : (i : ι) → S i) :
0 < σ.weights s
theorem Cslib.GameTheory.partition_eq_of_weights_eq_prod_div {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {G : SimpleGraph ι} {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} {ψ : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ} {Z : ℝ} (hZ : 0 < Z) (hfac : ∀ (s : (i : ι) → S i), σ.weights s = (∏ i : ι, ψ i fun (j : ClosedNeighborhood G i) => s ↑j) / Z) :
Z = ∑ s : (i : ι) → S i, ∏ i : ι, ψ i fun (j : ClosedNeighborhood G i) => s ↑j

On finite action sets, the normalization constant Z in IsLocalMarkovNetwork is uniquely determined as the partition function ∑ s, ∏ i, ψ i (fun j => s j.1) ([Kea07], Definition 7.11, p. 172).

theorem Cslib.GameTheory.isLocalMarkovNetwork_iff_exists_prod {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [Nonempty ι] {G : SimpleGraph ι} {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} :
IsLocalMarkovNetwork G σ ↔ ∃ (ψ : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ), (∀ (i : ι) (u : (j : ClosedNeighborhood G i) → S ↑j), 0 ≤ ψ i u) ∧ ∀ (s : (i : ι) → S i), σ.weights s = ∏ i : ι, ψ i fun (j : ClosedNeighborhood G i) => s ↑j

On a nonempty player set, absorbing Z⁻¹ into a single vertex's potential yields an equivalent unnormalized factorization for IsLocalMarkovNetwork.

theorem Cslib.GameTheory.isPositiveLocalMarkovNetwork_iff_exists_prod {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [Nonempty ι] {G : SimpleGraph ι} {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} :
IsPositiveLocalMarkovNetwork G σ ↔ ∃ (ψ : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ), (∀ (i : ι) (u : (j : ClosedNeighborhood G i) → S ↑j), 0 < ψ i u) ∧ ∀ (s : (i : ι) → S i), σ.weights s = ∏ i : ι, ψ i fun (j : ClosedNeighborhood G i) => s ↑j

Unnormalized characterization of IsPositiveLocalMarkovNetwork on a nonempty player set.

theorem Cslib.GameTheory.IsLocalMarkovNetwork.mono {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] {G H : SimpleGraph ι} (hGH : G ≤ H) {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (h : IsLocalMarkovNetwork G σ) :

Adding edges preserves representability as a local Markov network.

theorem Cslib.GameTheory.isLocalMarkovNetwork_top {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :

Every joint distribution is representable as a local Markov network on the complete graph ⊤ ([Kea07], §7.4.2 remark after Definition 7.11, p. 172).

2. Boundary counterexample on C₄ (refuting literal Lemma 7.12 & Theorem 7.13) #

Boundary counterexample on C₄ refuting literal Lemma 7.12 and Theorem 7.13 (contrast [Kea07], §7.4.2, pp. 172–174): on the 4-cycle C₄ = SimpleGraph.cycleGraph 4 with binary actions Bool, there exists a {0, 1}-payoff graphical game M and a correlated equilibrium σ (uniform on the four Hamming-weight-1 profiles) such that every distribution τ with M.ExpectedPayoffEquiv τ σ equals σ, yet σ is not representable as a local Markov network on C₄ (even with nonnegative potentials ψ_i ≥ 0).

Boundary counterexample on C₄ refuting literal Lemma 7.12 ([Kea07], §7.4.2, p. 172): there exists a joint distribution σ on C₄ with binary actions for which no local Markov network τ on C₄ is local-neighborhood equivalent to σ.

3. Positive-support Lemma 7.12 & Theorem 7.13 via maximum entropy #

theorem Cslib.GameTheory.exists_isPositiveLocalMarkovNetwork_of_exists_pos {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [∀ (i : ι), Finite (S i)] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) (hpos : ∃ (τ₀ : Convexity.StdSimplex ℝ ((i : ι) → S i)), LocalNeighborhoodEquiv G τ₀ σ ∧ ∀ (s : (i : ι) → S i), 0 < τ₀.weights s) :

Positive-support Lemma 7.12 ([Kea07], §7.4.2, pp. 172–174): if σ admits a strictly positive local-neighborhood equivalent distribution τ₀ with respect to G, then the maximum Shannon-entropy distribution in {τ | LocalNeighborhoodEquiv G τ σ} is a strictly positive local Markov network with graph G. (The positivity hypothesis is necessary on non-chordal graphs by exists_not_localNeighborhoodEquiv_isLocalMarkovNetwork_cycle4.)

theorem Cslib.GameTheory.exists_isPositiveLocalMarkovNetwork_of_pos {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [∀ (i : ι), Finite (S i)] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) (hpos : ∀ (s : (i : ι) → S i), 0 < σ.weights s) :

Special case of exists_isPositiveLocalMarkovNetwork_of_exists_pos when σ itself has strictly positive weights everywhere.

theorem Cslib.GameTheory.GraphicalGame.exists_isPositiveLocalMarkovNetwork_ce_of_exists_pos {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [∀ (i : ι), Finite (S i)] [DecidableEq ι] (M : GraphicalGame ι S) {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (hce : M.toCostGame.IsCorrelatedEquilibrium σ) (hpos : ∃ (τ₀ : Convexity.StdSimplex ℝ ((i : ι) → S i)), LocalNeighborhoodEquiv M.graph τ₀ σ ∧ ∀ (s : (i : ι) → S i), 0 < τ₀.weights s) :

Positive-support Theorem 7.13 ([Kea07], §7.4.2, p. 174): for any finite graphical game M and correlated equilibrium σ admitting a strictly positive local-neighborhood equivalent distribution, there exists a strictly positive local Markov network τ on M.graph that is a correlated equilibrium of M.toCostGame and is both local-neighborhood and expected-payoff equivalent to σ. (The positivity hypothesis is necessary on general graphs by exists_ce_not_expectedPayoffEquiv_isLocalMarkovNetwork_cycle4.)

4. General ε-approximate local Markov network closure (zeros allowed) #

theorem Cslib.GameTheory.exists_isPositiveLocalMarkovNetwork_neighborhoodMarginal_approx {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [∀ (i : ι), Finite (S i)] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) {ε : ℝ} (hε : 0 < ε) :
∃ (τ : Convexity.StdSimplex ℝ ((i : ι) → S i)), IsPositiveLocalMarkovNetwork G τ ∧ ∀ (i : ι) (u : (j : ClosedNeighborhood G i) → S ↑j), |neighborhoodMarginal G τ i u - neighborhoodMarginal G σ i u| ≤ ε

Approximate closure of local Markov networks: for any finite graph G, any joint distribution σ (without any positivity assumption), and any ε > 0, there exists a strictly positive local Markov network τ on G whose closed-neighborhood marginals approximate those of σ within ε.

theorem Cslib.GameTheory.GraphicalGame.exists_isPositiveLocalMarkovNetwork_isApproxCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [∀ (i : ι), Finite (S i)] [DecidableEq ι] (M : GraphicalGame ι S) {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (hce : M.toCostGame.IsCorrelatedEquilibrium σ) {ε : ℝ} (hε : 0 < ε) :
∃ (τ : Convexity.StdSimplex ℝ ((i : ι) → S i)), IsPositiveLocalMarkovNetwork M.graph τ ∧ M.toCostGame.IsApproxCorrelatedEquilibrium (fun (x : ι) => ε) τ ∧ (∀ (i : ι), |(τ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s) - σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s| ≤ ε) ∧ ∀ (i : ι) (u : (j : ClosedNeighborhood M.graph i) → S ↑j), |neighborhoodMarginal M.graph τ i u - neighborhoodMarginal M.graph σ i u| ≤ ε

ε-approximate Theorem 7.13 for arbitrary correlated equilibria (zeros allowed): for every finite graphical game M, every correlated equilibrium σ of M.toCostGame (without any positivity hypothesis), and every ε > 0, there exists a strictly positive local Markov network τ on M.graph that is an ε-approximate correlated equilibrium of M.toCostGame whose expected payoffs and local neighborhood marginals are within ε of σ.

5. Local marginal consistency, junction-tree lifting, and Theorem 7.14 #

noncomputable def Cslib.GameTheory.restrictMarginal {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) (i : ι) (T : Set ι) (hT : ∀ k ∈ T, k = i ∨ G.Adj i k) (y : (k : ↑T) → S ↑k) :

Marginal of a local neighborhood family q at vertex i on an arbitrary subset T ⊆ ClosedNeighborhood G i.

theorem Cslib.GameTheory.restrictMarginal_def {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) [DecidableRel G.Adj] [DecidableEq ι] (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) (i : ι) (T : Set ι) (hT : ∀ k ∈ T, k = i ∨ G.Adj i k) [DecidableEq ((k : ↑T) → S ↑k)] (y : (k : ↑T) → S ↑k) :
restrictMarginal G q i T hT y = ∑ u : (j : ClosedNeighborhood G i) → S ↑j, if (fun (k : ↑T) => u ⟨↑k, ⋯⟩) = y then q i u else 0
noncomputable def Cslib.GameTheory.edgeMarginal {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) (i j : ι) (hadj : G.Adj i j) (a : S i) (b : S j) :

Edge marginal induced by q i on {i, j} for an edge G.Adj i j.

theorem Cslib.GameTheory.edgeMarginal_def {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) [DecidableRel G.Adj] [DecidableEq ι] (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) (i j : ι) (hadj : G.Adj i j) [DecidableEq (S i)] [DecidableEq (S j)] (a : S i) (b : S j) :
edgeMarginal G q i j hadj a b = ∑ u : (k : ClosedNeighborhood G i) → S ↑k, if u ⟨i, ⋯⟩ = a ∧ u ⟨j, ⋯⟩ = b then q i u else 0
def Cslib.GameTheory.IsLocalDistribution {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) :

Local distribution constraints ([Kea07], §7.4.3, constraint (ii), p. 175): each q i is nonnegative and sums to 1 over ClosedNeighborhood G i.

def Cslib.GameTheory.IsEdgeConsistent {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) :

Edge consistency: for every edge G.Adj i j, the {i, j}-marginals of q i and q j agree. On trees, this is equivalent to full intersection consistency (IsIntersectionConsistent).

def Cslib.GameTheory.IsIntersectionConsistent {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ) :

Intersection consistency constraints ([Kea07], §7.4.3, constraint (iii), p. 175): for all players i and j, q i and q j induce the same marginal distribution on N_G(i) ∩ N_G(j).

def Cslib.GameTheory.GraphicalGame.SatisfiesLocalCE {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (q : (i : ι) → ((j : ClosedNeighborhood M.graph i) → S ↑j) → ℝ) :

Local correlated-equilibrium incentive constraints ([Kea07], §7.4.3, constraint (i), p. 175): for every player i, recommended action a, and deviation b, switching from a to b does not increase player i's local expected payoff under q i.

def Cslib.GameTheory.GraphicalGame.IsLocalCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (M : GraphicalGame ι S) (q : (i : ι) → ((j : ClosedNeighborhood M.graph i) → S ↑j) → ℝ) :

Kearns's local correlated-equilibrium linear program ([Kea07], §7.4.3, constraints (i)–(iii), p. 175): a family of local neighborhood distributions satisfying local CE incentive constraints, simplex constraints, and pairwise neighborhood-intersection consistency.

Private junction-tree lifting construction on finite trees #

Public junction-tree lifting, tree Markov networks, and Theorem 7.14 #

theorem Cslib.GameTheory.treeLift_exists_isLocalMarkovNetwork {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] {G : SimpleGraph ι} (hT : G.IsTree) {q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ} (hloc : IsLocalDistribution G q) (hedge : IsEdgeConsistent G q) :
∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), IsLocalMarkovNetwork G σ ∧ ∀ (i : ι) (u : (j : ClosedNeighborhood G i) → S ↑j), neighborhoodMarginal G σ i u = q i u

Junction-tree lifting on finite trees (zeros allowed, no positivity required): given any finite tree hT : G.IsTree and any locally normalized, edge-consistent family q on closed neighborhoods of G, there exists a global joint distribution σ that is a nonnegative local Markov network on G and realizes q as its exact closed-neighborhood marginals.

theorem Cslib.GameTheory.isLocalDistribution_neighborhoodMarginal {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :

Every global joint distribution induces locally normalized, edge-consistent, and intersection-consistent neighborhood marginals on any graph G.

theorem Cslib.GameTheory.isEdgeConsistent_neighborhoodMarginal {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :
theorem Cslib.GameTheory.isIntersectionConsistent_neighborhoodMarginal {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] (G : SimpleGraph ι) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :
theorem Cslib.GameTheory.isIntersectionConsistent_iff_isEdgeConsistent_of_isTree {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] {G : SimpleGraph ι} (hT : G.IsTree) {q : (i : ι) → ((j : ClosedNeighborhood G i) → S ↑j) → ℝ} (hloc : IsLocalDistribution G q) :

On any finite tree G, full neighborhood-intersection consistency is equivalent to edge consistency for locally normalized families q.

theorem Cslib.GameTheory.exists_isLocalMarkovNetwork_of_isTree {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [∀ (i : ι), Finite (S i)] {G : SimpleGraph ι} (hT : G.IsTree) (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)) :
∃ (τ : Convexity.StdSimplex ℝ ((i : ι) → S i)), LocalNeighborhoodEquiv G τ σ ∧ IsLocalMarkovNetwork G τ

Unconditional Lemma 7.12 on all finite trees (no positivity hypothesis; zeros allowed): on any finite tree G, every joint distribution σ is local-neighborhood equivalent to a nonnegative local Markov network τ on G.

Unconditional Theorem 7.13 on all finite trees (no positivity hypothesis; zeros allowed): for any finite tree graphical game M and any correlated equilibrium σ of M.toCostGame, there exists a local Markov network τ on M.graph that is a correlated equilibrium of M.toCostGame, local-neighborhood equivalent to σ, and expected-payoff equivalent to σ.

theorem Cslib.GameTheory.GraphicalGame.isLocalCorrelatedEquilibrium_neighborhoodMarginal {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] [DecidableEq ι] (M : GraphicalGame ι S) {σ : Convexity.StdSimplex ℝ ((i : ι) → S i)} (hce : M.toCostGame.IsCorrelatedEquilibrium σ) :
M.IsLocalCorrelatedEquilibrium (neighborhoodMarginal M.graph σ) ∧ IsEdgeConsistent M.graph (neighborhoodMarginal M.graph σ) ∧ ∀ (i : ι), (σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s) = ∑ u : (j : ClosedNeighborhood M.graph i) → S ↑j, neighborhoodMarginal M.graph σ i u * M.localPayoff i u

Completeness of Kearns's local CE linear program ([Kea07], §7.4.3, p. 175): for any finite graphical game M (on an arbitrary graph) and any correlated equilibrium σ of M.toCostGame, its closed-neighborhood marginals satisfy M.IsLocalCorrelatedEquilibrium (and IsEdgeConsistent), and every player's expected payoff equals its local marginal expectation.

theorem Cslib.GameTheory.GraphicalGame.exists_isCorrelatedEquilibrium_of_edgeConsistent {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] [DecidableEq ι] (M : GraphicalGame ι S) (hT : M.graph.IsTree) {q : (i : ι) → ((j : ClosedNeighborhood M.graph i) → S ↑j) → ℝ} (hce : M.SatisfiesLocalCE q) (hloc : IsLocalDistribution M.graph q) (hedge : IsEdgeConsistent M.graph q) :
∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), M.toCostGame.IsCorrelatedEquilibrium σ ∧ IsLocalMarkovNetwork M.graph σ ∧ (∀ (i : ι) (u : (j : ClosedNeighborhood M.graph i) → S ↑j), neighborhoodMarginal M.graph σ i u = q i u) ∧ (∀ (i : ι), (σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s) = ∑ u : (j : ClosedNeighborhood M.graph i) → S ↑j, q i u * M.localPayoff i u) ∧ (∑ i : ι, σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s) = ∑ i : ι, ∑ u : (j : ClosedNeighborhood M.graph i) → S ↑j, q i u * M.localPayoff i u

Soundness of edge-consistent local tree CE linear program (sharper form of [Kea07], Theorem 7.14, p. 175): on any finite tree graphical game M (hT : M.graph.IsTree), every locally normalized, edge-consistent solution q to the local CE constraints lifts to a global correlated equilibrium σ of M.toCostGame that is a nonnegative local Markov network on M.graph, realizes q as its exact closed-neighborhood marginals, and matches every player's expected payoff and social welfare.

theorem Cslib.GameTheory.GraphicalGame.exists_isCorrelatedEquilibrium_of_isLocalCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] [DecidableEq ι] (M : GraphicalGame ι S) (hT : M.graph.IsTree) {q : (i : ι) → ((j : ClosedNeighborhood M.graph i) → S ↑j) → ℝ} (hq : M.IsLocalCorrelatedEquilibrium q) :
∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), M.toCostGame.IsCorrelatedEquilibrium σ ∧ IsLocalMarkovNetwork M.graph σ ∧ (∀ (i : ι) (u : (j : ClosedNeighborhood M.graph i) → S ↑j), neighborhoodMarginal M.graph σ i u = q i u) ∧ (∀ (i : ι), (σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s) = ∑ u : (j : ClosedNeighborhood M.graph i) → S ↑j, q i u * M.localPayoff i u) ∧ (∑ i : ι, σ.sum fun (s : (i : ι) → S i) (w : ℝ) => w * M.payoff i s) = ∑ i : ι, ∑ u : (j : ClosedNeighborhood M.graph i) → S ↑j, q i u * M.localPayoff i u

Theorem 7.14 ([Kea07], §7.4.3, p. 175): for any finite tree graphical game (G, M), every feasible solution q to Kearns's local correlated-equilibrium linear program (M.IsLocalCorrelatedEquilibrium q, constraints (i)–(iii)) lifts to a global correlated equilibrium σ of M.toCostGame (represented as a nonnegative local Markov network on M.graph) with identical closed-neighborhood marginals, per-player expected payoffs, and social welfare.

theorem Cslib.GameTheory.GraphicalGame.isLocalCorrelatedEquilibrium_iff_exists_isCorrelatedEquilibrium {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] [DecidableEq ι] (M : GraphicalGame ι S) (hT : M.graph.IsTree) {q : (i : ι) → ((j : ClosedNeighborhood M.graph i) → S ↑j) → ℝ} :
M.IsLocalCorrelatedEquilibrium q ↔ ∃ (σ : Convexity.StdSimplex ℝ ((i : ι) → S i)), M.toCostGame.IsCorrelatedEquilibrium σ ∧ ∀ (i : ι) (u : (j : ClosedNeighborhood M.graph i) → S ↑j), neighborhoodMarginal M.graph σ i u = q i u

Exact soundness and completeness characterization on trees ([Kea07], Theorem 7.14, p. 175): on a finite tree graphical game M, a local marginal family q satisfies M.IsLocalCorrelatedEquilibrium q if and only if it is the family of closed-neighborhood marginals of some global correlated equilibrium σ of M.toCostGame.

theorem Cslib.GameTheory.GraphicalGame.treeLocalCE_size_bounds {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [(i : ι) → Fintype (S i)] [DecidableEq ι] (M : GraphicalGame ι S) [DecidableRel M.graph.Adj] (hT : M.graph.IsTree) {m d : ℕ} (hm : ∀ (i : ι), Fintype.card (S i) ≤ m) (hd : ∀ (i : ι), M.graph.degree i ≤ d) :
Fintype.card ((i : ι) × ((j : ClosedNeighborhood M.graph i) → S ↑j)) = M.tableEntries ∧ M.tableEntries ≤ Fintype.card ι * m ^ (d + 1) ∧ Fintype.card ((i : ι) × S i × S i) ≤ Fintype.card ι * m ^ 2 ∧ Fintype.card ((e : M.graph.Dart) × S e.toProd.1 × S e.toProd.2) ≤ 2 * (Fintype.card ι - 1) * m ^ 2

Polynomial size bounds for the tree local CE linear program ([Kea07], §7.4.3, p. 175): when every player has at most m pure strategies and degree at most d in a tree M.graph:

  1. the LP has exactly M.tableEntries ≤ |ι| * m ^ (d + 1) variables (linear in |ι|, exponential only in d + 1);
  2. there are at most |ι| * m ^ 2 local CE incentive inequalities; and
  3. there are at most 2 * (|ι| - 1) * m ^ 2 directed edge-consistency equations (which suffice for full intersection consistency on trees by isIntersectionConsistent_iff_isEdgeConsistent_of_isTree).