When the spot rate R(T) is differentiable, d/dT [T · R(T)] = R(T) + T · R'(T) (product rule). This is the instantaneous forward rate, generalizing the flat-curve case.
∀ {R : ℝ → ℝ} {R'_T T : ℝ}, HasDerivAt R R'_T T → HasDerivAt (fun t => t * R t) (R T + T * R'_T) TForward-rate calculus identity / forward rate from a non-flat spot curve: d/dT [T · R(T)] = R(T) + T · R'(T) when R is differentiable at T. Writing F(T) := −log P(T) = T · R(T) for a zero-coupon bond P(T) = exp(−T·R(T)), the instantaneous forward rate at horizon T is exactly this derivative F'(T) = R(T) + T·R'(T) — so this single lemma is the non-flat-curve forward-rate formula (in the −log P parametrisation; the version against the actual discount factor is forwardRate_eq_neg_log_discount below).