AFTD Auto-Formalizing Theoretical Domains

EconCSLib.StrategicGame.MatrixGame.disp_Ei_uniform

theoremverifiedformalizationimported Lean

Under the uniform distribution, the column-side payoff under disp A is zero (when A is stochastic).

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_uniform (A : I → I → ℝ) (hA : IsStochasticMatrix A) (i : I) :
    (⟨disp A⟩ : MatrixGame I I ℝ).Ei i (uniformDist : stdSimplex ℝ I) = 0
Formalizes
EconCSLib, `EconCSLib.StrategicGame.MatrixGame.disp_Ei_uniform`
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.
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 10

Lean source view module on GitHub

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/-- Under the uniform distribution, the column-side payoff under `disp A` is zero (when `A` is stochastic). -/theorem EconCSLib.StrategicGame.MatrixGame.disp_Ei_uniform (A : I → I → ℝ) (hA : IsStochasticMatrix A) (i : I) :    (⟨disp A⟩ : MatrixGame I I ℝ).Ei i (uniformDist : stdSimplex ℝ I) = 0 := by  rw [disp_Ei A uniformDist i]  simp only [uniformDist_val]  -- ∑ j, A i j * (1/n) - 1/n = (1/n)·(∑ A i j) - 1/n = 1/n - 1/n = 0.  have hcard_pos : 0 < (Fintype.card I : ℝ) := by exact_mod_cast Fintype.card_pos  have hne : (Fintype.card I : ℝ) ≠ 0 := hcard_pos.ne'  have hsum : (∑ j, A i j * (1 / (Fintype.card I : ℝ)))            = (∑ j, A i j) / (Fintype.card I : ℝ) := by    rw [Finset.sum_div]; refine Finset.sum_congr rfl (fun j _ => ?_); ring  rw [hsum, hA.rowSum]; ring
See it in the graphDiscuss this resultChallenge it