The Grothendieck constant
DefinitionGrothendieckConstantDefsThis file sets up the two optimization values whose worst-case ratio is the Grothendieck constant, and the constant itself.
Let be a real matrix. The discrete value is the maximum of the bilinear form over sign labelings of the rows and columns,
and the relaxed value replaces each sign by a unit vector and each product by an inner product,
the dimension being unrestricted. A real number is a Grothendieck bound if holds simultaneously for all , and all , and the Grothendieck constant is
is the worst-case integrality gap of the canonical semidefinite relaxation of the bilinear optimization problem; it also controls cut-norm approximation and the quantum advantage in Bell-type correlation experiments, so this definition layer is reusable for any of those statements.
Formalization Note Both values are supremums of explicitly described sets of reals. The sign vectors are real-valued functions each of whose coordinates is constrained to equal or ; the relaxation quantifies existentially over the dimension and over unit vectors of the Euclidean space of that dimension, so no dimension bound is built in. The empty index cases or are permitted and make both values .
import Mathlib
namespace GrothendieckConstant
/-- Values of the discrete bilinear objective over ±1 labelings of rows and columns. -/
def optSet {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) : Set ℝ :=
{s : ℝ | ∃ x : Fin m → ℝ, ∃ y : Fin n → ℝ,
(∀ i, x i = 1 ∨ x i = -1) ∧ (∀ j, y j = 1 ∨ y j = -1) ∧
s = ∑ i, ∑ j, A i j * x i * y j}
/-- `OPT(A)`, the maximum of the bilinear form over ±1 labelings. -/
noncomputable def optValue {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) : ℝ := sSup (optSet A)
/-- Values of the relaxed objective over unit vectors in an arbitrary finite dimension. -/
def sdpSet {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) : Set ℝ :=
{s : ℝ | ∃ d : ℕ, ∃ u : Fin m → EuclideanSpace ℝ (Fin d),
∃ v : Fin n → EuclideanSpace ℝ (Fin d),
(∀ i, ‖u i‖ = 1) ∧ (∀ j, ‖v j‖ = 1) ∧
s = ∑ i, ∑ j, A i j * inner ℝ (u i) (v j)}
/-- `SDP(A)`, the value of the semidefinite relaxation. -/
noncomputable def sdpValue {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) : ℝ := sSup (sdpSet A)
/-- `K` is a Grothendieck bound: `SDP(A) ≤ K * OPT(A)` for every real matrix `A`. -/
def IsGrothendieckBound (K : ℝ) : Prop :=
∀ (m n : ℕ) (A : Matrix (Fin m) (Fin n) ℝ), sdpValue A ≤ K * optValue A
/-- The Grothendieck constant `K_G`: the least Grothendieck bound. -/
noncomputable def grothendieckConst : ℝ := sInf {K : ℝ | IsGrothendieckBound K}
end GrothendieckConstant
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent that drafted the statement
Provenance: this read-back is NOT blind and is NOT independent testimony. It was written by the same agent that drafted this Lean statement, in the same session, with full knowledge of the source paper, the informal statement and the intended meaning — not by an independent auditor working only from the code. The platform's audit procedure calls for a blind read-back by a separate auditor with fresh context; that condition is not met here. A reviewer must therefore not treat this text as independent corroboration of faithfulness. Read it as the drafter's own restatement of the code, and audit the Lean statement directly.
The file introduces four objects attached to a real matrix and one real constant.
For natural numbers and a matrix with real entries indexed by , :
- The first set collects every real number for which there exist functions on the row index set and on the column index set, real-valued, such that each is equal to or to , each is equal to or to , and
This set is finite and nonempty (for or it is exactly , the empty sum). The first value is defined as the supremum of this set, hence its maximum.
- The second set collects every real for which there exists a natural number and families , of vectors in the -dimensional Euclidean space with for all , for all , and
the inner product being the real one. The dimension is existentially quantified with no upper bound, and is allowed (it contributes only when there are no indices at all, since the zero space has no unit vector). The second value is the supremum of this set. Note that a supremum in the reals here is a genuine least upper bound only because the set is nonempty and bounded above; were it empty or unbounded, the convention in use returns .
-
A real number is said to have the bounding property when, for every pair of natural numbers and every real matrix , the second value of is at most times the first value of . Nothing forces to be positive, and the quantification is over all matrices simultaneously.
-
The constant is defined as the infimum of the set of all real numbers with that bounding property. Again the infimum is a genuine greatest lower bound only if that set is nonempty and bounded below; otherwise the convention returns .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.