EconCSLib.StrategicGame.expectedPayoff
defimported Lean
Expected payoff for player who under mixed profile p. EU(p, who) = ∑_{σ : Profile} (∏_i p_i(σ_i)) · payoff(σ, who) Requires [Fintype N] (to sum over all profiles) and [∀ i, Fintype (G.strategy i)] (finite strategy sets).
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Finset BigOperators in variable {N U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in def EconCSLib.StrategicGame.expectedPayoff (G : EconCSLib.StrategicGame N U) [Fintype N] [DecidableEq N] [∀ i, Fintype (G.strategy i)] (p : MixedProfile G) (who : N) : U
- Defined in
- EconCSLib, `StrategicGame.expectedPayoff`
- Lean proof
- By xbei (from the file's git history), from github.com/gametheoryinlean/EconCSLib at
1a88f809b538(Copyright (c) 2026 EconCSLib contributors. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.30.0.EconCSLib.StrategicGame.expectedPayoff← StrategicGame.expectedPayoff (EconCSLib/GameTheory/StrategicGame/MixedStrategy.lean:164): adapted
What was changed in
EconCSLib.StrategicGame.expectedPayoff--- EconCSLib/GameTheory/StrategicGame/MixedStrategy.lean:164 (StrategicGame.expectedPayoff) +++ as compiled here @@ -1,9 +1,7 @@ -/-- Expected payoff for player `who` under mixed profile `p`. - - `EU(p, who) = ∑_{σ : Profile} (∏_i p_i(σ_i)) · payoff(σ, who)` - - Requires `[Fintype N]` (to sum over all profiles) and - `[∀ i, Fintype (G.strategy i)]` (finite strategy sets). -/ -def expectedPayoff - (G : StrategicGame N U) +set_option autoImplicit true in +set_option relaxedAutoImplicit true in +open Finset BigOperators in +variable {N U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in +def EconCSLib.StrategicGame.expectedPayoff + (G : EconCSLib.StrategicGame N U) [Fintype N] [DecidableEq N] [∀ i, Fintype (G.strategy i)] - Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 4
- EconCSLib.StrategicGame.MixedStrategyA mixed strategy for player
i: a probability distribution over pure strategies. Requires[Fintype (G.strategy i)]but NOT[Fintype N]. - EconCSLib.StrategicGame.ProfileThe type of strategy profiles for game
G: each player picks a strategy. This is a dependent function∀ i, G.strategy i. The profile… - EconCSLib.StrategicGameA strategic game (normal-form game) with players
Nand utilities inU. The structure records only the bare data: strategy spaces and a… - EconCSLib.StrategicGame.MixedProfileA mixed profile: each player has a mixed strategy. No finiteness constraint on
N(player set can be arbitrary).
- EconCSLib.StrategicGame.MixedStrategyA mixed strategy for player
- Used by 7
- MatrixGame.expectedPayoff_toStrategicGame_zeroBridge lemma:
expectedPayoff A.toStrategicGame p 0 = A.E (p 0) (p 1). Reduces both sides to the canonical double sum… - MatrixGame.exists_strategic_game_nash_equilibriumThe strategic-game embedding of a finite matrix game admits a mixed Nash equilibrium. Combines…
- EconCSLib.StrategicGame.IsZeroSum.expectedPayoff_negIn a zero-sum game, player 1's expected payoff is the negation of player 0's.
- EconCSLib.StrategicGame.IsZeroSum.expectedPayoff_add_zeroMixed-strategy version of the zero-sum axiom: expected payoffs sum to
0. - EconCSLib.StrategicGame.IsZeroSum.expectedPayoff_neg'In a zero-sum game, player 0's expected payoff is the negation of player 1's.
- MatrixGame.expectedPayoff_toStrategicGame_oneMirror:
expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1)). - EconCSLib.StrategicGame.IsMixedNashEqA mixed profile is a mixed Nash equilibrium if no player can improve their expected payoff by deviating to any pure strategy. By linearity…
- MatrixGame.expectedPayoff_toStrategicGame_zeroBridge lemma:
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Finset BigOperators in variable {N U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in /-- Expected payoff for player `who` under mixed profile `p`. `EU(p, who) = ∑_{σ : Profile} (∏_i p_i(σ_i)) · payoff(σ, who)` Requires `[Fintype N]` (to sum over all profiles) and `[∀ i, Fintype (G.strategy i)]` (finite strategy sets). -/ def EconCSLib.StrategicGame.expectedPayoff (G : EconCSLib.StrategicGame N U) [Fintype N] [DecidableEq N] [∀ i, Fintype (G.strategy i)] (p : MixedProfile G) (who : N) : U := ∑ σ : G.Profile, (∏ i : N, (p i).val (σ i)) * G.payoff σ who