-
Notifications
You must be signed in to change notification settings - Fork 5
Basic unilateral CVA = (1−R)·∫₀ᵀ EE(u)·e^(−ru)·h(u)·S(u) du #98
Copy link
Copy link
Open
Labels
area:creditCredit risk — structural + reduced-form default, CDS, correlation, XVA.Credit risk — structural + reduced-form default, CDS, correlation, XVA.difficulty:mediumRequires repo context, Lean fluency, or careful validationRequires repo context, Lean fluency, or careful validationstatus:readyScoped enough for a contributor to pick upScoped enough for a contributor to pick uptype:proofLean theorem, proof repair, or theorem generalizationLean theorem, proof repair, or theorem generalization
Description
Metadata
Metadata
Assignees
Labels
area:creditCredit risk — structural + reduced-form default, CDS, correlation, XVA.Credit risk — structural + reduced-form default, CDS, correlation, XVA.difficulty:mediumRequires repo context, Lean fluency, or careful validationRequires repo context, Lean fluency, or careful validationstatus:readyScoped enough for a contributor to pick upScoped enough for a contributor to pick uptype:proofLean theorem, proof repair, or theorem generalizationLean theorem, proof repair, or theorem generalization
Context
The (unilateral) credit valuation adjustment prices counterparty default risk as expected
exposure integrated against the risk-neutral default-time density. It is the natural downstream
consumer of the deterministic hazard curve
S(u) = exp(−∫₀^u h)inFixedIncome/HazardCurve.lean,whose default density is
h(u)·S(u)— the same credit-triangle marginal ascdsFairSpread.Task
Define
cvafor a deterministic expected-exposure profileEE : ℝ → ℝand proveCVA = (1−R)·∫₀^T EE(u)·e^{−r u}·h(u)·S(u) du. Specialise to constant exposureEE ≡ E₀andconstant hazard
hto get the closed formCVA = (1−R)·E₀·(h/(r+h))·(1 − e^{−(r+h)T}).Acceptance criteria
full(orlibrary_wrapper) benchmark entry deriving the result; axioms-clean.Pointers
MathFin/FixedIncome/HazardCurve.lean(cumHazard,hazardSurvival),MathFin/FixedIncome/Credit.lean(survivalProbability,cdsFairSpread),MathFin/FixedIncome/CDSTimeVarying.lean(annuity/losses integral pattern).