MatrixGame.E_eq_wsum_wsum_swap
theoremverifiedformalizationimported Lean
Helper: swap order of the iterated wsum in A.E.
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 theorem MatrixGame.E_eq_wsum_wsum_swap {π : Type} [Field π] [LinearOrder π] [IsStrictOrderedRing π] (A : MatrixGame I J π) (x : stdSimplex π I) (y : stdSimplex π J) : A.E x y = wsum y (fun j => wsum x (fun i => A.g i j))
- Formalizes
- EconCSLib, `MatrixGame.E_eq_wsum_wsum_swap`
- 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.E_eq_wsum_wsum_swap← MatrixGame.E_eq_wsum_wsum_swap (EconCSLib/GameTheory/StrategicGame/ZeroSum/MatrixGameNash.lean:410): verbatim
- Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- MatrixGame.E_eq_wsum_wsumHelper: writing
A.Eas an iteratedwsumexposes the structure that the saddle-point bounds rely on. - wsumWeighted sum of
fwith weights from a simplex elementx. Thinabbrevover Mathlib's finite dot productβ¬α΅₯: definitionally equal,β¦ - 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⦠- wsum_pure_applyWeighted sum at a point mass evaluates the chosen coordinate.
- wsum_wsum_commExchange order of double weighted sums.
- MatrixGame.E_eq_wsum_wsumHelper: writing
- Used by 1
- MatrixGame.isMixedNashEq_of_purePure-strategy guarantees give a mixed Nash equilibrium. If
xxguarantees valuevagainst every pure column andyycaps the rowβ¦
- MatrixGame.isMixedNashEq_of_purePure-strategy guarantees give a mixed Nash equilibrium. If
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 β) in/-- Helper: swap order of the iterated `wsum` in `A.E`. -/theorem MatrixGame.E_eq_wsum_wsum_swap {π : Type} [Field π] [LinearOrder π] [IsStrictOrderedRing π] (A : MatrixGame I J π) (x : stdSimplex π I) (y : stdSimplex π J) : A.E x y = wsum y (fun j => wsum x (fun i => A.g i j)) := by rw [E_eq_wsum_wsum, wsum_wsum_comm]