The cosine integral against a centred Gaussian
ProvedProbabilityTheory.integral_cos_gaussianRealThe cosine integral against a centred Gaussian. For every ,
Why this identity is useful. is a bounded -Lipschitz function, so it is admissible both as a test function for weak convergence and for the elementary bound . The identity above says that integrating this one test function against recovers injectively. That turns an estimate on laws into an estimate on variances: if two centred Gaussians are close when tested against , their variances are close, provided they range in a bounded set. This is precisely the mechanism used to show that the truncated asymptotic variances in the Markov chain central limit theorem form a Cauchy sequence.
Proof. This is the real part of the characteristic function at . The characteristic function of is ; at , it equals , a real number. On the other hand , and the integrand is bounded in modulus by , hence integrable against a probability measure; taking real parts commutes with the Bochner integral for integrable functions, and . Comparing gives the claim.
import Mathlib.Probability.Distributions.Gaussian.Real import Mathlib.MeasureTheory.Integral.Bochner.Set open Filter MeasureTheory ProbabilityTheory open scoped ENNReal NNReal Topology
theorem ProbabilityTheory.integral_cos_gaussianReal (v : ℝ≥0) :
∫ x, Real.cos x ∂(gaussianReal 0 v) = Real.exp (-(v : ℝ) / 2) := by sorry