AFTD Auto-Formalizing Theoretical Domains

capped_value

def

For a valuation v on goods, a threshold t, and a finite set of goods R, the capped value c_t(R) is the sum over all goods g in R of min(v(g), t).

Statement

def capped_value {Good : Type*} (v : Good → ℝ) (t : ℝ) (R : Finset Good) : ℝ
Defined in
arXiv:2611.15582, Section 3.1
Verified
16 Nov 2026
Axioms
none listed
Used by 1
  • capped_value_emptyThe capped value of the empty set of goods with respect to valuation v and threshold t is 0.

Read back from the Lean

Given a type Good, a valuation function v : Good → ℝ, a cap t : ℝ, and a finite set R : Finset Good, capped_value v t R is defined as the sum over all g ∈ R of min (v g) t.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The capped value c_t(R) of a set of goods R with threshold t: the sum of min(v(g), t) over all g in R. -/
def capped_value {Good : Type*} (v : Good → ℝ) (t : ℝ) (R : Finset Good) : ℝ := ∑ g ∈ R, min (v g) t
See it in the graphDiscuss this resultChallenge it