Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Risk-neutral pricing: C=e−r(T−t) E[max⁡(ST−K,0)]C = e^{-r(T-t)}\,\mathbb E[\max(S_T-K,0)]C=e−r(T−t)E[max(ST​−K,0)]

Proved
BlackScholesModel.callPrice_eq_risk_neutral_expectation

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

black-scholesmathematical-financeoption-pricing

Let K>0K>0K>0, σ>0\sigma>0σ>0, S>0S>0S>0, t<Tt<Tt<T, r∈Rr\in\mathbb Rr∈R and τ=T−t\tau=T-tτ=T−t. Let ZZZ be a standard normal random variable and let

ST=Sexp⁡((r−σ22)τ+στ Z)S_T=S\exp\Big(\big(r-\tfrac{\sigma^2}2\big)\tau+\sigma\sqrt\tau\,Z\Big)ST​=Sexp((r−2σ2​)τ+στ​Z)

be the terminal stock price under the risk-neutral measure (geometric Brownian motion with drift rrr). Then the Black–Scholes call price is the discounted expected payoff:

C(S,t)=e−rτ E[max⁡(ST−K,0)].C(S,t)=e^{-r\tau}\,\mathbb E\big[\max(S_T-K,0)\big].C(S,t)=e−rτE[max(ST​−K,0)].

Formalization Note The expectation is the integral with respect to the standard Gaussian measure on R\mathbb RR (gaussianReal 0 1) of z↦max⁡(ST(z)−K,0)z\mapsto\max(S_T(z)-K,0)z↦max(ST​(z)−K,0).

Preamble
import Mathlib
import Definitions.Def_BlackScholesModel_Core

open Real MeasureTheory ProbabilityTheory Filter Topology
open scoped ContDiff
Formal statement
namespace BlackScholesModel

theorem callPrice_eq_risk_neutral_expectation (K r σ T S t : ℝ) (hK : 0 < K) (hσ : 0 < σ) (hS : 0 < S) (ht : t < T) :
    callPrice K r σ T S t
      = Real.exp (-r * (T - t))
          * ∫ z, max (terminalPrice S r σ (T - t) z - K) 0 ∂(gaussianReal 0 1) := by sorry

end BlackScholesModel
Source
Wikipedia, "Black–Scholes model" (snapshot supplied as Black–Scholes_model.pdf, 22 pp.), https://en.wikipedia.org/wiki/Black%E2%80%93Scholes_model; p. 6 (Derivations: the option price is the expected value of the discounted payoff under the risk-neutral measure; risk-neutral stock price)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Non-blind read-back. This read-back was written by the same agent that drafted the Lean statement (at the explicit instruction of the proposal owner), not by an independent blind auditor. It is not independent testimony; reviewers should compare it against the Lean code themselves.

Here K,r,σ,T,S,tK,r,\sigma,T,S,tK,r,σ,T,S,t are arbitrary real numbers subject to the hypotheses K>0K>0K>0, σ>0\sigma>0σ>0, S>0S>0S>0 and t<Tt<Tt<T (so τ:=T−t>0\tau:=T-t>0τ:=T−t>0); rrr is unrestricted (it may be zero or negative). NNN, N′N'N′, d±d_\pmd±​, CCC, PPP are the functions of the companion definition file (normal distribution function given by its integral, normal density in closed form, d±=d±(S,K,r,σ,T−t)d_\pm=d_\pm(S,K,r,\sigma,T-t)d±​=d±​(S,K,r,σ,T−t), call price C(S,t)=N(d+)S−N(d−)Ke−r(T−t)C(S,t)=N(d_+)S-N(d_-)Ke^{-r(T-t)}C(S,t)=N(d+​)S−N(d−​)Ke−r(T−t), put price P(S,t)=N(−d−)Ke−r(T−t)−N(−d+)SP(S,t)=N(-d_-)Ke^{-r(T-t)}-N(-d_+)SP(S,t)=N(−d−​)Ke−r(T−t)−N(−d+​)S).

Let γ\gammaγ be the standard Gaussian probability measure on R\mathbb RR (mean 000, variance 111) and ST(z)=Sexp⁡((r−σ2/2)(T−t)+σT−t z)S_T(z)=S\exp\big((r-\sigma^2/2)(T-t)+\sigma\sqrt{T-t}\,z\big)ST​(z)=Sexp((r−σ2/2)(T−t)+σT−t​z). The theorem asserts

C(S,t)=e−r(T−t)∫Rmax⁡(ST(z)−K, 0) dγ(z),C(S,t)=e^{-r(T-t)}\int_{\mathbb R}\max\big(S_T(z)-K,\,0\big)\,d\gamma(z),C(S,t)=e−r(T−t)∫R​max(ST​(z)−K,0)dγ(z),

where the integral is the Bochner integral (which the formal system sets to 000 if the integrand is not integrable).

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me