Cash-or-nothing call and put:
ProvedBlackScholesModel.cash_or_nothing_valueLet , , , , , , and let with standard normal be the risk-neutral terminal price. The risk-neutral value of a binary option paying one unit of cash if the spot ends above (respectively below) the strike is
In particular is the risk-neutral probability that the call is exercised.
Formalization Note The source's binary-option formulas include a dividend yield ; this is the non-dividend case of the base model, with .
import Mathlib import Definitions.Def_BlackScholesModel_Core open Real MeasureTheory ProbabilityTheory Filter Topology open scoped ContDiff
namespace BlackScholesModel
theorem cash_or_nothing_value (K r σ T S t : ℝ) (hK : 0 < K) (hσ : 0 < σ) (hS : 0 < S) (ht : t < T) :
Real.exp (-r * (T - t)) * (gaussianReal 0 1).real {z | K < terminalPrice S r σ (T - t) z}
= Real.exp (-r * (T - t)) * stdNormalCDF (dMinus S K r σ (T - t)) ∧
Real.exp (-r * (T - t)) * (gaussianReal 0 1).real {z | terminalPrice S r σ (T - t) z < K}
= Real.exp (-r * (T - t)) * stdNormalCDF (-dMinus S K r σ (T - t)) := by sorry
end BlackScholesModelRead-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 are arbitrary real numbers subject to the hypotheses , , and (so ); is unrestricted (it may be zero or negative). , , , , are the functions of the companion definition file (normal distribution function given by its integral, normal density in closed form, , call price , put price ).
Let be the standard Gaussian probability measure on and . The theorem asserts both
with and the measures of the sets taken as real numbers. Since , each equation is equivalent to the corresponding equality of probabilities without the discount factor.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.