The CHSH inequality for vectors #
For vectors u₀, u₁, v₀, v₁ of norm at most 1 in a (semi-)inner product space,
Re⟨u₀, v₀⟩ + Re⟨u₀, v₁⟩ + Re⟨u₁, v₀⟩ - Re⟨u₁, v₁⟩ ≤ 2√2 (chsh_re_inner_le). The first two terms
are at most ‖v₀ + v₁‖ and the last two at most ‖v₀ - v₁‖ by Cauchy–Schwarz, and the
parallelogram law bounds ‖v₀ + v₁‖ + ‖v₀ - v₁‖ by 2√2. Applied to the vectors (A_x ⊗ 1) ψ
and (1 ⊗ B_y) ψ of a quantum strategy, or to the observables themselves in the GNS
pre-inner product space of a state, this is Tsirelson's inequality Cirel'son.
Mathlib's tsirelson_inequality (Mathlib.Algebra.Star.CHSH) is the operator form of the same
bound, for a CHSH tuple of self-adjoint involutions in an ordered *-algebra.
The bound has an exact sum-of-squares form (chsh_sos): with c = 1/√2,
‖u₀ - c(v₀ + v₁)‖² + ‖u₁ - c(v₀ - v₁)‖² = ‖u₀‖² + ‖u₁‖² + ‖v₀‖² + ‖v₁‖² - √2 · CHSH,
where CHSH is the left-hand side above. So vectors that nearly attain 2√2 nearly satisfy
u₀ = c(v₀ + v₁) and u₁ = c(v₀ - v₁) (chsh_rigidity): the robust form of the rigidity of the
optimal CHSH strategy.
Main results #
chsh_re_inner_le: the CHSH inequality for vectors of norm at most1.chsh_sos: the sum-of-squares identity.chsh_rigidity: near-optimal vectors are close to the optimal configuration.
References #
The CHSH inequality for vectors: for vectors u₀, u₁, v₀, v₁ of norm at most 1 in an
inner product space, Re⟨u₀,v₀⟩ + Re⟨u₀,v₁⟩ + Re⟨u₁,v₀⟩ - Re⟨u₁,v₁⟩ ≤ 2√2.
The sum-of-squares identity behind the CHSH inequality: with c = 1/√2,
‖u₀ - c(v₀ + v₁)‖² + ‖u₁ - c(v₀ - v₁)‖² is
‖u₀‖² + ‖u₁‖² + ‖v₀‖² + ‖v₁‖² - √2 (Re⟨u₀,v₀⟩ + Re⟨u₀,v₁⟩ + Re⟨u₁,v₀⟩ - Re⟨u₁,v₁⟩).
Robust rigidity of CHSH for vectors: vectors of norm at most 1 whose CHSH expression is
at least 2√2 - η satisfy ‖u₀ - c(v₀ + v₁)‖² + ‖u₁ - c(v₀ - v₁)‖² + (4 - ∑ norms²) ≤ √2 η,
with c = 1/√2.