Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.5.1 — Grothendieck’s inequality, K ≤ 1.783

Proved
HighDimProbAudit.Grothendieck.grothendieck_inequality

by mikedeng1 · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

functional-analysisprobability

There is one real absolute constant KKK, independent of every dimension, matrix, Hilbert space and vector family below, with

0<K≤17831000.0<K\le\frac{1783}{1000}.0<K≤10001783​.

For all m,n∈Nm,n\in\mathbb Nm,n∈N, let A=(aij)A=(a_{ij})A=(aij​) be a real m×nm\times nm×n matrix. Suppose that for every pair of sign labelings xi,yj∈{−1,1}x_i,y_j\in\{-1,1\}xi​,yj​∈{−1,1},

∣∑i,jaijxiyj∣≤1.\left|\sum_{i,j}a_{ij}x_iy_j\right|\le1.​i,j∑​aij​xi​yj​​≤1.

Then for every real Hilbert space HHH and all vector families u1,…,umu_1,\ldots,u_mu1​,…,um​, v1,…,vnv_1,\ldots,v_nv1​,…,vn​ in HHH with ∥ui∥=∥vj∥=1\|u_i\|=\|v_j\|=1∥ui​∥=∥vj​∥=1,

∣∑i,jaij⟨ui,vj⟩∣≤K.\left|\sum_{i,j}a_{ij}\langle u_i,v_j\rangle\right|\le K.​i,j∑​aij​⟨ui​,vj​⟩​≤K.

The same constant applies to rectangular matrices of either sign and to infinite-dimensional Hilbert spaces. This compares sign-vector control with Hilbert-vector control at the numerical strength stated in the source. Empty row or column families have zero sums.

Differences from the source:

  • encoding: row and column indices 1,…,m and 1,…,n → Fin m and Fin n; reason: a relabeling preserves all finite sums, including empty sums
  • encoding: any Hilbert space in the surrounding real-vector setting → universe-polymorphic complete real inner product spaces; reason: this spells out the real convention used by the source’s Euclidean reduction without restricting dimension or separability
  • encoding: an absolute constant K ≤ 1.783 → ∃ K : ℝ, 0 < K ∧ K ≤ 1783/1000 before all instance data; reason: the decimal is an exact rational; positivity is already forced by the normalized one-entry matrix, so it removes no instance
Preamble
import Mathlib

set_option autoImplicit false
universe uH
Formal statement
namespace HighDimProbAudit.Grothendieck

/-- Theorem 3.5.1, printed p. 61 / PDF p. 69, with its full numerical cap. -/
theorem grothendieck_inequality :
    ∃ K : ℝ, 0 < K ∧ K ≤ (1783 : ℝ) / 1000 ∧
      ∀ (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 uH) [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 HighDimProbAudit.Grothendieck
Source
Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science, Cambridge University Press, 2018, author-corrected electronic copy dated June 9, 2020, https://doi.org/10.1017/9781108231596, Theorem 3.5.1, printed p. 61 (PDF p. 69); the full-constant proof in §3.7, printed pp. 72–73 (PDF pp. 80–81).

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