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