Theorem 3.5.1 — Grothendieck's inequality
ProvedHighDimProb.RandomVectors.grothendieck_inequalityThis is Grothendieck's inequality (Theorem 3.5.1), the goal theorem of this mission: a purely deterministic, non-probabilistic statement about bilinear forms on -valued vectors and their behavior once those signs are replaced by unit vectors in an arbitrary Hilbert space, proved here (Section 3.5) by a probabilistic argument using high-dimensional Gaussian vectors.
There is an absolute constant , , such that the following holds. Let and let be a real matrix such that, for every choice of numbers ,
Then, for every (real) Hilbert space and every choice of vectors with ,
The remarkable content is that does not depend on the matrix , on the dimensions , or on the Hilbert space — a bound that holds for scalars () survives, with the same absolute constant, passage to an arbitrary (even infinite-dimensional) inner product space.
Formalization Note This chunk formalizes the chapter's own first-pass bound
(Section 3.5, by Gaussian truncation), not the sharper of Section 3.7 (the
kernel-trick argument), which lies outside this chunk's chapter range; is a
complete, book-stated theorem in its own right, not a weakening of Theorem 3.5.1 — see
STATUS.md for the reasoning. is existentially quantified ahead of every other object
(the matrix, its dimensions, and the Hilbert space ), so a single must work
uniformly, matching the book's claim that is an absolute constant.
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib
namespace HighDimProb.RandomVectors
/-- **Theorem 3.5.1** (Grothendieck's inequality), Vershynin, *High-Dimensional Probability*
(2018), p. 61.
Consider an `m × n` matrix `(aᵢⱼ)` of real numbers. Assume that for any numbers `xᵢ, yⱼ ∈
{−1, 1}`, `|∑ᵢⱼ aᵢⱼ xᵢ yⱼ| ≤ 1`. Then, for any Hilbert space `H` and any vectors `uᵢ, vⱼ ∈ H`
with `‖uᵢ‖ = ‖vⱼ‖ = 1`, `|∑ᵢⱼ aᵢⱼ ⟨uᵢ, vⱼ⟩| ≤ K`, where `K ≤ 288` is an absolute constant.
This is the chapter's first-pass bound `K ≤ 288` (Section 3.5), proved by Gaussian truncation;
Section 3.7's sharper `K ≤ 1.783` argument (the kernel trick) is out of scope for this chunk. -/
theorem grothendieck_inequality :
∃ K : ℝ, 0 < K ∧ K ≤ 288 ∧
∀ {m n : ℕ} (a : Matrix (Fin m) (Fin n) ℝ),
(∀ x : Fin m → ℝ, ∀ y : Fin n → ℝ, (∀ i, x i = 1 ∨ x i = -1) →
(∀ j, y j = 1 ∨ y j = -1) → |∑ i, ∑ j, a i j * x i * y j| ≤ 1) →
∀ {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H]
(u : Fin m → H) (v : Fin n → H),
(∀ i, ‖u i‖ = 1) → (∀ j, ‖v j‖ = 1) →
|∑ i, ∑ j, a i j * inner ℝ (u i) (v j)| ≤ K := by sorry
end HighDimProb.RandomVectors
Read-back
What the Lean code literally says, in plain math · claude-fable-5-1
The statement asserts the existence of a real number with and such that the following holds for every choice of the data below.
Data and hypotheses. Fix natural numbers and (both are implicit; any values are allowed, including ) and a real matrix , indexed by and . Assume the sign hypothesis: for every pair of real-valued vectors and such that each coordinate satisfies or , and each coordinate satisfies or , one has
(Here is the ordinary absolute value on , and the hypothesis is stated for all real vectors , but only those whose entries are all are constrained; it says nothing about other vectors.)
Next fix any type (in the lowest universe) equipped with a normed additive commutative group structure, a real inner product space structure compatible with that norm, and completeness with respect to that norm — that is, is a real Hilbert space, with inner product written and norm . Fix families of vectors and such that for every and for every .
Conclusion. Under these assumptions,
where is the real inner product of and in , and is the single constant chosen at the outset, independent of , , , , and .
Order of quantifiers. The constant is chosen before , , , , , : one must work uniformly for all of them. The bound on is (non-strict), and the positivity is strict, . The conclusion is a non-strict inequality . Nothing is asserted about the minimality of , about matrices failing the sign hypothesis, or about complex Hilbert spaces (the inner product space structure is over only).
Degenerate cases. If or , both double sums are empty and equal ; the sign hypothesis then reads and holds automatically, and the conclusion reads , which holds because — so in these cases the statement is trivially true whatever is. If is the zero space (a single element), no vector has norm , so when or the norm hypotheses on or are unsatisfiable and the conclusion is vacuous for that ; when the empty families satisfy the norm conditions vacuously and the conclusion is . The sign hypothesis quantifies over all real but its constraint only bites on -valued ones; if and there always exist such vectors, so it is a genuine restriction on (it forces, for instance, is not directly implied, but for all sign patterns is). No division, natural-number subtraction, integrals, suprema, or extended reals appear, so no default-value junk arises anywhere in the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.