← All papers
First page of Formalizing CHSH Rigidity in Lean 4

Formalizing CHSH Rigidity in Lean 4

Tianrun Zhao, Nengkun Yu

quant-ph Apr 4, 2026 · v1
Formalizes the CHSH rigidity theorem in Lean 4 (and finds a gap in a prior proof).
Violation of the Clauser-Horne-Shimony-Holt (CHSH) inequality certifies genuine quantum correlations. In this work, we formalize in Lean 4 the rigidity theorem -- any strategy achieving near-optimal CHSH value must be locally isometric to the canonical qubit strategy. In the course of formalization, we identified a gap in the argument of McKague, Yang, and Scarani (arXiv:1203.2976).

The CHSH inequality rigidity theorem states that any strategy achieving near-optimal CHSH value must be locally isometric to the canonical qubit strategy, but no formal machine-checked proof existed.

The authors formalize the CHSH rigidity theorem in Lean 4, proving that near-optimal CHSH strategies must be locally isometric to the canonical qubit strategy. During formalization, they identified a gap in the argument of McKague, Yang, and Scarani (arXiv:1203.2976).

The rigidity theorem is fully formalized in Lean 4. The formalization uncovered a gap in a prior published proof by McKague, Yang, and Scarani.