EconCSLib.StrategicGame.MatrixGame.disp_Ei
theoremverifiedformalizationimported Lean
Row-side payoff under disp A: Ei i y = (Ay)_i − y_i.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Finset BigOperators in set_option linter.unusedSectionVars false in variable {I : Type} [Fintype I] [Nonempty I] [DecidableEq I] in theorem EconCSLib.StrategicGame.MatrixGame.disp_Ei (A : I → I → ℝ) (y : stdSimplex ℝ I) (i : I) : (⟨disp A⟩ : MatrixGame I I ℝ).Ei i y = (∑ j, A i j * y.val j) - y.val i
- Formalizes
- EconCSLib, `EconCSLib.StrategicGame.MatrixGame.disp_Ei`
- 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.MatrixGame.disp_Ei← EconCSLib.StrategicGame.MatrixGame.disp_Ei (EconCSLib/GameTheory/StrategicGame/ZeroSum/StochasticMatrix.lean:96): verbatim
- Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 8
- MatrixGame.EiExpected payoff when pure row
ifaces Player II's mixed strategyy. - MatrixGame.instDecidableEqStrategyFinOfNatNatToStrategicGameMatrixGame.instDecidableEqStrategyFinOfNatNatToStrategicGame
- wsumWeighted sum of
fwith weights from a simplex elementx. Thinabbrevover Mathlib's finite dot product⬝ᵥ: definitionally equal,… - EconCSLib.StrategicGame.MatrixGame.dispThe displacement matrix
B i j := A i j − [i = j]of a stochastic matrixA. The corresponding matrix game has value0. - 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… - wsum_pure_applyWeighted sum at a point mass evaluates the chosen coordinate.
- MatrixGame.instNonemptyStrategyFinOfNatNatToStrategicGameMatrixGame.instNonemptyStrategyFinOfNatNatToStrategicGame
- MatrixGame.instFintypeStrategyFinOfNatNatToStrategicGameMatrixGame.instFintypeStrategyFinOfNatNatToStrategicGame
- MatrixGame.EiExpected payoff when pure row
- Used by 2
- EconCSLib.StrategicGame.MatrixGame.disp_Ei_uniformUnder the uniform distribution, the column-side payoff under
disp Ais zero (whenAis stochastic). - EconCSLib.StrategicGame.MatrixGame.disp_Ei_argmin_nonnegFor any column-player strategy
y, picking the index whereyis minimal gives a non-negative row payoff underdisp A.
- EconCSLib.StrategicGame.MatrixGame.disp_Ei_uniformUnder the uniform distribution, the column-side payoff under
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 invariable {I : Type} [Fintype I] [Nonempty I] [DecidableEq I] in/-- Row-side payoff under `disp A`: `Ei i y = (Ay)_i − y_i`. -/theorem EconCSLib.StrategicGame.MatrixGame.disp_Ei (A : I → I → ℝ) (y : stdSimplex ℝ I) (i : I) : (⟨disp A⟩ : MatrixGame I I ℝ).Ei i y = (∑ j, A i j * y.val j) - y.val i := by show wsum y (fun j => disp A i j) = (∑ j, A i j * y.val j) - y.val i show (∑ j, y.val j * (A i j - if i = j then 1 else 0)) = (∑ j, A i j * y.val j) - y.val i rw [show (∑ j, y.val j * (A i j - if i = j then 1 else 0)) = (∑ j, y.val j * A i j) - (∑ j, y.val j * (if i = j then 1 else 0)) from by rw [← Finset.sum_sub_distrib]; refine Finset.sum_congr rfl (fun j _ => ?_); ring] rw [show (∑ j, y.val j * A i j) = ∑ j, A i j * y.val j from Finset.sum_congr rfl (fun j _ => mul_comm _ _)] congr 1 show ∑ j, y.val j * (if i = j then (1 : ℝ) else 0) = y.val i simp [Fintype.sum_ite_eq, mul_ite]