The contextual fraction over all states: exact ranges for the Yu–Oh and KCBS sets, cohomological thresholds for sign systems, and a Lean 4 formalization
Abstract
For a family of quantum empirical models indexed by states we study the range [a, b] of the contextual fraction CF of Abramsky, Barbosa and Mansfield, a = inf_ρ CF(ρ), b = sup_ρ CF(ρ); a = 1 means strong contextuality in every state. We compute these ranges exactly. For the Yu–Oh set of 13 rays (with its 16 maximal cliques as contexts) CF ranges over [1/5, 2/3]: by symmetry the lower end is CF(I/3) = 1/5, and every state has CF ≤ 2/3 (rational copositivity certificates). For the KCBS pentagram we prove CF(ρ) = max(0, 2S(ρ) − 4) for every state, where S is the KCBS sum, so CF equals the normalized KCBS violation everywhere and ranges over [0, 2√5 − 4]. For sign systems (observables W(a) labelled by an abelian group whose compatible products obey W(a+b) = β(a,b)W(a)W(b)) we relate a to the cohomology class [β] of Okay, Roberts, Bartlett and Raussendorf: the implication [β] ≠ 0 ⇒ CF = 1 in every state is known in substance; we prove the converse for abstract systems of Weyl type (a trace-like state, character orthogonality and a closure hypothesis; phases ±1 or μ_d), where [β] = 0 makes the maximally mixed state noncontextual, a statement known for full Pauli groups and closed noncontextual sets. As consequences at the level of CF ("CF = 1 in every state"): n qubits iff n ≥ 2, two qudits iff d is even, and Majorana sign systems iff m ≥ 5 (hence, via the standard identification with n − 1 Majorana modes, n Ising σ-anyons iff n ≥ 6). All results except the entries marked "computed" in the catalogue table, including the exact ranges for Yu–Oh and KCBS and Cabello's conversion of the Yu–Oh and 18-vector Kochen–Specker sets into Bell inequalities violated by |φ⁺⟩, are formalized in Lean 4 with Mathlib, using only the standard axioms. Code: https://doi.org/10.5281/zenodo.22992685
// Source
Authors: Igor Postanovskyi