MathFin
Map / Valuation · Credit / MathFin.Models.Credit.DefaultTimeMesh

The CDS on a payment grid converges to the continuous legs

MathFin.Models.Credit.DefaultTimeMeshMSC 91G40JEL G12 source

Models/Credit/DefaultTime.lean prices the CDS on a payment grid against a default time: the legs are the grid annuity ∑ D(tᵢ₊₁)(tᵢ₊₁ − tᵢ) S(tᵢ₊₁) and the grid losses ∑ D(tᵢ₊₁)(S tᵢ − S tᵢ₊₁). Here the grid is refined. For a continuous positive hazard rate h (survival S = hazardSurvival h) and a flat rate r, D u = e^{−ru}, the grid legs converge to the continuous legs of Models/Credit/Cox.lean as the mesh max (tᵢ₊₁ − tᵢ) goes to zero:

cdsAnnuityGrid D S t n → Cox.cdsAnnuity r h T, cdsLossesGrid D S t n → Cox.cdsLosses r h T,

and so the protection buyer's CDS contract converges to Cox.protectionLeg − Cox.premiumLeg, and the grid par spread to Cox.cdsFairSpreadTV.

The limit is taken in the numbers the grid contract is worth (value_cdsBuyer_coxDefaultTime). The grid protection leg also converges to the contract that pays at the default time: its values tend to the value of cdsProtectionAtDefault (Contract.payAtHit), which is Cox.protectionLeg (tendsto_value_cdsProtectionLeg_coxDefaultTime). The premium leg has no such contract, since the tower has no continuous payment stream.

The core is deterministic: a right-endpoint Riemann–Stieltjes sum of a continuous g against a continuous density f differs from ∫ g f by at most ε ∫ |f| once g oscillates by at most ε on each cell (abs_sum_mul_integral_sub_integral_le).

Main definitions

  • IsGridOfMesh — a grid of [0, T] with steps at most δ.

Main results

  • abs_sum_mul_integral_sub_integral_le — the Riemann–Stieltjes error bound.
  • exists_cdsLossesGrid_close, exists_cdsAnnuityGrid_close — the ε–δ form: for every ε there is a mesh bound δ under which every grid is within ε of the continuous leg.
  • tendsto_cdsLossesGrid, tendsto_cdsAnnuityGrid, tendsto_cdsParSpreadGrid, tendsto_value_cdsBuyer_coxDefaultTime, tendsto_value_cdsProtectionLeg_coxDefaultTime — the limits along grids whose mesh tends to zero.

References

Tags

CDS discretization, Riemann–Stieltjes sum, hazard rate, par spread limit, continuous-time CDS, MSC 91G40, JEL G12

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-contract-cds-losses-mesh-limit · contracts.json · full statement
Grid CDS Protection Leg Converges to the Continuous Default-Density Integral

For a continuous positive hazard rate h with survival S = hazardSurvival h, a flat rate r, a horizon T, and grids t_k of [0, T] (monotone, t_k 0 = 0, t_k (n_k) = T) whose steps are at most delta_k with delta_k -> 0, the discounted grid losses sum_{i<n_k} e^{-r t_k(i+1)} (S(t_k i) - S(t_k(i+1))) tend to Cox.cdsLosses r h T = int_0^T e^{-rs} h(s) S(s) ds. The proof is an epsilon-delta bound uniform over all grids of mesh at most delta: the error is at most epsilon times the default probability 1 - S(T).

mf-contract-cds-mesh-convergence · contracts.json · full statement
The Grid CDS Contract Converges to the Continuous Protection and Premium Legs

Under the Cox default time of a continuous positive intensity h with divergent cumulative hazard (a unit-exponential clock xi inverted through the cumulative hazard), the protection buyer's CDS on grids t_k of [0, T] whose steps are at most delta_k -> 0, discounted at the flat rate r (D u = e^{-ru}), has value (1 - R) * cdsLossesGrid - s * cdsAnnuityGrid, which converges to Cox.protectionLeg R r h T - Cox.premiumLeg s r h T = (1 - R) int_0^T e^{-rt} h(t) S(t) dt - s int_0^T e^{-rt} S(t) dt. Default is paid at the end of its grid period for every k; only the limit is the continuous legs.

mf-contract-cds-protection-grid-limit · contracts.json · full statement
The Grid CDS Protection Leg Converges to the Protection Leg Paid at the Default Time

Under the Cox default time of a continuous positive intensity h with divergent cumulative hazard, discounted at the flat rate r (D u = e^{-ru}), the values of the grid protection legs cdsProtectionLeg (t_k) R (n_k), each paying (1 - R)(N(t_(i+1)) - N(t_i)) at t_(i+1), on grids t_k of [0, T] whose steps are at most delta_k -> 0, converge to the value of the contract cdsProtectionAtDefault T R that pays (1 - R) at the default time itself if it is at most T. The limit is a contract value (which is Cox.protectionLeg R r h T); for every k the grid contract pays at the end of its period.

Declarations 11

theoremMathFin.Contracts.abs_sum_mul_integral_sub_integral_lesource
∀ {g f : ℝ → ℝ}, Continuous g → Continuous f → ∀ {t : ℕ → ℝ}, Monotone t → ∀ (n : ℕ) {ε : ℝ}, (∀ i < n, ∀ s ∈ Set.Icc (t i) (t (i + 1)), |g (t (i + 1)) - g s| ≤ ε) → |(∑ i ∈ Finset.range n, g (t (i + 1)) * ∫ (s : ℝ) in t i..t (i + 1), f s) - ∫ (s : ℝ) in t 0..t n, g s * f s| ≤ ε * ∫ (s : ℝ) in t 0..t n, |f s|

The Riemann–Stieltjes error bound. Let g and f be continuous and t a monotone grid. If g moves by at most ε between the right end of each cell [tᵢ, tᵢ₊₁] and any point of it, then ∑ g(tᵢ₊₁) ∫_{tᵢ}^{tᵢ₊₁} f is within ε ∫ |f| of ∫_{t₀}^{tₙ} g f.

defMathFin.Contracts.IsGridOfMeshsource
(ℕ → NNReal) → ℕ → ℝ → ℝ → Prop

t is a grid of [0, T] of mesh at most δ with n cells: monotone, from 0 to T, with every step at most δ.

theoremMathFin.Contracts.IsGridOfMesh.monosource
∀ {t : ℕ → NNReal} {n : ℕ} {T δ δ' : ℝ}, IsGridOfMesh t n T δ → δ ≤ δ' → IsGridOfMesh t n T δ'
theoremMathFin.Contracts.exists_oscillation_lesource
∀ {g : ℝ → ℝ}, Continuous g → ∀ (T : ℝ) {ε : ℝ}, 0 < ε → ∃ δ > 0, ∀ x ∈ Set.Icc 0 T, ∀ y ∈ Set.Icc 0 T, |x - y| ≤ δ → |g x - g y| ≤ ε

A continuous g oscillates by at most ε at some scale δ > 0 on [0, T]: uniform continuity on the compact interval.

theoremMathFin.Contracts.exists_cdsLossesGrid_closesource
∀ {h : ℝ → ℝ}, Continuous h → (∀ (s : ℝ), 0 < h s) → ∀ (r T : ℝ) {ε : ℝ}, 0 < ε → ∃ δ > 0, ∀ (t : ℕ → NNReal) (n : ℕ), IsGridOfMesh t n T δ → |cdsLossesGrid (fun u => Real.exp (-(r * ↑u))) (hazardSurvival h) t n - cdsLosses r h T| ≤ ε

The grid losses are close to the continuous losses. For a continuous positive hazard h, a rate r and a horizon T, every ε > 0 has a mesh bound δ > 0 such that every grid of [0, T] of mesh at most δ has |cdsLossesGrid D S t n − Cox.cdsLosses r h T| ≤ ε, with D u = e^{−ru} and S = hazardSurvival h. The error is at most ε times the default probability 1 − S(T) ≤ 1.

theoremMathFin.Contracts.exists_cdsAnnuityGrid_closesource
∀ {h : ℝ → ℝ}, Continuous h → ∀ (r : ℝ) {T : ℝ}, 0 ≤ T → ∀ {ε : ℝ}, 0 < ε → ∃ δ > 0, ∀ (t : ℕ → NNReal) (n : ℕ), IsGridOfMesh t n T δ → |cdsAnnuityGrid (fun u => Real.exp (-(r * ↑u))) (hazardSurvival h) t n - cdsAnnuity r h T| ≤ ε

The grid annuity is close to the continuous annuity, as exists_cdsLossesGrid_close: every grid of [0, T] of mesh at most δ has |cdsAnnuityGrid D S t n − Cox.cdsAnnuity r h T| ≤ ε. The error is at most ε/(T + 1) times T.

theoremMathFin.Contracts.tendsto_cdsLossesGridsource
∀ {h : ℝ → ℝ}, Continuous h → (∀ (s : ℝ), 0 < h s) → ∀ (r T : ℝ) {t : ℕ → ℕ → NNReal} {n : ℕ → ℕ} {δ : ℕ → ℝ}, (∀ (k : ℕ), IsGridOfMesh (t k) (n k) T (δ k)) → Filter.Tendsto δ Filter.atTop (nhds 0) → Filter.Tendsto (fun k => cdsLossesGrid (fun u => Real.exp (-(r * ↑u))) (hazardSurvival h) (t k) (n k)) Filter.atTop (nhds (cdsLosses r h T))

The grid losses converge to the continuous losses along grids of [0, T] whose mesh tends to zero: cdsLossesGrid D S (t k) (n k) → Cox.cdsLosses r h T, D u = e^{−ru}.

theoremMathFin.Contracts.tendsto_cdsAnnuityGridsource
∀ {h : ℝ → ℝ}, Continuous h → ∀ (r : ℝ) {T : ℝ}, 0 ≤ T → ∀ {t : ℕ → ℕ → NNReal} {n : ℕ → ℕ} {δ : ℕ → ℝ}, (∀ (k : ℕ), IsGridOfMesh (t k) (n k) T (δ k)) → Filter.Tendsto δ Filter.atTop (nhds 0) → Filter.Tendsto (fun k => cdsAnnuityGrid (fun u => Real.exp (-(r * ↑u))) (hazardSurvival h) (t k) (n k)) Filter.atTop (nhds (cdsAnnuity r h T))

The grid annuity converges to the continuous annuity along grids of [0, T] whose mesh tends to zero: cdsAnnuityGrid D S (t k) (n k) → Cox.cdsAnnuity r h T.

theoremMathFin.Contracts.tendsto_cdsParSpreadGridsource
∀ {h : ℝ → ℝ}, Continuous h → (∀ (s : ℝ), 0 < h s) → ∀ (r R : ℝ) {T : ℝ}, 0 < T → ∀ {t : ℕ → ℕ → NNReal} {n : ℕ → ℕ} {δ : ℕ → ℝ}, (∀ (k : ℕ), IsGridOfMesh (t k) (n k) T (δ k)) → Filter.Tendsto δ Filter.atTop (nhds 0) → Filter.Tendsto (fun k => cdsParSpreadGrid (fun u => Real.exp (-(r * ↑u))) (hazardSurvival h) (t k) R (n k)) Filter.atTop (nhds (cdsFairSpreadTV r h R T))

The grid par spread converges to the continuous fair spread Cox.cdsFairSpreadTV along grids of (0, T] whose mesh tends to zero: the ratio of the two limits, whose denominator Cox.cdsAnnuity is positive.

theoremMathFin.Contracts.tendsto_value_cdsBuyer_coxDefaultTimesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {h : ℝ → ℝ}, Continuous h → (∀ (s : ℝ), 0 < h s) → Filter.Tendsto (cumHazard h) Filter.atTop Filter.atTop → ∀ {ξ : Ω → ℝ}, Measurable ξ → Measure.map ξ μ = expMeasure 1 → ∀ (r s R : ℝ) {T : ℝ}, 0 ≤ T → ∀ {t : ℕ → ℕ → NNReal} {n : ℕ → ℕ} {δ : ℕ → ℝ}, (∀ (k : ℕ), IsGridOfMesh (t k) (n k) T (δ k)) → Filter.Tendsto δ Filter.atTop (nhds 0) → Filter.Tendsto (fun k => Contract.value μ (fun u x => Real.exp (-(r * ↑u))) (defaultIndicator (coxDefaultTime h ξ)) (cdsBuyer (t k) s R (n k))) Filter.atTop (nhds (protectionLeg R r h T - premiumLeg s r h T))

The CDS contract converges to the continuous legs. Under the Cox default time of a continuous positive intensity h (hdiv: the cumulative hazard diverges), the protection buyer's CDS on the grids t k of [0, T], discounted at the flat rate r (D u = e^{−ru}), is worth (1 − R)·cdsLossesGrid − s·cdsAnnuityGrid (value_cdsBuyer_coxDefaultTime), which tends to Cox.protectionLeg R r h T − Cox.premiumLeg s r h T as the mesh tends to zero. The limit is a statement about the values, Cox.protectionLeg and Cox.premiumLeg: the first is the value of cdsProtectionAtDefault (tendsto_value_cdsProtectionLeg_coxDefaultTime).

theoremMathFin.Contracts.tendsto_value_cdsProtectionLeg_coxDefaultTimesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {h : ℝ → ℝ}, Continuous h → (∀ (s : ℝ), 0 < h s) → Filter.Tendsto (cumHazard h) Filter.atTop Filter.atTop → ∀ {ξ : Ω → ℝ}, Measurable ξ → Measure.map ξ μ = expMeasure 1 → ∀ (r R : ℝ) {T : NNReal} {t : ℕ → ℕ → NNReal} {n : ℕ → ℕ} {δ : ℕ → ℝ}, (∀ (k : ℕ), IsGridOfMesh (t k) (n k) (↑T) (δ k)) → Filter.Tendsto δ Filter.atTop (nhds 0) → Filter.Tendsto (fun k => Contract.value μ (fun u x => Real.exp (-(r * ↑u))) (defaultIndicator (coxDefaultTime h ξ)) (cdsProtectionLeg (t k) R (n k))) Filter.atTop (nhds (Contract.value μ (fun u x => Real.exp (-(r * ↑u))) (defaultIndicator (coxDefaultTime h ξ)) (cdsProtectionAtDefault T R)))

The grid protection leg converges to the protection leg paid at the default time. Under the Cox default time, the values of the grid contracts cdsProtectionLeg (t k) R (n k), each paying (1 − R) at the end of the period in which default happens, tend to the value of the contract cdsProtectionAtDefault T R, which pays (1 − R) at the default time itself, as the mesh of the grids of [0, T] goes to zero.