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.