Documentation

CslibFrontier.GameTheory.Strategic.Semialgebraic

Nash equilibrium sets are semialgebraic #

A mixed profile of a finite game G : CostGame ι S is a point x : (Σ i, S i) → ℝ, read as the mixed strategies Sigma.curry x. Its expected costs are polynomials in the coordinates of x, so the mixed Nash equilibria and the totally mixed Nash equilibria form semialgebraic sets ([Dat03], §1).

Main definitions #

Main results #

References #

noncomputable def Cslib.GameTheory.CostGame.expectedCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) (i : ι) :
MvPolynomial ((i : ι) × S i) ℝ

The expected cost of player i as a polynomial in the coordinates of the profile.

theorem Cslib.GameTheory.CostGame.eval_expectedCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) (x : (i : ι) × S i → ℝ) (i : ι) :
noncomputable def Cslib.GameTheory.CostGame.deviationCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) (i : ι) (a : S i) :
MvPolynomial ((i : ι) × S i) ℝ

The expected cost of the pure strategy a of player i, as a polynomial in the coordinates of the other players: ∑_{s, s i = a} cost i s · ∏_{j ≠ i} x⟨j, s j⟩.

theorem Cslib.GameTheory.CostGame.eval_deviationCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) {x : (i : ι) × S i → ℝ} {i : ι} (hx : ∑ b : S i, x ⟨i, b⟩ = 1) (a : S i) :

On profiles where player i's weights sum to 1, deviationCostPoly evaluates to the expected cost of the pure strategy a.

theorem Cslib.GameTheory.CostGame.vars_deviationCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) {i : ι} {a : S i} {v : (i : ι) × S i} (hv : v ∈ (G.deviationCostPoly i a).vars) :
v.fst ≠ i

deviationCostPoly G i a does not involve the coordinates of player i.

theorem Cslib.GameTheory.CostGame.blockDegree_of_mem_support_expectedCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) {i : ι} {m : (i : ι) × S i →₀ ℕ} (hm : m ∈ (G.expectedCostPoly i).support) (j : ι) :
∑ b : S j, m ⟨j, b⟩ = 1

expectedCostPoly G i is multilinear in the players' blocks: each of its monomials has degree exactly one in the coordinates x⟨j, ·⟩ of every player j.

theorem Cslib.GameTheory.CostGame.blockDegree_of_mem_support_deviationCostPoly {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) {i : ι} {a : S i} {m : (i : ι) × S i →₀ ℕ} (hm : m ∈ (G.deviationCostPoly i a).support) (j : ι) :
∑ b : S j, m ⟨j, b⟩ = if j = i then 0 else 1

Each monomial of deviationCostPoly G i a has degree exactly one in the coordinates of every player j ≠ i, and degree zero in those of player i.

theorem Cslib.GameTheory.CostGame.exists_finset_setOf_isMixedNash_eq {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) :
∃ (F : Finset (MvPolynomial ((i : ι) × S i) ℝ)), {x : (i : ι) × S i → ℝ | G.IsMixedNash (Sigma.curry x)} = {x : (i : ι) × S i → ℝ | ∀ f ∈ F, 0 ≤ (MvPolynomial.eval x) f}

The mixed Nash equilibria form a basic closed semialgebraic set: the common nonnegativity set of finitely many polynomials. These are the coordinates x⟨i, a⟩, the polynomials ∑ a, x⟨i, a⟩ - 1 and 1 - ∑ a, x⟨i, a⟩, and deviationCostPoly G i a - expectedCostPoly G i.

theorem Cslib.GameTheory.CostGame.isSemialgebraic_setOf_isMixedNash {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] (G : CostGame ι S) :
IsSemialgebraic {x : (i : ι) × S i → ℝ | G.IsMixedNash (Sigma.curry x)}
theorem Cslib.GameTheory.CostGame.setOf_isTotallyMixedNash_eq {ι : Type u_1} {S : ι → Type u_2} [Fintype ι] [DecidableEq ι] [(i : ι) → Fintype (S i)] [(i : ι) → DecidableEq (S i)] (G : CostGame ι S) :
{x : (i : ι) × S i → ℝ | G.IsTotallyMixedNash (Sigma.curry x)} = ((⋂ (v : (i : ι) × S i), {x : (i : ι) × S i → ℝ | 0 < x v}) ∩ ⋂ (i : ι), {x : (i : ι) × S i → ℝ | ∑ a : S i, x ⟨i, a⟩ = 1}) ∩ ⋂ (i : ι), ⋂ (a : S i), ⋂ (b : S i), {x : (i : ι) × S i → ℝ | (MvPolynomial.eval x) (G.deviationCostPoly i a) = (MvPolynomial.eval x) (G.deviationCostPoly i b)}

The totally mixed Nash equilibria are the positive profiles at which each player's weights sum to 1 and each player's deviationCostPolys agree.

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