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

CMS contracts, priced under the annuity measure

MathFin.Models.Rates.CMSContractMSC 91G30JEL G12JEL E43 source

A constant-maturity swap pays, at a fixing date T₀, the then-prevailing par swap rate S = (P(T₀, T₀) − P(T₀, Tₙ)) / A(T₀) of a swap on the dates T 1, …, T n, with annuity A = δ Σᵢ P(T₀, Tᵢ). S is a quotient whose meaning needs a positive annuity, so Payoff has no division node: the swap rate is an observed underlying σ, and SwapModel ties it to the bond prices P(T₀, Tᵢ) (observed processes, versions of bondPrice of the stochastic discount factor) and to the annuity, as BondModel does for the forward rate of a caplet.

  • The CMS caplet, floorlet and swaplet (cmsCaplet, cmsFloorlet, cmsSwaplet) are one-cash-flow contracts on σ.
  • Annuity-measure pricing. A payoff g(S) paid at T₀ is worth A(0) · 𝔼^A[g(S) / A(T₀)] (value_pay_swapRate), where 𝔼^A is the annuity measure swapAnnuityMeasure and A(0) = δ Σ P(0, Tᵢ) is the annuity of the zero curve. This is annuityMeasure_price (Models/Rates/CMS.lean) for the discount factor D (T 0).
  • The forward swap rate is the annuity-measure mean of the swap rate (SwapModel.integral_swapRate): 𝔼^A[S] = (P(0, T₀) − P(0, Tₙ)) / A(0), the par rate of the zero curve. The annuity repricing condition 𝔼[D · A(T₀)] = A(0) that makes Qᴬ a probability is the tower property (SwapModel.integral_annuity_mul), not a hypothesis.

What is not here

The swap rate is tied to the bond prices by a hypothesis (rate_eq) and the bond prices by hasBondPrice; no term-structure model is asserted. Payments at T₀ only: a CMS rate paid at a later date Tₚ needs the change of measure to the Tₚ-forward measure.

Main definitions

  • cmsCaplet, cmsFloorlet, cmsSwaplet, swapCurve, SwapModel, swapAnnuityMeasure.

Main results

  • SwapModel.integral_annuity_mul, SwapModel.isProbabilityMeasure, value_pay_swapRate, value_cmsCaplet, value_cmsFloorlet, value_cmsSwaplet, SwapModel.integral_swapRate.

References

  • P. Bilokon, The Contract Is Not the Model [Bilokon2026]
  • D. Brigo and F. Mercurio, Interest Rate Models --- Theory and Practice [BrigoMercurio2006], sections 1.6 and 13.8
  • P. S. Hagan, Convexity conundrums: pricing CMS swaps, caps, and floors [Hagan2003]
  • Musiela and Rutkowski, Martingale Methods in Financial Modelling [MusielaRutkowski], ch. 13

Tags

constant maturity swap, CMS caplet, annuity measure, swap measure, par swap rate, swaption, MSC 91G30, JEL G12, JEL E43

Import neighbourhood

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

Corpus entries

mf-contract-cms-caplet-annuity-measure · contracts.json · full statement
A CMS Caplet Is an Annuity-Measure Expectation of the Swap-Rate Call

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Then the CMS caplet paying (S - K)^+ at T0, where S is the observed swap rate, is worth A(0) * E^A[(S - K)^+ / A(T0)] (Contract.value under Q).

mf-contract-cms-forward-swap-rate · contracts.json · full statement
The Forward Swap Rate Is the Annuity-Measure Mean of the Swap Rate

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Then E^A[S] = (P(0,T0) - P(0,Tn)) / A(0), the par swap rate of the zero curve (parSwapRate): under Q^A the swap rate fixed at T0 has the time-0 par rate as its mean, so there is no adjustment under Q^A (a mean identity at T0, not the martingale property of the swap-rate process).

mf-contract-cms-swaplet-adjustment · contracts.json · full statement
The CMS Swaplet at Its Fixing Date Is the Forward Swap Rate Plus a Covariance

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Then the CMS swaplet paying S at T0 is worth P(0,T0) * S0 + A(0) * (E^A[S / A(T0)] - E^A[S] * E^A[1 / A(T0)]), where S0 = (P(0,T0) - P(0,Tn))/A(0) is the par swap rate of the zero curve: the forward value plus A(0) times the covariance of S and 1/A(T0) under Q^A.

mf-contract-cms-swaplet-adjustment-nonneg · contracts.json · full statement
The CMS Convexity Adjustment at the Fixing Date Is Nonnegative

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Suppose moreover the bond prices P(T0,Ti), 1 <= i < n, equal known constants c i almost surely, with 1 + C >= 0 for C = sum_{1<=i<n} c i, and 1/A(T0) and 1/A(T0)^2 are Q^A-integrable. Then the CMS swaplet paying S at T0 is worth at least P(0,T0) * S0, S0 = (P(0,T0) - P(0,Tn))/A(0): the swap rate is affine in 1/A(T0), S = (1+C)/A(T0) - 1/delta, so the covariance term is (1+C) times the variance of 1/A(T0).

mf-contract-cms-jensen-gap · contracts.json · full statement
The Swap Rate at the Mean Final Bond Price Is Below the Forward Swap Rate

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Suppose the bond prices P(T0,Ti), 1 <= i < n, equal known constants c i almost surely with C = sum_{1<=i<n} c i > 0, and P(T0,Tn) and S are Q^A-integrable. Then the par rate functional cmsCurveRate 1 delta C evaluated at E^A[P(T0,Tn)] is at most E^A[S] = (P(0,T0) - P(0,Tn))/A(0): the Jensen gap of the rate functional is nonnegative.

mf-contract-payer-swaption-annuity-call · contracts.json · full statement
A Payer Swaption Is the Annuity Times an Annuity-Measure Call on the Swap Rate

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Then the payer swaption paying (1 - P(T0,Tn) - K delta sum_{i=1..n} P(T0,Ti))^+ at T0, the positive part of the payer swap value, is worth A(0) * E^A[(S - K)^+].

mf-contract-payer-swaption-black · contracts.json · full statement
A Payer Swaption Is the Black Swaption Formula at the Zero Curve's Forward Swap Rate

In a SwapModel for a stochastic discount factor D: the underlyings b i (i = 1..n) are positive measurable versions of the bond prices P(T0,Ti) = E[D Ti | F T0]/D T0, D T0 is positive and measurable, each D Ti (0 <= i <= n) is integrable, and the underlying sigma is the par swap rate (1 - P(T0,Tn))/A(T0) almost surely, with annuity A(T0) = delta * sum_{i=1..n} P(T0,Ti) and delta > 0. Q^A denotes the annuity measure (swapAnnuityMeasure), with density A(T0) D T0 / A(0) and A(0) = delta * sum_{i=1..n} P(0,Ti), P(0,t) = E[D t]. Suppose S = F exp(-sigma'^2 T'/2 + sigma' sqrt(T') Z) Q^A-a.e. with Z standard normal under Q^A (BSCallHyp at drift 0). Then the payer swaption is worth A(0) * [F Phi(d1) - K Phi(d2)] (blackPayerSwaption), with F = (P(0,T0) - P(0,Tn))/A(0) the par swap rate of the zero curve. The lognormality of the swap rate under the annuity measure is a hypothesis; it is not derived from a term-structure model.

Declarations 39

defMathFin.Contracts.cmsCapletsource
{ι : Type u_1} → ι → NNReal → ℝ → Contract ι

A CMS caplet: pays (S − K)⁺ at the fixing date T₀, where the underlying σ carries the par swap rate S, observed at T₀.

used by 1: value_cmsCaplet
defMathFin.Contracts.cmsFloorletsource
{ι : Type u_1} → ι → NNReal → ℝ → Contract ι

A CMS floorlet: pays (K − S)⁺ at the fixing date T₀.

defMathFin.Contracts.cmsSwapletsource
{ι : Type u_1} → ι → NNReal → Contract ι

A CMS swaplet: pays the par swap rate S at the fixing date T₀.

defMathFin.Contracts.swapCurvesource
{ι : Type u_1} → {Ω : Type u_2} → (ι → NNReal → Ω → ℝ) → (ℕ → ι) → NNReal → Ω → ℕ → ℝ

The curve state at the fixing date: ω ↦ (i ↦ P(T₀, Tᵢ)), read off the observed bond prices b i.

structureMathFin.Contracts.SwapModelsource
{ι : Type u_1} → {Ω : Type u_2} → {mΩ : MeasurableSpace Ω} → Measure Ω → Filtration NNReal mΩ → (NNReal → Ω → ℝ) → (ι → NNReal → Ω → ℝ) → ι → (ℕ → ι) → (ℕ → NNReal) → ℕ → ℝ → Prop

A model with a swap rate. The underlying b i carries the bond price P(T₀, Tᵢ) at T₀ = T 0, for the payment dates i = 1, …, n: a (positive, measurable) version of bondPrice of the stochastic discount factor D (HasBondPrice), whose value at the fixing date is positive and integrable. The underlying σ carries the par swap rate at T₀, which is the par rate (1 − P(T₀, Tₙ))/A of the annuity A = δ Σᵢ P(T₀, Tᵢ) (parSwapRate, annuityRandom) almost surely.

theoremMathFin.Contracts.SwapModel.δ_possource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → 0 < δ
theoremMathFin.Contracts.SwapModel.n_possource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → 0 < n
theoremMathFin.Contracts.SwapModel.hasBondPricesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ i ∈ Finset.Icc 1 n, HasBondPrice Q 𝓕 D X (b i) (T 0) (T i)
theoremMathFin.Contracts.SwapModel.D_meassource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → Measurable (D (T 0))
theoremMathFin.Contracts.SwapModel.integrable_D0source
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → Integrable (D (T 0)) Q
theoremMathFin.Contracts.SwapModel.bond_possource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (ω : Ω), ∀ i ∈ Finset.Icc 1 n, 0 < X (b i) (T 0) ω
theoremMathFin.Contracts.SwapModel.bond_meassource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ i ∈ Finset.Icc 1 n, Measurable (X (b i) (T 0))
theoremMathFin.Contracts.SwapModel.rate_eqsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → X σ (T 0) =ᵐ[Q] fun ω => parSwapRate 1 (X (b n) (T 0) ω) (annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω)
defMathFin.Contracts.swapAnnuityMeasuresource
{ι : Type u_1} → {Ω : Type u_2} → {mΩ : MeasurableSpace Ω} → Measure Ω → (NNReal → Ω → ℝ) → (ι → NNReal → Ω → ℝ) → (ℕ → ι) → (ℕ → NNReal) → ℕ → ℝ → Measure Ω

The annuity measure of a swap model: CMS.annuityMeasure for the discount factor D (T 0) and the curve P(T₀, ·), normalised by the annuity A(0) = δ Σᵢ P(0, Tᵢ) of the zero curve.

theoremMathFin.Contracts.SwapModel.D_possource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (ω : Ω), 0 < D (T 0) ω
theoremMathFin.Contracts.SwapModel.annuity_possource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (ω : Ω), 0 < annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω
theoremMathFin.Contracts.SwapModel.annuity_meassource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → Measurable (annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n))
theoremMathFin.Contracts.SwapModel.integrable_annuity_mulsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → Integrable (fun ω => annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω * D (T 0) ω) Q
theoremMathFin.Contracts.SwapModel.integral_annuity_mulsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∫ (ω : Ω), annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω * D (T 0) ω ∂Q = annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n)

The annuity repricing condition is the tower property: 𝔼[D (T 0) · A(T₀)] = A(0), the annuity δ Σᵢ P(0, Tᵢ) of the zero curve.

theoremMathFin.Contracts.SwapModel.annuity0_possource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → 0 < annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n)
theoremMathFin.Contracts.SwapModel.isProbabilityMeasuresource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → IsProbabilityMeasure (swapAnnuityMeasure Q D X b T n δ)

The annuity measure of a swap model is a probability measure.

theoremMathFin.Contracts.SwapModel.annuity0_mul_integralsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (S : Ω → ℝ), annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), S ω ∂swapAnnuityMeasure Q D X b T n δ = ∫ (ω : Ω), D (T 0) ω * (S ω * annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω) ∂Q

Annuity-measure pricing in a swap model: A(0) · 𝔼^A[S] = 𝔼[D (T 0) · S · A(T₀)], the annuity-settled payoff S · A(T₀) (annuityMeasure_price).

theoremMathFin.Contracts.value_pay_swapRatesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ {φ : Payoff ι} {g : ℝ → ℝ}, (∀ (s : Scenario ι), Payoff.eval s φ = g (s σ (T 0))) → Contract.value Q D X (Contract.pay (T 0) φ) = annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), g (X σ (T 0) ω) / annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω ∂swapAnnuityMeasure Q D X b T n δ

A payoff on the swap rate, paid at the fixing date, is an annuity-measure expectation. If φ is g of the swap rate observed at T₀, the contract paying φ at T₀ is worth A(0) · 𝔼^A[g(S) / A(T₀)]: annuityMeasure_price with the annuity-settled payoff g(S).

theoremMathFin.Contracts.value_cmsCapletsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (K : ℝ), Contract.value Q D X (cmsCaplet σ (T 0) K) = annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), max (X σ (T 0) ω - K) 0 / annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω ∂swapAnnuityMeasure Q D X b T n δ

A CMS caplet is an annuity-measure call on the swap rate: the caplet paying (S − K)⁺ at T₀ is worth A(0) · 𝔼^A[(S − K)⁺ / A(T₀)].

theoremMathFin.Contracts.value_cmsFloorletsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (K : ℝ), Contract.value Q D X (cmsFloorlet σ (T 0) K) = annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), max (K - X σ (T 0) ω) 0 / annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω ∂swapAnnuityMeasure Q D X b T n δ

A CMS floorlet is an annuity-measure put on the swap rate: the floorlet paying (K − S)⁺ at T₀ is worth A(0) · 𝔼^A[(K − S)⁺ / A(T₀)].

theoremMathFin.Contracts.value_cmsSwapletsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → Contract.value Q D X (cmsSwaplet σ (T 0)) = annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), X σ (T 0) ω / annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω ∂swapAnnuityMeasure Q D X b T n δ

A CMS swaplet is worth A(0) · 𝔼^A[S / A(T₀)].

theoremMathFin.Contracts.SwapModel.integral_swapRatesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∫ (ω : Ω), X σ (T 0) ω ∂swapAnnuityMeasure Q D X b T n δ = parSwapRate (zeroCurve Q D (T 0)) (zeroCurve Q D (T n)) (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n))

The forward swap rate is the annuity-measure mean of the swap rate: 𝔼^A[S] = (P(0, T₀) − P(0, Tₙ)) / A(0), the par swap rate of the zero curve (parSwapRate). No adjustment at the fixing date: the Qᴬ-mean of the swap rate is the time-0 par rate.

theoremMathFin.Contracts.SwapModel.annuity_ae_eqsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ} {c : ℕ → ℝ}, SwapModel Q 𝓕 D X σ b T n δ → (∀ i ∈ (Finset.Icc 1 n).erase n, ∀ᵐ (ω : Ω) ∂Q, X (b i) (T 0) ω = c i) → annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) =ᵐ[Q] fun ω => δ * (∑ i ∈ (Finset.Icc 1 n).erase n, c i + X (b n) (T 0) ω)

When the bond prices other than the last are known constants c i, the annuity is δ (C + P(T₀, Tₙ)), C = Σ c i.

theoremMathFin.Contracts.SwapModel.rate_eq_cmsCurveRatesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ} {c : ℕ → ℝ}, SwapModel Q 𝓕 D X σ b T n δ → (∀ i ∈ (Finset.Icc 1 n).erase n, ∀ᵐ (ω : Ω) ∂Q, X (b i) (T 0) ω = c i) → X σ (T 0) =ᵐ[Q] fun ω => cmsCurveRate 1 δ (∑ i ∈ (Finset.Icc 1 n).erase n, c i) (X (b n) (T 0) ω)

The swap rate is the cmsCurveRate of the last bond price when the other bond prices are known constants: the bridge to the Jensen-gap results of CMS.lean.

theoremMathFin.Contracts.SwapModel.cmsCurveRate_integral_le_forwardSwapRatesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ} {c : ℕ → ℝ}, SwapModel Q 𝓕 D X σ b T n δ → (∀ i ∈ (Finset.Icc 1 n).erase n, ∀ᵐ (ω : Ω) ∂Q, X (b i) (T 0) ω = c i) → 0 < ∑ i ∈ (Finset.Icc 1 n).erase n, c i → Integrable (X (b n) (T 0)) (swapAnnuityMeasure Q D X b T n δ) → Integrable (X σ (T 0)) (swapAnnuityMeasure Q D X b T n δ) → cmsCurveRate 1 δ (∑ i ∈ (Finset.Icc 1 n).erase n, c i) (∫ (ω : Ω), X (b n) (T 0) ω ∂swapAnnuityMeasure Q D X b T n δ) ≤ parSwapRate (zeroCurve Q D (T 0)) (zeroCurve Q D (T n)) (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n))

The swap rate at the mean final bond price is at most the forward swap rate (the Jensen gap of the rate functional, for the contract's underlying). If the bond prices other than P(T₀, Tₙ) are known constants c i, C = Σ c i > 0, then cmsCurveRate 1 δ C (𝔼^A[P(T₀, Tₙ)]) ≤ 𝔼^A[S] = (P(0, T₀) − P(0, Tₙ))/A(0): cmsCurveRate_jensenGap_nonneg of Models/Rates/CMS.lean with x₀ the annuity-measure mean.

theoremMathFin.Contracts.SwapModel.annuity0_mul_integral_invsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), (annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω)⁻¹ ∂swapAnnuityMeasure Q D X b T n δ = zeroCurve Q D (T 0)

The mean of the reciprocal annuity: A(0) · 𝔼^A[1 / A(T₀)] = P(0, T₀).

theoremMathFin.Contracts.SwapModel.value_cmsSwaplet_eqsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → Contract.value Q D X (cmsSwaplet σ (T 0)) = zeroCurve Q D (T 0) * parSwapRate (zeroCurve Q D (T 0)) (zeroCurve Q D (T n)) (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n)) + annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * (∫ (ω : Ω), X σ (T 0) ω / annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω ∂swapAnnuityMeasure Q D X b T n δ - (∫ (ω : Ω), X σ (T 0) ω ∂swapAnnuityMeasure Q D X b T n δ) * ∫ (ω : Ω), (annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω)⁻¹ ∂swapAnnuityMeasure Q D X b T n δ)

The CMS swaplet, paid at its fixing date, is the forward swap rate plus a covariance. value = P(0, T₀) · S₀ + A(0) · Cov^A(S, 1/A(T₀)), with S₀ the forward swap rate and the covariance written out: the contract is worth A(0) 𝔼^A[S/A], and A(0) 𝔼^A[1/A] = P(0, T₀), 𝔼^A[S] = S₀.

theoremMathFin.Contracts.SwapModel.zeroCurve_mul_forwardSwapRate_le_value_cmsSwapletsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ} {c : ℕ → ℝ}, SwapModel Q 𝓕 D X σ b T n δ → (∀ i ∈ (Finset.Icc 1 n).erase n, ∀ᵐ (ω : Ω) ∂Q, X (b i) (T 0) ω = c i) → 0 ≤ 1 + ∑ i ∈ (Finset.Icc 1 n).erase n, c i → Integrable (fun ω => (annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω)⁻¹) (swapAnnuityMeasure Q D X b T n δ) → Integrable (fun ω => (annuityRandom δ (swapCurve X b (T 0)) (Finset.Icc 1 n) ω)⁻¹ ^ 2) (swapAnnuityMeasure Q D X b T n δ) → zeroCurve Q D (T 0) * parSwapRate (zeroCurve Q D (T 0)) (zeroCurve Q D (T n)) (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n)) ≤ Contract.value Q D X (cmsSwaplet σ (T 0))

The convexity adjustment of a CMS swaplet paid at its fixing date is nonnegative. If the bond prices other than P(T₀, Tₙ) are known constants, the swap rate is affine in the reciprocal annuity, S = (1 + C)/A − 1/δ (C = Σ c i, 1 + C ≥ 0), so Cov^A(S, 1/A) = (1 + C) Var^A(1/A) ≥ 0: the swaplet is worth at least P(0, T₀) times the forward swap rate. The reciprocal annuity is assumed square-integrable under the annuity measure.

defMathFin.Contracts.Payoff.obsSumsource
{ι : Type u_1} → (ℕ → ι) → NNReal → ℕ → Payoff ι

The sum Σᵢ₌₁ⁿ of the observations b i at time t, as a payoff.

theoremMathFin.Contracts.Payoff.eval_obsSumsource
∀ {ι : Type u_1} (s : Scenario ι) (b : ℕ → ι) (t : NNReal) (n : ℕ), Payoff.eval s (Payoff.obsSum b t n) = ∑ i ∈ Finset.Icc 1 n, s (b i) t
defMathFin.Contracts.payerSwaptionsource
{ι : Type u_1} → (ℕ → ι) → NNReal → ℕ → ℝ → ℝ → Contract ι

A payer swaption: pays, at the expiry T₀, the positive part of the value of the payer swap on the dates T 1, …, T n with fixed rate K and accrual δ, (1 − P(T₀, Tₙ) − K δ Σᵢ P(T₀, Tᵢ))⁺ (payerSwapValue), where b i carries P(T₀, Tᵢ).

theoremMathFin.Contracts.value_payerSwaptionsource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ (K : ℝ), Contract.value Q D X (payerSwaption b (T 0) n δ K) = annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n) * ∫ (ω : Ω), max (X σ (T 0) ω - K) 0 ∂swapAnnuityMeasure Q D X b T n δ

A payer swaption is A(0) times an annuity-measure call on the swap rate: value = A(0) · 𝔼^A[(S − K)⁺]. The payoff is A(T₀)(S − K)⁺, the annuity-settled payoff of annuityMeasure_price.

theoremMathFin.Contracts.value_payerSwaption_blacksource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ {Q' : Measure Ω} [IsProbabilityMeasure Q'], Q' = swapAnnuityMeasure Q D X b T n δ → ∀ {F K σ' T' : ℝ} {Z : Ω → ℝ}, BSCallHyp Q' F K 0 σ' T' Z → (X σ (T 0) =ᵐ[Q'] fun ω => bsTerminal F 0 σ' T' (Z ω)) → Contract.value Q D X (payerSwaption b (T 0) n δ K) = blackPayerSwaption (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n)) F K σ' T'

Black's swaption formula. If the swap rate is lognormal under the annuity measure Qᴬ, S = bsTerminal F 0 σ' T' Z with Z standard normal there, the payer swaption is worth blackPayerSwaption A(0) F K σ' T', A(0) [F Φ(d₁) − K Φ(d₂)]; black_futures_formula on Qᴬ. The lognormality of the swap rate under its annuity measure is a hypothesis, the standard assumption of Black's swaption model, and not derived from a term-structure model.

theoremMathFin.Contracts.value_payerSwaption_black_forwardSwapRatesource
∀ {ι : Type u_1} {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {𝓕 : Filtration NNReal mΩ} {D : NNReal → Ω → ℝ} {X : ι → NNReal → Ω → ℝ} {σ : ι} {b : ℕ → ι} {T : ℕ → NNReal} {n : ℕ} {δ : ℝ}, SwapModel Q 𝓕 D X σ b T n δ → ∀ {Q' : Measure Ω} [IsProbabilityMeasure Q'], Q' = swapAnnuityMeasure Q D X b T n δ → ∀ {K σ' T' F : ℝ} {Z : Ω → ℝ}, BSCallHyp Q' F K 0 σ' T' Z → (X σ (T 0) =ᵐ[Q'] fun ω => bsTerminal F 0 σ' T' (Z ω)) → Contract.value Q D X (payerSwaption b (T 0) n δ K) = blackPayerSwaption (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n)) (parSwapRate (zeroCurve Q D (T 0)) (zeroCurve Q D (T n)) (annuity δ (fun i => zeroCurve Q D (T i)) (Finset.Icc 1 n))) K σ' T'

Black's swaption formula, at the forward swap rate of the zero curve. Under the hypotheses of value_payerSwaption_black, F is the par swap rate of the zero curve, (P(0, T₀) − P(0, Tₙ))/A(0): the annuity-measure mean of a lognormal is its centre.