MathFin
Map / Valuation · Black–Scholes and Bachelier / MathFin.Models.BlackScholes.BarrierParity

Knock-in / knock-out barrier parity (in–out parity)

MathFin.Models.BlackScholes.BarrierParityMSC 91G20JEL G13 source

A knock-in option pays the vanilla payoff f only if the underlying path hits the barrier during the option's life; the matching knock-out pays f only if it does not. The barrier-hit event A and its complement Aᶜ partition every path, so the two discounted expected payoffs add back to the vanilla price:

V_in + V_out = V_vanilla.

This needs no barrier density and no running-max law — it is a pure linearity-of-expectation identity, in the register of Models/BlackScholes/ChooserComposition.lean's chooser_integral_decomp: a pathwise payoff decomposition (barrier_payoff_partition) lifted through the integral.

We first name the present-value functional the library had only ever written inline — discountedValue D Q g = D · E_Q[g] — so the barrier values are thin, honest specialisations of it and the parity reads as an identity about values.

Main definitions

  • discountedValue: the discounted risk-neutral value D · E_Q[g] of a payoff g under the measure Q and discount factor D.
  • knockInValue: the value of an option that pays f only on the barrier-hit event A.
  • knockOutValue: the value of an option that pays f only off the barrier-hit event, that is on the complement Aᶜ.
  • vanillaValue: the discounted expected payoff f, paid on every path.

Main results

  • discountedValue_eq_contract_value: discountedValue is Contract.value of the contract that pays the observed variable g at time 0, so the barrier values are values in the contracts tower.
  • barrier_payoff_partition: the pathwise split 𝟙_A·f + 𝟙_{Aᶜ}·f = f.
  • knockIn_add_knockOut_eq_vanilla: in–out parity V_in + V_out = V_vanilla.
  • knockIn_add_knockOut_eq_bsV: for a call under the Black–Scholes lognormal hypothesis, the knock-in and knock-out values sum to the Black–Scholes price bsV, for any measurable barrier event. So a closed form for either leg gives the other as bsV minus it; no closed form for either leg is proved here.

References

Tags

in–out parity, barrier option, knock-in, knock-out, vanilla decomposition, discounted value, MSC 91G20, JEL G13

Import neighbourhood

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

Corpus entries

mf-barrier-inout-parity · exotic_options.json · full statement
Knock-in / Knock-out Barrier Parity (in-out parity)

V_in + V_out = V_vanilla: the barrier-hit event A and its complement partition every path, so the discounted expected payoffs add to the vanilla price. Pure linearity of expectation; needs no barrier density.

mf-barrier-inout-parity-bs · exotic_options.json · full statement
Knock-in plus Knock-out Equals the Black–Scholes Call

Under the Black–Scholes lognormal hypothesis, for any measurable barrier-hit event A, the discounted knock-in and knock-out call values (payoff max(S_T − K, 0) on A and on its complement) sum to the Black–Scholes call price bsV. No closed form for either barrier leg is proved.

Declarations 8

defMathFin.discountedValuesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → ℝ → Measure Ω → (Ω → ℝ) → ℝ

Discounted risk-neutral value of a payoff g under pricing measure Q and discount factor D: D · E_Q[g]. The present-value functional the pricing files had been spelling out inline; named here so in–out parity is an identity about values rather than raw integrals.

theoremMathFin.discountedValue_eq_contract_valuesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} (D : ℝ) (Q : Measure Ω) (g : Ω → ℝ), discountedValue D Q g = Contract.value Q (fun x x_1 => D) (fun x x_1 => g) (Contract.pay 0 (Payoff.obs () 0))

discountedValue is Contract.value. D · E_Q[g] is the value, under the pricing measure Q and the constant discount factor D, of the contract that pays the observable g at time 0 (Contract.pay, Payoff.obs), in the model whose single observable is g. The barrier values below are this with g the knock-in, knock-out or vanilla payoff.

defMathFin.knockInValuesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → ℝ → Measure Ω → Set Ω → (Ω → ℝ) → ℝ

Knock-in value: the option pays the payoff f only on the barrier-hit event A, so its value is the discounted expectation of 𝟙_A · f.

defMathFin.knockOutValuesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → ℝ → Measure Ω → Set Ω → (Ω → ℝ) → ℝ

Knock-out value: the option pays f only off the barrier-hit event, i.e. on the complement Aᶜ, so its value is the discounted expectation of 𝟙_{Aᶜ} · f = (1 − 𝟙_A) · f.

defMathFin.vanillaValuesource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → ℝ → Measure Ω → (Ω → ℝ) → ℝ

Vanilla value: the discounted expected payoff f, paid on every path.

theoremMathFin.barrier_payoff_partitionsource
∀ {Ω : Type u_1} (A : Set Ω) (f : Ω → ℝ), A.indicator f + Aᶜ.indicator f = f

Barrier payoff partition (pathwise): the knock-in payoff 𝟙_A · f and the knock-out payoff 𝟙_{Aᶜ} · f sum to the vanilla payoff f on every path — each path either hits the barrier (ω ∈ A) or does not (ω ∈ Aᶜ), and contributes f ω to exactly one leg.

theoremMathFin.knockIn_add_knockOut_eq_vanillasource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} (D : ℝ) (Q : Measure Ω) (A : Set Ω) (f : Ω → ℝ), MeasurableSet A → Integrable f Q → knockInValue D Q A f + knockOutValue D Q A f = vanillaValue D Q f

In–out barrier parity: V_in + V_out = V_vanilla. The barrier-hit event A and its complement partition the paths (barrier_payoff_partition), so the discounted expected payoffs add to the vanilla price. Pure linearity of the integral — no barrier density required.

theoremMathFin.knockIn_add_knockOut_eq_bsVsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → ∀ {A : Set Ω}, MeasurableSet A → ((knockInValue (Real.exp (-r * T)) Q A fun ω => max (bsTerminal S_0 r σ T (Z ω) - K) 0) + knockOutValue (Real.exp (-r * T)) Q A fun ω => max (bsTerminal S_0 r σ T (Z ω) - K) 0) = bsV K r σ S_0 T

In–out parity for a Black–Scholes call. Under BSCallHyp, for any measurable barrier-hit event A, the knock-in and knock-out calls (payoff max(S_T − K, 0), discount e^{−rT}) sum to the Black–Scholes price: V_in + V_out = bsV K r σ S₀ T. This is knockIn_add_knockOut_eq_vanilla with the vanilla leg priced by integral_bsCall_payoff_eq_bsV.