MatrixGame.expectedPayoff_toStrategicGame_one
theoremverifiedformalizationimported Lean
Mirror: expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1)).
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Finset BigOperators in set_option linter.unusedSectionVars false in universe u in variable {I J : Type u} [Fintype I] [Fintype J] [Nonempty I] [Nonempty J] in variable (A : MatrixGame I J β) in variable [DecidableEq I] [DecidableEq J] in theorem MatrixGame.expectedPayoff_toStrategicGame_one {π : Type} [Field π] [LinearOrder π] [IsStrictOrderedRing π] (A : MatrixGame I J π) (p : EconCSLib.StrategicGame.MixedProfile A.toStrategicGame) : EconCSLib.StrategicGame.expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1))
- Formalizes
- EconCSLib, `MatrixGame.expectedPayoff_toStrategicGame_one`
- 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.MatrixGame.expectedPayoff_toStrategicGame_one← MatrixGame.expectedPayoff_toStrategicGame_one (EconCSLib/GameTheory/StrategicGame/ZeroSum/MatrixGameNash.lean:585): adapted
What was changed in
MatrixGame.expectedPayoff_toStrategicGame_one--- EconCSLib/GameTheory/StrategicGame/ZeroSum/MatrixGameNash.lean:585 (MatrixGame.expectedPayoff_toStrategicGame_one) +++ as compiled here @@ -1,10 +1,17 @@ -/-- Mirror: `expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1))`. -/ -theorem expectedPayoff_toStrategicGame_one {π : Type} +set_option autoImplicit true in +set_option relaxedAutoImplicit true in +open Finset BigOperators in +set_option linter.unusedSectionVars false in +universe u in +variable {I J : Type u} [Fintype I] [Fintype J] [Nonempty I] [Nonempty J] in +variable (A : MatrixGame I J β) in +variable [DecidableEq I] [DecidableEq J] in +theorem MatrixGame.expectedPayoff_toStrategicGame_one {π : Type} [Field π] [LinearOrder π] [IsStrictOrderedRing π] - (A : MatrixGame I J π) (p : StrategicGame.MixedProfile A.toStrategicGame) : - StrategicGame.expectedPayoff A.toStrategicGame p 1 + (A : MatrixGame I J π) (p : EconCSLib.StrategicGame.MixedProfile A.toStrategicGame) : + EconCSLib.StrategicGame.expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1)) := by let double : π := β i : I, β j : J, (p 0).val i * (p 1).val j * A.g i j - have hLHS : StrategicGame.expectedPayoff A.toStrategicGame p 1 = -double := by - unfold StrategicGame.expectedPayoff + have hLHS : EconCSLib.StrategicGame.expectedPayoff A.toStrategicGame p 1 = -double := by + unfold EconCSLib.StrategicGame.expectedPayoff rw [show - Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 13
- 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β¦ - MatrixGame.toStrategicGameThe two-player zero-sum strategic game associated with a matrix game. See
MatrixGame.toStrategicGame_isZeroSumfor the proof that this⦠- MatrixGame.instDecidableEqStrategyFinOfNatNatToStrategicGameMatrixGame.instDecidableEqStrategyFinOfNatNatToStrategicGame
- EconCSLib.StrategicGame.IsZeroSum.decidableStrategicGame.IsZeroSum.decidable
- MatrixGame.EExpected payoff when Player I uses mixed strategy
xand Player II usesy. - MatrixGameA finite two-player zero-sum matrix game. Player I chooses row
i : I, Player II chooses columnj : J. Payoff to Player I isg i j⦠- EconCSLib.StrategicGame.IsZeroSum.expectedPayoff_add_zeroMixed-strategy version of the zero-sum axiom: expected payoffs sum to
0. - MatrixGame.instNonemptyStrategyFinOfNatNatToStrategicGameMatrixGame.instNonemptyStrategyFinOfNatNatToStrategicGame
- 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.expectedPayoffExpected payoff for player
whounder mixed profilep.EU(p, who) = β_{Ο : Profile} (β_i p_i(Ο_i)) Β· payoff(Ο, who)Requiresβ¦ - EconCSLib.StrategicGame.MixedProfileA mixed profile: each player has a mixed strategy. No finiteness constraint on
N(player set can be arbitrary). - MatrixGame.instFintypeStrategyFinOfNatNatToStrategicGameMatrixGame.instFintypeStrategyFinOfNatNatToStrategicGame
- EconCSLib.StrategicGame.MixedStrategyA mixed strategy for player
- Used by 1
- MatrixGame.exists_strategic_game_nash_equilibriumThe strategic-game embedding of a finite matrix game admits a mixed Nash equilibrium. Combinesβ¦
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Finset BigOperators inset_option linter.unusedSectionVars false inuniverse u invariable {I J : Type u} [Fintype I] [Fintype J] [Nonempty I] [Nonempty J] invariable (A : MatrixGame I J β) invariable [DecidableEq I] [DecidableEq J] in/-- Mirror: `expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1))`. -/theorem MatrixGame.expectedPayoff_toStrategicGame_one {π : Type} [Field π] [LinearOrder π] [IsStrictOrderedRing π] (A : MatrixGame I J π) (p : EconCSLib.StrategicGame.MixedProfile A.toStrategicGame) : EconCSLib.StrategicGame.expectedPayoff A.toStrategicGame p 1 = -(A.E (p 0) (p 1)) := by let double : π := β i : I, β j : J, (p 0).val i * (p 1).val j * A.g i j have hLHS : EconCSLib.StrategicGame.expectedPayoff A.toStrategicGame p 1 = -double := by unfold EconCSLib.StrategicGame.expectedPayoff rw [show (β Ο : (β i : Fin 2, A.toStrategicGame.strategy i), (β i : Fin 2, (p i).val (Ο i)) * A.toStrategicGame.payoff Ο 1) = β ij : I Γ J, -((p 0).val ij.1 * (p 1).val ij.2 * A.g ij.1 ij.2) from ?_] Β· rw [Finset.sum_neg_distrib, Fintype.sum_prod_type] Β· apply Fintype.sum_equiv (piFinTwoEquiv A.toStrategicGame.strategy) intro Ο rw [Fin.prod_univ_two] -- Unfold `payoff Ο 1 = -(A.g (Ο 0) (Ο 1))` and use ring. show ((p 0).val (Ο 0) * (p 1).val (Ο 1)) * (-(A.g (Ο 0) (Ο 1))) = -((p 0).val (Ο 0) * (p 1).val (Ο 1) * A.g (Ο 0) (Ο 1)) ring have hRHS : A.E (p 0) (p 1) = double := by change (β i, (p 0).val i * (β j, (p 1).val j * A.g i j)) = double apply Finset.sum_congr rfl; intro i _ rw [Finset.mul_sum] apply Finset.sum_congr rfl; intro j _ ring rw [hLHS, hRHS]