Documentation

CslibFrontier.GameTheory.Strategic.PotentialCharacterization

Characterizations of potential games #

This module completes the structural characterizations of Section 2 of Monderer and Shapley [MS96] for strategic games in cost-minimization form (extending CslibFrontier.GameTheory.Strategic.Potential):

  1. Weighted potentials and tie-free FIP ([MS96], equation (2.2), p. 127, and Corollary 2.6, p. 130): a w-potential with positive weights w i > 0 induces an ordinal potential (hence the finite improvement property and pure Nash equilibrium existence on finite games), two w-potentials for nonzero weights differ by a constant, and a finite game with the FIP and no unilateral cost ties admits an ordinal potential.
  2. Coordination–dummy decomposition: a strategic game admits an exact potential if and only if it decomposes additively into a coordination (common-cost) game and a dummy game in which no player's choice affects its own cost.
  3. Path-integral and four-cycle characterizations ([MS96], Theorem 2.8 and Corollary 2.9, pp. 130–131, and Appendix A, pp. 138–139): for a game with finitely many players, admitting an exact potential is equivalent to the vanishing of the unilateral deviation path integral I(γ, G) on all closed unilateral paths, on all simple closed unilateral paths, on all simple closed unilateral paths of length 4, and to the explicit pairwise 2 × 2 rectangle curl-zero criterion (CostGame.FourCycleZero). Given a base profile z, potentialOfBase gives the explicit coordinate-sweep potential H(y) of [MS96], Lemma 2.7, p. 130.
  4. Mixed-extension characterization ([MS96], Lemma 2.10, pp. 131–132): a finite game is a w-potential (or exact potential) game if and only if its mixed extension is, with multilinear potential mixedPotential Φ p = ∑ s, productWeight p s * Φ s (equation (2.4), p. 132).

Main definitions #

Main results #

References #

def Cslib.GameTheory.CostGame.IsWeightedPotential {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (w : ι → ℝ) (Φ : ((i : ι) → S i) → ℝ) :

Φ is a w-potential (weighted potential) for G with player weights w : ι → ℝ ([MS96], equation (2.2), p. 127, written for costs): every unilateral deviation by player i changes player i's cost by w i times the change in Φ. (Unlike equation (2.2), positivity 0 < w i is omitted from this predicate so that exists_isWeightedPotential_mixedExtension_iff holds for arbitrary w : ι → ℝ, and is supplied as an explicit hypothesis where needed.)

def Cslib.GameTheory.CostGame.IsCoordination {ι : Type u_1} {S : ι → Type u_2} (G : CostGame ι S) :

G is a coordination (common-cost) game if all players share the same cost function.

def Cslib.GameTheory.CostGame.IsDummy {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) :

G is a dummy game if no player's unilateral deviation changes its own cost.

@[simp]
theorem Cslib.GameTheory.CostGame.isWeightedPotential_one_iff {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {Φ : ((i : ι) → S i) → ℝ} :
G.IsWeightedPotential (fun (x : ι) => 1) Φ ↔ G.IsExactPotential Φ
theorem Cslib.GameTheory.CostGame.IsWeightedPotential.isOrdinalPotential {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {w : ι → ℝ} {Φ : ((i : ι) → S i) → ℝ} (hw : ∀ (i : ι), 0 < w i) (h : G.IsWeightedPotential w Φ) :

A w-potential with positive weights 0 < w i is an ordinal potential ([MS96], Section 2, pp. 127–128).

theorem Cslib.GameTheory.CostGame.IsWeightedPotential.hasFIP {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} [Finite ((i : ι) → S i)] {w : ι → ℝ} {Φ : ((i : ι) → S i) → ℝ} (hw : ∀ (i : ι), 0 < w i) (h : G.IsWeightedPotential w Φ) :

A finite game with a positive-weight w-potential has the finite improvement property.

theorem Cslib.GameTheory.CostGame.IsWeightedPotential.exists_isPureNash {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} [Finite ((i : ι) → S i)] [Nonempty ((i : ι) → S i)] {w : ι → ℝ} {Φ : ((i : ι) → S i) → ℝ} (hw : ∀ (i : ι), 0 < w i) (h : G.IsWeightedPotential w Φ) :
∃ (s : (i : ι) → S i), G.IsPureNash s

A finite nonempty game with a positive-weight w-potential has a pure Nash equilibrium.

theorem Cslib.GameTheory.CostGame.IsWeightedPotential.isExactPotential_div {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {w : ι → ℝ} {Φ : ((i : ι) → S i) → ℝ} (hw : ∀ (i : ι), w i ≠ 0) (h : G.IsWeightedPotential w Φ) :
{ cost := fun (i : ι) (s : (i : ι) → S i) => G.cost i s / w i }.IsExactPotential Φ

Rescaling each player's cost by 1 / w i turns a w-potential with nonzero weights into an exact potential.

theorem Cslib.GameTheory.CostGame.IsWeightedPotential.sub_eq_sub {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} [Finite ι] {w : ι → ℝ} {Φ Ψ : ((i : ι) → S i) → ℝ} (hw : ∀ (i : ι), w i ≠ 0) (hΦ : G.IsWeightedPotential w Φ) (hΨ : G.IsWeightedPotential w Ψ) (s t : (i : ι) → S i) :
Φ s - Ψ s = Φ t - Ψ t

With finitely many players, two w-potentials for the same nonzero weights differ by an additive constant (weighted extension of [MS96], Lemma 2.7, p. 130).

theorem Cslib.GameTheory.CostGame.IsGeneralizedOrdinalPotential.isOrdinalPotential_of_ne {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {Φ : ((i : ι) → S i) → ℝ} (hΦ : G.IsGeneralizedOrdinalPotential Φ) (hne : ∀ (i : ι) (s : (a : ι) → S a) (a b : S i), a ≠ b → G.cost i (Function.update s i a) ≠ G.cost i (Function.update s i b)) :

When no player is indifferent between distinct unilateral actions, every generalized ordinal potential is an ordinal potential ([MS96], proof of Corollary 2.6, p. 130).

theorem Cslib.GameTheory.CostGame.exists_isOrdinalPotential_of_hasFIP {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) [Finite ((i : ι) → S i)] (hFIP : G.HasFIP) (hne : ∀ (i : ι) (s : (a : ι) → S a) (a b : S i), a ≠ b → G.cost i (Function.update s i a) ≠ G.cost i (Function.update s i b)) :
∃ (Φ : ((i : ι) → S i) → ℝ), G.IsOrdinalPotential Φ

[MS96], Corollary 2.6 (p. 130): a finite game with the finite improvement property in which distinct unilateral deviations never yield equal costs admits an ordinal potential.

theorem Cslib.GameTheory.CostGame.exists_isExactPotential_iff_coordination_add_dummy {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) :
(∃ (Φ : ((i : ι) → S i) → ℝ), G.IsExactPotential Φ) ↔ ∃ (C : CostGame ι S) (D : CostGame ι S), C.IsCoordination ∧ D.IsDummy ∧ ∀ (i : ι) (s : (i : ι) → S i), G.cost i s = C.cost i s + D.cost i s

Coordination–dummy decomposition of exact potential games: G admits an exact potential if and only if G decomposes as the pointwise sum of a coordination game C and a dummy game D.

Unilateral deviation paths, Theorem 2.8, and Corollary 2.9 #

def Cslib.GameTheory.CostGame.IsUnilateralStep {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (i : ι) (s t : (k : ι) → S k) :

IsUnilateralStep i s t holds when t is obtained from s by a nontrivial unilateral deviation of player i (t = update s i (t i) and s i ≠ t i), so i is the unique deviating player ([MS96], Section 2, p. 128).

theorem Cslib.GameTheory.CostGame.IsUnilateralStep.eq_of_isUnilateralStep {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {i j : ι} {s t : (k : ι) → S k} (hi : IsUnilateralStep i s t) (hj : IsUnilateralStep j s t) :
i = j

The deviating player of a unilateral step is uniquely determined by its endpoints.

structure Cslib.GameTheory.CostGame.PathStep (ι : Type u_3) (S : ι → Type u_4) :
Type (max u_3 u_4)

One transition (player, profile) along a finite unilateral deviation path.

  • player : ι

    The unique player deviating at this transition.

  • profile (i : ι) : S i

    The strategy profile reached after the deviation.

def Cslib.GameTheory.CostGame.IsStepChain {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] :
((i : ι) → S i) → List (PathStep ι S) → Prop

Recursive step-chain validity predicate from an initial profile s.

def Cslib.GameTheory.CostGame.stepLast {ι : Type u_1} {S : ι → Type u_2} :
((i : ι) → S i) → List (PathStep ι S) → (i : ι) → S i

Terminal profile reached from s after following a list of steps.

def Cslib.GameTheory.CostGame.stepInitialVertices {ι : Type u_1} {S : ι → Type u_2} :
((i : ι) → S i) → List (PathStep ι S) → List ((i : ι) → S i)

Initial vertices [y₀, y₁, …, y_{N - 1}] traversed before each step; for a closed path of length N ≥ 1, distinctness of these N profiles defines a simple closed path ([MS96], p. 131).

structure Cslib.GameTheory.CostGame.UnilateralPath (ι : Type u_3) (S : ι → Type u_4) [DecidableEq ι] :
Type (max u_3 u_4)

A finite unilateral deviation path γ = (y₀, y₁, …, y_N) in strategy space ([MS96], Section 2, pp. 128, 130–131).

  • start (i : ι) : S i

    Initial strategy profile y₀.

  • steps : List (PathStep ι S)

    Finite list of unilateral transitions (i₁, y₁), …, (i_N, y_N).

  • valid : IsStepChain self.start self.steps

    Every transition is a nontrivial unilateral deviation from the previous profile.

Number of transitions N in γ ([MS96], p. 131).

def Cslib.GameTheory.CostGame.UnilateralPath.last {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (γ : UnilateralPath ι S) (i : ι) :
S i

Terminal strategy profile y_N of γ.

def Cslib.GameTheory.CostGame.UnilateralPath.initialVertices {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (γ : UnilateralPath ι S) :
List ((i : ι) → S i)

Initial vertex list [y₀, y₁, …, y_{N - 1}] of length γ.length.

γ is closed if its terminal profile equals its initial profile (y_N = y₀, [MS96], p. 131).

γ is a simple closed path if it is closed and its N initial profiles y₀, …, y_{N - 1} are pairwise distinct ([MS96], p. 131).

def Cslib.GameTheory.CostGame.stepIntegral {ι : Type u_1} {S : ι → Type u_2} (G : CostGame ι S) :
((i : ι) → S i) → List (PathStep ι S) → ℝ

Recursive unilateral cost sum along a step list from s.

def Cslib.GameTheory.CostGame.pathIntegral {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) (γ : UnilateralPath ι S) :

Path integral I(γ, G) of unilateral cost changes along γ ([MS96], Section 2, p. 130, written for costs): ∑_{k = 1}^N (cost i_k y_k - cost i_k y_{k - 1}).

def Cslib.GameTheory.CostGame.FourCycleZero {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] (G : CostGame ι S) :

Monderer–Shapley four-cycle curl-zero condition ([MS96], Corollary 2.9, p. 131): for any two distinct players i ≠ j, fixed opponent profile s, and strategies xᵢ, yᵢ : S i, xⱼ, yⱼ : S j, the sum of unilateral cost changes around the 2 × 2 rectangle A → B → C → D → A vanishes. (Monderer and Shapley write A = (xᵢ, xⱼ, a) for a ∈ Y^{-{i,j}}, implicitly taking i ≠ j.)

theorem Cslib.GameTheory.CostGame.IsExactPotential.pathIntegral_eq {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {Φ : ((i : ι) → S i) → ℝ} (hΦ : G.IsExactPotential Φ) (γ : UnilateralPath ι S) :
G.pathIntegral γ = Φ γ.last - Φ γ.start

Along any unilateral path γ, an exact potential Φ telescopes G.pathIntegral γ to Φ γ.last - Φ γ.start ([MS96], Appendix A, p. 138).

theorem Cslib.GameTheory.CostGame.IsExactPotential.pathIntegral_eq_zero_of_isClosed {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] {G : CostGame ι S} {Φ : ((i : ι) → S i) → ℝ} (hΦ : G.IsExactPotential Φ) {γ : UnilateralPath ι S} (hγ : γ.IsClosed) :

In an exact potential game, G.pathIntegral γ = 0 on every closed unilateral path γ.

noncomputable def Cslib.GameTheory.CostGame.potentialOfBase {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] (G : CostGame ι S) (z s : (i : ι) → S i) :

Explicit coordinate-sweep potential H(s) anchored at a base profile z ([MS96], proof of Lemma 2.7, p. 130): sums the unilateral cost changes as z's coordinates are replaced one player at a time by s's. Under FourCycleZero, the sum is independent of the player ordering and defines an exact potential.

theorem Cslib.GameTheory.CostGame.FourCycleZero.isExactPotential_potentialOfBase {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] {G : CostGame ι S} (h : G.FourCycleZero) (z : (i : ι) → S i) :

Under G.FourCycleZero, G.potentialOfBase z is an exact potential of G with value 0 at z.

@[simp]
theorem Cslib.GameTheory.CostGame.potentialOfBase_self {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Fintype ι] (G : CostGame ι S) (z : (i : ι) → S i) :
theorem Cslib.GameTheory.CostGame.exists_isExactPotential_iff_fourCycleZero {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ι] {G : CostGame ι S} :
(∃ (Φ : ((i : ι) → S i) → ℝ), G.IsExactPotential Φ) ↔ G.FourCycleZero

[MS96], Corollary 2.9 (p. 131): a strategic game with finitely many players admits an exact potential if and only if its four-cycle curl FourCycleZero vanishes on every two-player 2 × 2 strategy rectangle.

theorem Cslib.GameTheory.CostGame.exists_isExactPotential_iff_closedPath {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ι] {G : CostGame ι S} :
(∃ (Φ : ((i : ι) → S i) → ℝ), G.IsExactPotential Φ) ↔ ∀ (γ : UnilateralPath ι S), γ.IsClosed → G.pathIntegral γ = 0

[MS96], Theorem 2.8, (1) ↔ (2) (p. 131): a game with finitely many players is an exact potential game if and only if G.pathIntegral γ = 0 for every finite closed unilateral path γ.

theorem Cslib.GameTheory.CostGame.exists_isExactPotential_iff_simpleClosedPath {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ι] {G : CostGame ι S} :
(∃ (Φ : ((i : ι) → S i) → ℝ), G.IsExactPotential Φ) ↔ ∀ (γ : UnilateralPath ι S), γ.IsSimpleClosed → G.pathIntegral γ = 0

[MS96], Theorem 2.8, (1) ↔ (3) (p. 131): a game with finitely many players is an exact potential game if and only if G.pathIntegral γ = 0 for every finite simple closed unilateral path γ.

theorem Cslib.GameTheory.CostGame.exists_isExactPotential_iff_simpleClosedPath_four {ι : Type u_1} {S : ι → Type u_2} [DecidableEq ι] [Finite ι] {G : CostGame ι S} :
(∃ (Φ : ((i : ι) → S i) → ℝ), G.IsExactPotential Φ) ↔ ∀ (γ : UnilateralPath ι S), γ.IsSimpleClosed → γ.length = 4 → G.pathIntegral γ = 0

[MS96], Theorem 2.8, (1) ↔ (4) (p. 131): a game with finitely many players is an exact potential game if and only if G.pathIntegral γ = 0 for every finite simple closed unilateral path γ of length 4.

Mixed extension of weighted and exact potential games (Lemma 2.10) #

def Cslib.GameTheory.CostGame.mixedPotential {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (Φ : ((i : ι) → S i) → ℝ) (p : (i : ι) → S i → ℝ) :

Multilinear mixed potential Φ̄(p) = ∑ s, productWeight p s * Φ s extending Φ to mixed strategy profiles ([MS96], equation (2.4), p. 132).

theorem Cslib.GameTheory.CostGame.mixedPotential_def {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (Φ : ((i : ι) → S i) → ℝ) (p : (i : ι) → S i → ℝ) :
mixedPotential Φ p = ∑ s : (i : ι) → S i, productWeight p s * Φ s
def Cslib.GameTheory.CostGame.mixedExtension {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) :
CostGame ι fun (i : ι) => { q : S i → ℝ // IsMixedStrategy q }

The mixed extension of a finite cost game G: player i's strategy set is the simplex { q : S i → ℝ // IsMixedStrategy q } of mixed strategies, with expected cost G.expectedCost.

theorem Cslib.GameTheory.CostGame.IsWeightedPotential.expectedCost_update_sub {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {G : CostGame ι S} {w : ι → ℝ} {Φ : ((i : ι) → S i) → ℝ} (hΦ : G.IsWeightedPotential w Φ) {p : (i : ι) → S i → ℝ} (hp : ∀ (j : ι), ∑ a : S j, p j a = 1) (i : ι) {q : S i → ℝ} (hq : ∑ a : S i, q a = 1) :

If Φ is a w-potential for G, then unilateral mixed deviations change player i's expected cost by w i times the change in mixedPotential Φ.

theorem Cslib.GameTheory.CostGame.IsWeightedPotential.mixedExtension {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {G : CostGame ι S} {w : ι → ℝ} {Φ : ((i : ι) → S i) → ℝ} (hΦ : G.IsWeightedPotential w Φ) :
G.mixedExtension.IsWeightedPotential w fun (p : (i : ι) → { q : S i → ℝ // IsMixedStrategy q }) => mixedPotential Φ fun (j : ι) => ↑(p j)

If Φ is a w-potential for G, then fun p => mixedPotential Φ (fun j => (p j).1) is a w-potential for G.mixedExtension ([MS96], equation (2.4), p. 132).

theorem Cslib.GameTheory.CostGame.exists_isWeightedPotential_mixedExtension_iff {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {G : CostGame ι S} {w : ι → ℝ} :
(∃ (Ψ : ((i : ι) → { q : S i → ℝ // IsMixedStrategy q }) → ℝ), G.mixedExtension.IsWeightedPotential w Ψ) ↔ ∃ (Φ : ((i : ι) → S i) → ℝ), G.IsWeightedPotential w Φ

[MS96], Lemma 2.10 (pp. 131–132): a finite game G is a w-potential game if and only if its mixed extension G.mixedExtension is a w-potential game.

theorem Cslib.GameTheory.CostGame.exists_isExactPotential_mixedExtension_iff {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] {G : CostGame ι S} :
(∃ (Ψ : ((i : ι) → { q : S i → ℝ // IsMixedStrategy q }) → ℝ), G.mixedExtension.IsExactPotential Ψ) ↔ ∃ (Φ : ((i : ι) → S i) → ℝ), G.IsExactPotential Φ

Exact-potential (w = 1) specialization of [MS96], Lemma 2.10 (pp. 131–132): a finite game admits an exact potential if and only if its mixed extension does.