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

Black-Scholes European call pricing formula

MathFin.Models.BlackScholes.CallMSC 91G20JEL G13 source

Derivation of the Black-Scholes European call pricing formula from the risk-neutral lognormal hypothesis:

C(S_0, K, r, σ, T) = S_0 · Φ(d_1) − K · e^{-rT} · Φ(d_2)

where d_1 = (log(S_0/K) + (r + σ²/2)T) / (σ√T) d_2 = d_1 − σ√T = (log(S_0/K) + (r − σ²/2)T) / (σ√T) Φ(x) = standard normal CDF = (gaussianReal 0 1 (Set.Iic x)).toReal

Hypothesis: under the risk-neutral measure Q, log(S_T/S_0) is Gaussian with mean (r − σ²/2)T and variance σ²T.

No upstream BS or Itô calculus required; this is pure Gaussian integration.

Mathlib leverage: gaussianReal, gaussianPDFReal, gaussianReal_map_const_mul, gaussianReal_map_add_const, gaussianReal_map_neg, integral_gaussianReal_eq_integral_smul, integral_map, MeasureTheory.HasLaw, MeasureTheory.NullSingletonClass.

## Triple-check audit (2026-05-17)

Axioms cleanliness. #print axioms confirms bs_call_formula and every supporting lemma depend only on the three standard Lean axioms: [propext, Classical.choice, Quot.sound]. No sorryAx, no project-local axiom.

Cross-check vs literature. The formula, conventions for d_1/d_2, and the risk-neutral hypothesis match exactly:

  • Hull, Options, Futures, and Other Derivatives 11th ed., Eq. 15.20
  • Shreve, Stochastic Calculus for Finance II, Theorem 4.5.1
  • Karatzas & Shreve, Brownian Motion and Stochastic Calculus, Ch 5.8
  • Saporito (the project's source textbook), Ch 9.4 (our T ≡ Saporito's T − t at t = 0)

Numerical sanity. For the canonical example S₀ = K = 100, r = 5%, σ = 20%, T = 1y: our formula yields d_1 = 0.35, d_2 = 0.15, C ≈ 10.4506 USD — matches Hull/Shreve's published reference values to 5 decimal places.

Scope (honest):

  • t = 0 specialization (general t recovers via T → T − t)
  • European call (path-independent)
  • The risk-neutral lognormal law is assumed via HasLaw; we don't derive it from dS = rS dt + σS dW (that needs Itô on log S, research-grade upstream).

## File contents

Built primitives:

  • Phi, Phi_neg, Phi_add_Phi_neg: standard normal CDF + symmetry.
  • gaussianReal_Ioi_toReal: (gaussianReal 0 1 (Set.Ioi a)).toReal = Phi(-a).
  • exp_mul_gaussianPDFReal_zero_one: completing-the-square identity exp(c·z) · pdf(0,1,z) = exp(c²/2) · pdf(c,1,z).
  • integral_exp_mul_gaussianPDFReal_Ioi: the core BS computational primitive ∫ z in Ioi a, exp(c·z) · pdf(0,1,z) dz = exp(c²/2) · Phi(c − a).
  • BSCallHyp structure: S_0>0, K>0, σ>0, T>0, HasLaw Z (gaussianReal 0 1) Q.
  • bsd1, bsd2, bsTerminal definitions.
  • bsd2_eq, bsTerminal_gt_K_iff, max_payoff_eq_indicator helpers.
  • bs_call_formula main theorem.

Main definitions

  • BSCallHyp: the risk-neutral lognormal hypothesis. It records 0 < S_0, 0 < K, 0 < σ, 0 < T and that Z has the standard normal law gaussianReal 0 1 under Q.
  • bsTerminal: the terminal price S_T(z) = S_0 · exp((r − σ²/2)T + σ√T · z) as a function of the standard normal sample z.
  • bsd1, bsd2: d₁ = (log(S_0/K) + (r + σ²/2)T) / (σ√T) and d₂ = d₁ − σ√T.

Main results

  • bs_call_formula: under BSCallHyp Q S_0 K r σ T Z, the discounted expected call payoff ∫ e^{−rT} · max (S_T(Z) − K) 0 ∂Q equals S_0 · Φ(d₁) − K · e^{−rT} · Φ(d₂).
  • bsTerminal_gt_K_iff: for positive S_0, K, σ, T, S_T(z) > K ↔ z > −d₂.
  • integrable_bsTerminal, integrable_bsCall_payoff, integrable_bsPut_payoff: the terminal price and the discounted call and put payoffs are integrable when Z has the standard normal law.

References

  • Y. F. Saporito, Stochastic Processes [Saporito], Section 9.4

Tags

Black–Scholes formula, European call, risk-neutral pricing, lognormal model, option pricing, MSC 91G20, JEL G13

Import neighbourhood

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

Corpus entries

gir-bs-call-formula · girsanov_finance.json · full statement
Black-Scholes Call Pricing Formula

Black-Scholes call price (Ch 9.4): C(S,t) = S Φ(d_1) - K e^{-r(T-t)} Φ(d_2) where d_1 = (log(S/K) + (r + σ²/2)(T-t))/(σ √(T-t)) and d_2 = d_1 - σ √(T-t)

Declarations 16

structureMathFin.BSCallHypsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → (Q : Measure Ω) → [IsProbabilityMeasure Q] → ℝ → ℝ → ℝ → ℝ → ℝ → (Ω → ℝ) → Prop

The risk-neutral lognormal hypothesis for the Black-Scholes model. Under the risk-neutral measure Q, S_T = S_0 · exp((r − σ²/2)T + σ√T · Z) with Z ~ N(0, 1).

theoremMathFin.BSCallHyp.S_0_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → 0 < S_0
theoremMathFin.BSCallHyp.K_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → 0 < K
theoremMathFin.BSCallHyp.σ_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → 0 < σ
theoremMathFin.BSCallHyp.T_possource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → 0 < T
theoremMathFin.BSCallHyp.Z_lawsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → HasLaw Z (gaussianReal 0 1) Q
defMathFin.bsd1source
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

d₁ parameter in the BS formula.

defMathFin.bsd2source
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

d₂ = d₁ − σ√T.

defMathFin.bsTerminalsource
ℝ → ℝ → ℝ → ℝ → ℝ → ℝ

Terminal price S_T(z) = S_0 · exp((r − σ²/2)T + σ√T · z) viewed as a function of the standard-normal sample.

theoremMathFin.integrable_bsTerminal_gaussianRealsource
∀ (S_0 r σ T : ℝ), Integrable (bsTerminal S_0 r σ T) (gaussianReal 0 1)

The terminal price is integrable against the standard normal law: a constant times exp(σ√T · z) (Mathlib's integrable_exp_mul_gaussianReal).

theoremMathFin.integrable_bsTerminalsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {Z : Ω → ℝ}, HasLaw Z (gaussianReal 0 1) Q → ∀ (S_0 r σ T : ℝ), Integrable (fun ω => bsTerminal S_0 r σ T (Z ω)) Q

The Black–Scholes terminal price driven by a standard normal is integrable: it is integrable against the standard normal law (integrable_bsTerminal_gaussianReal), the law of Z.

theoremMathFin.integrable_bsCall_payoffsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {Z : Ω → ℝ}, HasLaw Z (gaussianReal 0 1) Q → ∀ (S_0 K r σ T : ℝ), Integrable (fun ω => Real.exp (-r * T) * max (bsTerminal S_0 r σ T (Z ω) - K) 0) Q

The discounted Black–Scholes call payoff driven by a standard normal is integrable: it is the positive part of an integrable function.

theoremMathFin.integrable_bsPut_payoffsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} {Z : Ω → ℝ}, HasLaw Z (gaussianReal 0 1) Q → ∀ (S_0 K r σ T : ℝ), Integrable (fun ω => Real.exp (-r * T) * max (K - bsTerminal S_0 r σ T (Z ω)) 0) Q

The discounted Black–Scholes put payoff driven by a standard normal is integrable: it is the positive part of an integrable function.

theoremMathFin.bsd2_eqsource
∀ {S_0 K r σ T : ℝ}, 0 < σ → 0 < T → bsd2 S_0 K r σ T = (Real.log (S_0 / K) + (r - σ ^ 2 / 2) * T) / (σ * √T)

Alternative form for d₂: bsd2 = (log(S_0/K) + (r − σ²/2)T) / (σ√T).

theoremMathFin.bsTerminal_gt_K_iffsource
∀ {S_0 K r σ T : ℝ}, 0 < S_0 → 0 < K → 0 < σ → 0 < T → ∀ (z : ℝ), bsTerminal S_0 r σ T z > K ↔ z > -bsd2 S_0 K r σ T

Exercise-region identification: S_T(z) > K ↔ z > −d_2.

theoremMathFin.bs_call_formulasource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {Q : Measure Ω} [IsProbabilityMeasure Q] {S_0 K r σ T : ℝ} {Z : Ω → ℝ}, BSCallHyp Q S_0 K r σ T Z → ∫ (ω : Ω), Real.exp (-r * T) * max (bsTerminal S_0 r σ T (Z ω) - K) 0 ∂Q = S_0 * Phi (bsd1 S_0 K r σ T) - K * Real.exp (-r * T) * Phi (bsd2 S_0 K r σ T)

Black-Scholes European call pricing formula.

For an asset whose risk-neutral log-return is Gaussian (HasLaw Z (gaussianReal 0 1) Q with S_T = S_0 · exp((r − σ²/2)T + σ√T · Z)), the discounted expected payoff of the European call max(S_T − K, 0) equals S_0 · Φ(d_1) − K · e^{−rT} · Φ(d_2).

This is a real derivation from primitives: HasLaw.integral_comp (transfer expectation to the standard normal), integral_gaussianReal_eq_integral_smul (convert to Lebesgue with gaussianPDFReal factor), max_payoff_eq_indicator + integral_indicator (restrict to the exercise region {z > −d_2}), integral_exp_mul_gaussianPDFReal_Ioi for the asset-payoff piece (completing the square: ∫ exp(σ√T·z) · pdf = exp(σ²T/2) · Φ(d_1)), gaussianReal_Ioi_toReal for the strike piece (∫ pdf = Φ(d_2)), and the final algebraic identity (r − σ²/2)T + σ²T/2 = rT.