Cash-or-nothing digital pays $1 iff S_T > K. Price: V = e^{-rT} Phi(d_2).
∀ {Ω : 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) * (Set.Ioi K).indicator (fun x => 1) (bsTerminal S_0 r σ T (Z ω)) ∂Q = Real.exp (-r * T) * Phi (bsd2 S_0 K r σ T)Cash-or-nothing call pricing formula.
Pays $1 at maturity iff S_T > K. Its discounted expected payoff under the risk-neutral measure is V_cash = e^{-rT} · Φ(d_2) where d_2 = (log(S_0/K) + (r - σ²/2)T) / (σ√T).
Real derivation: HasLaw transfer to standard normal, identify {S_T(z) > K} = Ioi(-d_2) via bsTerminal_gt_K_iff, then ∫ 1_{Ioi(-d_2)}(z) · pdf(0,1,z) dz = (gaussianReal 0 1 (Ioi(-d_2))).toReal = Φ(d_2) via gaussianReal_Ioi_toReal.