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

The Black–Scholes PDE, derived from Feynman–Kac

MathFin.Models.BlackScholes.PDEFromFeynmanKacMSC 91G20MSC 60H30MSC 35K10 source

Models/BlackScholes/PDE.lean proves bs_pde_holds backward: it has the closed form bsV and checks, by differentiating it, that it satisfies ∂_t V + ½σ²S²∂_SS V + rS∂_S V − rV = 0. Models/BlackScholes/PDEFromIto.lean records the algebraic shape of the no-arbitrage relation but is explicit that the continuous-time martingale step is deferred — its … = 0 is a ring identity, not a derivation.

This file closes that gap from the probabilistic side. The Black–Scholes value is a Gaussian convolution of the payoff — a Feynman–Kac representation — and it satisfies the PDE because the heat kernel does. The deep machinery of Probability/Gaussian/FeynmanKacHeatEquation.lean — previously an orphan, consumed by no pricing result — is now load-bearing for pricing.

The program (four steps)

1. Kernel-side heat equation (in Probability/Gaussian/FeynmanKacHeatEquation.lean): for g locally integrable with sub-Gaussian growth and τ > 0, u(τ, x) := feynmanU g τ x is smooth and ∂_τ u = ½ ∂_xx u. The derivatives fall on the smooth, fast-decaying kernel (∂_τ K = ½ ∂_yy K, already proved), so g needs no regularity — the call payoff's kink and exponential growth are irrelevant. 2. Feynman–Kac representation of the price (bsV_eq_feynmanU, below): bsV K r σ S τ = feynmanU (fun ξ ↦ e^{−rτ}·(e^ξ − K)⁺) (σ²τ) (log S + (r − σ²/2)τ). This is the milestone that wires feynmanU into the pricing layer. 3. Log-price + discount change of variables S = eˣ, t = T − τ: transport step 1's heat equation through the substitution onto the Black–Scholes operator. 4. bsV solves the BS PDE, via Feynman–Kac: assemble 1–3 — an independent, conceptually grounded derivation of bs_pde_holds.

Step 1 is proved in Probability/Gaussian/FeynmanKacHeatEquation. This file establishes steps 2–4. Step 2 is bsV_eq_feynmanU with the discounted-heat-flow bridge bsV_eq_discount_feynmanU (the result that makes feynmanU load-bearing for pricing). Step 3 is the three Greeks via Feynman–Kac: hasDerivAt_bsV_S_fk (Delta — the S-derivative as a kernel moment), hasDerivAt_bsV_tau_fk (Theta — the product rule on the discount e^{−rτ'} times the discounted heat flow, with both kernel arguments σ²τ' and log S + (r−σ²/2)τ' moving with τ'), and hasDerivAt_bsV_SS_fk (Gamma). The Theta consumes hasDerivAt_feynmanU_comp and through it the heat kernel's joint Fréchet differentiability hasFDerivAt_heatKernel; the curve domination bounds the two kernel-derivative terms separately (curve_sq_ratio_le / curve_abs_ratio_le + heatKernel_loc_le), avoiding the single-mega-constant blow-up that defeated the brute force.

Step 4 is the capstone bsV_satisfies_bs_pde_via_feynmanKac: the PDE assembly −V_τ + ½σ²S²V_SS + rSV_S − rV = e^{−rτ}σ²(½U_xx − U_t) = 0 via feynmanU_heat_equation and the operator cancellation −(r−σ²/2) − ½σ² + r = 0, on top of the in-place Greeks above. Those three derivatives are heat-kernel integrals; the theorem also identifies them with the closed-form Greeks of Models/BlackScholes/PDE.lean (hasDerivAt_bsV_tau, hasDerivAt_bsV_S, hasDerivAt_deriv_bsV_S), by uniqueness of the derivative. The benchmark sc-bs-pde-feynman-kac re-exports it.

Main results

  • bsV_eq_feynmanU: for S, K, σ, τ > 0, the Black–Scholes call value is the Feynman–Kac heat flow feynmanU of the payoff e^{−rτ}(e^ξ − K)⁺ at time σ²τ and point log S + (r − σ²/2)τ.
  • bsV_eq_discount_feynmanU: the same value written as e^{−rτ} times the heat flow of (e^ξ − K)⁺.
  • bsV_satisfies_bs_pde_via_feynmanKac: the derivatives V_τ, V_S, V_SS of the call value exist and satisfy −V_τ + ½σ²S²·V_SS + rS·V_S − rV = 0, derived through the heat equation.

Tags

Feynman–Kac, Black–Scholes PDE, probabilistic representation, heat equation, diffusion generator, MSC 91G20, MSC 60H30, MSC 35K10

Import neighbourhood

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

Corpus entries

sc-bs-pde-feynman-kac · stochastic_calculus.json · full statement
Black-Scholes PDE via Feynman-Kac

Chapter 9/10: The Black-Scholes PDE derived from the Feynman–Kac representation — the operator vanishes because the heat kernel does (independent of the closed-form route in sc-bs-pde). The three derivatives (in τ, S and S twice) are named: they are the closed-form theta σSϕ(d₁)/(2√τ) + rKe^{−rτ}Φ(d₂), delta Φ(d₁) and gamma ϕ(d₁)/(Sσ√τ).

Declarations 4

theoremMathFin.bsV_eq_feynmanUsource
∀ {K r σ S τ : ℝ}, 0 < S → 0 < K → 0 < σ → 0 < τ → bsV K r σ S τ = feynmanU (fun ξ => Real.exp (-(r * τ)) * max (Real.exp ξ - K) 0) (σ ^ 2 * τ) (Real.log S + (r - σ ^ 2 / 2) * τ)

Step 2 — Feynman–Kac representation of the Black–Scholes call value.

theoremMathFin.abs_max_exp_sub_zero_le_expsource
∀ {K : ℝ}, 0 < K → ∀ (z : ℝ), |max (Real.exp z - K) 0| ≤ Real.exp z

For 0 < K, |max (exp z - K) 0| ≤ exp z.

theoremMathFin.bsV_eq_discount_feynmanUsource
∀ {K r σ S τ : ℝ}, 0 < S → 0 < K → 0 < σ → 0 < τ → bsV K r σ S τ = Real.exp (-(r * τ)) * feynmanU (fun ξ => max (Real.exp ξ - K) 0) (σ ^ 2 * τ) (Real.log S + (r - σ ^ 2 / 2) * τ)

Step 3 (bridge) — the Black–Scholes value is a discounted heat flow.

theoremMathFin.bsV_satisfies_bs_pde_via_feynmanKacsource
∀ {K r σ : ℝ}, 0 < K → 0 < σ → ∀ {S τ : ℝ}, 0 < S → 0 < τ → ∃ Vτ VS VSS, HasDerivAt (fun τ' => bsV K r σ S τ') Vτ τ ∧ HasDerivAt (fun S' => bsV K r σ S' τ) VS S ∧ HasDerivAt (fun S' => deriv (fun S'' => bsV K r σ S'' τ) S') VSS S ∧ -Vτ + 1 / 2 * σ ^ 2 * S ^ 2 * VSS + r * S * VS - r * bsV K r σ S τ = 0 ∧ Vτ = σ * S * gaussianPDFReal 0 1 (bsd1 S K r σ τ) / (2 * √τ) + r * K * Real.exp (-(r * τ)) * Phi (bsd2 S K r σ τ) ∧ VS = Phi (bsd1 S K r σ τ) ∧ VSS = gaussianPDFReal 0 1 (bsd1 S K r σ τ) / (S * σ * √τ)

Step 4 — the Black–Scholes PDE, derived from Feynman–Kac. The call value's actual derivatives satisfy −∂_τ V + ½σ²S²·∂_SS V + rS·∂_S V − rV = 0. The three derivatives are the Feynman–Kac Greeks (hasDerivAt_bsV_{S,SS,tau}_fk), each a heat-kernel integral; the operator vanishes because the heat kernel does: the U_x drift terms cancel algebraically and ∂_t U = ½ ∂_xx U is the kernel heat equation (feynmanU_heat_equation). This is the independent, probabilistically-grounded re-derivation of bs_pde_holds — closing the two-tower gap by making feynmanU load-bearing for the PDE. (The hard differentiability work — uniform domination, differentiation under the integral — already lives in hasDerivAt_feynmanU_comp and the Greeks; feynmanU_heat_equation supplies only the algebraic kernel identity ∂_t K = ½ ∂_xx K, and the operator vanishing is then exact algebra.) The three derivatives, being derivatives of bsV, are the closed-form theta, delta and gamma of PDE.lean; the last three conjuncts say so (HasDerivAt.unique), so the Feynman–Kac Greeks and the closed-form ones are the same numbers.