MathFin
Map / Valuation · Interest rates / MathFin.Models.Rates.ShortRate

Stochastic discounting, and contracts in the Gaussian short-rate models

MathFin.Models.Rates.ShortRateMSC 91G30MSC 91G20JEL E43 source

In a short-rate model the discount factor is a random variable at each time, D t = exp(−∫₀ᵗ r_s ds) (shortRateDiscount), and Contract.value Q D X c values a contract along each outcome by that outcome's discount path.

A schedule of fixed cash flows sees only the model's zero curve P(0, t) = 𝔼_Q[D t] (zeroCurve, Pricing/Value.lean): its value under the stochastic discount factor is its value on that curve (value_fixedFlows_eq_zeroCurve), given each D tᵢ integrable. The Gaussian short-rate models give the curve in closed form, and the integrability comes with it, since a function whose integral is nonzero is integrable (value_fixedFlows_of_zeroCurve_eq). So a coupon bond is worth ∑ cᵢ P(0, tᵢ) with

  • Vasicek: P(0, t) = A(t) e^{−B(t) r₀} (value_fixedFlows_vasicek, from vasicekBondPrice_affine);
  • Hull–White with continuous forcing θ: the same B, and A carrying θ (value_fixedFlows_hullWhite, from HullWhite.bondPrice_affine);
  • two-piece GSR, for payment dates after the volatility switch T*: P(0, t) = exp(−M(t) + V(t)/2) with the GSR variance (value_fixedFlows_gsr, from gsrBondPrice_eq).

In each, the measure is read as the pricing measure: no change of measure is built, as in the bond-price theorems the instances consume. Contracts whose cash flows depend on the rate, such as a floating leg paying the rate it observes, are not covered by these closed forms: valuing one needs the bond prices P(t, T) at t > 0, the conditional expectation bondPrice (Models/Rates/Caplet.lean). For the Vasicek, Hull–White and two-piece GSR models they are in closed form (bondPrice_vasicek, bondPrice_hullWhite, bondPrice_gsr, Models/Rates/VasicekBond.lean, Models/Rates/HullWhiteBond.lean, Models/Rates/GSRBond.lean), and the bond put and caplet follow (Models/Rates/Jamshidian.lean).

Main definitions

  • shortRateDiscount — D t = exp(−R t) from an integrated short rate R.

Main results

  • value_fixedFlows_vasicek, value_fixedFlows_hullWhite, value_fixedFlows_gsr.

Source

The layered separation of contract semantics from pricing semantics, and the framing "the contract is not the model", are due to Paul Bilokon, The Contract Is Not the Model: Proof-Carrying Exotic Derivatives and the Economics of Model Risk (working paper, 9 August 2026; Mathematical Finance, Imperial College London), with code at <https://github.com/thalesians/lean_contracts> (Apache-2.0). That paper in turn builds on the compositional contract-DSL of Peyton Jones, Eber and Seward (2000) and the certified-contract work of Bahr, Berthold and Elsman (2015) and Annenkov (2018).

No code is copied from lean_contracts; every definition and proof here is written for this library. See docs/specs/2026-08-16-contracts-tower-design.md §6 for the full credit line.

References

  • Andersen and Piterbarg, Interest Rate Modeling [AndersenPiterbarg2010], ch. 10
  • P. Bilokon, The Contract Is Not the Model [Bilokon2026]
  • D. Brigo and F. Mercurio, Interest Rate Models --- Theory and Practice [BrigoMercurio2006], sec. 1.2; sec. 3.2.1; sec. 3.3
  • J. Hull and A. White, Pricing interest-rate-derivative securities [HullWhite1990]
  • O. Vasicek, An equilibrium characterization of the term structure [Vasicek1977]

Tags

stochastic discount factor, zero curve, coupon bond pricing, Vasicek model, Hull–White model, Gaussian short rate, contract valuation, MSC 91G30, MSC 91G20, JEL E43

Import neighbourhood

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

Corpus entries

mf-contract-coupon-bond-vasicek · contracts.json · full statement
A Coupon Bond in the Vasicek Model Is Worth the Sum of Its Affine Bond Prices

In the Vasicek model, with the integrated short rate R(t) = M(t) + sigma * (Wiener integral of the integrated kernel) from r0 (kappa > 0) and the discount factor D(t) = exp(-R(t)), the schedule paying c_i at t_i (i < n), valued under D as a contract in any model, is worth sum_i A(t_i) exp(-B(t_i) r0) c_i, with A, B the Vasicek affine coefficients. The Brownian measure is read as the pricing measure; no change of measure is built. No integrability hypothesis is needed.

mf-contract-coupon-bond-hull-white · contracts.json · full statement
A Coupon Bond in the Hull-White Model Is Worth the Sum of Its Affine Bond Prices

In the Hull-White model with continuous forcing theta (kappa > 0), with the integrated short rate R(t) in its Wiener representation from r0 and the discount factor D(t) = exp(-R(t)), the schedule paying c_i at t_i (i < n), valued under D as a contract in any model, is worth sum_i A(t_i) exp(-B(t_i) r0) c_i, with B the Vasicek coefficient and A = HullWhite.bondA carrying theta. The Brownian measure is read as the pricing measure; no change of measure is built. No integrability hypothesis is needed.

mf-contract-coupon-bond-gsr · contracts.json · full statement
A Coupon Bond in the Two-Piece GSR Model Is Worth the Sum of Its Gaussian Bond Prices

In the Gaussian short-rate model with mean reversion kappa > 0 and volatility sigma1 before a switch time T* and sigma2 after, with the integrated short rate R(t) in its Wiener representation from r0 and the discount factor D(t) = exp(-R(t)), the schedule paying c_i at dates t_i >= T* (i < n), valued under D as a contract in any model, is worth sum_i exp(-M(t_i) + V(t_i)/2) c_i, with M the Vasicek integrated mean and V = gsrBondV the GSR variance. The Brownian measure is read as the pricing measure. Payment dates before T* are not covered.

Declarations 4

defMathFin.Contracts.shortRateDiscountsource
{Ω : Type u_2} → (NNReal → Ω → ℝ) → NNReal → Ω → ℝ

The discount factor of a short-rate model, D t = exp(−R t), from its integrated short rate R t = ∫₀ᵗ r_s ds.

theoremMathFin.Contracts.value_fixedFlows_vasiceksource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} (hB : IsPreBrownianReal B μ) (r₀ θ σ : ℝ) {κ : ℝ} (hκ : 0 < κ) (X : ι → NNReal → Ω → ℝ) (t : ℕ → NNReal) (c : ℕ → ℝ) (n : ℕ), Contract.value μ (shortRateDiscount (vasicekIntegratedRate hB r₀ θ σ hκ)) X (fixedFlows t c n) = ∑ i ∈ Finset.range n, vasicekBondPrice θ σ κ (↑(t i)) r₀ * c i

A coupon bond in the Vasicek model: discounted by exp(−∫₀ᵗ r) along the Vasicek short rate from r₀, the schedule paying cᵢ at tᵢ is worth ∑ A(tᵢ) e^{−B(tᵢ) r₀} cᵢ, the affine bond prices of vasicekBondPrice_affine, with μ read as the pricing measure.

theoremMathFin.Contracts.value_fixedFlows_hullWhitesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} (hB : IsPreBrownianReal B μ) {θ : ℝ → ℝ}, Continuous θ → ∀ (κ σ r₀ : ℝ) (hκ : 0 < κ) (X : ι → NNReal → Ω → ℝ) (t : ℕ → NNReal) (c : ℕ → ℝ) (n : ℕ), Contract.value μ (shortRateDiscount (bondRate hB θ κ σ r₀ hκ)) X (fixedFlows t c n) = ∑ i ∈ Finset.range n, bondA θ σ κ ↑(t i) * Real.exp (-(vasicekBondB κ ↑(t i) * r₀)) * c i

A coupon bond in the Hull–White model: for continuous forcing θ, the schedule paying cᵢ at tᵢ is worth ∑ A(tᵢ) e^{−B(tᵢ) r₀} cᵢ, with Vasicek's B and A = HullWhite.bondA carrying θ (HullWhite.bondPrice_affine), with μ read as the pricing measure.

theoremMathFin.Contracts.value_fixedFlows_gsrsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {B : NNReal → Ω → ℝ} (hB : IsPreBrownianReal B μ) (r₀ θ σ1 σ2 : ℝ) {κ : ℝ} (hκ : 0 < κ) (Tstar : NNReal) (X : ι → NNReal → Ω → ℝ) (t : ℕ → NNReal) (c : ℕ → ℝ) (n : ℕ), (∀ i < n, Tstar ≤ t i) → Contract.value μ (shortRateDiscount (gsrIntegratedRate hB r₀ θ σ1 σ2 hκ Tstar)) X (fixedFlows t c n) = ∑ i ∈ Finset.range n, Real.exp (-vasicekIntegratedMean r₀ θ κ ↑(t i) + gsrBondV κ σ1 σ2 ↑Tstar ↑(t i) / 2) * c i

A coupon bond in the two-piece GSR model: with volatility σ₁ before T* and σ₂ after, the schedule paying cᵢ at dates tᵢ ≥ T* is worth ∑ exp(−M(tᵢ) + V(tᵢ)/2) cᵢ, with M the Vasicek integrated mean and V = gsrBondV (gsrBondPrice_eq), with μ read as the pricing measure.