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

The contracts priced in the Black–Scholes model

MathFin.Models.BlackScholes.BlackScholesMSC 91G20JEL G13 source

Contracts/Instruments/Options.lean defines the instruments and says what they pay; this file prices them in one model. BlackScholes.assets is the single-asset Black–Scholes market as a model map, and each instrument's Contract.value under it is the closed form MathFin/BlackScholes/ already proves. Another model gets its own file of the same shape and its own namespace (Models/Binomial/Binomial.lean, Contracts.Binomial); the instruments do not change.

BlackScholes.assets is constant in t: every instrument priced here observes the underlying only at its maturity T, so the model's value at other times is irrelevant to what gets priced. A path-dependent instrument needs the full path and is deferred.

Nothing new is proved about Black–Scholes here. A single cash flow's value is the integral of its discounted payoff (Contract.value_pay), which is exactly the integral bs_call_formula, bs_put_formula and bs_cash_or_nothing_formula compute. The capped call is priced by composition: Contract.value_both and Contract.value_scale reduce it to two call values, and no third integral is evaluated.

Main definitions

  • BlackScholes.assets — the single-asset Black–Scholes model as a model map Unit → ℝ≥0 → Ω → ℝ, constant in t and equal to bsTerminal at every time.

Main results

  • value_europeanCall, value_europeanPut, value_digitalCall — each instrument's value is bs_call_formula, bs_put_formula and bs_cash_or_nothing_formula respectively.
  • value_forward — the forward is worth S₀ − K e^{−rT}.
  • value_cappedCall — the capped call is worth the difference of two call values.
  • value_powerCall — the power call is bs_power_call_formula.

Source

The layered separation of contract semantics from pricing semantics, and the framing "the contract is not the model", are due to Paul Bilokon, The Contract Is Not the Model: Proof-Carrying Exotic Derivatives and the Economics of Model Risk (working paper, 9 August 2026; Mathematical Finance, Imperial College London), with code at <https://github.com/thalesians/lean_contracts> (Apache-2.0). That paper in turn builds on the compositional contract-DSL of Peyton Jones, Eber and Seward (2000) and the certified-contract work of Bahr, Berthold and Elsman (2015) and Annenkov (2018).

The source paper's §"Pricing-model validation" lists proving contract cashflows measurable and integrable, and connecting them to a concrete model, as future work; this file does that reduction against closed forms the library already proves.

No code is copied from lean_contracts; every definition and proof here is written for this library. See docs/specs/2026-08-16-contracts-tower-design.md §6 for the full credit line.

References

  • P. Bilokon, The Contract Is Not the Model [Bilokon2026]
  • J. C. Hull, Options, Futures, and Other Derivatives [Hull], 12.3; 15.6; 16.6; 26.4
  • S. E. Shreve, Stochastic Calculus for Finance II: Continuous-Time Models [ShreveSCFII], 4.5
  • Zhang, Exotic Options [ZhangExoticOptions]

Tags

Black–Scholes model, contract pricing, capped call, digital call, power call, lognormal, MSC 91G20, JEL G13

Import neighbourhood

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

Corpus entries

mf-contract-european-call · contracts.json · full statement
Reified European Call Prices to the Black-Scholes Formula

The reified European call contract europeanCall K T -- a Payoff literally built from max, sub, obs and const nodes rather than an inline lambda -- prices under the single-asset Black-Scholes model to the closed-form call formula S_0 Phi(d_1) - K e^{-rT} Phi(d_2). The proof reduces Contract.value to the exact integral MathFin.bs_call_formula already computes; no new Black-Scholes content is proved here.

mf-contract-european-put · contracts.json · full statement
Reified European Put Prices to the Black-Scholes Formula

The reified European put contract europeanPut K T prices under the single-asset Black-Scholes model to the closed-form put formula K e^{-rT} Phi(-d_2) - S_0 Phi(-d_1). The proof reduces Contract.value to the exact integral MathFin.bs_put_formula already computes; no new Black-Scholes content is proved here.

mf-contract-digital-cash-or-nothing · contracts.json · full statement
Reified Digital Call Prices to Its Closed Form

The reified cash-or-nothing digital call digitalCall K T -- pays 1 at T iff S_T > K -- prices under the single-asset Black-Scholes model to e^{-rT} Phi(d_2). The proof reduces Contract.value to the exact integral MathFin.bs_cash_or_nothing_formula already computes; no new Black-Scholes content is proved here.

mf-contract-capped-call-value · contracts.json · full statement
Capped Call Value by Composition

The capped call's Black-Scholes value -- the price of cappedCall K1 K2 T under the single-asset Black-Scholes model -- is the difference of the two europeanCall closed forms, obtained by Contract.value_both and Contract.value_scale applied to value_europeanCall twice: composition, not a third integral, produces the price. The integrability hypotheses Contract.value_both would otherwise need are discharged internally (domination against the terminal asset price's Gaussian MGF), not left for the caller to supply.

mf-contract-power-call-black-scholes · contracts.json · full statement
The Reified Power Call Prices to the Effective Black-Scholes Call Formula

The power call contract powerCall a K T, a payoff built from max, sub and const nodes and the real-power rpow node at the natural exponent a that pays max(S_T^a - K, 0) at T for a natural exponent a > 0 and K > 0, is worth, under the single-asset Black-Scholes model with discount e^{-rT} and the BSCallHyp hypotheses, S^_0 Phi(d1) - K e^{-rT} Phi(d2), with S^_0 = bsPowerEffectiveSpot S_0 r sigma T a and d1, d2 taken at that spot and volatility a sigma.

Declarations 7

defMathFin.Contracts.BlackScholes.assetssource
{Ω : Type u_1} → ℝ → ℝ → ℝ → ℝ → (Ω → ℝ) → Unit → NNReal → Ω → ℝ

The single-asset Black–Scholes market as a model map. Every instrument in this file observes only at T, so the value at other times is irrelevant; a path-dependent instance needs the full GBM path and is deferred.

theoremMathFin.Contracts.BlackScholes.value_europeanCallsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ : ℝ} {T : NNReal} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ (↑T) Z → Contract.value Q (fun x x_1 => Real.exp (-r * ↑T)) (assets S_0 r σ (↑T) Z) (europeanCall K T) = S_0 * Phi (bsd1 S_0 K r σ ↑T) - K * Real.exp (-r * ↑T) * Phi (bsd2 S_0 K r σ ↑T)

The reified European call prices to the Black–Scholes call formula: the value of europeanCall K T under BlackScholes.assets is exactly bs_call_formula's right-hand side.

theoremMathFin.Contracts.BlackScholes.value_digitalCallsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ : ℝ} {T : NNReal} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ (↑T) Z → Contract.value Q (fun x x_1 => Real.exp (-r * ↑T)) (assets S_0 r σ (↑T) Z) (digitalCall K T) = Real.exp (-r * ↑T) * Phi (bsd2 S_0 K r σ ↑T)

The reified cash-or-nothing digital call prices to the Black–Scholes cash-or-nothing formula: the value of digitalCall K T under BlackScholes.assets is exactly bs_cash_or_nothing_formula's right-hand side.

theoremMathFin.Contracts.BlackScholes.value_europeanPutsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ : ℝ} {T : NNReal} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ (↑T) Z → Contract.value Q (fun x x_1 => Real.exp (-r * ↑T)) (assets S_0 r σ (↑T) Z) (europeanPut K T) = K * Real.exp (-r * ↑T) * Phi (-bsd2 S_0 K r σ ↑T) - S_0 * Phi (-bsd1 S_0 K r σ ↑T)

The reified European put prices to the Black–Scholes put formula: the value of europeanPut K T under BlackScholes.assets is exactly bs_put_formula's right-hand side.

theoremMathFin.Contracts.BlackScholes.value_forwardsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ : ℝ} {T : NNReal} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ (↑T) Z → Contract.value Q (fun x x_1 => Real.exp (-r * ↑T)) (assets S_0 r σ (↑T) Z) (forward K T) = S_0 - K * Real.exp (-r * ↑T)

The forward's Black–Scholes value is S₀ − K e^{−rT}: the discounted terminal price has mean S₀ (discounted_terminal_eq_S0), so this is value_forward_of_integral.

theoremMathFin.Contracts.BlackScholes.value_cappedCallsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K₁ K₂ r σ : ℝ} {T : NNReal} {Z : Ω → ℝ}, BSCallHyp Q S_0 K₁ r σ (↑T) Z → BSCallHyp Q S_0 K₂ r σ (↑T) Z → Contract.value Q (fun x x_1 => Real.exp (-r * ↑T)) (assets S_0 r σ (↑T) Z) (cappedCall K₁ K₂ T) = S_0 * Phi (bsd1 S_0 K₁ r σ ↑T) - K₁ * Real.exp (-r * ↑T) * Phi (bsd2 S_0 K₁ r σ ↑T) - (S_0 * Phi (bsd1 S_0 K₂ r σ ↑T) - K₂ * Real.exp (-r * ↑T) * Phi (bsd2 S_0 K₂ r σ ↑T))

The capped call's Black–Scholes value, by composition, not by a third integral. cappedCall K₁ K₂ T's value under the single-asset Black–Scholes model is the difference of the two europeanCall values value_europeanCall already supplies. The proof is Contract.value_both and Contract.value_scale applied to value_europeanCall twice, closed by ring — no unfolding of Contract.value, no integral touched here at all; that is the entire point of having reified cappedCall as a composed Contract rather than as one more inline payoff lambda.

theoremMathFin.Contracts.BlackScholes.value_powerCallsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ : ℝ} {T : NNReal} {Z : Ω → ℝ} (a : ℕ), 0 < a → 0 < K → BSCallHyp Q S_0 K r σ (↑T) Z → Contract.value Q (fun x x_1 => Real.exp (-r * ↑T)) (assets S_0 r σ (↑T) Z) (powerCall a K T) = bsPowerEffectiveSpot S_0 r σ (↑T) a * Phi (bsd1 (bsPowerEffectiveSpot S_0 r σ (↑T) a) K r (↑a * σ) ↑T) - K * Real.exp (-r * ↑T) * Phi (bsd2 (bsPowerEffectiveSpot S_0 r σ (↑T) a) K r (↑a * σ) ↑T)

The power call's Black–Scholes value is the call price at the effective spot and volatility of bs_power_call_formula: S_T ^ a is lognormal again, so the value of powerCall a K T is Š₀ Φ(d̃₁) − K e^{−rT} Φ(d̃₂) with Š₀ = bsPowerEffectiveSpot and volatility aσ.