Documentation

CslibFrontier.GameTheory.Bimatrix.CostGame

Bimatrix games as cost games #

A bimatrix game is a two-player game in strategic form, so it is an instance of the general Cslib.GameTheory.CostGame: the players are indexed by Bool, with false the row player and true the column player, each minimizes its negated payoff, and the strategy sets are lifted to a common universe (BimatrixGame.PureStrategy). BimatrixGame.toCostGame is this cost game, and BimatrixGame.profile x y is the mixed profile in which the row player plays x and the column player y.

Against mixed strategies, the expected cost vector of each player is the negated vector of expected payoffs of its pure strategies (deviationCost_toCostGame_row, deviationCost_toCostGame_column), and its expected cost is its negated payoff. Consequently a pair of mixed strategies is a Nash equilibrium of the bimatrix game exactly when it is a mixed Nash equilibrium of the cost game (isNash_iff_isMixedNash), so results about mixed Nash equilibria of cost games, such as CostGame.exists_isMixedNash and CostGame.IsMixedNash.isCorrelatedEquilibrium, apply to bimatrix games.

Main definitions #

Main results #

References #

@[reducible, inline]
abbrev Cslib.GameTheory.BimatrixGame.PureStrategy (M : Type u) (N : Type v) (b : Bool) :
Type (max u v)

The pure strategies of player false (the row player, M) and player true (the column player, N), lifted to a common universe.

Instances For
    @[instance_reducible]

    A bimatrix game as a cost-minimization game on the players Bool: the row player false and the column player true pay their negated payoffs.

    def Cslib.GameTheory.BimatrixGame.profile {M : Type u} {N : Type v} (x : M → ℝ) (y : N → ℝ) (b : Bool) :
    PureStrategy M N b → ℝ

    The mixed profile of the cost game in which the row player plays x and the column player plays y.

    @[simp]
    theorem Cslib.GameTheory.BimatrixGame.profile_false {M : Type u} {N : Type v} (x : M → ℝ) (y : N → ℝ) (i : M) :
    profile x y false { down := i } = x i
    @[simp]
    theorem Cslib.GameTheory.BimatrixGame.profile_true {M : Type u} {N : Type v} (x : M → ℝ) (y : N → ℝ) (j : N) :
    profile x y true { down := j } = y j
    theorem Cslib.GameTheory.BimatrixGame.eq_profile {M : Type u} {N : Type v} (p : (b : Bool) → PureStrategy M N b → ℝ) :
    p = profile (fun (i : M) => p false { down := i }) fun (j : N) => p true { down := j }

    Every mixed profile of the cost game is the profile of its row and column strategies.

    The row player's component of profile x y is a mixed strategy exactly when x is.

    The column player's component of profile x y is a mixed strategy exactly when y is.

    theorem Cslib.GameTheory.BimatrixGame.deviationCost_toCostGame_row {M : Type u} {N : Type v} [Fintype M] [Fintype N] (G : BimatrixGame M N) {x : M → ℝ} (y : N → ℝ) (hx : ∑ i : M, x i = 1) (i : M) :
    G.toCostGame.deviationCost (profile x y) false { down := i } = -G.A.mulVec y i

    If x is a probability vector, the expected cost of the row player's pure strategy i against y is its negated expected payoff -(A y)ᵢ.

    theorem Cslib.GameTheory.BimatrixGame.deviationCost_toCostGame_column {M : Type u} {N : Type v} [Fintype M] [Fintype N] (G : BimatrixGame M N) (x : M → ℝ) {y : N → ℝ} (hy : ∑ j : N, y j = 1) (j : N) :

    If y is a probability vector, the expected cost of the column player's pure strategy j against x is its negated expected payoff -(x B)ⱼ.

    theorem Cslib.GameTheory.BimatrixGame.expectedCost_toCostGame_false {M : Type u} {N : Type v} [Fintype M] [Fintype N] (G : BimatrixGame M N) {x : M → ℝ} (y : N → ℝ) (hx : ∑ i : M, x i = 1) :

    The row player's expected cost under profile x y is its negated payoff.

    theorem Cslib.GameTheory.BimatrixGame.expectedCost_toCostGame_true {M : Type u} {N : Type v} [Fintype M] [Fintype N] (G : BimatrixGame M N) (x : M → ℝ) {y : N → ℝ} (hy : ∑ j : N, y j = 1) :

    The column player's expected cost under profile x y is its negated payoff.

    theorem Cslib.GameTheory.BimatrixGame.isNash_iff_isMixedNash {M : Type u} {N : Type v} [Fintype M] [Fintype N] {G : BimatrixGame M N} {x : M → ℝ} {y : N → ℝ} :

    Bimatrix Nash equilibria are mixed Nash equilibria of the cost game: (x, y) is a Nash equilibrium of G exactly when profile x y is a mixed Nash equilibrium of G.toCostGame.