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

Vanilla interest-rate swap

MathFin.Models.Rates.InterestRateSwapMSC 91G30JEL G13 source

The annuity, the payer-swap value, the par swap rate, and the par identity — the swap is worth zero iff the fixed rate is the par rate. The identity is pure annuity algebra, proved for any nonzero annuity and instantiated on the zcb curve, where positivity of the discount factors is a theorem (zcb_pos), not an assumption. The annuity here is the numéraire A consumed by blackPayerSwaption in MathFin/Models/Forwards/Black76.lean.

Main definitions

  • annuity: the fixed-leg PV01 A = δ · ∑ i ∈ s, P i of a payment schedule s with daycount fraction δ.
  • payerSwapValue: the payer-swap value, the floating leg P₀ − Pₙ minus the fixed leg K · A.
  • parSwapRate: the par swap rate S = (P₀ − Pₙ) / A.

Main results

  • annuity_pos: the annuity of a nonempty schedule with positive daycount and positive discount factors is positive.
  • payerSwapValue_eq_zero_iff: for a nonzero annuity A, the payer swap is worth zero iff K = parSwapRate P0 Pn A.
  • payerSwapValue_zcb_eq_zero_iff: the same par identity on the zcb curve, for δ > 0 and a nonempty schedule.

Tags

interest rate swap, par swap rate, payer swap, annuity factor, swap valuation, fixed leg, MSC 91G30, JEL G13

Import neighbourhood

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

Corpus entries

mf-fixedincome-swap · interest_rates.json · full statement
Vanilla Interest-Rate Swap: Zero Value iff Par Swap Rate

Vanilla interest-rate swap: annuity, payer-swap value, par swap rate, and the par identity over the zcb curve.

Declarations 6

defMathFin.annuitysource
{ι : Type u_1} → ℝ → (ι → ℝ) → Finset ι → ℝ

Annuity (fixed-leg PV01) of a payment schedule s with daycount fraction δ and discount factors P: A = δ · ∑ i ∈ s, P i.

defMathFin.payerSwapValuesource
ℝ → ℝ → ℝ → ℝ → ℝ

Payer-swap value over given discount factors: the floating leg P₀ − Pₙ minus the fixed leg K · A, A the annuity of the fixed schedule.

defMathFin.parSwapRatesource
ℝ → ℝ → ℝ → ℝ

Par swap rate: the fixed rate that makes the payer swap worth zero, S = (P₀ − Pₙ) / A.

theoremMathFin.annuity_possource
∀ {ι : Type u_1} {δ : ℝ} {P : ι → ℝ} {s : Finset ι}, 0 < δ → (∀ i ∈ s, 0 < P i) → s.Nonempty → 0 < annuity δ P s

The annuity of a nonempty schedule with positive daycount and positive discount factors is positive.

theoremMathFin.payerSwapValue_eq_zero_iffsource
∀ (P0 Pn K : ℝ) {A : ℝ}, A ≠ 0 → (payerSwapValue P0 Pn K A = 0 ↔ K = parSwapRate P0 Pn A)

The par identity: a payer swap is worth zero iff its fixed rate is the par swap rate — pure algebra, valid for any nonzero annuity.

theoremMathFin.payerSwapValue_zcb_eq_zero_iffsource
∀ {ι : Type u_1} (r δ K T0 Tn : ℝ) (T : ι → ℝ) (s : Finset ι), 0 < δ → s.Nonempty → (payerSwapValue (zcb r 0 T0) (zcb r 0 Tn) K (annuity δ (fun i => zcb r 0 (T i)) s) = 0 ↔ K = parSwapRate (zcb r 0 T0) (zcb r 0 Tn) (annuity δ (fun i => zcb r 0 (T i)) s))

The par identity on the zcb curve: a positive daycount and a nonempty payment schedule make the annuity positive (zcb is a positive exponential), so no positivity hypotheses are needed.