Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6.1.1 — Decoupling

Proved
HighDimProb.QuadraticForms.decoupling

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

chaosconcentrationdecouplingprobability

This is the Decoupling theorem, the main proof engine of Chapter 6 of Vershynin's High-Dimensional Probability: it replaces a quadratic form in dependent terms by a bilinear form in two independent copies, at the cost of a universal constant factor 444.

Let A=(Aij)i,j=1nA = (A_{ij})_{i,j=1}^nA=(Aij​)i,j=1n​ be an n×nn \times nn×n, diagonal-free matrix (every Aii=0A_{ii} = 0Aii​=0). Let X=(X1,…,Xn)X = (X_1, \dots, X_n)X=(X1​,…,Xn​) be a random vector with independent, mean zero coordinates XiX_iXi​, and let X′=(X1′,…,Xn′)X' = (X_1', \dots, X_n')X′=(X1′​,…,Xn′​) be an independent copy of XXX (a random vector, independent of XXX, with the same coordinatewise distributions). Then, for every convex function F:R→RF : \mathbb R \to \mathbb RF:R→R,

E F(X⊤AX)  ≤  E F(4X⊤AX′),X⊤AX=∑i,jAijXiXj,  X⊤AX′=∑i,jAijXiXj′.\mathbb E\, F(X^\top A X) \;\le\; \mathbb E\, F(4 X^\top A X'), \qquad X^\top A X = \sum_{i,j} A_{ij} X_i X_j,\ \ X^\top A X' = \sum_{i,j} A_{ij} X_i X_j'.EF(X⊤AX)≤EF(4X⊤AX′),X⊤AX=i,j∑​Aij​Xi​Xj​,  X⊤AX′=i,j∑​Aij​Xi​Xj′​.

The quadratic form X⊤AXX^\top A XX⊤AX (a "chaos") has dependent terms, since XiXjX_i X_jXi​Xj​ and XiXkX_i X_kXi​Xk​ share the factor XiX_iXi​; the bilinear form X⊤AX′X^\top A X'X⊤AX′ is easier to analyze, since conditioning on X′X'X′ turns it into a sum of independent random variables with fixed coefficients. Decoupling is what lets the Hanson-Wright inequality (Theorem 6.2.1) reduce the off-diagonal part of a quadratic form's tail to a bound on this bilinear form.

Formalization Note XXX and X′X'X′ are two families of real random variables on one probability space, jointly independent as a single family of 2n2n2n coordinates (iIndepFun on Fin n ⊕ Fin n), which is stronger than the book's bare "X′X'X′ is independent of XXX" but faithful to it here: it is exactly what "X′X'X′ is an independent copy of XXX" gives once XXX itself has independent coordinates. Each Xi′X_i'Xi′​ having the same distribution as XiX_iXi​ is IdentDistrib. As in the convex decoupling lemma, both quadratic/bilinear forms are required Integrable after applying FFF, and each XiX_iXi​, Xi′X_i'Xi′​ is required Integrable, so that the mean-zero hypothesis and both sides of the conclusion are genuine (not Mathlib's junk-value) expectations. The diagonal-free hypothesis on AAA is essential and is not the same statement as the goal theorem (Hanson-Wright), where AAA is a general matrix; see Remark 6.1.3 in the source for how the general case is reduced to this one.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace HighDimProb.QuadraticForms

/-- **Theorem 6.1.1** (Decoupling), Vershynin, *High-Dimensional Probability* (2018), p. 136.

Let `A` be an `n × n`, diagonal-free matrix (i.e. the diagonal entries of `A` equal zero). Let
`X = (X₁, …, Xₙ)` be a random vector with independent mean zero coordinates `Xᵢ`. Then, for
every convex function `F : ℝ → ℝ`, one has `E F(XᵀAX) ≤ E F(4XᵀAX′)`, where `X′` is an
independent copy of `X`. -/
theorem decoupling {n : ℕ} {Ω : Type} [MeasurableSpace Ω] (P : Measure Ω)
    [IsProbabilityMeasure P] (X X' : Fin n → Ω → ℝ)
    (hX_meas : ∀ i, Measurable (X i)) (hX'_meas : ∀ i, Measurable (X' i))
    (hindep : iIndepFun (Sum.elim X X') P)
    (hX_int : ∀ i, Integrable (X i) P) (hX'_int : ∀ i, Integrable (X' i) P)
    (hX_mean : ∀ i, ∫ ω, X i ω ∂P = 0)
    (hX'_dist : ∀ i, IdentDistrib (X' i) (X i) P P)
    (A : Matrix (Fin n) (Fin n) ℝ) (hA : ∀ i, A i i = 0)
    (F : ℝ → ℝ) (hF : ConvexOn ℝ Set.univ F)
    (hF1 : Integrable (fun ω => F (∑ i, ∑ j, A i j * X i ω * X j ω)) P)
    (hF2 : Integrable (fun ω => F (4 * ∑ i, ∑ j, A i j * X i ω * X' j ω)) P) :
    ∫ ω, F (∑ i, ∑ j, A i j * X i ω * X j ω) ∂P ≤
      ∫ ω, F (4 * ∑ i, ∑ j, A i j * X i ω * X' j ω) ∂P := by sorry

end HighDimProb.QuadraticForms
Source
Vershynin, High-Dimensional Probability (2018), Theorem 6.1.1, p. 136 (PDF p. 144)
Read-back

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

This statement fixes a natural number nnn, an arbitrary type Ω\OmegaΩ equipped with a measurable-space structure, and a measure PPP on Ω\OmegaΩ that is assumed to be a probability measure (total mass 111). It fixes two families of real-valued functions on Ω\OmegaΩ, indexed by {0,1,…,n−1}\{0,1,\dots,n-1\}{0,1,…,n−1}: X=(X0,…,Xn−1)X = (X_0,\dots,X_{n-1})X=(X0​,…,Xn−1​) and X′=(X0′,…,Xn−1′)X' = (X'_0,\dots,X'_{n-1})X′=(X0′​,…,Xn−1′​), where each Xi,Xi′:Ω→RX_i, X'_i : \Omega \to \mathbb{R}Xi​,Xi′​:Ω→R. The hypotheses imposed on this data are:

  • Measurability. Each XiX_iXi​ is measurable and each Xi′X'_iXi′​ is measurable.
  • Independence. The single combined family indexed by the disjoint union {0,…,n−1}⊔{0,…,n−1}\{0,\dots,n-1\} \sqcup \{0,\dots,n-1\}{0,…,n−1}⊔{0,…,n−1}, whose member at a left index iii is XiX_iXi​ and at a right index iii is Xi′X'_iXi′​, is mutually independent under PPP — i.e. all 2n2n2n functions X0,…,Xn−1,X0′,…,Xn−1′X_0,\dots,X_{n-1},X'_0,\dots,X'_{n-1}X0​,…,Xn−1​,X0′​,…,Xn−1′​ are jointly independent as one family, not merely independent within each block.
  • Integrability. Each XiX_iXi​ is PPP-integrable and each Xi′X'_iXi′​ is PPP-integrable.
  • Mean zero. For each iii, ∫ΩXi(ω) dP(ω)=0\displaystyle\int_\Omega X_i(\omega)\, dP(\omega) = 0∫Ω​Xi​(ω)dP(ω)=0. Note this is asserted only for the coordinates of XXX; no such hypothesis is written for the coordinates of X′X'X′.
  • Identical distribution, coordinatewise. For each iii, Xi′X'_iXi′​ under PPP has the same distribution as XiX_iXi​ under PPP. This is stated separately for each index iii; it is not a statement that the vector X′X'X′ and the vector XXX have the same joint law.

It further fixes an n×nn \times nn×n real matrix A=(Aij)A = (A_{ij})A=(Aij​) with the hypothesis that every diagonal entry vanishes, Aii=0A_{ii} = 0Aii​=0 for all iii, and a function F:R→RF : \mathbb{R} \to \mathbb{R}F:R→R assumed convex on the whole real line (convex as a function on the set R\mathbb{R}R itself, taken as a convex subset of R\mathbb{R}R over the scalar field R\mathbb{R}R). Finally, two integrability hypotheses are imposed on the compositions that appear in the conclusion: the function

ω↦F ⁣(∑i∑jAij Xi(ω) Xj(ω))\omega \mapsto F\!\left(\sum_{i}\sum_{j} A_{ij}\, X_i(\omega)\, X_j(\omega)\right)ω↦F(i∑​j∑​Aij​Xi​(ω)Xj​(ω))

is PPP-integrable, and the function

ω↦F ⁣(4∑i∑jAij Xi(ω) Xj′(ω))\omega \mapsto F\!\left(4\sum_{i}\sum_{j} A_{ij}\, X_i(\omega)\, X'_j(\omega)\right)ω↦F(4i∑​j∑​Aij​Xi​(ω)Xj′​(ω))

is PPP-integrable.

Under all of these hypotheses, the conclusion asserted is the single inequality

∫ΩF ⁣(∑i=0n−1∑j=0n−1Aij Xi(ω) Xj(ω))dP(ω)  ≤  ∫ΩF ⁣(4∑i=0n−1∑j=0n−1Aij Xi(ω) Xj′(ω))dP(ω).\int_\Omega F\!\left(\sum_{i=0}^{n-1}\sum_{j=0}^{n-1} A_{ij}\, X_i(\omega)\, X_j(\omega)\right) dP(\omega) \;\le\; \int_\Omega F\!\left(4\sum_{i=0}^{n-1}\sum_{j=0}^{n-1} A_{ij}\, X_i(\omega)\, X'_j(\omega)\right) dP(\omega).∫Ω​F(i=0∑n−1​j=0∑n−1​Aij​Xi​(ω)Xj​(ω))dP(ω)≤∫Ω​F(4i=0∑n−1​j=0∑n−1​Aij​Xi​(ω)Xj′​(ω))dP(ω).

Both sides are Bochner integrals of real-valued functions against PPP. The left-hand argument of FFF is the quadratic form XTAXX^{\mathsf T} A XXTAX evaluated pointwise at ω\omegaω, written as the double sum over all ordered pairs (i,j)(i,j)(i,j) — including the diagonal terms i=ji = ji=j, which contribute AiiXi(ω)2=0A_{ii} X_i(\omega)^2 = 0Aii​Xi​(ω)2=0 by the diagonal-free hypothesis. The right-hand argument is 444 times the decoupled bilinear form XTAX′X^{\mathsf T} A X'XTAX′ at the same ω\omegaω, again summed over all ordered pairs, with diagonal terms AiiXi(ω)Xi′(ω)=0A_{ii} X_i(\omega) X'_i(\omega) = 0Aii​Xi​(ω)Xi′​(ω)=0. Note that the same sample point ω\omegaω is used for both XXX and X′X'X′ on the right-hand side; the two families are separate functions on the common space Ω\OmegaΩ, and the independence hypothesis is what relates them. The factor 444 sits inside FFF, multiplying the bilinear form, not outside as a scaling of the integral. The inequality is non-strict (≤\le≤), and the direction is fixed: the coupled quadratic form's expectation is bounded above by the decoupled one's.

Concerning degenerate cases the hypotheses permit: when n=0n = 0n=0, the index type is empty, all the indexed hypotheses hold vacuously, the family whose independence is asserted is empty (and hence trivially independent), both double sums are empty and equal 000, and the conclusion reduces to ∫ΩF(0) dP≤∫ΩF(0) dP\int_\Omega F(0)\, dP \le \int_\Omega F(0)\, dP∫Ω​F(0)dP≤∫Ω​F(0)dP, which holds by reflexivity; the matrix hypothesis is likewise vacuous. When n=1n = 1n=1, the sole entry A00A_{00}A00​ is forced to be 000 by the diagonal hypothesis, so both arguments of FFF are identically 000 and the conclusion again reduces to an equality. The type Ω\OmegaΩ may be empty or a singleton; PPP being a probability measure forces total mass 111, so an empty Ω\OmegaΩ makes the hypothesis IsProbabilityMeasure P unsatisfiable and the theorem vacuous for that instance, while a singleton Ω\OmegaΩ forces each XiX_iXi​ to be the constant 000 by the mean-zero hypothesis, again collapsing both sides. The statement places no bound, growth condition, or continuity requirement on FFF beyond convexity on all of R\mathbb{R}R, and no moment condition beyond first-order integrability of the coordinates — the hypotheses hF1 and hF2 are what carry the burden of making the two integrals well-defined; if either were unsatisfiable for a given configuration, the theorem would hold vacuously there. Lean's Bochner integral returns the default value 000 for a non-integrable integrand, but the explicit integrability hypotheses hF1 and hF2 exclude that fallback on both sides of the conclusion, while the mean-zero hypothesis hX_mean is stated as an integral that would read 0=00 = 00=0 automatically were XiX_iXi​ not integrable — though hX_int rules that out. No hypothesis asserts that X′X'X′ has mean zero, is integrable jointly with XXX in any stronger sense, or shares XXX's joint distribution; only the coordinatewise identical-distribution and the joint independence of the combined 2n2n2n-member family are assumed.

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