EconCSLib.StrategicGame.g_function
defimported Lean
Augmented weight for pure strategy a of player i at mixed profile σ: the original probability σ_i(a) plus the positive part of the gain from deviating to pure strategy a.
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.g_function (i : N) (σ : MixedS G) (a : G.strategy i) : ℝ
- Defined in
- EconCSLib, `StrategicGame.g_function`
- 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.g_function← StrategicGame.g_function (EconCSLib/GameTheory/StrategicGame/Nash.lean:100): verbatim
- Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 6
- EconCSLib.StrategicGame.MixedSType abbreviation for the product of standard simplices (one per player), used throughout this file. Defined as an
abbrevso Lean… - stdSimplex.purePoint-mass simplex element at
i₀. - wsum_pure_applyWeighted sum at a point mass evaluates the chosen coordinate.
- EconCSLib.StrategicGame.evaluate_at_mixedExpected payoff of player
iunder mixed profileσ. Sums over all pure profiles, weighting by the product of each player's probability. - stdSimplex.pure_applystdSimplex.pure_apply
- EconCSLib.StrategicGameA strategic game (normal-form game) with players
Nand utilities inU. The structure records only the bare data: strategy spaces and a…
- EconCSLib.StrategicGame.MixedSType abbreviation for the product of standard simplices (one per player), used throughout this file. Defined as an
- Used by 7
- EconCSLib.StrategicGame.nash_map_cont
nash_map Gis a continuous self-map of the product simplex. - EconCSLib.StrategicGame.g_function_nonnegThe augmented weight is nonnegative.
- EconCSLib.StrategicGame.nash_map_auxThe normalized augmented weight:
g_function i σ a / ∑_b g_function i σ b. Private auxiliary used to constructnash_map. - EconCSLib.StrategicGame.nash_map_certThe normalized augmented weights form a valid probability distribution on
G.strategy i. - EconCSLib.StrategicGame.g_function_cont
g_function G i (· ) ais continuous in the mixed profile (fixedi,a). - EconCSLib.StrategicGame.sigma_le_g_functionThe augmented weight is at least
σ_i(a). - EconCSLib.StrategicGame.one_le_sum_gThe sum of augmented weights is at least 1.
- EconCSLib.StrategicGame.nash_map_cont
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 /-- Augmented weight for pure strategy `a` of player `i` at mixed profile `σ`: the original probability `σ_i(a)` plus the positive part of the gain from deviating to pure strategy `a`. -/ noncomputable def EconCSLib.StrategicGame.g_function (i : N) (σ : MixedS G) (a : G.strategy i) : ℝ := (σ i).val a + max 0 (evaluate_at_mixed G i (update σ i (stdSimplex.pure a)) - evaluate_at_mixed G i σ)