Documentation

CslibFrontier.GameTheory.MixedStrategy

Mixed strategies #

A mixed strategy over a finite set ι of pure strategies is a probability vector x : ι → ℝ: its entries are nonnegative and sum to 1 (Cslib.GameTheory.IsMixedStrategy). Mixed strategies are plain vectors, so that they can be fed to Matrix.mulVec, to the polyhedral API in CslibFrontier.Foundations.LinearAlgebra.Matrix.Vertex and to continuous maps on ι → ℝ. They are exactly the weight vectors of the points of Convexity.StdSimplex ℝ ι, the representation of distributions used in CslibFrontier.Probability.Minimax and CslibFrontier.GameTheory.Strategic.Smooth (Cslib.GameTheory.isMixedStrategy_iff_mem_range_weights).

Main definitions #

Main results #

def Cslib.GameTheory.IsMixedStrategy {ι : Type u_1} [Fintype ι] (x : ι → ℝ) :

A mixed strategy over a finite set ι of pure strategies: a probability vector.

theorem Cslib.GameTheory.isMixedStrategy_iff {ι : Type u_1} [Fintype ι] {x : ι → ℝ} :
IsMixedStrategy x ↔ (∀ (i : ι), 0 ≤ x i) ∧ ∑ i : ι, x i = 1
theorem Cslib.GameTheory.IsMixedStrategy.nonneg {ι : Type u_1} [Fintype ι] {x : ι → ℝ} (hx : IsMixedStrategy x) (i : ι) :
0 ≤ x i
theorem Cslib.GameTheory.IsMixedStrategy.sum_eq_one {ι : Type u_1} [Fintype ι] {x : ι → ℝ} (hx : IsMixedStrategy x) :
∑ i : ι, x i = 1
theorem Cslib.GameTheory.IsMixedStrategy.exists_pos {ι : Type u_1} [Fintype ι] {x : ι → ℝ} (hx : IsMixedStrategy x) :
∃ (i : ι), 0 < x i

A mixed strategy plays some pure strategy with positive probability.

theorem Cslib.GameTheory.IsMixedStrategy.ne_zero {ι : Type u_1} [Fintype ι] {x : ι → ℝ} (hx : IsMixedStrategy x) :
x ≠ 0
theorem Cslib.GameTheory.IsMixedStrategy.dotProduct_pos {ι : Type u_1} [Fintype ι] {x w : ι → ℝ} (hx : IsMixedStrategy x) (hw : ∀ (i : ι), 0 < w i) :
0 < x ⬝ᵥ w

Averaging a positive vector under a mixed strategy gives a positive number.

theorem Cslib.GameTheory.isMixedStrategy_inv_sum_smul {ι : Type u_1} [Fintype ι] {x : ι → ℝ} (hx : ∀ (i : ι), 0 ≤ x i) (hx₀ : x ≠ 0) :
IsMixedStrategy ((∑ i : ι, x i)⁻¹ • x)

Normalizing a nonzero nonnegative vector gives a mixed strategy.

theorem Cslib.GameTheory.IsMixedStrategy.eq_of_smul_eq_smul {ι : Type u_1} [Fintype ι] {x : ι → ℝ} {c : ℝ} {x' : ι → ℝ} {c' : ℝ} (hx : IsMixedStrategy x) (hx' : IsMixedStrategy x') (hc : c ≠ 0) (h : c • x = c' • x') :
x = x'

A mixed strategy is determined by the ray it spans.

Mixed strategies are the weight vectors of the points of Convexity.StdSimplex ℝ ι.

A pure strategy, as a mixed strategy.

theorem Cslib.GameTheory.IsMixedStrategy.dotProduct_eq_of_forall_pos {ι : Type u_1} [Fintype ι] {x w : ι → ℝ} {c : ℝ} (hx : IsMixedStrategy x) (h : ∀ (i : ι), 0 < x i → w i = c) :
x ⬝ᵥ w = c

Averaging a vector that equals c on the support of a mixed strategy gives c.

theorem Cslib.GameTheory.IsMixedStrategy.dotProduct_le_of_forall_le {ι : Type u_1} [Fintype ι] {x w : ι → ℝ} {c : ℝ} (hx : IsMixedStrategy x) (h : ∀ (i : ι), w i ≤ c) :
x ⬝ᵥ w ≤ c

Averaging a vector bounded by c under a mixed strategy gives at most c.

theorem Cslib.GameTheory.IsMixedStrategy.forall_dotProduct_le_iff {ι : Type u_1} [Fintype ι] {x w : ι → ℝ} (hx : IsMixedStrategy x) :
(∀ (x' : ι → ℝ), IsMixedStrategy x' → x' ⬝ᵥ w ≤ x ⬝ᵥ w) ↔ ∀ (i : ι), 0 < x i → ∀ (i' : ι), w i' ≤ w i

A mixed strategy maximizes the linear function x ↦ x ⬝ᵥ w over all mixed strategies iff every pure strategy in its support maximizes w.