Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 7.2.1 — Slepian's inequality for Gaussian processes

Proved
HighDimProb.RandomProcesses.slepian

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

comparison-inequalitiesgaussian-processesprobabilityrandom-processes

This is Slepian's inequality, the first and most classical comparison inequality for Gaussian processes: it says that the faster a Gaussian process grows, in terms of the size of its increments, the larger its supremum tends to be — made precise as a stochastic-domination statement between the two processes' suprema.

Let (Xt)t∈T(X_t)_{t\in T}(Xt​)t∈T​ and (Yt)t∈T(Y_t)_{t\in T}(Yt​)t∈T​ be two mean zero Gaussian processes on a common probability space, indexed by an arbitrary (possibly uncountable) nonempty set TTT (a family of real random variables such that every finite linear combination is Gaussian). Assume that for all t,s∈Tt,s\in Tt,s∈T,

EXt2=EYt2andE(Xt−Xs)2≤E(Yt−Ys)2.E X_t^2 = E Y_t^2 \qquad\text{and}\qquad E(X_t - X_s)^2 \le E(Y_t - Y_s)^2.EXt2​=EYt2​andE(Xt​−Xs​)2≤E(Yt​−Ys​)2.

Then for every τ∈R\tau \in \mathbb Rτ∈R,

P{sup⁡t∈TXt≥τ}  ≤  P{sup⁡t∈TYt≥τ}.P\Bigl\{\sup_{t\in T} X_t \ge \tau\Bigr\} \;\le\; P\Bigl\{\sup_{t\in T} Y_t \ge \tau\Bigr\}.P{t∈Tsup​Xt​≥τ}≤P{t∈Tsup​Yt​≥τ}.

Consequently,

Esup⁡t∈TXt  ≤  Esup⁡t∈TYt.E \sup_{t\in T} X_t \;\le\; E \sup_{t\in T} Y_t.Et∈Tsup​Xt​≤Et∈Tsup​Yt​.

When the tail comparison holds for every τ\tauτ, one says XXX is stochastically dominated by YYY. The book proves this first for finite-dimensional Gaussian vectors (Theorem 7.2.9) via Gaussian interpolation, and extends it to a general index set TTT through the process's finite-dimensional marginals.

Formalization Note P{sup ≥ τ} is ProcessTailProb and E sup is ProcessESup, both defined through finite marginals of T in the sense of the book's own footnote 3 to this section (an uncountable T makes the pointwise supremum non-measurable in general). IsGaussianProcess (Mathlib) is the Gaussian-process hypothesis. Unlike Theorem 7.2.9's restriction to τ ≥ 0, this general form holds for every real τ, exactly as the book states it.

Preamble
import Mathlib
import Definitions.Def_HighDimProb_RandomProcesses_ProcessESup
import Definitions.Def_HighDimProb_RandomProcesses_ProcessTailProb

open MeasureTheory ProbabilityTheory
Formal statement
namespace HighDimProb.RandomProcesses

/-- **Theorem 7.2.1** (Slepian's inequality), Vershynin, *High-Dimensional Probability* (2018),
p. 156 (PDF p. 164).

Let `(X_t)_{t∈T}` and `(Y_t)_{t∈T}` be two mean zero Gaussian processes on an arbitrary
(possibly uncountable) nonempty index set `T`. Assume that for all `t, s ∈ T`, `E X_t² = E Y_t²`
and `E(X_t − X_s)² ≤ E(Y_t − Y_s)²`. Then for every `τ ∈ ℝ`, `P{sup_{t∈T} X_t ≥ τ} ≤
P{sup_{t∈T} Y_t ≥ τ}`. Consequently, `E sup_{t∈T} X_t ≤ E sup_{t∈T} Y_t`. -/
theorem slepian :
    ∀ {Ω : Type} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
      {T : Type} [Nonempty T] (X Y : T → Ω → ℝ)
      (hXG : IsGaussianProcess X P) (hYG : IsGaussianProcess Y P)
      (hXmean : ∀ t, ∫ ω, X t ω ∂P = 0) (hYmean : ∀ t, ∫ ω, Y t ω ∂P = 0)
      (hvar : ∀ t, ∫ ω, (X t ω) ^ 2 ∂P = ∫ ω, (Y t ω) ^ 2 ∂P)
      (hinc : ∀ t s, ∫ ω, (X t ω - X s ω) ^ 2 ∂P ≤ ∫ ω, (Y t ω - Y s ω) ^ 2 ∂P),
      (∀ τ : ℝ, processTailProb P X τ ≤ processTailProb P Y τ) ∧
      processESup P X ≤ processESup P Y := by sorry

end HighDimProb.RandomProcesses
Source
Vershynin, High-Dimensional Probability (2018), p. 156, Theorem 7.2.1
Read-back

What the Lean code literally says, in plain math · claude-opus-5

The statement is a single universally quantified assertion. It says: for every type Ω\OmegaΩ equipped with a measurable-space structure, every measure PPP on Ω\OmegaΩ that is a probability measure, every type TTT that is nonempty, and every pair of families of real-valued functions X,Y:T→Ω→RX, Y : T \to \Omega \to \mathbb{R}X,Y:T→Ω→R — writing XtX_tXt​ for the function ω↦X(t)(ω)\omega \mapsto X(t)(\omega)ω↦X(t)(ω) — if the following six hypotheses hold:

  • XXX is a Gaussian process with respect to PPP (IsGaussianProcess X P), and YYY is a Gaussian process with respect to PPP;
  • for every t∈Tt \in Tt∈T, the Bochner integral ∫ΩXt(ω) dP(ω)=0\int_\Omega X_t(\omega) \, dP(\omega) = 0∫Ω​Xt​(ω)dP(ω)=0;
  • for every t∈Tt \in Tt∈T, ∫ΩYt(ω) dP(ω)=0\int_\Omega Y_t(\omega) \, dP(\omega) = 0∫Ω​Yt​(ω)dP(ω)=0;
  • for every t∈Tt \in Tt∈T, ∫ΩXt(ω)2 dP(ω)=∫ΩYt(ω)2 dP(ω)\displaystyle\int_\Omega X_t(\omega)^2 \, dP(\omega) = \int_\Omega Y_t(\omega)^2 \, dP(\omega)∫Ω​Xt​(ω)2dP(ω)=∫Ω​Yt​(ω)2dP(ω);
  • for every pair t,s∈Tt, s \in Tt,s∈T (the two ranging independently, including t=st = st=s), ∫Ω(Xt(ω)−Xs(ω))2 dP(ω)  ≤  ∫Ω(Yt(ω)−Ys(ω))2 dP(ω)\displaystyle\int_\Omega \bigl(X_t(\omega) - X_s(\omega)\bigr)^2 \, dP(\omega) \;\le\; \int_\Omega \bigl(Y_t(\omega) - Y_s(\omega)\bigr)^2 \, dP(\omega)∫Ω​(Xt​(ω)−Xs​(ω))2dP(ω)≤∫Ω​(Yt​(ω)−Ys​(ω))2dP(ω);

then both of the following hold, joined by conjunction:

∀τ∈R,processTailProb⁡(P,X,τ)  ≤  processTailProb⁡(P,Y,τ)\forall \tau \in \mathbb{R}, \quad \operatorname{processTailProb}(P, X, \tau) \;\le\; \operatorname{processTailProb}(P, Y, \tau)∀τ∈R,processTailProb(P,X,τ)≤processTailProb(P,Y,τ) processESup⁡(P,X)  ≤  processESup⁡(P,Y)\operatorname{processESup}(P, X) \;\le\; \operatorname{processESup}(P, Y)processESup(P,X)≤processESup(P,Y)

Two of the notions appearing here are not standard library notions but definitions imported from this bundle, and the statement's content depends entirely on them. processTailProb⁡(P,Z,τ)\operatorname{processTailProb}(P, Z, \tau)processTailProb(P,Z,τ) is a quantity attached to a measure PPP, a family Z:T→Ω→RZ : T \to \Omega \to \mathbb{R}Z:T→Ω→R and a real threshold τ\tauτ — by its name a tail probability of the process, presumably P{sup⁡tZt≥τ}P\{\sup_{t} Z_t \ge \tau\}P{supt​Zt​≥τ} or a variant of it, but the code above does not exhibit its body, so its exact definition (including which comparison, ≥\ge≥ or >>>, and how the supremum over a possibly uncountable TTT is formed and measured) is fixed elsewhere and is not visible in this declaration. Likewise processESup⁡(P,Z)\operatorname{processESup}(P, Z)processESup(P,Z) is a quantity attached to PPP and ZZZ — by its name an expected supremum of the process, presumably E[sup⁡tZt]\mathbb{E}\bigl[\sup_t Z_t\bigr]E[supt​Zt​] — whose body is also not shown. Whatever ordered type these two return, the two conclusions are inequalities in that type; the comparison in each is non-strict (≤\le≤). Similarly, IsGaussianProcess X P is a predicate not displayed here; the statement asserts nothing about its content beyond assuming it for both families. Everything the theorem claims about suprema and tail probabilities is therefore mediated by these three opaque definitions.

Note the exact logical shape: the conclusion is a conjunction, not an implication between its two parts — the theorem asserts the tail-probability comparison and, independently, the expected-supremum comparison, rather than deriving the second from the first. The tail comparison is universally quantified over all real τ\tauτ, including negative τ\tauτ and τ\tauτ of large magnitude in either direction. The index type TTT carries no measurability, countability, topological or finiteness assumption; it is an arbitrary type required only to be inhabited. The measure PPP is required to be a probability measure. No integrability, measurability or square-integrability hypothesis is stated for the individual functions Xt,YtX_t, Y_tXt​,Yt​ beyond what IsGaussianProcess may itself impose; the integrals in the hypotheses are Lean's total Bochner integral, which returns 000 for any integrand that is not integrable.

In the degenerate cases the hypotheses permit: if TTT has exactly one element t0t_0t0​, the increment hypothesis instantiated at t=s=t0t = s = t_0t=s=t0​ reads ∫(Xt0−Xt0)2=0≤∫(Yt0−Yt0)2=0\int (X_{t_0} - X_{t_0})^2 = 0 \le \int (Y_{t_0} - Y_{t_0})^2 = 0∫(Xt0​​−Xt0​​)2=0≤∫(Yt0​​−Yt0​​)2=0, which is satisfied automatically, so the whole increment hypothesis carries no information; TTT being empty is excluded by the Nonempty T assumption. Because the Bochner integral is total, any XtX_tXt​ or YtY_tYt​ that fails to be integrable has ∫Xt dP=0\int X_t \, dP = 0∫Xt​dP=0 by definition, so the mean-zero hypotheses hXmean, hYmean are satisfied vacuously for such families rather than expressing a genuine centering; the same applies to the variance and increment hypotheses, where a non-integrable square contributes the value 000, so hvar can hold because both sides are junk 000, and hinc can hold because its left side is junk 000 while its right side is any nonnegative number, or because both are junk. If Ω\OmegaΩ is empty, no probability measure on it exists and the hypothesis IsProbabilityMeasure P cannot be satisfied, making the statement vacuous for that Ω\OmegaΩ; if Ω\OmegaΩ is a one-point space, every XtX_tXt​ and YtY_tYt​ is constant, all increments integrate to 000, and the mean-zero hypotheses force those constants to be 000, so both processes are identically zero and the two conclusions become comparisons of processTailProb⁡\operatorname{processTailProb}processTailProb and processESup⁡\operatorname{processESup}processESup of the zero process with themselves. If processESup⁡\operatorname{processESup}processESup takes values in an extended-real type, the second conclusion also covers the cases where one or both sides are +∞+\infty+∞ or −∞-\infty−∞, and asserts the inequality there too; if it involves a supremum over an unbounded or empty family, whatever default value Lean's total supremum returns in that situation is the value being compared. Nothing in the statement rules out that both processTailProb⁡\operatorname{processTailProb}processTailProb and processESup⁡\operatorname{processESup}processESup are constant or junk-valued functions of their arguments, in which case both conclusions hold trivially.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me