Krivine schemes and the normalized correlation function
DefinitionKrivineSchemeDefsThis file formalizes the rounding schemes through which upper bounds on the Grothendieck constant are obtained, together with the analytic object that measures their quality.
A Krivine scheme of dimension is a pair of partitions of into a region and a region, encoded by two measurable odd functions . To round a semidefinite solution one maps each vector to a Gaussian point of , correlated according to the inner products, and labels it by the region its point falls in; the choice is random hyperplane rounding.
The quality of a scheme is carried by its normalized correlation function
where are standard Gaussian vectors of whose coordinates are pairwise correlated, . For the half-space partition one has , the classical identity behind Krivine's bound. Writing the odd expansion , the hyperplane scheme sits at .
These coefficients are the quantities constrained by the lower-bound theorem of the source paper, and they are linear functionals of the scheme, which is what lets a constraint on them survive mixing and limits of schemes.
Formalization Note The expectation is written as an explicit double integral against the density of a correlated Gaussian pair, namely the product over coordinates of ; the density is meaningful for . The coefficients and are read off as and . Oddness is imposed almost everywhere rather than at every point: no -valued function can satisfy at the origin, and the quantity that matters, the Gaussian expectation, is insensitive to null sets. With that convention the half-space partition is a scheme in every dimension , and the file exhibits it, so the notion is not vacuous; dimension carries no scheme.
import Mathlib
namespace GrothendieckConstant
open MeasureTheory Real
/-- Joint density on `ℝ^k × ℝ^k` of two standard Gaussian vectors whose
coordinates are pairwise correlated with correlation `t`. -/
noncomputable def gaussianPairDensity (k : ℕ) (t : ℝ) (x y : Fin k → ℝ) : ℝ :=
∏ i : Fin k, (1 / (2 * π * Real.sqrt (1 - t ^ 2))) *
Real.exp (-(x i ^ 2 - 2 * t * x i * y i + y i ^ 2) / (2 * (1 - t ^ 2)))
/-- A Krivine scheme in dimension `k`: a pair of measurable, odd, ±1-valued
functions on `ℝ^k`, i.e. a pair of partitions of `ℝ^k` into a `+1` and a `-1` region.
Oddness is required almost everywhere: a `±1`-valued function cannot be odd at the
origin, and only the null-set-invariant Gaussian expectation of the pair matters. -/
structure KrivineScheme (k : ℕ) where
f : (Fin k → ℝ) → ℝ
g : (Fin k → ℝ) → ℝ
measurable_f : Measurable f
measurable_g : Measurable g
f_sign : ∀ z, f z = 1 ∨ f z = -1
g_sign : ∀ z, g z = 1 ∨ g z = -1
f_odd : ∀ᵐ z ∂(volume : Measure (Fin k → ℝ)), f (-z) = -f z
g_odd : ∀ᵐ z ∂(volume : Measure (Fin k → ℝ)), g (-z) = -g z
/-- The half-space scheme underlying random hyperplane rounding, which exists in
every dimension `k ≥ 1`; in particular `KrivineScheme k` is inhabited for `k ≥ 1`. -/
noncomputable def halfspaceScheme (k : ℕ) (hk : 0 < k) : KrivineScheme k where
f := fun z => if 0 < z ⟨0, hk⟩ then 1 else -1
g := fun z => if 0 < z ⟨0, hk⟩ then 1 else -1
measurable_f := by
refine Measurable.ite ?_ measurable_const measurable_const
exact measurableSet_lt measurable_const (measurable_pi_apply _)
measurable_g := by
refine Measurable.ite ?_ measurable_const measurable_const
exact measurableSet_lt measurable_const (measurable_pi_apply _)
f_sign := by intro z; by_cases h : 0 < z ⟨0, hk⟩ <;> simp [h]
g_sign := by intro z; by_cases h : 0 < z ⟨0, hk⟩ <;> simp [h]
f_odd := by
have h0 : (volume : Measure (Fin k → ℝ)) {z : Fin k → ℝ | z ⟨0, hk⟩ = 0} = 0 :=
Measure.pi_hyperplane _ _ _
have hae : ∀ᵐ z ∂(volume : Measure (Fin k → ℝ)), z ⟨0, hk⟩ ≠ 0 := by
rw [ae_iff]; simpa using h0
filter_upwards [hae] with z hz
rcases lt_or_gt_of_ne hz with h | h
· rw [if_neg (not_lt.mpr h.le), if_pos (by simpa using neg_pos.mpr h)]; norm_num
· rw [if_pos h, if_neg (by simpa using not_lt.mpr (neg_nonpos.mpr h.le))]
g_odd := by
have h0 : (volume : Measure (Fin k → ℝ)) {z : Fin k → ℝ | z ⟨0, hk⟩ = 0} = 0 :=
Measure.pi_hyperplane _ _ _
have hae : ∀ᵐ z ∂(volume : Measure (Fin k → ℝ)), z ⟨0, hk⟩ ≠ 0 := by
rw [ae_iff]; simpa using h0
filter_upwards [hae] with z hz
rcases lt_or_gt_of_ne hz with h | h
· rw [if_neg (not_lt.mpr h.le), if_pos (by simpa using neg_pos.mpr h)]; norm_num
· rw [if_pos h, if_neg (by simpa using not_lt.mpr (neg_nonpos.mpr h.le))]
/-- The normalized correlation function `H(t) = (π/2) * E[f(X) g(Y)]`, where `X, Y`
are standard Gaussian vectors in `ℝ^k` with `E[X i * Y i] = t` coordinatewise. -/
noncomputable def correlationFunction {k : ℕ} (S : KrivineScheme k) (t : ℝ) : ℝ :=
(π / 2) * ∫ x : Fin k → ℝ, ∫ y : Fin k → ℝ,
S.f x * S.g y * gaussianPairDensity k t x y
/-- The linear coefficient `b₁` of `H(t) = b₁ t + b₃ t³ + ⋯`, as `H'(0)`. -/
noncomputable def coeffLinear {k : ℕ} (S : KrivineScheme k) : ℝ :=
deriv (correlationFunction S) 0
/-- The cubic coefficient `b₃` of `H(t) = b₁ t + b₃ t³ + ⋯`, as `H'''(0)/6`. -/
noncomputable def coeffCubic {k : ℕ} (S : KrivineScheme k) : ℝ :=
iteratedDeriv 3 (correlationFunction S) 0 / 6
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 a density, a structure, a function of one real variable attached to each instance of that structure, and two real numbers attached to it.
The density. For a natural number , a real parameter and two points of (functions from the -element index type to ),
For the empty product makes this . For the factor is zero and division by zero returns under the ambient convention, and for the square root of a negative number likewise returns ; the expression is therefore only meaningful for and takes convention-determined values elsewhere.
The structure. For each natural number , an instance consists of two functions from to together with three conditions on each: that it is measurable; that at every point its value is or ; and that for Lebesgue-almost every (oddness may fail on a null set), and likewise for . No continuity, no relation between and , and no further nondegeneracy is required. For the space is a single point with , where almost-everywhere oddness against the unit mass would force the value while the sign condition forbids it: there is no instance in dimension , and every statement quantified over instances says nothing there.
A concrete instance. The file also constructs, for each , the instance whose two functions both send to when and to otherwise, with proofs of measurability, of the sign condition, and of almost-everywhere oddness (the exceptional set being the hyperplane , of Lebesgue measure zero). In particular the structure is inhabited for every .
The correlation function. Given an instance in dimension ,
the integrals being Bochner integrals against Lebesgue measure in the inner variable first and then the outer variable ; a non-integrable integrand yields the value by convention rather than an error.
The two coefficients. The first is the derivative of evaluated at ; the second is the third iterated derivative of the same function at , divided by . Where the function fails to be differentiable (respectively three times differentiable) at , the ambient convention makes these derivatives , so the two numbers are then both rather than undefined.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.