MathFin
Map / Probability · Analysis and convexity / MathFin.Probability.Analysis.ExponentialDiscount

The exponential-discount / cumulative-rate principle

MathFin.Probability.Analysis.ExponentialDiscountMSC 91G30JEL E43JEL G12 source

Five apparently distinct quantities in this library share one structural identity:

quantity = exp(−H(t)), where H(t) = ∫₀^t rate(u) du.

The instances:

| object | rate r(u) | quantity | |---|---|---| | Zero-coupon bond | risk-free rate r | P(t) = exp(−r·(T−t)) | | Hazard credit | hazard intensity h | S(t) = exp(−h·(T−t)) | | Survival w/ curve | hazard function h(u) | S(t) = exp(−∫₀^t h(u) du) (HazardCurve) | | Force of mortality | force μ(u) | survival = exp(−∫₀^t μ(u) du) (Mortality) | | Vasicek deterministic | drift toward θ | r(t) = θ + (r₀−θ)·exp(−κt) (no integral) |

The dual identity: rate as negative-log-derivative

Given a quantity Q(t) = exp(−H(t)), the rate can be recovered:

−d/dt log Q(t) = d/dt H(t) = rate(t).

This is the conceptual content of every "rate from term-structure" formula:

  • Forward rate from spot rate: f(T) = −d/dT log P(T) where P(T) = exp(−T · R(T)). (ForwardRate.lean)
  • Force of mortality from survival: μ(t) = −d/dt log S(t). (Mortality.lean)
  • Hazard intensity from survival: h(t) = −d/dt log S(t). (HazardCurve.lean)

The proof is one step: log(exp(x)) = x (Mathlib Real.log_exp). The derivative-of-H hypothesis carries through unchanged. We record this identity as rate_eq_neg_log_deriv below.

Main definitions

  • cumulativeIntensity: the cumulative ∫₀ᵗ r(u) du of a rate r : ℝ → ℝ.
  • survivalFromIntensity: S(t) = exp(−∫₀ᵗ r(u) du), the survival (or discount) factor of a rate.

Main results

  • rate_eq_neg_log_deriv: if H has derivative H'(t) at t, then -d/dt log(exp(-H(t))) = H'(t) at t. This is the universal "rate from quantity" recovery.
  • survivalFromIntensity_zero, hasDerivAt_neg_log_survivalFromIntensity: the survival of an intensity starts at 1 and the intensity is its negative log-derivative.
  • discount_pos: exp(-H) > 0 always (so all five discount/survival quantities are positive).

Tags

discount factor, hazard rate, force of mortality, survival probability, forward rate, cumulative rate, MSC 91G30, JEL E43, JEL G12

Import neighbourhood

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

Declarations 6

theoremMathFin.rate_eq_neg_log_derivsource
∀ {H : ℝ → ℝ} {H' t : ℝ}, HasDerivAt H H' t → HasDerivAt (fun s => -Real.log (Real.exp (-H s))) H' t

The universal rate-recovery identity: if H is differentiable at t with derivative H', then −d/dt log(exp(−H(t))) = H'(t) at t.

This is the conceptual reason forward rate = −d/dT log P (ZCB, ForwardRate), force of mortality = −d/dt log S (Mortality), and hazard = −d/dt log S (HazardCurve) are all the same identity: each computes the rate from the discount/survival, the difference is only in what H represents.

The proof: log(exp(−H s)) = −H s (logs and exps are inverses), so −log(exp(−H s)) = H s, and the derivative of the LHS equals H'(t) by hypothesis.

theoremMathFin.discount_possource
∀ (H : ℝ), 0 < Real.exp (-H)

Universal discount/survival positivity: 0 < exp(−H) for any H.

Underpins survival_pos (constant-hazard credit), hazardSurvival_pos (time-varying hazard), survivalFromForce_pos (mortality), and the implicit positivity of the BS discount factor exp(−rT).

defMathFin.cumulativeIntensitysource
(ℝ → ℝ) → ℝ → ℝ

Cumulative intensity ∫₀ᵗ r(u) du — the domain-neutral cumulative of a rate/intensity/force. The single definition that the actuarial cumulative force (Mortality.forceCumulative) and the credit cumulative hazard (FixedIncome.HazardCurve.cumHazard) share.

defMathFin.survivalFromIntensitysource
(ℝ → ℝ) → ℝ → ℝ

Survival from an intensity S(t) = exp(−∫₀ᵗ r(u) du) — the domain-neutral survival function. The single definition shared by the actuarial survival (Mortality.survivalFromForce) and the credit survival (FixedIncome.HazardCurve.hazardSurvival): one calculus, two domains.

theoremMathFin.survivalFromIntensity_zerosource
∀ (r : ℝ → ℝ), survivalFromIntensity r 0 = 1

S(0) = 1: nothing accrues before time 0.

theoremMathFin.hasDerivAt_neg_log_survivalFromIntensitysource
∀ {r : ℝ → ℝ}, Continuous r → ∀ (t : ℝ), HasDerivAt (fun s => -Real.log (survivalFromIntensity r s)) (r t) t

An intensity is the negative log-derivative of its survival: for continuous r, −d/dt log S(t) = r(t) — the fundamental theorem of calculus for cumulativeIntensity followed by rate_eq_neg_log_deriv.