MathFin
Map / Probability · Gaussian analysis / MathFin.Probability.Gaussian.StandardNormal

Standard normal primitives: CDF, tail, and the Gaussian MGF

MathFin.Probability.Gaussian.StandardNormalMSC 60E05MSC 60E10MSC 91G20 source

The pricing-independent core of the Black–Scholes computation: the standard normal CDF Φ, its symmetry and tail identities, the completing-the-square shift, and the moment-generating function ∫ exp(c·z) ∂N(0,1) = exp(c²/2).

These are foundations, not pricing: every closed-form Gaussian expectation in the BS family (Call, Forward, the Greeks, the lognormal moments) reduces to the four lemmas below. They previously lived inside Models/BlackScholes/Call.lean and Models/BlackScholes/Forward.lean, which forced the Foundations files that need them (GaussianCDFDeriv, StandardGaussianMGF) to import the pricing layer — a layering inversion. Hoisting them here lets Call/Forward and the Foundations Gaussian files all build on a common, pricing-free base.

Main definitions

  • Phi: the standard normal CDF, Φ(x) = P(Z ≤ x) for Z ~ N(0, 1), as the real value of gaussianReal 0 1 (Iic x).

Main results

  • Phi_neg, Phi_add_Phi_neg, Phi_le_one, Phi_eq_integral — the reflection Φ(−x) = 1 − Φ(x), the bound Φ ≤ 1, and Φ as an integral of the density.
  • setIntegral_gaussianPDFReal_eq_toReal — the ∫ pdf = N(s).toReal bridge every closed-form Gaussian integral factors through.
  • gaussianPDFReal_zero_one_neg — evenness of the standard-normal density ϕ(-z) = ϕ(z); continuous_gaussianPDFReal — a Gaussian density is continuous.
  • gaussianReal_Ioi_toReal — the right tail Q(Ioi a) = Φ(-a).
  • exp_mul_gaussianPDFReal_zero_one — the completing-the-square shift.
  • integral_exp_mul_gaussianPDFReal_Ioi — the shifted Gaussian tail integral ∫_{Ioi a} exp(c·z)·pdf = exp(c²/2)·Φ(c − a) (the asset-payoff primitive).
  • integral_exp_mul_gaussianPDFReal_univ — the standard-normal MGF ∫ exp(c·z)·pdf = exp(c²/2).

Tags

standard normal CDF, Gaussian tail, moment generating function, completing the square, normal distribution function, Black–Scholes building block, MSC 60E05, MSC 60E10, MSC 91G20

Import neighbourhood

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

Declarations 14

defMathFin.Phisource
ℝ → ℝ

The standard normal cumulative distribution function Φ(x) = P(Z ≤ x) where Z ~ N(0, 1).

theoremMathFin.Phi_defsource
∀ (x : ℝ), Phi x = ((gaussianReal 0 1) (Set.Iic x)).toReal
theoremMathFin.Phi_nonnegsource
∀ (x : ℝ), 0 ≤ Phi x
theoremMathFin.setIntegral_gaussianPDFReal_eq_toRealsource
∀ {s : Set ℝ}, MeasurableSet s → ∀ (μ : ℝ), ∫ (z : ℝ) in s, gaussianPDFReal μ 1 z = ((gaussianReal μ 1) s).toReal

The set-integral of the standard-normal density over a measurable set s equals the (real) Gaussian measure of s: ∫_{z ∈ s} ϕ(μ,1,z) dz = N(μ,1)(s). The .toReal-of-gaussianReal bridge that every closed-form Gaussian integral factors through (Phi_eq_integral, the call/put/digital tails, the MGF shift).

theoremMathFin.Phi_eq_integralsource
∀ (x : ℝ), Phi x = ∫ (z : ℝ) in Set.Iic x, gaussianPDFReal 0 1 z

Φ(x) as the Lebesgue integral of the standard-normal density over (-∞, x].

used by 1: hasDerivAt_Phi
theoremMathFin.Phi_negsource
∀ (x : ℝ), Phi (-x) = 1 - Phi x

Φ(-x) = 1 − Φ(x). Symmetry of the standard normal around 0.

theoremMathFin.Phi_add_Phi_negsource
∀ (x : ℝ), Phi x + Phi (-x) = 1

Φ(x) + Φ(-x) = 1.

theoremMathFin.Phi_le_onesource
∀ (x : ℝ), Phi x ≤ 1

Standard normal CDF upper bound Φ(x) ≤ 1, from Φ(x) + Φ(-x) = 1 and Φ(-x) ≥ 0. The pricing-free home of the bound used across the BS price rectangle (PriceBounds) and the KMV-Merton default probability (KMVMerton).

theoremMathFin.gaussianPDFReal_zero_one_negsource
∀ (z : ℝ), gaussianPDFReal 0 1 (-z) = gaussianPDFReal 0 1 z

Standard normal PDF evenness: ϕ(-z) = ϕ(z), since the density depends on z only through z². Model-agnostic — consumed by the Greeks and the put-strike convexity.

theoremMathFin.continuous_gaussianPDFRealsource
∀ (μ : ℝ) (v : NNReal), Continuous (gaussianPDFReal μ v)

A Gaussian density is continuous.

theoremMathFin.gaussianReal_Ioi_toRealsource
∀ (a : ℝ), ((gaussianReal 0 1) (Set.Ioi a)).toReal = Phi (-a)

Q(Ioi a) = 1 − Φ(a) = Φ(-a). The right tail of the standard normal.

theoremMathFin.exp_mul_gaussianPDFReal_zero_onesource
∀ (c z : ℝ), Real.exp (c * z) * gaussianPDFReal 0 1 z = Real.exp (c ^ 2 / 2) * gaussianPDFReal c 1 z

The exponential shift identity: exp(c·z) · gaussianPDFReal 0 1 z = exp(c²/2) · gaussianPDFReal c 1 z. This is the algebraic content of "completing the square" c·z − z²/2 = c²/2 − (z − c)²/2.

theoremMathFin.integral_exp_mul_gaussianPDFReal_Ioisource
∀ (a c : ℝ), ∫ (z : ℝ) in Set.Ioi a, Real.exp (c * z) * gaussianPDFReal 0 1 z = Real.exp (c ^ 2 / 2) * Phi (c - a)

The shifted Gaussian tail integral — the core BS computational primitive: ∫ z in Ioi a, exp(c·z) · gaussianPDFReal 0 1 z dz = exp(c²/2) · Φ(c − a).

Combines exp_mul_gaussianPDFReal_zero_one (algebraic completing-the-square) with gaussianReal_map_add_const (push forward via shift).

theoremMathFin.integral_exp_mul_gaussianPDFReal_univsource
∀ (c : ℝ), ∫ (z : ℝ), Real.exp (c * z) * gaussianPDFReal 0 1 z = Real.exp (c ^ 2 / 2)

MGF of the standard normal: ∫ z, exp(c·z) · pdf(0,1,z) dz = exp(c²/2).

Combines exp_mul_gaussianPDFReal_zero_one (completing-the-square) with Mathlib's integral_gaussianPDFReal_eq_one.

Mathlib's mgf_gaussianReal gives the same value as an integral against the gaussianReal measure; this is the explicit Lebesgue/pdf form the Black–Scholes integrals consume directly, and the completing-the-square shift it factors through (exp_mul_gaussianPDFReal_zero_one) plus the truncated Ioi sibling above are the load-bearing primitives with no Mathlib analogue.