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