Utility change , marginal utility , diminishing marginal utility
DefinitionMarginalUtility_ModelThis file fixes the vocabulary of the section Quantified marginal utility.
- Change in utility. For any set of states , a utility and states ,
- Marginal utility. For a utility of a single quantified variable (everything else held fixed, c.p.),
the derivative of at . (Lean's deriv returns where is not differentiable; every statement in this mission that uses marginal utility also assumes the differentiability it needs.)
3. Diminishing marginal utility on . is differentiable on , its marginal utility is differentiable on , and
import Mathlib
namespace MarginalUtility
/-- Change in utility when moving from state `s₁` to state `s₂`:
`ΔU = U(s₂) - U(s₁)`. -/
def utilityChange {S : Type*} (U : S → ℝ) (s₁ s₂ : S) : ℝ :=
U s₂ - U s₁
/-- Marginal utility `∂U/∂g` of a utility function `U` of a single quantified variable `g`
(all other variables held fixed, *ceteris paribus*): the derivative of `U` at `g`. -/
noncomputable def marginalUtility (U : ℝ → ℝ) (g : ℝ) : ℝ :=
deriv U g
/-- `U` has diminishing marginal utility on the set `D`: `U` is differentiable on `D`, its
marginal utility `∂U/∂g` is differentiable on `D`, and `∂²U/∂g² < 0` at every point of `D`. -/
def HasDiminishingMarginalUtility (U : ℝ → ℝ) (D : Set ℝ) : Prop :=
DifferentiableOn ℝ U D ∧ DifferentiableOn ℝ (deriv U) D ∧
∀ g ∈ D, deriv (deriv U) g < 0
end MarginalUtility
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Disclosure — NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, with full knowledge of the source article and of the intended meaning. It is not independent, blind testimony and must not be mistaken for one. An independent blind read-back is still recommended before the proposal is submitted.
The file declares three objects.
Utility change. For an arbitrary type , a real-valued function and two elements , the quantity is defined as the real number (second argument minus first). No hypothesis is placed on or .
Marginal utility. For a function and a point , is defined as the derivative of at . Edge case: if is not differentiable at , this value is by convention (it is not undefined), so alone does not imply differentiability.
Diminishing marginal utility on . For and an arbitrary subset , the predicate holds exactly when all three of the following hold: (i) is differentiable on (in the within- sense); (ii) the global derivative function (with the value- convention above) is differentiable on (within ); (iii) for every , the derivative at of the global function is strictly negative:
Condition (iii) uses the ordinary (two-sided) derivative of at , not a derivative within ; when is not open these can differ. If is empty the predicate holds for every . No openness, convexity or nonemptiness of is required by the definition itself.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.