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

The CMS par-rate functional: convexity, the annuity measure, a Jensen gap

MathFin.Models.Rates.CMSMSC 91G30MSC 91G20JEL G13 source

A constant-maturity swap leg pays, at the fixing date T, the then-prevailing par swap rate — a nonlinear functional of the curve state, discounted through an annuity that is itself random; the gap between its value and today's par rate is the convexity adjustment. This module formalizes ingredients of that adjustment on the swap layer of MathFin/Models/Rates/InterestRateSwap.lean (payerSwapValue / parSwapRate / annuity), but not the adjustment itself (see the scope note below):

  • The par-rate functional. cmsCurveRate P₀ δ C x = (P₀ − x)/(δ·(C + x)) — the par rate of a curve whose final discount factor is x, other factors fixed. Two bridges tie it to the swap layer: annuity_update_eq (the annuity of an updated curve splits into fixed part + new factor) and parSwapRate_update_eq / payerSwapValue_update_eq_zero_iff (the par identity of payerSwapValue_eq_zero_iff transports verbatim).
  • Convexity in the discount factor. cmsCurveRate_convexOn: on [0, ∞) the rate is convex given δ > 0, C > 0 and 0 ≤ P₀ + C — via the shifted-inverse engine convexOn_inv_shift and the ConvexOn.smul / .add_const / .congr combination pattern. First and second derivatives are landed explicitly (hasDerivAt_cmsCurveRate, hasDerivAt_cmsCurveRate'): S''(x) = 2(P₀+C)/(δ(C+x)³), positive when P₀ + C > 0.
  • The annuity measure. annuityMeasure: the change-of-numéraire measure with the annuity A_T in the numéraire seat against the money market B = 1/D, D the discount factor to the fixing date, random in general (D = e^{−rT} is the deterministic money market) — an execution of MathFin.changeOfNumeraire (Pricing/Numeraire.lean), alongside the stock and the T-bond (the forward measure of Pricing/ForwardMeasure.lean). annuityMeasure_price proves A₀·𝔼^{Qᴬ}[S] = 𝔼^Q[D·S·A_T] — Qᴬ-expectations price annuity-settled payoffs S·A_T; annuityMeasure_isProbabilityMeasure proves Qᴬ is a probability given the annuity repricing condition 𝔼^Q[D·A_T] = A₀ — that normalization is where the martingale content enters, and it is taken as an explicit hypothesis (Models/Rates/CMSContract.lean derives it from the tower property when the curve is the bond prices of D).
  • The headline. cmsCurveRate_jensenGap_nonneg: Jensen under the annuity measure (Mathlib's ConvexOn.map_integral_le) gives

S(x₀) ≤ 𝔼^{Qᴬ}[S(W)] whenever 𝔼^{Qᴬ}[W] = x₀,

for every nonnegative W with W and S ∘ W Qᴬ-integrable: the Jensen gap of the rate functional is nonnegative (cmsCurveRate_jensenGap_sub_nonneg states the gap). Qᴬ enters only as a probability measure, W is not tied to the curve P that defines Qᴬ, and S(x₀) is not shown to be today's par rate.

  • The replication seed. cmsCurveRate_spanning: Carr–Madan static replication of the rate functional — cash + forward + put strip + call strip with weights S''(K) = 2(P₀+C)/(δ(C+K)³) (positive when P₀ + C > 0, which the identity does not assume); cmsCurveRate_strip_nonneg turns it into the tangent-line inequality: for P₀ + C ≥ 0 the rate lies above its tangent at the reference strike on [L, U].
  • A bond-convexity sign. convexityNumerator_nonneg: the bond convexity numerator convexityNumerator of ConvexitySensitivity is nonnegative when 1 + y > 0 and the cash flows are nonnegative. It is a standalone bond fact; nothing here connects it to the CMS rate.

Scope: what lands here is the convexity of the rate functional, the annuity measure, the Jensen gap under it, and the compact-range replication identity. Models/Rates/CMSContract.lean prices CMS contracts under the annuity measure with the curve tied to the bond prices of a stochastic discount factor, and restates the Jensen gap for the swap rate. The convexity adjustment for a rate paid at a later date — 𝔼^{T_p}[S_T] − S₀, which needs the change of measure from Qᴬ to the payment-date forward measure — is not formalized. The spanning is the compact-strike-range version ([L, U] with L > −C); the unbounded-window passage (tail analysis) is not here either. The swap-rate functional is not a log payoff, so the seed consumes carrMadan_spanning — the shared core of which carrMadan_log_spanning is the log instance (its proof is one instantiation).

Main definitions

  • cmsCurveRate: the par swap rate of a curve whose final discount factor is x, all other discount factors fixed.
  • annuityRandom: the random annuity A_T(ω) = δ · ∑_{i ∈ s} P(ω, T_i) at the fixing date.
  • annuityMeasure: the annuity measure Qᴬ, the change-of-numéraire measure with the annuity A_T in the numéraire seat.

Main results

  • parSwapRate_update_eq, payerSwapValue_update_eq_zero_iff: for n ∈ s, the par rate of the curve with factor n replaced by x is cmsCurveRate; for δ > 0, x > 0 and positive factors, the payer swap on that curve has zero value if and only if K = cmsCurveRate ....
  • hasDerivAt_cmsCurveRate, cmsCurveRate_convexOn: for δ ≠ 0 and C + x ≠ 0 the rate has derivative −(P₀+C)/(δ(C+x)²) at x; for δ > 0, C > 0 and 0 ≤ P₀ + C it is convex on [0, ∞).
  • annuityMeasure_isProbabilityMeasure: with positive D, δ, A₀ and curve factors, and the annuity repricing condition 𝔼^Q[D·A_T] = A₀ as a hypothesis, Qᴬ is a probability measure.
  • annuityMeasure_price: with positive D, δ, A₀ and curve factors, and a measurable annuity, A₀·𝔼^{Qᴬ}[S] = 𝔼^Q[D·S·A_T] (the normalization is not needed for this identity).
  • cmsCurveRate_jensenGap_nonneg, cmsCurveRate_jensenGap_sub_nonneg: under the positivity hypotheses, the repricing condition and δ > 0, C > 0, 0 ≤ P₀ + C, for any nonnegative W with W and S ∘ W Qᴬ-integrable and 𝔼^{Qᴬ}[W] = x₀, S(x₀) ≤ 𝔼^{Qᴬ}[S(W)]; W is not tied to the curve and S(x₀) is not shown to be today's par rate.
  • cmsCurveRate_spanning: for δ > 0, −C < L ≤ κ ≤ U and S ∈ [L, U], the rate at S equals its value at κ, plus the tangent term, plus put and call strips weighted by 2(P₀+C)/(δ(C+K)³) (Carr–Madan; no sign condition on P₀ + C).
  • cmsCurveRate_strip_nonneg: with δ > 0 and 0 ≤ P₀ + C, the rate lies above its tangent at κ on [L, U] (−C < L ≤ κ ≤ U).
  • convexityNumerator_nonneg: for 1 + y > 0 and nonnegative cash flows, the bond convexity numerator is nonnegative (a standalone bond fact, not linked to the CMS rate).

References

  • P. Carr and D. Madan, Towards a theory of volatility trading [CarrMadan1998]
  • P. S. Hagan, Convexity conundrums: pricing CMS swaps, caps, and floors [Hagan2003]

Tags

constant maturity swap, convexity adjustment, annuity measure, swap measure, Jensen gap, par swap rate, Carr–Madan replication, MSC 91G30, MSC 91G20, JEL G13

Import neighbourhood

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

Corpus entries

mf-cms-par-rate-convex · interest_rates.json · full statement
Par Swap Rate Is Convex in the Final Discount Factor

Fix a swap schedule s, accrual δ > 0, the floating-leg start value P0 and every discount factor except the one at a payment date n ∈ s, with the remaining factors summing to C > 0 and P0 + C ≥ 0. Then the par swap rate (P0 − x)/(δ·(C + x)) of the curve whose factor at n is set to x is a convex function of x on [0, ∞). This convexity is the source of the CMS convexity adjustment; the adjustment itself is not derived.

mf-cms-par-rate-compact-spanning · interest_rates.json · full statement
Compact-Range Static Replication of the CMS Par-Rate Functional

For δ > 0 and a strike range [L, U] with L > −C, the par-rate functional S(x) = (P0 − x)/(δ·(C + x)) in the final discount factor x is replicated on [L, U] by cash S(κ), a forward position S'(κ)·(x − κ) and static strips of puts below κ and calls above κ on x with weights S''(K) = 2(P0 + C)/(δ(C + K)³): the Carr–Madan spanning identity restricted to a compact strike range. The unbounded-strike replication and the CMS convexity adjustment are not formalized.

Declarations 16

defMathFin.CMS.cmsCurveRatesource
ℝ → ℝ → ℝ → ℝ → ℝ

The CMS curve rate: the par swap rate of a curve whose final discount factor is x, all other discount factors fixed. The floating leg is P₀ − x, the annuity δ·(C + x) with C the sum of the remaining discount factors — mirroring MathFin.parSwapRate P₀ x (annuity δ P s) for the curve P updated at the final payment index (parSwapRate_update_eq below).

theoremMathFin.CMS.parSwapRate_update_eqsource
∀ {ι : Type u_1} [DecidableEq ι] (P0 δ x : ℝ) (P : ι → ℝ) (s : Finset ι) {n : ι}, n ∈ s → parSwapRate P0 (Function.update P n x n) (annuity δ (Function.update P n x) s) = cmsCurveRate P0 δ (∑ i ∈ s.erase n, P i) x

The bridge to the swap layer: the par rate of the updated curve is the CMS curve rate.

theoremMathFin.CMS.payerSwapValue_update_eq_zero_iffsource
∀ {ι : Type u_1} [DecidableEq ι] (P0 δ K x : ℝ) (P : ι → ℝ) (s : Finset ι) {n : ι}, n ∈ s → 0 < δ → 0 < x → (∀ i ∈ s, 0 < P i) → (payerSwapValue P0 (Function.update P n x n) K (annuity δ (Function.update P n x) s) = 0 ↔ K = cmsCurveRate P0 δ (∑ i ∈ s.erase n, P i) x)

The par identity in curve form — the CMS instantiation of payerSwapValue_eq_zero_iff: the fixed rate zeroing the payer swap over the updated curve is exactly the CMS curve rate.

theoremMathFin.CMS.hasDerivAt_cmsCurveRatesource
∀ (P0 δ C x : ℝ), C + x ≠ 0 → δ ≠ 0 → HasDerivAt (cmsCurveRate P0 δ C) (-(P0 + C) / (δ * (C + x) ^ 2)) x

First derivative: S'(x) = −(P₀ + C)/(δ(C + x)²).

theoremMathFin.CMS.hasDerivAt_cmsCurveRate'source
∀ (P0 δ C t : ℝ), C + t ≠ 0 → δ ≠ 0 → HasDerivAt (fun y => -(P0 + C) / (δ * (C + y) ^ 2)) (2 * (P0 + C) / (δ * (C + t) ^ 3)) t

Second derivative: S''(x) = 2(P₀ + C)/(δ(C + x)³) — positive where δ > 0, C + x > 0 and P₀ + C > 0.

theoremMathFin.CMS.convexOn_inv_shiftsource
∀ (C : ℝ), 0 < C → ConvexOn ℝ (Set.Ici 0) fun x => (C + x)⁻¹

Convexity of the shifted inverse x ↦ (C + x)⁻¹ on the nonnegative half-line — the convexity engine behind the CMS rate's convexity. The two-point inequality (u(C+x)+v(C+y))⁻¹ ≤ u(C+x)⁻¹ + v(C+y)⁻¹ is the AM–GM identity (ua+vb)(u/a+v/b) − 1 = uv(a−b)²/(ab) ≥ 0 for a, b > 0, u + v = 1.

theoremMathFin.CMS.cmsCurveRate_convexOnsource
∀ (P0 δ C : ℝ), 0 < δ → 0 < C → 0 ≤ P0 + C → ConvexOn ℝ (Set.Ici 0) (cmsCurveRate P0 δ C)

The CMS rate is convex in the discount factor on the nonnegative half-line. Hypotheses: δ > 0 (daycount), C > 0 (the rate functional is defined on the whole half-line) and P₀ + C ≥ 0 (the convexity coefficient S'' = 2(P₀+C)/(δ(C+x)³) has the right sign; economically P₀ and every remaining discount factor are positive, so this is free).

defMathFin.CMS.annuityRandomsource
{Ω : Type u_1} → {ι : Type u_2} → ℝ → (Ω → ι → ℝ) → Finset ι → Ω → ℝ

The random annuity at the fixing date: A_T(ω) = δ · ∑_{i ∈ s} P(ω, T_i) — the PVBP of the underlying swap along the curve state.

defMathFin.CMS.annuityMeasuresource
{Ω : Type u_1} → {ι : Type u_2} → [MeasurableSpace Ω] → Measure Ω → (Ω → ℝ) → ℝ → (Ω → ι → ℝ) → Finset ι → ℝ → Measure Ω

The annuity measure Qᴬ: the change-of-numéraire measure with the annuity A_T in the numéraire seat against the money market B_T = 1/D, D the (random) discount factor to the fixing date — an execution of MathFin.changeOfNumeraire, alongside the stock and the T-bond (the forward measure of Pricing/ForwardMeasure.lean). Density: dQᴬ/dQ = A_T·D/A₀. A deterministic money market e^{rT} is D = e^{−rT}.

theoremMathFin.CMS.annuityMeasure_isProbabilityMeasuresource
∀ {Ω : Type u_1} {ι : Type u_2} [MeasurableSpace Ω] {Q : Measure Ω} (D : Ω → ℝ) (δ : ℝ) (P : Ω → ι → ℝ) (s : Finset ι) (A0 : ℝ), (∀ (ω : Ω), 0 < D ω) → 0 < δ → s.Nonempty → (∀ (ω : Ω), ∀ i ∈ s, 0 < P ω i) → 0 < A0 → Integrable (fun ω => annuityRandom δ P s ω * D ω) Q → ∫ (ω : Ω), annuityRandom δ P s ω * D ω ∂Q = A0 → IsProbabilityMeasure (annuityMeasure Q D δ P s A0)

The annuity measure is a probability measure under the annuity-repricing condition 𝔼^Q[D·A_T] = A₀ — the numéraire engine's normalization 𝔼^Q[N_T/B_T] = N₀/B₀ read with N = A, B = 1/D the money market. This hypothesis is where the martingale content of the CMS construction enters; it is taken explicitly.

theoremMathFin.CMS.annuityMeasure_pricesource
∀ {Ω : Type u_1} {ι : Type u_2} [MeasurableSpace Ω] {Q : Measure Ω} (D : Ω → ℝ) (δ : ℝ) (P : Ω → ι → ℝ) (s : Finset ι) (A0 : ℝ) (S : Ω → ℝ), (∀ (ω : Ω), 0 < D ω) → Measurable D → 0 < δ → s.Nonempty → (∀ (ω : Ω), ∀ i ∈ s, 0 < P ω i) → 0 < A0 → Measurable (annuityRandom δ P s) → A0 * ∫ (ω : Ω), S ω ∂annuityMeasure Q D δ P s A0 = ∫ (ω : Ω), D ω * (S ω * annuityRandom δ P s ω) ∂Q

The annuity-measure pricing identity — the annuity in the numéraire seat. For any S,

A₀ · 𝔼^{Qᴬ}[S] = 𝔼^Q[D · S · A_T],

an execution of changeOfNumeraire: Qᴬ-expectations price the annuity-settled payoff S·A_T. (A claim paying S itself at T would be priced through S/A_T; the random A_T stays on the Q side.)

theoremMathFin.CMS.cmsCurveRate_jensenGap_nonnegsource
∀ {Ω : Type u_1} {ι : Type u_2} [MeasurableSpace Ω] {Q : Measure Ω} (D : Ω → ℝ) (δ P0 C A0 x₀ : ℝ) (P : Ω → ι → ℝ) (s : Finset ι) (W : Ω → ℝ), (∀ (ω : Ω), 0 < D ω) → 0 < δ → 0 < C → 0 ≤ P0 + C → s.Nonempty → (∀ (ω : Ω), ∀ i ∈ s, 0 < P ω i) → 0 < A0 → Integrable (fun ω => annuityRandom δ P s ω * D ω) Q → ∫ (ω : Ω), annuityRandom δ P s ω * D ω ∂Q = A0 → (∀ (ω : Ω), 0 ≤ W ω) → Integrable W (annuityMeasure Q D δ P s A0) → Integrable (fun ω => cmsCurveRate P0 δ C (W ω)) (annuityMeasure Q D δ P s A0) → ∫ (ω : Ω), W ω ∂annuityMeasure Q D δ P s A0 = x₀ → cmsCurveRate P0 δ C x₀ ≤ ∫ (ω : Ω), cmsCurveRate P0 δ C (W ω) ∂annuityMeasure Q D δ P s A0

The Jensen gap of the CMS rate functional under Qᴬ (the headline). Let S = cmsCurveRate P₀ δ C, with P₀ and C deterministic; it is convex on [0, ∞). Every nonnegative W with W and S ∘ W integrable under the annuity measure Qᴬ of the previous section satisfies S(𝔼^{Qᴬ}[W]) ≤ 𝔼^{Qᴬ}[S(W)]; hfwd only names x₀ = 𝔼^{Qᴬ}[W]. Qᴬ is a probability measure by hrepr and is used only as one; W is not linked to the curve P that defines Qᴬ, and no martingale property is assumed. This is not the CMS convexity adjustment 𝔼^{T_p}[S_T] − S₀.

theoremMathFin.CMS.cmsCurveRate_jensenGap_sub_nonnegsource
∀ {Ω : Type u_1} {ι : Type u_2} [MeasurableSpace Ω] {Q : Measure Ω} (D : Ω → ℝ) (δ P0 C A0 x₀ : ℝ) (P : Ω → ι → ℝ) (s : Finset ι) (W : Ω → ℝ), (∀ (ω : Ω), 0 < D ω) → 0 < δ → 0 < C → 0 ≤ P0 + C → s.Nonempty → (∀ (ω : Ω), ∀ i ∈ s, 0 < P ω i) → 0 < A0 → Integrable (fun ω => annuityRandom δ P s ω * D ω) Q → ∫ (ω : Ω), annuityRandom δ P s ω * D ω ∂Q = A0 → (∀ (ω : Ω), 0 ≤ W ω) → Integrable W (annuityMeasure Q D δ P s A0) → Integrable (fun ω => cmsCurveRate P0 δ C (W ω)) (annuityMeasure Q D δ P s A0) → ∫ (ω : Ω), W ω ∂annuityMeasure Q D δ P s A0 = x₀ → 0 ≤ ∫ (ω : Ω), cmsCurveRate P0 δ C (W ω) ∂annuityMeasure Q D δ P s A0 - cmsCurveRate P0 δ C x₀

The Jensen gap itself: 𝔼^{Qᴬ}[S(W)] − S(𝔼^{Qᴬ}[W]) ≥ 0.

theoremMathFin.CMS.cmsCurveRate_spanningsource
∀ (P0 δ C : ℝ), 0 < δ → ∀ {L U κ S : ℝ}, -C < L → L ≤ κ → κ ≤ U → S ∈ Set.Icc L U → cmsCurveRate P0 δ C S = (cmsCurveRate P0 δ C κ + -(P0 + C) / (δ * (C + κ) ^ 2) * (S - κ) + ∫ (K : ℝ) in L..κ, 2 * (P0 + C) / (δ * (C + K) ^ 3) * max (K - S) 0) + ∫ (K : ℝ) in κ..U, 2 * (P0 + C) / (δ * (C + K) ^ 3) * max (S - K) 0

The replication seed: the CMS rate functional spanned as cash + forward + static OTM option strips on the discount factor (Carr–Madan, compact strike range [L, U] with L > −C). The strip weights are S''(K) = 2(P₀+C)/(δ(C+K)³), positive when P₀ + C > 0 (not assumed here). The swap-rate functional is not a log payoff, so this consumes carrMadan_spanning, the shared core of which carrMadan_log_spanning is the log instance. The unbounded-window limit (tail analysis) is outside the present scope.

theoremMathFin.CMS.cmsCurveRate_strip_nonnegsource
∀ (P0 δ C : ℝ), 0 < δ → 0 ≤ P0 + C → ∀ {L U κ S : ℝ}, -C < L → L ≤ κ → κ ≤ U → S ∈ Set.Icc L U → 0 ≤ cmsCurveRate P0 δ C S - cmsCurveRate P0 δ C κ - -(P0 + C) / (δ * (C + κ) ^ 2) * (S - κ)

The tangent-line inequality: on [L, U] the CMS rate lies above its tangent at κ, and the excess is exactly the option strips — nonnegative because S'' ≥ 0 (from P₀ + C ≥ 0).

theoremMathFin.CMS.convexityNumerator_nonnegsource
∀ {ι : Type u_1} (s : Finset ι) (t : ι → ℕ) (c : ι → ℝ) {y : ℝ}, 0 < 1 + y → (∀ i ∈ s, 0 ≤ c i) → 0 ≤ convexityNumerator s t c y

The bond convexity is nonnegative: each cashflow contributes t_i(t_i+1)·c_i/(1+y)^{t_i+2} ≥ 0 for y > −100% and nonnegative coupons. This is the sign of the P'' exhibited by bondPriceDisc_secondDeriv_eq_convexity_times_price; nothing here connects it to the CMS rate.