IsAffineUtility.isRiskNeutral
theoremverifiedformalizationimported Lean
An affine utility function is risk neutral. [MSZ 2.27, easy direction]
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {๐ : Type*} [Field ๐] [LinearOrder ๐] [IsStrictOrderedRing ๐] in set_option linter.unusedSectionVars false in theorem IsAffineUtility.isRiskNeutral {I : Type*} [Fintype I] {u : ๐ โ ๐} (h : IsAffineUtility u) : IsRiskNeutral (I := I) u
- Formalizes
- EconCSLib, `IsAffineUtility.isRiskNeutral`
- 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.IsAffineUtility.isRiskNeutral← IsAffineUtility.isRiskNeutral (EconCSLib/Foundation/Utility/Basic.lean:55): verbatim
- Verified
- 08 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 7
- wsumWeighted sum of
fwith weights from a simplex elementx. Thinabbrevover Mathlib's finite dot productโฌแตฅ: definitionally equal,โฆ - wsum_addWeighted sum is linear over addition.
- IsRiskNeutralRisk neutrality for lotteries over a finite index set
I:u(โ pแตขยทxแตข) = โ pแตขยทu(xแตข). Equivalent toubeing affine. [MSZ 2.27] - wsum_pure_applyWeighted sum at a point mass evaluates the chosen coordinate.
- wsum_smulWeighted sum commutes with scalar multiplication.
- IsAffineUtilityA utility function is affine (linear + constant):
u(x) = aยทx + b. An agent with an affine utility function is risk neutral. [MSZ 2.24] - wsum_constWeighted sum of a constant equals the constant.
- wsumWeighted sum of
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true invariable {๐ : Type*} [Field ๐] [LinearOrder ๐] [IsStrictOrderedRing ๐] inset_option linter.unusedSectionVars false in/-- An affine utility function is risk neutral. [MSZ 2.27, easy direction] -/theorem IsAffineUtility.isRiskNeutral {I : Type*} [Fintype I] {u : ๐ โ ๐} (h : IsAffineUtility u) : IsRiskNeutral (I := I) u := by obtain โจa, b, huโฉ := h intro p x -- Write u โ x as a โข x + const b, then use wsum linearity lemmas. have hcomp : u โ x = a โข x + (fun _ => b) := by funext i; simp [Function.comp, hu, Pi.smul_apply, smul_eq_mul] rw [hcomp, wsum_add, wsum_smul, wsum_const, hu]