AFTD Auto-Formalizing Theoretical Domains

EconCSLib.StrategicGame.expectedPayoff

defimported Lean

Expected payoff for player who under mixed profile p. EU(p, who) = ∑_{σ : Profile} (∏_i p_i(σ_i)) · payoff(σ, who) Requires [Fintype N] (to sum over all profiles) and [∀ i, Fintype (G.strategy i)] (finite strategy sets).

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Finset BigOperators in
variable {N U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in
def EconCSLib.StrategicGame.expectedPayoff
    (G : EconCSLib.StrategicGame N U)
    [Fintype N] [DecidableEq N] [∀ i, Fintype (G.strategy i)]
    (p : MixedProfile G) (who : N) : U
Defined in
EconCSLib, `StrategicGame.expectedPayoff`
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.
What was changed in EconCSLib.StrategicGame.expectedPayoff
--- EconCSLib/GameTheory/StrategicGame/MixedStrategy.lean:164 (StrategicGame.expectedPayoff)
+++ as compiled here
@@ -1,9 +1,7 @@
-/-- Expected payoff for player `who` under mixed profile `p`.
-
-    `EU(p, who) = ∑_{σ : Profile} (∏_i p_i(σ_i)) · payoff(σ, who)`
-
-    Requires `[Fintype N]` (to sum over all profiles) and
-    `[∀ i, Fintype (G.strategy i)]` (finite strategy sets). -/
-def expectedPayoff
-    (G : StrategicGame N U)
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+open Finset BigOperators in
+variable {N U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in
+def EconCSLib.StrategicGame.expectedPayoff
+    (G : EconCSLib.StrategicGame N U)
     [Fintype N] [DecidableEq N] [∀ i, Fintype (G.strategy i)]
Verified
08 Oct 2026
Axioms
none listed
Built on 4
  • 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…
  • 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…
  • EconCSLib.StrategicGame.MixedProfileA mixed profile: each player has a mixed strategy. No finiteness constraint on N (player set can be arbitrary).
Used by 7

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Finset BigOperators in
variable {N U : Type*} [Field U] [LinearOrder U] [IsStrictOrderedRing U] in
/-- Expected payoff for player `who` under mixed profile `p`. `EU(p, who) = ∑_{σ : Profile} (∏_i p_i(σ_i)) · payoff(σ, who)` Requires `[Fintype N]` (to sum over all profiles) and `[∀ i, Fintype (G.strategy i)]` (finite strategy sets). -/
def EconCSLib.StrategicGame.expectedPayoff
    (G : EconCSLib.StrategicGame N U)
    [Fintype N] [DecidableEq N] [∀ i, Fintype (G.strategy i)]
    (p : MixedProfile G) (who : N) : U :=
  ∑ σ : G.Profile, (∏ i : N, (p i).val (σ i)) * G.payoff σ who
See it in the graphDiscuss this resultChallenge it