Gaussian integration by parts: for jointly Gaussian , centered,
ProvedGaussianMatrix.gaussian_integration_by_partsLet be a finite index set and let be a probability space. Let and be random variables such that the pair has a Gaussian law on , and suppose is centered: . Let be differentiable everywhere, with partial derivatives . Assume each is continuous, and that for some constant we have and for all . Then
This is the Gaussian integration-by-parts (Stein) identity. It drives Gaussian interpolation arguments: the Sudakov–Fernique and Slepian comparison inequalities, Gordon's inequality, and Chatterjee's error bounds. In those arguments one differentiates along an interpolating Gaussian path and turns into covariances times second derivatives. Here the identity is proved by regressing on . The residual is uncorrelated with , hence independent of it, which reduces the claim to the one-dimensional identity for .
Formalization Note. Joint Gaussianity is HasGaussianLaw (fun ω => (U ω, fun j => V j ω)) P; this also forces to be a probability measure. The gradient is supplied explicitly: HasFDerivAt G (∑ j, G' j x • proj j) x, i.e. . The covariance is Mathlib's cov[U, V j; P]. Edge cases: if , both sides are ; if , is constant and both sides are because . The boundedness of and is a convenient sufficient regularity class (); it makes every integral finite, so the Bochner convention for non-integrable functions plays no role.
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
namespace GaussianMatrix
theorem gaussian_integration_by_parts {ι Ω : Type*} [Fintype ι] [MeasurableSpace Ω]
{P : Measure Ω} (U : Ω → ℝ) (V : ι → Ω → ℝ)
(hUV : HasGaussianLaw (fun ω => (U ω, fun j => V j ω)) P) (hU0 : ∫ ω, U ω ∂P = 0)
(G : (ι → ℝ) → ℝ) (G' : ι → (ι → ℝ) → ℝ)
(hG : ∀ x, HasFDerivAt G
(∑ j, G' j x • ContinuousLinearMap.proj (R := ℝ) (φ := fun _ : ι => ℝ) j) x)
(hG'c : ∀ j, Continuous (G' j)) (C : ℝ) (hGb : ∀ x, |G x| ≤ C)
(hG'b : ∀ j x, |G' j x| ≤ C) :
∫ ω, U ω * G (fun j => V j ω) ∂P = ∑ j, cov[U, V j; P] * ∫ ω, G' j (fun j => V j ω) ∂P := by sorry
end GaussianMatrix