Β§5 β law-invariant inputs, distributional evaluation, generated risks, VaR and ES
DefinitionDistTransform_Distortion_Supplement_RiskModelFix an arbitrary atomless probability space (Ξ©,π,P). The domain Lβ consists of measurable real losses that are bounded almost surely. The published risk classes retain Definition 4: monetary means monotone for almost-sure order and cash invariant; convex risk means monetary and convex; coherent means convex risk and positively homogeneous. Convex mixtures include Ξ»=0 and Ξ»=1, and positive homogeneity uses every Ξ»>0. No normalization or Fatou property is imposed.
For a law-invariant input Ο, the distributional functional and the generated risk are
The input type carries law invariance. The structural lemma rhoHat_eq proves independence from every measurable essentially bounded representative with the given law. On an atomless probability space every bounded law has such a representative. The actual law F_X is a measurable pushforward.
For pβ(0,1), the distributional Value-at-Risk and Expected Shortfall are
The generated ES is evaluated directly as ES_p(T(F_X)), giving the same law-invariant construction without choosing a representative of the ES functional. These objects connect bounded-law transforms with ordinary convex and coherent risk classes.
Formalization Note Raw functions represent Lβ classes; the reused axioms use almost-sure order, so monetary risks descend to equality almost surely. The reused cash axiom Ο(Xβm)=Ο(X)βm is exactly Ο(X+c)=Ο(X)+c after m=βc. The fallback values of rhoHat for a non-realizable law, and of law for a nonmeasurable input, are never used on the stated atomless bounded domain. The ES integral uses the open interval (p,1), omitting only null endpoints so no totalized endpoint quantile is evaluated.
import Mathlib
import Definitions.Def_DistTransform_Distortion_Supplement_Algebra
import Definitions.Def_TailRiskTheory_Generator_Model
namespace DistTransform.Distortion.Supplement
open MeasureTheory ProbabilityTheory
open TailRiskSharing.TailConv (Linf)
variable {Ξ© : Type*} [MeasurableSpace Ξ©]
/-- p. 16: risks allowed as inputs to the law-based construction. The published
law-invariance predicate equates cdfs; there is no convexity, normalization or Fatou axiom here. -/
def LawInvariantRisk (P : Measure Ξ©) :=
{Ο : (Ξ© β β) β β // TailRiskSharing.VaRTail.IsLawInvariant P (Linf P) Ο}
/-- A random variable has law F, expressed through the source's cdf identification. -/
def HasLaw (P : Measure Ξ©) (X : Ξ© β β) (F : ProbabilityMeasure β) : Prop :=
β x : β, TailRiskSharing.VaRConv.distFn P X x = cdf (F : Measure β) x
/-- p. 16: evaluate a law-invariant input on any Lβ representative of F.
The fallback is outside the intended domain: every bounded law has a representative
on every atomless probability space. Independence is proved below. -/
noncomputable def rhoHat (P : Measure Ξ©) (Ο : LawInvariantRisk P)
(F : ProbabilityMeasure β) : β := by
classical
exact if h : β X : Ξ© β β, X β Linf P β§ HasLaw P X F then Ο.val h.choose else 0
/-- Structural well-definedness: every admissible representative gives exactly the same value.
This uses only the law-invariance field, not a risk-measure theorem. -/
theorem rhoHat_eq (P : Measure Ξ©) (Ο : LawInvariantRisk P)
(F : ProbabilityMeasure β) (X : Ξ© β β) (hX : X β Linf P) (hF : HasLaw P X F) :
rhoHat P Ο F = Ο.val X := by
classical
have hex : β Y : Ξ© β β, Y β Linf P β§ HasLaw P Y F := β¨X, hX, hFβ©
rw [rhoHat, dif_pos hex]
exact Ο.property hex.choose hex.choose_spec.1 X hX
(fun x => (hex.choose_spec.2 x).trans (hF x).symm)
/-- The actual pushforward law. Outside measurable random variables a harmless
constant law totalizes the function; every theorem restricts risks to Lβ. -/
noncomputable def law (P : Measure Ξ©) [IsProbabilityMeasure P] (X : Ξ© β β) :
ProbabilityMeasure β := by
classical
exact if hX : Measurable X then β¨P.map X, P.isProbabilityMeasure_map hX.aemeasurableβ©
else constantLaw 0
/-- p. 16: the generated risk, defined only for a law-invariant input. -/
noncomputable def generated (P : Measure Ξ©) [IsProbabilityMeasure P]
(Ο : LawInvariantRisk P) (T : ProbabilityMeasure β β ProbabilityMeasure β)
(X : Ξ© β β) : β :=
rhoHat P Ο (T (law P X))
/-- p. 16: VaR at an interior confidence level. -/
noncomputable def valueAtRisk (p : β) (F : ProbabilityMeasure β) : β := leftQuantile F p
/-- p. 16: ES, used only for 0 < p < 1. The omitted integration endpoints have
Lebesgue measure zero; quantile values at endpoints are never used. -/
noncomputable def expectedShortfall (p : β) (F : ProbabilityMeasure β) : β :=
(1 - p)β»ΒΉ * β« t in Set.Ioo p (1 : β), leftQuantile F t
/-- The law-invariant ES input permits a direct distributional evaluation of its transform. -/
noncomputable def generatedES (P : Measure Ξ©) [IsProbabilityMeasure P]
(T : ProbabilityMeasure β β ProbabilityMeasure β) (p : β) (X : Ξ© β β) : β :=
expectedShortfall p (T (law P X))
end DistTransform.Distortion.Supplement