Utility Functions #
This file defines utility functions for use in probability theory and e-value theory.
Main definitions #
Utility: A structure representing a concave, monotone, and differentiable function fromℝ≥0∞toEReal, which is finite on(0, ∞).Utility.deriv: The derivative of a utility function.logUtility: The logarithmic utility function.harmonicTrunc: The harmonic truncationharmonicTrunc n x = n x / (n + x).boundedLogUtility: Bounded approximationsx ↦ log (N x / (N + x))of the logarithmic utility function, andharmonicDeriv, their derivative inℝ≥0∞form.
Main statements #
Utility.eintegral_le_map: Jensen's inequality for utility functions.Utility.le_add_deriv_mul: The utility function is upper-bounded by its first-order Taylor approximation (a consequence of concavity).Utility.antitone_deriv,Utility.continuous_deriv: the derivative of a utility function is antitone and continuous on all ofℝ≥0∞, including at0and at∞.Utility.deriv_mul_sub_le_liminf: the difference quotients of a utility function along a segment are eventually at least the directional derivative.deriv_logUtility: The derivative of the logarithmic utility function.deriv_boundedLogUtility: The derivative ofboundedLogUtility, inℝ≥0∞form.
A utility function is a concave, monotone and differentiable function from ℝ≥0∞ to EReal,
which is finite on (0, ∞).
The function itself.
- continuous' : Continuous self.toFun
- differentiable' : ContDiffOn ℝ 1 (fun (x : ℝ) => (self.toFun (ENNReal.ofReal x)).toReal) (Set.Ioi 0)
Instances For
The real-valued representation of a utility function.
Equations
- U.real x = (U.toFun (ENNReal.ofReal x)).toReal
Instances For
The derivative of a utility function.
At x ∈ (0, ∞), this is the derivative of the real-valued representation.
At 0 or ∞, this is defined as a limit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The derivative of a utility function is antitone on all of ℝ≥0∞, including at 0 and
at ∞.
The derivative of a utility function is continuous at every α ≠ ∞: this is a continuity
statement on (0, ∞) and a monotone limit statement at 0. See Utility.tendsto_deriv_top for
the case α = ∞ and Utility.continuous_deriv for the combination of the two.
The derivative of a utility function is continuous at ∞.
The derivative of a utility function is continuous on ℝ≥0∞, including at 0 and at ∞.
The map y ↦ U.deriv α * (y - α) is affine: it turns a convex combination of 1 and β
into the corresponding convex combination of its values.
The key pointwise estimate for the first order optimality condition: along a sequence
t n → 0, the difference quotients of U between α and β are eventually at least the
directional derivative U.deriv α * (β - α).
Jensen's inequality.
The logarithmic utility function.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Bounded approximations of the logarithmic utility #
We introduce the bounded approximations x ↦ log (n x / (n + x)) of the logarithm, obtained by
composing the logarithm with the harmonic truncation harmonicTrunc n x = (x⁻¹ + n⁻¹)⁻¹.
The harmonic truncation harmonicTrunc n x = n x / (n + x), written in a form that behaves
well at 0 and ∞. It is concave, increasing, bounded above by n, and converges to x as
n → ∞.
Instances For
The harmonic truncation of a real number, computed in ℝ.
harmonicTrunc n is the pointwise infimum of the affine maps w ↦ s ^ 2 * w + t ^ 2 * n
over s + t = 1: this is one half of that statement.
Bounded approximation of the logarithmic utility at level N:
boundedLogUtility hN x = log (N x / (N + x)).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The derivative of boundedLogUtility hN, as an ℝ≥0∞-valued function.
Equations
- ProbabilityTheory.harmonicDeriv N y = y⁻¹ - (y + ENNReal.ofReal N)⁻¹
Instances For
The derivative of the bounded logarithmic utility, in ℝ≥0∞ form.