AFTD Auto-Formalizing Theoretical Domains

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.
Verified
08 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 7
  • wsumWeighted sum of f with weights from a simplex element x. Thin abbrev over 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 to u being 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.

Lean source view module on GitHub

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]
See it in the graphDiscuss this resultChallenge it