AFTD Auto-Formalizing Theoretical Domains

EconCSLib.StrategicGame.evaluate_at_mixed

defimported Lean

Expected payoff of player i under mixed profile σ. Sums over all pure profiles, weighting by the product of each player's probability.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open BigOperators Function in
set_option linter.unusedSectionVars false in
variable {N : Type*} in
variable (G : EconCSLib.StrategicGame N ℝ) in
variable [Fintype N] [DecidableEq N] in
variable [∀ i, Fintype (G.strategy i)] [∀ i, DecidableEq (G.strategy i)] in
variable [∀ i, Inhabited (G.strategy i)] in
noncomputable def EconCSLib.StrategicGame.evaluate_at_mixed (i : N) (σ : MixedS G) : ℝ
Defined in
EconCSLib, `StrategicGame.evaluate_at_mixed`
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
none listed
Built on 3
  • EconCSLib.StrategicGame.MixedSType abbreviation for the product of standard simplices (one per player), used throughout this file. Defined as an abbrev so Lean…
  • 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 N and utilities in U. The structure records only the bare data: strategy spaces and a…
Used by 8

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open BigOperators Function in
set_option linter.unusedSectionVars false in
variable {N : Type*} in
variable (G : EconCSLib.StrategicGame N ℝ) in
variable [Fintype N] [DecidableEq N] in
variable [∀ i, Fintype (G.strategy i)] [∀ i, DecidableEq (G.strategy i)] in
variable [∀ i, Inhabited (G.strategy i)] in
/-- Expected payoff of player `i` under mixed profile `σ`. Sums over all pure profiles, weighting by the product of each player's probability. -/
noncomputable def EconCSLib.StrategicGame.evaluate_at_mixed (i : N) (σ : MixedS G) : ℝ :=
  ∑ s : G.Profile, (∏ j : N, (σ j).val (s j)) * G.payoff s i
See it in the graphDiscuss this resultChallenge it