Documentation

CslibFrontier.Foundations.Analysis.InnerProductSpace.CHSH

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 #

References #

theorem chsh_re_inner_le {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [SeminormedAddCommGroup E] [InnerProductSpace 𝕜 E] {u₀ u₁ v₀ v₁ : E} (hu₀ : ‖u₀‖ ≤ 1) (hu₁ : ‖u₁‖ ≤ 1) (hv₀ : ‖v₀‖ ≤ 1) (hv₁ : ‖v₁‖ ≤ 1) :
RCLike.re (inner 𝕜 u₀ v₀) + RCLike.re (inner 𝕜 u₀ v₁) + RCLike.re (inner 𝕜 u₁ v₀) - RCLike.re (inner 𝕜 u₁ v₁) ≤ 2 * √2

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.

theorem chsh_sos {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [SeminormedAddCommGroup E] [InnerProductSpace 𝕜 E] (u₀ u₁ v₀ v₁ : E) :
‖u₀ - (↑√2)⁻¹ • (v₀ + v₁)‖ ^ 2 + ‖u₁ - (↑√2)⁻¹ • (v₀ - v₁)‖ ^ 2 = ‖u₀‖ ^ 2 + ‖u₁‖ ^ 2 + ‖v₀‖ ^ 2 + ‖v₁‖ ^ 2 - √2 * (RCLike.re (inner 𝕜 u₀ v₀) + RCLike.re (inner 𝕜 u₀ v₁) + RCLike.re (inner 𝕜 u₁ v₀) - RCLike.re (inner 𝕜 u₁ v₁))

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₁⟩).

theorem chsh_rigidity {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [SeminormedAddCommGroup E] [InnerProductSpace 𝕜 E] {u₀ u₁ v₀ v₁ : E} {η : ℝ} (h : 2 * √2 - η ≤ RCLike.re (inner 𝕜 u₀ v₀) + RCLike.re (inner 𝕜 u₀ v₁) + RCLike.re (inner 𝕜 u₁ v₀) - RCLike.re (inner 𝕜 u₁ v₁)) :
‖u₀ - (↑√2)⁻¹ • (v₀ + v₁)‖ ^ 2 + ‖u₁ - (↑√2)⁻¹ • (v₀ - v₁)‖ ^ 2 + (4 - (‖u₀‖ ^ 2 + ‖u₁‖ ^ 2 + ‖v₀‖ ^ 2 + ‖v₁‖ ^ 2)) ≤ √2 * η

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.