The standard Gaussian on has density
ProvedMathlibGap.pi_gaussianReal_eq_withDensitygaussianmeasure-theoryprobability
For every , the law of independent standard normal variables, i.e. the product measure on , is absolutely continuous with respect to Lebesgue measure with density
Formalization Note The product law is Measure.pi (fun _ : Fin k => gaussianReal 0 1) on Fin k → ℝ and the density is attached with withDensity and ENNReal.ofReal. For both sides are the unit mass.
Preamble
import Mathlib open MeasureTheory ProbabilityTheory
Formal statement
namespace MathlibGap
theorem pi_gaussianReal_eq_withDensity (k : ℕ) :
Measure.pi (fun _ : Fin k => gaussianReal 0 1) =
(volume : Measure (Fin k → ℝ)).withDensity
(fun x => ENNReal.ofReal ((2 * Real.pi) ^ (-(k : ℝ) / 2) * Real.exp (-(∑ i, x i ^ 2) / 2))) := by sorry
end MathlibGapSource
Wikipedia, Multivariate normal distribution, https://en.wikipedia.org/wiki/Multivariate_normal_distribution (accessed 2026-11-26), sections 'Definitions' > 'Standard normal random vector' and 'Density function' > 'Non-degenerate case' (density with Σ = I, μ = 0)