Nash equilibria of finite games #
Finite games in mixed strategies: expected payoffs, best responses, and Nash's theorem that every finite game has a Nash equilibrium, by Kakutani's fixed point theorem for the best-response correspondence.
Main definitions #
ConvexAnalysis.mixedStrategies S: the probability vectors on a finite setS, the probability simplexConvexAnalysis.probabilitySimplex S.ConvexAnalysis.expectedPayoff u σ i: the expected payoff of playeriin a finite game with payoffsu, when the players use the mixed strategiesσindependently.ConvexAnalysis.bestResponses u σ i: the mixed strategies of playerithat maximize their expected payoff when the others playσ.ConvexAnalysis.IsNashEquilibrium u σ: no player gains by deviating unilaterally fromσ.
Main statements #
ConvexAnalysis.exists_isNashEquilibrium: Nash's theorem. Every finite game has a Nash equilibrium in mixed strategies, by Kakutani's theorem for the best-response correspondence.ConvexAnalysis.expectedPayoff_update_eq_sum_single: the expected payoff is linear in the strategy of each player.ConvexAnalysis.isNashEquilibrium_iff_forall_mem_bestResponsesandConvexAnalysis.isNashEquilibrium_iff_forall_single:σis a Nash equilibrium iff every player plays a best response, iff no player gains by deviating to a pure strategy;ConvexAnalysis.isNashEquilibrium_single_ifffor pure equilibria, and the indifference principleConvexAnalysis.IsNashEquilibrium.expectedPayoff_update_single_eq.ConvexAnalysis.exists_isNashEquilibrium_stdSimplex: Nash's theorem with profiles in Mathlib'sConvexity.StdSimplex.
Implementation notes #
Mixed strategies are a set of vectors, mixedStrategies S ⊆ S → ℝ, so that the mixed profiles form
a compact convex subset of the finite-dimensional space ∀ i, S i → ℝ. The set is the probability
simplex of ConvexAnalysis.Simplex under the name of game theory (an abbrev), and has the same
points as Mathlib's Convexity.StdSimplex (ConvexAnalysis.probabilitySimplex_eq_range_weights). A
pure strategy a is the vector Pi.single a 1.
Mathlib has Sion's minimax theorem (Mathlib/Topology/Sion.lean), and the open Mathlib PR
#39393 proposes von Neumann's minimax theorem for matrix games (Matrix.exists_mixedNash in
Mathlib/GameTheory/MatrixGame.lean), the case of two players with zero-sum payoffs; this
file does not depend on either.
References #
- J. Nash, Equilibrium points in n-person games, Proc. Natl. Acad. Sci. USA 36 (1950), 48–49.
Tags #
Nash equilibrium, finite game, mixed strategy, best response, Kakutani fixed point theorem, indifference principle
The mixed strategies on a finite set S of pure strategies: the probability vectors
p : S → ℝ, with p s ≥ 0 and ∑ s, p s = 1, that is, the probability simplex. The lemmas on
it are those of ConvexAnalysis.probabilitySimplex.
Instances For
Finite games and Nash equilibria #
The expected payoff of player i in the finite game with payoffs u i : (∀ j, S j) → ℝ,
when every player j plays the mixed strategy σ j, independently of the others.
Equations
- ConvexAnalysis.expectedPayoff u σ i = ∑ s : (j : ι) → S j, (∏ j : ι, σ j (s j)) * u i s
Instances For
The best responses of player i to the mixed profile σ: the mixed strategies of i
that maximize the expected payoff of i when the other players keep their strategies.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A mixed profile σ is a Nash equilibrium of the finite game with payoffs u if every
σ i is a mixed strategy and no player i can raise their expected payoff by changing their
own strategy alone.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The strategies of a Nash equilibrium are mixed strategies.
At a Nash equilibrium no player gains by deviating unilaterally to another mixed strategy.
The expected payoff is continuous in the mixed profile.
The expected payoff is linear in the strategy of each single player k.
The expected payoff is linear in the strategy ρ of each single player k: a combination
of the payoffs of the pure strategies Pi.single a 1 with the weights ρ a.
The mixed extension agrees with the game on pure profiles.
The best responses form a convex set, since the expected payoff is linear in the strategy of the player.
Every player has a best response, by compactness of the mixed strategies.
The graph of the best-response correspondence of player i is closed.
σ is a Nash equilibrium iff every player plays a best response to σ.
σ is a Nash equilibrium iff no player gains by deviating to a pure strategy.
Nash's theorem Nash: every finite game has a Nash equilibrium in mixed strategies.
The hypothesis of exists_isNashEquilibrium is necessary: a player without pure strategies
has no mixed strategy.
Nash's theorem with profiles in Mathlib's Convexity.StdSimplex.
A pure profile is a Nash equilibrium iff no player gains by a pure deviation.
Indifference principle: at a Nash equilibrium, every pure strategy played with positive probability is a best response.