Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.75 — dual representation of minimal loss functionals, D(Y)=sup⁡{E(YZ)−Eh∗(Z):EZ=0}\mathcal D(Y)=\sup\{\mathbb E(YZ)-\mathbb Eh^*(Z) : \mathbb EZ=0\}D(Y)=sup{E(YZ)−Eh∗(Z):EZ=0}, and of E−D\mathbb E-\mathcal DE−D

Proved
RiskFunctionals.Deviation.minimal_loss_dual_representation

by Shuze Chen · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

average-value-at-riskconvex-conjugatedeviation-measuresdualityrisk-measures

Let (Ω,F,P)(\Omega,\mathcal F,\mathbb P)(Ω,F,P) be a probability space, 1≤p<∞1\le p<\infty1≤p<∞, and qqq the conjugate exponent, 1/p+1/q=11/p+1/q=11/p+1/q=1; random variables YYY lie in LpL_pLp​ and dual variables ZZZ in LqL_qLq​. Let hhh be a non-negative convex function on R\mathbb RR with h(0)=0h(0)=0h(0)=0, let h∗(v)=sup⁡{uv−h(u):u∈R}h^*(v)=\sup\{uv-h(u) : u\in\mathbb R\}h∗(v)=sup{uv−h(u):u∈R} be its Fenchel conjugate, and let

D(Y)=min⁡{E[h(Y−a)]:a∈R}\mathcal D(Y)=\min\{\mathbb E[h(Y-a)] : a\in\mathbb R\}D(Y)=min{E[h(Y−a)]:a∈R}

be the minimal loss functional of hhh, for YYY such that E[h(Y)]\mathbb E[h(Y)]E[h(Y)] exists. For 0<α≤10<\alpha\le10<α≤1, AV@Rα(Y)=1α∫0αG−1(u) du\mathbb{AV@R}_\alpha(Y)=\frac1\alpha\int_0^\alpha G^{-1}(u)\,duAV@Rα​(Y)=α1​∫0α​G−1(u)du is the average value-at-risk and AV@RDα(Y)=E(Y)−AV@Rα(Y)\mathbb{AV@R}\mathbb D_\alpha(Y)=\mathbb E(Y)-\mathbb{AV@R}_\alpha(Y)AV@RDα​(Y)=E(Y)−AV@Rα​(Y) its deviation.

  1. D\mathcal DD has the dual representation
D(Y)=sup⁡{E(YZ)−Eh∗(Z):EZ=0}.(2.113)\mathcal D(Y)=\sup\{\mathbb E(YZ)-\mathbb Eh^*(Z) : \mathbb EZ=0\}. \tag{2.113}D(Y)=sup{E(YZ)−Eh∗(Z):EZ=0}.(2.113)
  1. In particular,
AV@RDα(Y)=sup⁡{E(YZ):−1−αα≤Z≤1, EZ=0}.(2.114)\mathbb{AV@R}\mathbb D_\alpha(Y)=\sup\Big\{\mathbb E(YZ) : -\frac{1-\alpha}{\alpha}\le Z\le1,\ \mathbb EZ=0\Big\}. \tag{2.114}AV@RDα​(Y)=sup{E(YZ):−α1−α​≤Z≤1, EZ=0}.(2.114)
  1. EY−D(Y)\mathbb EY-\mathcal D(Y)EY−D(Y) has the dual representation
A(Y):=EY−D(Y)=inf⁡{E(YZ)+E[h∗(1−Z)]:E(Z)=1}.\mathcal A(Y):=\mathbb EY-\mathcal D(Y)=\inf\{\mathbb E(YZ)+\mathbb E[h^*(1-Z)] : \mathbb E(Z)=1\}.A(Y):=EY−D(Y)=inf{E(YZ)+E[h∗(1−Z)]:E(Z)=1}.
  1. In particular (compare (2.20)),
AV@Rα(Y)=min⁡{E(YZ):EZ=1, 0≤Z≤1α}.\mathbb{AV@R}_\alpha(Y)=\min\Big\{\mathbb E(YZ) : \mathbb EZ=1,\ 0\le Z\le\frac1\alpha\Big\}.AV@Rα​(Y)=min{E(YZ):EZ=1, 0≤Z≤α1​}.

The theorem turns every minimal loss deviation functional, and the acceptability functional E−D\mathbb E-\mathcal DE−D, into a supremum (infimum) of linear functionals of YYY over an explicit set of dual variables, which is what makes these functionals usable as risk measures in optimization.

Formalization Note D(Y)\mathcal D(Y)D(Y) is the infimum over aaa of E[h(Y−a)]\mathbb E[h(Y-a)]E[h(Y−a)], a value in [0,+∞][0,+\infty][0,+∞] (the book's "min" presupposes attainment, which fails e.g. for h(v)=[v]+h(v)=[v]^+h(v)=[v]+ and unbounded YYY; attainment is not claimed). Parts 1 and 3 assume YYY measurable, Y∈LpY\in L_pY∈Lp​ and h(Y)h(Y)h(Y) integrable (the book's standing assumption of §2.5.5 that E[h(Y)]\mathbb E[h(Y)]E[h(Y)] exists), so D(Y)\mathcal D(Y)D(Y) is finite. h∗h^*h∗ is extended-real valued; the supremum in part 1 (infimum in part 3) is taken over the measurable Z∈LqZ\in L_qZ∈Lq​ with the stated mean for which h∗(Z)h^*(Z)h∗(Z) (resp. h∗(1−Z)h^*(1-Z)h∗(1−Z)) is almost surely finite and integrable — the remaining ZZZ contribute −∞-\infty−∞ (resp. +∞+\infty+∞) in the book's formula and do not change it. Parts 2 and 4 assume YYY measurable and in LpL_pLp​, 0<α≤10<\alpha\le10<α≤1; the constraints on ZZZ hold almost surely, and the minimum in part 4 is stated as attained (IsLeast). Suprema and infima are taken in the extended reals.

Preamble
import Mathlib
import Definitions.Def_RiskFunctionals_Deviation_AverageValueAtRisk
import Definitions.Def_RiskFunctionals_Deviation_MinimalLoss
Formal statement
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
Source
Pflug & Römisch, Modeling, Measuring and Managing Risk, World Scientific 2007, pp. 109–110, Theorem 2.75
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement takes a measurable space Ω\OmegaΩ and a probability measure PPP on it. It also takes two exponents p,q∈[0,∞]p, q \in [0, \infty]p,q∈[0,∞] with:

  • 1≤p1 \le p1≤p and p≠∞p \neq \inftyp=∞, so p∈[1,∞)p \in [1, \infty)p∈[1,∞);
  • ppp and qqq Hölder conjugates, 1p+1q=1\frac1p + \frac1q = 1p1​+q1​=1. So q∈(1,∞]q \in (1, \infty]q∈(1,∞], and p=1p = 1p=1 gives q=∞q = \inftyq=∞.

LpL^pLp and LqL^qLq mean the usual spaces of functions Ω→R\Omega \to \mathbb{R}Ω→R whose ppp-th (or qqq-th) power is PPP-integrable, with L∞L^\inftyL∞ meaning PPP-essentially bounded. Every expectation E[⋅]\mathbb{E}[\cdot]E[⋅] and ∫⋅ dP\int \cdot \, dP∫⋅dP below is a Lebesgue integral with respect to PPP, and it is 000 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:

  • minimalLoss(P,h,Y)\mathrm{minimalLoss}(P, h, Y)minimalLoss(P,h,Y), with values in [0,∞][0, \infty][0,∞];
  • expectedConj(P,h,Z)\mathrm{expectedConj}(P, h, Z)expectedConj(P,h,Z), a real number;
  • HasFiniteExpectedConj(P,h,Z)\mathrm{HasFiniteExpectedConj}(P, h, Z)HasFiniteExpectedConj(P,h,Z), a yes/no condition on ZZZ;
  • avarDeviation(P,Y,α)\mathrm{avarDeviation}(P, Y, \alpha)avarDeviation(P,Y,α), a real number;
  • averageValueAtRisk(P,Y,α)\mathrm{averageValueAtRisk}(P, Y, \alpha)averageValueAtRisk(P,Y,α), 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 hhh, α\alphaα and YYY.

Claim 1. Take any function h:R→Rh : \mathbb{R} \to \mathbb{R}h:R→R that is nonnegative everywhere, convex on all of R\mathbb{R}R, and has h(0)=0h(0) = 0h(0)=0. Take any measurable Y∈Lp(P)Y \in L^p(P)Y∈Lp(P) such that h∘Yh \circ Yh∘Y is PPP-integrable. Then, in the extended reals [−∞,+∞][-\infty, +\infty][−∞,+∞],

minimalLoss(P,h,Y)  =  sup⁡Z∈S1(∫YZ dP−expectedConj(P,h,Z)).\mathrm{minimalLoss}(P,h,Y) \;=\; \sup_{Z \in S_1} \Big( \int Y Z \, dP - \mathrm{expectedConj}(P,h,Z) \Big).minimalLoss(P,h,Y)=Z∈S1​sup​(∫YZdP−expectedConj(P,h,Z)).

Here S1S_1S1​ is the set of measurable Z∈Lq(P)Z \in L^q(P)Z∈Lq(P) with ∫Z dP=0\int Z \, dP = 0∫ZdP=0 for which HasFiniteExpectedConj(P,h,Z)\mathrm{HasFiniteExpectedConj}(P,h,Z)HasFiniteExpectedConj(P,h,Z) holds. The left side lies in [0,∞][0, \infty][0,∞], so it may be +∞+\infty+∞. Each term on the right is a real number. If S1S_1S1​ is empty, the supremum is −∞-\infty−∞.

Claim 2. Take any real α\alphaα with 0<α≤10 < \alpha \le 10<α≤1, and any measurable Y∈Lp(P)Y \in L^p(P)Y∈Lp(P). No hhh is involved here, and no integrability of h∘Yh \circ Yh∘Y is assumed. Then, in the extended reals,

avarDeviation(P,Y,α)  =  sup⁡Z∈S2∫YZ dP.\mathrm{avarDeviation}(P,Y,\alpha) \;=\; \sup_{Z \in S_2} \int Y Z \, dP.avarDeviation(P,Y,α)=Z∈S2​sup​∫YZdP.

Here S2S_2S2​ is the set of measurable Z∈Lq(P)Z \in L^q(P)Z∈Lq(P) such that ∫Z dP=0\int Z \, dP = 0∫ZdP=0 and, for PPP-almost every ω\omegaω,

−1−αα  ≤  Z(ω)  ≤  1.-\frac{1-\alpha}{\alpha} \;\le\; Z(\omega) \;\le\; 1 .−α1−α​≤Z(ω)≤1.

The left side is a real number.

Claim 3. Take hhh and YYY under exactly the hypotheses of Claim 1. Then, in the extended reals,

E[Y]−minimalLoss(P,h,Y)  =  inf⁡Z∈S3(∫YZ dP+expectedConj(P,h,1−Z)).\mathbb{E}[Y] - \mathrm{minimalLoss}(P,h,Y) \;=\; \inf_{Z \in S_3} \Big( \int Y Z \, dP + \mathrm{expectedConj}(P,h,1-Z) \Big).E[Y]−minimalLoss(P,h,Y)=Z∈S3​inf​(∫YZdP+expectedConj(P,h,1−Z)).

The subtraction on the left is done in the extended reals: if minimalLoss(P,h,Y)=+∞\mathrm{minimalLoss}(P,h,Y) = +\inftyminimalLoss(P,h,Y)=+∞, the left side is −∞-\infty−∞. Here S3S_3S3​ is the set of measurable Z∈Lq(P)Z \in L^q(P)Z∈Lq(P) with ∫Z dP=1\int Z \, dP = 1∫ZdP=1 for which HasFiniteExpectedConj(P,h, ω↦1−Z(ω))\mathrm{HasFiniteExpectedConj}(P,h,\,\omega \mapsto 1 - Z(\omega))HasFiniteExpectedConj(P,h,ω↦1−Z(ω)) holds. If S3S_3S3​ is empty, the infimum is +∞+\infty+∞.

Claim 4. Take any real α\alphaα with 0<α≤10 < \alpha \le 10<α≤1, and any measurable Y∈Lp(P)Y \in L^p(P)Y∈Lp(P). Then the real number averageValueAtRisk(P,Y,α)\mathrm{averageValueAtRisk}(P,Y,\alpha)averageValueAtRisk(P,Y,α) is the least element of the set

V  =  {∫YZ dP  :  Z measurable, Z∈Lq(P), ∫Z dP=1, 0≤Z≤1α P-a.e.}.V \;=\; \Big\{ \int Y Z \, dP \;:\; Z \text{ measurable},\ Z \in L^q(P),\ \int Z\,dP = 1,\ 0 \le Z \le \tfrac{1}{\alpha} \ P\text{-a.e.} \Big\}.V={∫YZdP:Z measurable, Z∈Lq(P), ∫ZdP=1, 0≤Z≤α1​ P-a.e.}.

"Least element" means two things: some admissible ZZZ attains it, and it is ≤\le≤ every element of VVV. In all four claims, ZZZ 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 Ω\OmegaΩ. This cannot occur, because PPP is a probability measure.
  • One-point Ω\OmegaΩ. Every function is a constant, and ∫Z=0\int Z = 0∫Z=0 forces Z=0Z = 0Z=0.
    • Claim 1 then says minimalLoss(P,h,Y)\mathrm{minimalLoss}(P,h,Y)minimalLoss(P,h,Y) equals −expectedConj(P,h,0)-\mathrm{expectedConj}(P,h,0)−expectedConj(P,h,0) when HasFiniteExpectedConj(P,h,0)\mathrm{HasFiniteExpectedConj}(P,h,0)HasFiniteExpectedConj(P,h,0) holds. When that condition fails, it says minimalLoss(P,h,Y)=−∞\mathrm{minimalLoss}(P,h,Y) = -\inftyminimalLoss(P,h,Y)=−∞, which is impossible because the left side is nonnegative.
    • Claim 3 has only the candidate Z=1Z = 1Z=1.
  • p=1p = 1p=1. Then q=∞q = \inftyq=∞, so ZZZ ranges over essentially bounded functions.
  • α=1\alpha = 1α=1 in Claim 2. The bounds become 0≤Z≤10 \le Z \le 10≤Z≤1 a.e., and together with ∫Z=0\int Z = 0∫Z=0 they force Z=0Z = 0Z=0 a.e. So S2S_2S2​ contains only functions that are a.e. zero, and the claim asserts avarDeviation(P,Y,1)=0\mathrm{avarDeviation}(P,Y,1) = 0avarDeviation(P,Y,1)=0.
  • α=1\alpha = 1α=1 in Claim 4. The conditions 0≤Z≤10 \le Z \le 10≤Z≤1 a.e. and ∫Z=1\int Z = 1∫Z=1 force Z=1Z = 1Z=1 a.e. So V={E[Y]}V = \{\mathbb{E}[Y]\}V={E[Y]}, and the claim asserts averageValueAtRisk(P,Y,1)=E[Y]\mathrm{averageValueAtRisk}(P,Y,1) = \mathbb{E}[Y]averageValueAtRisk(P,Y,1)=E[Y].
  • α∈(0,1]\alpha \in (0,1]α∈(0,1] generally. Z=0Z = 0Z=0 always lies in S2S_2S2​, so that supremum is at least 000 and is never taken over an empty set. Likewise Z=1Z = 1Z=1 always lies in VVV, so VVV is never empty.
  • Empty S1S_1S1​ or S3S_3S3​. Claims 1 and 3 have no such guarantee. If HasFiniteExpectedConj\mathrm{HasFiniteExpectedConj}HasFiniteExpectedConj fails for every candidate, the right sides are the defaults: −∞-\infty−∞ for the supremum in Claim 1, and +∞+\infty+∞ for the infimum in Claim 3.
  • Integrals. Because Y∈LpY \in L^pY∈Lp, Z∈LqZ \in L^qZ∈Lq and PPP is a probability measure, the integrals ∫Y dP\int Y\,dP∫YdP and ∫YZ dP\int YZ\,dP∫YZdP are of integrable functions, so the "non-integrable gives 000" default never applies to them.
  • What the code does not say. Whether expectedConj\mathrm{expectedConj}expectedConj uses a default value when its integrand is not integrable, and what HasFiniteExpectedConj\mathrm{HasFiniteExpectedConj}HasFiniteExpectedConj actually requires, is decided by the imported definitions, not by this statement.
Human review
  • Endorsed by Community (Bot) · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me