Theorem 2.75 — dual representation of minimal loss functionals, , and of
ProvedRiskFunctionals.Deviation.minimal_loss_dual_representationLet be a probability space, , and the conjugate exponent, ; random variables lie in and dual variables in . Let be a non-negative convex function on with , let be its Fenchel conjugate, and let
be the minimal loss functional of , for such that exists. For , is the average value-at-risk and its deviation.
- has the dual representation
- In particular,
- has the dual representation
- In particular (compare (2.20)),
The theorem turns every minimal loss deviation functional, and the acceptability functional , into a supremum (infimum) of linear functionals of over an explicit set of dual variables, which is what makes these functionals usable as risk measures in optimization.
Formalization Note is the infimum over of , a value in (the book's "min" presupposes attainment, which fails e.g. for and unbounded ; attainment is not claimed). Parts 1 and 3 assume measurable, and integrable (the book's standing assumption of §2.5.5 that exists), so is finite. is extended-real valued; the supremum in part 1 (infimum in part 3) is taken over the measurable with the stated mean for which (resp. ) is almost surely finite and integrable — the remaining contribute (resp. ) in the book's formula and do not change it. Parts 2 and 4 assume measurable and in , ; the constraints on hold almost surely, and the minimum in part 4 is stated as attained (IsLeast). Suprema and infima are taken in the extended reals.
import Mathlib import Definitions.Def_RiskFunctionals_Deviation_AverageValueAtRisk import Definitions.Def_RiskFunctionals_Deviation_MinimalLoss
namespace RiskFunctionals.Deviation
open MeasureTheory
/-- Theorem 2.75 (Pflug & Römisch, pp. 109–110), on `Y ∈ L_p`, `Z ∈ L_q`, `1 ≤ p < ∞`,
`1/p + 1/q = 1`. Let `h` be a non-negative convex function on `ℝ` with `h(0) = 0`, let
`𝒟(Y) = min {𝔼[h(Y − a)] : a ∈ ℝ}` (2.109) be the minimal loss functional (rendered as an
infimum, `minimalLoss`), and suppose `𝔼[h(Y)]` exists (§2.5.5). Let `h*` be the Fenchel
conjugate `h*(v) = sup {u v − h(u) : u ∈ ℝ}`.
(i) `𝒟(Y) = sup {𝔼(Y Z) − 𝔼h*(Z) : 𝔼Z = 0}` (2.113); in particular
`𝔸𝕍@ℝ𝔻_α(Y) = sup {𝔼(Y Z) : −(1 − α)/α ≤ Z ≤ 1, 𝔼Z = 0}` (2.114).
(ii) `𝒜(Y) := 𝔼Y − 𝒟(Y) = inf {𝔼(Y Z) + 𝔼[h*(1 − Z)] : 𝔼(Z) = 1}`; in particular
`𝔸𝕍@ℝ_α(Y) = min {𝔼(Y Z) : 𝔼Z = 1, 0 ≤ Z ≤ 1/α}`.
The suprema and infima range over the `Z` for which the conjugate term is finite (the other `Z`
contribute `−∞` to the supremum and `+∞` to the infimum). -/
theorem minimal_loss_dual_representation {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
[IsProbabilityMeasure P] (p q : ENNReal) [Fact (1 ≤ p)] (hp : p ≠ ⊤)
[p.HolderConjugate q] :
-- (i), (2.113)
(∀ h : ℝ → ℝ, (∀ u, 0 ≤ h u) → ConvexOn ℝ Set.univ h → h 0 = 0 →
∀ Y : Ω → ℝ, Measurable Y → MemLp Y p P → Integrable (fun ω => h (Y ω)) P →
((minimalLoss P h Y : ENNReal) : EReal) =
⨆ Z ∈ {Z : Ω → ℝ | Measurable Z ∧ MemLp Z q P ∧ ∫ ω, Z ω ∂P = 0 ∧
HasFiniteExpectedConj P h Z},
((∫ ω, Y ω * Z ω ∂P - expectedConj P h Z : ℝ) : EReal)) ∧
-- (i), (2.114)
(∀ α : ℝ, 0 < α → α ≤ 1 → ∀ Y : Ω → ℝ, Measurable Y → MemLp Y p P →
((avarDeviation P Y α : ℝ) : EReal) =
⨆ Z ∈ {Z : Ω → ℝ | Measurable Z ∧ MemLp Z q P ∧
(∀ᵐ ω ∂P, -((1 - α) / α) ≤ Z ω ∧ Z ω ≤ 1) ∧ ∫ ω, Z ω ∂P = 0},
((∫ ω, Y ω * Z ω ∂P : ℝ) : EReal)) ∧
-- (ii), the dual representation of `𝔼 − 𝒟`
(∀ h : ℝ → ℝ, (∀ u, 0 ≤ h u) → ConvexOn ℝ Set.univ h → h 0 = 0 →
∀ Y : Ω → ℝ, Measurable Y → MemLp Y p P → Integrable (fun ω => h (Y ω)) P →
((∫ ω, Y ω ∂P : ℝ) : EReal) - ((minimalLoss P h Y : ENNReal) : EReal) =
⨅ Z ∈ {Z : Ω → ℝ | Measurable Z ∧ MemLp Z q P ∧ ∫ ω, Z ω ∂P = 1 ∧
HasFiniteExpectedConj P h (fun ω => 1 - Z ω)},
((∫ ω, Y ω * Z ω ∂P + expectedConj P h (fun ω => 1 - Z ω) : ℝ) : EReal)) ∧
-- (ii), the representation of `𝔸𝕍@ℝ_α`, with attainment
(∀ α : ℝ, 0 < α → α ≤ 1 → ∀ Y : Ω → ℝ, Measurable Y → MemLp Y p P →
IsLeast {v : ℝ | ∃ Z : Ω → ℝ, Measurable Z ∧ MemLp Z q P ∧ ∫ ω, Z ω ∂P = 1 ∧
(∀ᵐ ω ∂P, 0 ≤ Z ω ∧ Z ω ≤ 1 / α) ∧ v = ∫ ω, Y ω * Z ω ∂P}
(averageValueAtRisk P Y α)) := by sorry
end RiskFunctionals.Deviation
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement takes a measurable space and a probability measure on it. It also takes two exponents with:
- and , so ;
- and Hölder conjugates, . So , and gives .
and mean the usual spaces of functions whose -th (or -th) power is -integrable, with meaning -essentially bounded. Every expectation and below is a Lebesgue integral with respect to , and it is by convention when the integrand is not integrable.
The statement uses five named objects from the imported definition files. Their bodies are not part of the code shown, so this read-back can only give their names and the types the code reveals:
- , with values in ;
- , a real number;
- , a yes/no condition on ;
- , a real number;
- , a real number.
The text comment above the theorem is not part of what is asserted. Under the hypotheses above, the statement asserts that the four claims below all hold. Each claim quantifies its own , and .
Claim 1. Take any function that is nonnegative everywhere, convex on all of , and has . Take any measurable such that is -integrable. Then, in the extended reals ,
Here is the set of measurable with for which holds. The left side lies in , so it may be . Each term on the right is a real number. If is empty, the supremum is .
Claim 2. Take any real with , and any measurable . No is involved here, and no integrability of is assumed. Then, in the extended reals,
Here is the set of measurable such that and, for -almost every ,
The left side is a real number.
Claim 3. Take and under exactly the hypotheses of Claim 1. Then, in the extended reals,
The subtraction on the left is done in the extended reals: if , the left side is . Here is the set of measurable with for which holds. If is empty, the infimum is .
Claim 4. Take any real with , and any measurable . Then the real number is the least element of the set
"Least element" means two things: some admissible attains it, and it is every element of . In all four claims, must be genuinely measurable; being almost-everywhere measurable is not enough.
Degenerate cases. These are what the four claims assert at the edges their hypotheses permit:
- Empty . This cannot occur, because is a probability measure.
- One-point . Every function is a constant, and forces .
- Claim 1 then says equals when holds. When that condition fails, it says , which is impossible because the left side is nonnegative.
- Claim 3 has only the candidate .
- . Then , so ranges over essentially bounded functions.
- in Claim 2. The bounds become a.e., and together with they force a.e. So contains only functions that are a.e. zero, and the claim asserts .
- in Claim 4. The conditions a.e. and force a.e. So , and the claim asserts .
- generally. always lies in , so that supremum is at least and is never taken over an empty set. Likewise always lies in , so is never empty.
- Empty or . Claims 1 and 3 have no such guarantee. If fails for every candidate, the right sides are the defaults: for the supremum in Claim 1, and for the infimum in Claim 3.
- Integrals. Because , and is a probability measure, the integrals and are of integrable functions, so the "non-integrable gives " default never applies to them.
- What the code does not say. Whether uses a default value when its integrand is not integrable, and what actually requires, is decided by the imported definitions, not by this statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.