EconCSLib.StrategicGame.welfare
defimported Lean
The social welfare of a profile: the sum of all players' payoffs. Requires [Fintype N] and [AddCommMonoid U].
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {N U : Type*} in noncomputable def EconCSLib.StrategicGame.welfare [Fintype N] [AddCommMonoid U] (G : EconCSLib.StrategicGame N U) (σ : G.Profile) : U
- Defined in
- EconCSLib, `StrategicGame.welfare`
- Lean proof
- By xbei, Claude (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.welfare← StrategicGame.welfare (EconCSLib/GameTheory/StrategicGame/Basic.lean:91): adapted
What was changed in
EconCSLib.StrategicGame.welfare--- EconCSLib/GameTheory/StrategicGame/Basic.lean:91 (StrategicGame.welfare) +++ as compiled here @@ -1,5 +1,6 @@ -/-- The social welfare of a profile: the sum of all players' payoffs. - Requires `[Fintype N]` and `[AddCommMonoid U]`. -/ -noncomputable def welfare [Fintype N] [AddCommMonoid U] - (G : StrategicGame N U) (σ : G.Profile) : U := +set_option autoImplicit true in +set_option relaxedAutoImplicit true in +variable {N U : Type*} in +noncomputable def EconCSLib.StrategicGame.welfare [Fintype N] [AddCommMonoid U] + (G : EconCSLib.StrategicGame N U) (σ : G.Profile) : U := ∑ i, G.payoff σ i - Verified
- 08 Oct 2026
- Axioms
- none listed
- Built on 2
- 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
Nand utilities inU. The structure records only the bare data: strategy spaces and a…
- EconCSLib.StrategicGame.ProfileThe type of strategy profiles for game
- Used by 2
- EconCSLib.StrategicGame.IsConstantSum.welfare_eqTwo-player constant-sum games have constant social welfare at every profile.
- EconCSLib.StrategicGame.IsZeroSum.welfare_eq_zeroTwo-player zero-sum games have zero social welfare at every profile.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {N U : Type*} in /-- The social welfare of a profile: the sum of all players' payoffs. Requires `[Fintype N]` and `[AddCommMonoid U]`. -/ noncomputable def EconCSLib.StrategicGame.welfare [Fintype N] [AddCommMonoid U] (G : EconCSLib.StrategicGame N U) (σ : G.Profile) : U := ∑ i, G.payoff σ i