open-kochen-specker-contextuality
Exact Four-Tier Hierarchy, Indefinite Pseudo-State Duality & Computer-Search-Free $E_8$ Amplification in Quantum State-Independent Contextuality
Establishes the complete strict 4-tier hierarchy of quantum state-independent contextuality (SI-C) (Tier 4 (KS) ⊊ Tier 3 (Tight-Frame) ⊊ Tier 2 (All-State Operator) ⊊ Tier 1 (χ_f > d)) in every dimension $d \ge 4$ (four_tier_strict_hierarchy_all_dim): discovers the Indefinite Pseudo-State Duality Theorem (no_tier3_of_pseudostate, obstructing Tier 3 via an indefinite trace-1 matrix $Y$ with negative eigenvalue $(1-\sqrt{2})/2 < 0$), constructs irreducible $\{0,\pm 1\}^d$ Tier 2 $\setminus$ Tier 3 witnesses $R_{18}, R_{27}, R_{29}$ (lifted to all $d \ge 4$ via exact orthogonal-join algebra), constructs an irreducible 17-ray Tier 1 $\setminus$ Tier 2 witness sub17 (strengthening Cabello–Kleinmann–Budroni PRL 2015's reducible cone & refuting Ramanathan–Horodecki PRL 2014's irreducibility sufficiency conjecture), and proves a universal algebraic equiangular-complement bound $\alpha(G(R)) \le d$ ($\gamma \in [1/2, 1)$) yielding computer-search-free $\alpha(G(E_8)) \le 8$ and exponential $(15/8)^k$ amplification for $E_8^{\otimes k}$ (80 verified theorems, 3,386 lines, 28/28 clean axioms).
Contribution status
Claim-by-claim literature review not yet recorded. Lean verification, where shown, applies to the exact formal statements. External publication status is not recorded.
How results are classifiedCompletely establishes the exact strict four-tier hierarchy of quantum state-independent contextuality (SI-C) (Tier 4 (KS) ⊊ Tier 3 (Tight-Frame) ⊊ Tier 2 (All-State Operator) ⊊ Tier 1 (χ_f > d)) in every finite dimension $d \ge 4$ (four_tier_strict_hierarchy_all_dim): discovers the Indefinite Pseudo-State Duality Theorem (no_tier3_of_pseudostate, showing why Tier 2 $\ne$ Tier 3 via an indefinite trace-1 matrix $Y$ with negative eigenvalue $\frac{1-\sqrt{2}}{2} < 0$), constructs explicit irreducible $\{0, \pm 1\}^d$ Tier 2 $\setminus$ Tier 3 witnesses $R_{18}, R_{27}, R_{29}$ (lifting to every $d \ge 4$ via exact orthogonal-join algebra), constructs an irreducible 17-ray Tier 1 $\setminus$ Tier 2 witness sub17 in $\mathbb{R}^4$ (strengthening Cabello–Kleinmann–Budroni PRL 2015's reducible cone & refuting Ramanathan–Horodecki PRL 2014's irreducibility sufficiency conjecture!), and proves a universal algebraic equiangular-complement bound $\alpha(G(R)) \le d$ ($\gamma \in [1/2, 1)$) giving computer-search-free $\alpha(G(E_8)) \le 8$ and exponential $(15/8)^k$ amplification for $E_8^{\otimes k}$ (80 verified theorems, 3,386 lines, 0 warnings, 28/28 clean axioms).
StateIndependentContextuality.lean, 3,386 lines, 80 verified theorems/lemmas, 0 warnings, 28/28 clean standard axioms) with exact rational $LDL^\top$ SOS & branch-and-bound certificates + reproducible verify_contextuality.py.Tier 4 ⊊ Tier 3 ⊊ Tier 2 ⊊ Tier 1 in every dimension $d \ge 4$, driven by no_tier3_of_pseudostate with indefinite witness $Y$ ($\lambda_- = (1-\sqrt{2})/2 < 0$) and irreducible $R_{18}, R_{27}, R_{29}$.- S. Kochen & E. P. Specker (1967); S. Yu & C. H. Oh (PRL 2012); M. Kleinmann et al. (PRL 2012): Introduced KS sets (Tier 4) and the minimal 13-ray Tier 3 $\setminus$ Tier 4 SI-C set in $\mathbb{R}^3$.
- R. Ramanathan & P. Horodecki (PRL 2014); A. Cabello, M. Kleinmann & C. Budroni (PRL 2015); Li–Bright–Trandafir (2026): Established $\chi_f(G) > d$ necessity (Tier 1), separated Tier 1 from Tier 2 via reducible cone $G_{13}+K_1$, and left Tier 2 vs. Tier 3 & irreducible Tier 1 $\setminus$ Tier 2 open across $d \ge 4$.
StateIndependentContextuality.lean, 3,386 lines, 80 verified theorems, 0 warnings, 28/28 clean axioms) proving tier4_implies_tier3, no_tier3_of_pseudostate, r18_tier2_not_tier3, r27_tier2_not_tier3, r29_tier2_not_tier3, sub17_irred_tier1_not_tier2, osum_tier2_iff, osum_tier3_iff, four_tier_strict_hierarchy_all_dim ($\forall d \ge 4$), equiangular_complement_indep_bound, e8_indep_le_eight, and e8_tensor_power_sic.⊢ Mathematical Constructions & Proof Explorer
Select any definition, structure, or theorem on the left to inspect its formal statement, proof dependencies, and isolated Lean 4 code.
Mathematical Overview & Verification Notes
This directory contains a complete, kernel-verified Lean 4 formalization (StateIndependentContextuality.lean) and exact-rational Python verification suite (verify_contextuality.py) resolving structural separations across the four canonical tiers of quantum state-independent contextuality (SI-C) in all finite dimensions $d \ge 4$, together with a universal algebraic independence bound for equiangular-complement line systems yielding computer-search-free exponential $E_8$ tensor-power amplification.
1. Main Mathematical Results
Let $R = \{v_1, \dots, v_n\} \subset \mathbb{R}^d \setminus \{0\}$ be a finite ray configuration with rank-1 projectors $P_i = \frac{v_i v_i^\top}{\|v_i\|^2}$ and orthogonality graph $G(R) = ([n], E)$ where $\{i, j\} \in E \iff i \neq j \text{ and } \langle v_i, v_j \rangle = 0$. Write $\alpha(G, w) = \max_{I \in \mathcal{I}(G)} \sum_{i \in I} w_i$ for the maximum weight of an independent set (pairwise non-orthogonal rays).
1.1 The Four-Tier SI-C Hierarchy
We formalize the four natural notions of state-independent contextuality for a ray configuration $R \subset \mathbb{R}^d \setminus \{0\}$:
| Tier | Lean Predicate | Mathematical Definition | Physical Meaning |
|---|---|---|---|
| Tier 4 (Kochen–Specker) | IsTier4_KSUncolorable | No independent set $I \in \mathcal{I}(G)$ intersects every orthogonal $d$-basis $C$ of $R$. | Logical state-independent contextuality (KS uncolorability). |
| Tier 3 (Tight-Frame / Constant-Value SI-C) | IsTier3_TightFrame | $\exists w \ge 0,\ B < c$ with $\alpha(G, w) \le B$ and $\sum_{i=1}^n w_i P_i = c I_d$. | State-independent inequality with identical quantum expectation $c > B$ on every state $\rho$. |
| Tier 2 (All-State Operator SI-C) | IsTier2_AllStateOperator | $\exists w \ge 0,\ B,\ \varepsilon > 0$ with $\alpha(G, w) \le B$ and $\sum_{i=1}^n w_i P_i \succeq (B + \varepsilon) I_d$. | Every quantum state $\rho$ strictly violates a single fixed noncontextuality inequality (CKB 2015). |
| Tier 1 (Fractional-Chromatic / Maximally-Mixed SI-C) | IsTier1_FracChromatic | $\chi_f(G) > d$, i.e., $\exists w \ge 0,\ B > 0$ with $\alpha(G, w) \le B$ and $d B < \sum_{i=1}^n w_i$. | Maximally mixed state $\rho = I_d/d$ violates a noncontextuality inequality (RH 2014). |
Universal Hierarchy Theorem (tier4_implies_tier3, tier3_implies_tier2, tier2_implies_tier1): For every dimension $d \ge 1$ and every finite ray configuration $R$ in $\mathbb{R}^d$,
In particular, tier4_implies_tier3 gives a fully constructive proof (via Parseval's identity parseval_of_isBasis on all orthogonal $d$-bases of $R$, with no square roots required) that every Kochen–Specker set automatically satisfies Tier 3 (constant-value tight-frame SI-C).
1.2 Indefinite Pseudo-State Duality Theorem (no_tier3_of_pseudostate)
Why is Tier 3 strictly stronger than Tier 2? The duality gap is governed by indefiniteness of the dual witness matrix:
- Tier 2 Obstruction (
no_tier2_of_nchv_state): If there exists a positive semidefinite trace-1 state (in particular a pure state $\psi \neq 0$) whose Born probabilities $\frac{\langle v_i, \psi \rangle^2}{\|v_i\|^2 \|\psi\|^2}$ are dominated by a convex combination of independent-set indicators $\sum_k \lambda_k \mathbf{1}_{I_k}(i)$, then $R$ fails Tier 2. - Tier 3 Obstruction (
no_tier3_of_pseudostate): If there exists an arbitrary (possibly indefinite!) real $d \times d$ matrix $Y$ with $\operatorname{Tr}(Y) = 1$ and a convex combination of independent sets $\{(I_k, \lambda_k)\}_{k=1}^m$ ($\lambda_k \ge 0,\ \sum_k \lambda_k = 1$) such that$$\frac{\langle v_i \mid Y \mid v_i \rangle}{\|v_i\|^2} \le \sum_{k : i \in I_k} \lambda_k \qquad \forall i \in [n],$$
then $R$ admits no tight-frame / constant-value SI-C witness ($\neg \text{Tier 3}$).
Crucially, because $Y$ need not be positive semidefinite, a ray configuration can be violated by every physical quantum state $\rho \succeq 0$ (Tier 2), while still admitting an indefinite trace-1 pseudo-state $Y$ (with a negative eigenvalue!) whose quadratic form $\langle v_i | Y | v_i \rangle / \|v_i\|^2$ lies inside the downward-closed stable-set polytope $\operatorname{STAB}(G)^\downarrow$, blocking every tight-frame witness $\sum w_i P_i = c I_d$.
1.3 Flagship Discovery: Strict Tier 2 $\setminus$ Tier 3 Separation in Every Dimension $d \ge 4$
We discover three explicit, irreducible $\{0, \pm 1\}^d$ ray configurations—$R_{18}$ ($d=4$, 18 rays, vertex-critical), $R_{27}$ ($d=5$, 27 rays), and $R_{29}$ ($d=6$, 29 rays)—all strictly separating Tier 2 from Tier 3:
- Upper bound ($\neg\text{Tier 3}$): All three are obstructed by the exact same rank-2 indefinite trace-1 pseudo-state
$$Y = E_{00} + \tfrac{1}{2}(E_{02} + E_{20}), \qquad \operatorname{spec}(Y) = \left\{\frac{1+\sqrt{2}}{2},\ \frac{1-\sqrt{2}}{2},\ 0, \dots, 0\right\},$$
whose negative eigenvalue $\frac{1-\sqrt{2}}{2} \approx -0.2071 < 0$ is impossible for any quantum state, yet $\operatorname{Tr}(Y) = 1$ and $\langle v_i | Y | v_i \rangle / \|v_i\|^2 \le \frac{1}{2}\mathbf{1}_{I_1}(i) + \frac{1}{2}\mathbf{1}_{I_2}(i)$ for the two independent sets $I_1 = \{0, 2, 3\}$ and $I_2 = \{2, 3, 4\}$ (int_no_tier3_of_canonical_Y). - Lower bound (Tier 2): Each admits explicit integer weights $w \in \mathbb{N}^n$ with kernel-verified branch-and-bound bound $\alpha(G, w) \le B$ and exact rational block-diagonal $LDL^\top$ sum-of-squares certificates proving $M - (B + \varepsilon) I_d \succeq 0$:
- $R_{18}$ ($d=4, n=18$,
r18_tier2_not_tier3): $B = 19,\ \varepsilon = \frac{1}{6}$,$$M - \left(19 + \tfrac{1}{6}\right) I_4 = \tfrac{1}{6}(\psi_0 - 2\psi_2)^2 + \tfrac{1}{6}\psi_1^2 + \tfrac{1}{2}\psi_2^2 + \tfrac{5}{6}\psi_3^2 \ge 0.$$ - $R_{27}$ ($d=5, n=27$,
r27_tier2_not_tier3): $B = 58,\ \varepsilon = \frac{1}{4}$,$$M - \left(58 + \tfrac{1}{4}\right) I_5 = \tfrac{7}{12}\left(\psi_0 - \tfrac{10}{7}\psi_2\right)^2 + \tfrac{3}{4}\psi_1^2 + \tfrac{95}{28}\psi_2^2 + \tfrac{7}{4}\psi_3^2 + \tfrac{1}{12}\psi_4^2 \ge 0.$$ - $R_{29}$ ($d=6, n=29$,
r29_tier2_not_tier3): $B = 29,\ \varepsilon = \frac{1}{4}$,$$M - \left(29 + \tfrac{1}{4}\right) I_6 = \tfrac{1}{4}(\psi_0 - 2\psi_2)^2 + \tfrac{1}{12}\psi_1^2 + \tfrac{7}{12}\psi_2^2 + \tfrac{1}{12}\psi_3^2 + \tfrac{3}{4}\psi_4^2 + \tfrac{3}{4}\psi_5^2 \ge 0.$$
- $R_{18}$ ($d=4, n=18$,
Combined with the Exact Orthogonal-Join Algebra (osum_tier2_iff, osum_tier3_iff, osum_not_tier4_of_left):
taking orthogonal joins with Yu–Oh-13 ($d=3$, Tier 3 $\setminus$ Tier 4) lifts $\{d = 4, 5, 6\}$ by step $+3$ to every dimension $d \ge 4$!
1.4 Irreducible Tier 1 $\setminus$ Tier 2 Witness (sub17_irred_tier1_not_tier2)
Cabello–Kleinmann–Budroni (PRL 2015) separated Tier 1 from Tier 2 using the reducible cone $G_{13} + K_1$ in $\mathbb{R}^4$ (which splits as an orthogonal direct sum of Yu–Oh-13 in $\mathbb{R}^3$ and a single isolated ray $e_4$, formalized in general via cone_not_tier2 and osum_tier1_not_tier2_of_tier1_basis).
We strengthen this with sub17 ($d=4, n=17$ in $\{0, \pm 1\}^4$):
- Irreducible: the complement of $G(\text{sub17})$ is connected (verified via BFS spanning tree).
- Tier 1: $\chi_f(G(\text{sub17})) \ge \frac{29}{7} \approx 4.1429 > 4$ (verified via integer weights summing to $29$ and exact branch-and-bound bound $\alpha(G, w) \le 7$).
- $\neg$ Tier 2: the pure state $\psi = e_2 = (0, 0, 1, 0)$ admits an exact equal-weight 4-independent-set classical NCHV model (
sub17NCHV), obstructing every all-state operator SI-C inequality.
1.5 Grand Summary Theorem (four_tier_strict_hierarchy_all_dim)
For every dimension $d \ge 4$:
- $\text{Tier 4} \implies \text{Tier 3} \implies \text{Tier 2} \implies \text{Tier 1}$ universally;
- $\exists R \subset \mathbb{R}^d$ in Tier 3 $\setminus$ Tier 4 (also holds for all $d \ge 3$:
strict_tier3_not_tier4_all_dim, using irreducible bases Yu–Oh-13 in $d=3$,union22in $d=4$, andu24in $d=5$); - $\exists R \subset \mathbb{R}^d$ in Tier 2 $\setminus$ Tier 3 (
strict_tier2_not_tier3_all_dim); - $\exists R \subset \mathbb{R}^d$ in Tier 1 $\setminus$ Tier 2 (
strict_tier1_not_tier2_all_dim).
1.6 Universal Equiangular-Complement Independence Bound & Computer-Search-Free $E_8$ Amplification
Theorem (equiangular_complement_indep_bound): Let $d \ge 3$ and $\gamma \in \bigl[\tfrac{1}{2}, 1\bigr)$. Let $R$ be any finite ray configuration in $\mathbb{R}^d$ whose pairwise non-orthogonal distinct rays are equiangular with $|\langle \hat{v}_i, \hat{v}_j \rangle| = \gamma$. Then every independent set $I$ of $G(R)$ satisfies
Proof idea (entirely algebraic, zero brute-force search): On any independent set $I$ of size $m \ge 4$, the unit vectors $\{u_i\}_{i \in I}$ form an equiangular line system with angle $\arccos(\gamma)$ where $\gamma \ge 1/2$. By switching signs so $u_i \cdot u_{i_0} = \gamma$, we show via Cauchy–Schwarz / determinant analysis of the Seidel signing matrix that the $m \times m$ Gram matrix $G = \bigl(\langle u_i, u_j \rangle\bigr)_{i,j \in I}$ is strictly positive definite (if any negative off-diagonal entries survive in the switched signing, the threshold $\gamma \ge 1/2$ forces a strict contradiction via a 4-vertex Gram minor / Geršgorin-type sign count). Positive definiteness implies linear independence in $\mathbb{R}^d$, hence $|I| = m \le d$.
Corollaries for the $E_8$ Root Configuration (e8_indep_le_eight, e8_tier3_tight_frame, e8_tensor_power_sic):
- The 120 projective rays of the $E_8$ root system in $\mathbb{R}^8$ have pairwise squared cosines in $\{0, \tfrac{1}{4}\}$ ($\gamma = \tfrac{1}{2}$). Therefore $\alpha(G(E_8)) \le 8$ without any computer search over $\binom{120}{9}$ subsets.
- Combined with the algebraic tight-frame identity $\sum_{i=1}^{120} P_i = 15 I_8$ (
e8_tight_frame_sum), $E_8$ is Tier-3 tight-frame SI-C with exact quantum-to-classical ratio $\frac{15}{8} = 1.875$. - Applying our tensor-product tight-frame theorem (
tensor_tight_frame, which proves $\alpha(G(R_1 \otimes R_2), w_1 \otimes w_2) \le B_1 B_2$ and exact tight-frame constant $c_1 c_2$), the $k$-fold tensor power $E_8^{\otimes k}$ ($120^k$ rays in $\mathbb{R}^{8^k}$) achieves exact Tier-3 SI-C classical bound $8^k$ and constant quantum value $15^k$, giving exponential violation ratio $(15/8)^k$ for all $k \ge 1$.
2. Prior-Art Comparison & Novelty Receipt (Audited through November 2026)
2.1 Prior-Art Comparison Table
| Work | Contribution | Relation to Present Results |
|---|---|---|
| Kochen & Specker (1967) | First Tier 4 KS set (117 rays in $\mathbb{R}^3$). | Defines Tier 4; our ks18_tier4 formalizes Cabello–Estebaranz–García-Alcaine (1996) 18-ray 4D KS set. |
Yu & Oh (PRL 2012, arXiv:1109.4396) | 13-ray Tier 3 $\setminus$ Tier 4 SI-C set in $\mathbb{R}^3$. | Formalized (yuoh13_tier3_not_tier4) and used as our $d=3$ orthogonal-join generator alongside new 4D/5D irreducible bases union22 and u24. |
Kleinmann, Budroni, Larsson, Gühne & Cabello (PRL 2012, arXiv:1204.3741) | Optimal SI-C inequality for Yu–Oh-13 (35/3 vs 11). | Formalized cleanly with exact integer weights [3,...,3,2,2,2,2]. |
Ramanathan & Horodecki (PRL 2014, arXiv:1212.5933) | Necessary condition $\chi_f(G) > d$ (Tier 1) for SI-C; conjectured sufficiency for irreducible sets. | Formalized as tier2_implies_tier1; our irreducible 17-ray sub17 proves $\chi_f(G) > d$ is not sufficient for Tier 2 even for irreducible sets! |
Cabello, Kleinmann & Budroni (PRL 2015, arXiv:1501.03432) | Separated Tier 1 from Tier 2 via the reducible cone $G_{13} + K_1$ in $\mathbb{R}^4$; established SDP characterization of Tier 2. | Formalized (cone_not_tier2) and strengthened to an irreducible 17-ray configuration sub17 in $\mathbb{R}^4$. |
Cabello, Kleinmann & Portillo (J. Phys. A 2016, arXiv:1606.01848) | Minimal SI-C set in $\mathbb{R}^3$ has 13 rays (Yu–Oh); analyzed 3D SI-C graphs. | Left open the exact relationship between Tier 2 (all-state operator SI-C) and Tier 3 (constant-value tight-frame SI-C) across $d \ge 4$. |
Xu, Chen & Su (PRL 2020, arXiv:2001.07656) | State-independent contextuality sets in general dimensions. | Focused on Tier 3/4 constructions; did not separate Tier 2 from Tier 3 or introduce indefinite pseudo-state duality. |
Xu, Saha, Bharti & Cabello (2023, arXiv:2309.05735) | Graph-theoretic bounds for high-dimensional contextuality. | Complementary graph-parameter bounds; no Tier 2 $\setminus$ Tier 3 separation or algebraic $E_8$ independence proof. |
Trandafir & Cabello (2025, arXiv:2501.11640) & Cabello (2025, arXiv:2508.07335) | Optimal/simplest KS sets and structural minimality. | Targets Tier 4 (KS uncolorability) minimality; does not address Tier 2 vs. Tier 3 or indefinite pseudo-state obstructions. |
Li, Bright & Trandafir (2026, arXiv:2604.19947) | SAT + NAUTY classification of Yu–Oh extensions. | Studies Tier 3/4 extensions in $d=3$; does not construct Tier 2 $\setminus$ Tier 3 configurations or all-dimension 4-tier separations. |
| This Work (Nov 2026) | (1) Indefinite pseudo-state duality theorem (no_tier3_of_pseudostate); (2) First strict Tier 2 $\setminus$ Tier 3 separations for all $d \ge 4$ via irreducible $R_{18}, R_{27}, R_{29}$; (3) Irreducible Tier 1 $\setminus$ Tier 2 witness sub17; (4) Complete 4-tier strict hierarchy for all $d \ge 4$; (5) Algebraic equiangular-complement independence bound $\alpha(G) \le d$ for $\gamma \in [1/2, 1)$ & computer-search-free $E_8^{\otimes k}$ amplification; (6) 100% Lean 4 kernel-verified formalization. | Genuinely novel across all four axes. |
2.2 Novelty Receipt
Live literature queries were executed against the INSPIRE-HEP API (https://inspirehep.net/api/literature and https://inspirehep.net/api/arxiv/<id>) covering quantum contextuality and Kochen–Specker publications through November 2026, explicitly auditing:
arXiv:2508.07335(Cabello 2025),arXiv:2501.11640(Trandafir–Cabello 2025),arXiv:2604.19947(Li–Bright–Trandafir 2026),arXiv:2609.19862(Muller–Saniga 2026),arXiv:2504.16541(Nie–Wang–Liu 2025),arXiv:2506.15071(Liu–Wang–Wang 2025),arXiv:2309.05735(Xu–Saha–Bharti–Cabello 2023),arXiv:2001.07656(Xu–Chen–Su 2020),arXiv:1606.01848(CKP 2016),arXiv:1501.03432(CKB 2015),arXiv:1212.5933(RH 2014),arXiv:1204.3741(Kleinmann et al. 2012).- Targeted queries for
"tight frame" "state-independent contextuality","constant-value" "state-independent contextuality","pseudo-state" contextuality,"indefinite" "state-independent contextuality", and"equiangular" "independence number" "E8" contextualityreturned 0 prior constructions of:- an indefinite trace-1 pseudo-state obstruction separating All-State Operator SI-C (Tier 2) from Constant-Value / Tight-Frame SI-C (Tier 3),
- irreducible Tier 2 $\setminus$ Tier 3 witnesses ($R_{18}, R_{27}, R_{29}$) or an all-dimension $d \ge 4$ strict 4-tier separation theorem,
- an irreducible 17-ray Tier 1 $\setminus$ Tier 2 witness in $\mathbb{R}^4$ (
sub17), or - a computer-search-free algebraic proof of $\alpha(G(E_8)) \le 8$ via the universal equiangular-complement threshold $\gamma \in [1/2, 1)$.
3. Computational Screening & Exact Python Verification Summary
During discovery, candidate ray configurations in $\{0, \pm 1\}^d$ ($d = 4, 5, 6$) were screened via alternating LP/SDP primal–dual optimization and exact branch-and-bound solvers to isolate minimal irreducible witnesses with clean integer weights, sparse branch-and-bound certificates (41–143 nodes), and exact rational $LDL^\top$ sum-of-squares factorizations. In addition, $R_{18}$ was verified computationally to be vertex-critical for Tier 2 (every 17-ray induced subconfiguration fails Tier 2).
The standalone exact-arithmetic verification script verify_contextuality.py independently re-verifies every finite configuration using Python's exact fractions.Fraction and exact backtracking:
$ /opt/homebrew/bin/python3 /Users/arthurcolle/math_rip/new-results/open-kochen-specker-contextuality/verify_contextuality.py
=== 1. KS-18 (d=4, n=18, Tier 4) ===
PASS: 9 orthogonal bases, uniform degree 2 -> 9 = 2|I| impossible; irreducible.
=== 2. Tier 3 \ Tier 4 Witnesses (Yu-Oh-13, union22, u24) ===
PASS Yu-Oh-13 (d=3, n=13): α=11, ∑w_i P_i = 35/3 I_3 (ratio 1.060606), KS-colorable (4 bases), irreducible.
PASS union22 (d=4, n=22): α=21, ∑w_i P_i = 22 I_4 (ratio 1.047619), KS-colorable (8 bases), irreducible.
PASS u24 (d=5, n=24): α=24, ∑w_i P_i = 25 I_5 (ratio 1.041667), KS-colorable (8 bases), irreducible.
=== 3. Flagship Tier 2 \ Tier 3 Witnesses (R18, R27, R29) ===
PASS R18 (d=4, n=18): α=19, λ_min(M)=19.232408 > 19.166667, exact LDL^T pivots=['1/6', '1/6', '1/2', '5/6'], Y-obstructed (¬Tier 3), KS-colorable (4 bases), irreducible.
PASS R27 (d=5, n=27): α=58, λ_min(M)=58.333333 > 58.250000, exact LDL^T pivots=['7/12', '3/4', '95/28', '7/4', '1/12'], Y-obstructed (¬Tier 3), KS-colorable (8 bases), irreducible.
PASS R29 (d=6, n=29): α=29, λ_min(M)=29.333333 > 29.250000, exact LDL^T pivots=['1/4', '1/12', '7/12', '1/12', '3/4', '3/4'], Y-obstructed (¬Tier 3), KS-colorable (8 bases), irreducible.
=== 4. Irreducible Tier 1 \ Tier 2 Witness (sub17, d=4, n=17) ===
PASS sub17 (d=4, n=17): χ_f ≥ 29/7 = 4.142857 > 4 (Tier 1), pure state e_2 has exact 4-MIS NCHV (¬Tier 2), irreducible.
=== 5. E8 Root Ray Configuration (d=8, n=120) ===
PASS E8 (d=8, n=120): pairwise cosines² ∈ {0, 1/4} (γ=1/2), ∑ P_i = 15 I_8, explicit 8-IS saturates α(E8)=8 (ratio 15/8 = 1.875).
ALL EXACT CHECKS PASSED.
4. Lean 4 Theorem & Lemma Inventory
StateIndependentContextuality.lean (3,386 lines) contains 36 theorems and 44 lemmas (80 proved statements total), with zero sorry, admit, custom axioms, native_decide, or compiler warnings.
Headline Theorems (28 audited via #print axioms)
| # | Line | Theorem Name | Summary |
| :-: | :-: | :--- | :--- |
| 1 | L158 | parseval_of_isBasis | Exact Parseval identity $\sum_{i \in C} \langle \psi | P_i | \psi \rangle = \|\psi\|^2$ for every orthogonal $d$-basis. |
| 2 | L229 | tier4_implies_tier3 | Universal implication $\text{Tier 4 (KS)} \implies \text{Tier 3 (Tight-Frame SI-C)}$. |
| 3 | L309 | tier3_implies_tier2 | Universal implication $\text{Tier 3 (Tight-Frame)} \implies \text{Tier 2 (All-State Operator)}$. |
| 4 | L319 | tier2_implies_tier1 | Universal implication $\text{Tier 2 (All-State Operator)} \implies \text{Tier 1 } (\chi_f > d)$. |
| 5 | L371 | no_tier2_of_nchv_state | Pure-state classical NCHV obstruction for Tier 2. |
| 6 | L478 | no_tier3_of_pseudostate | Indefinite pseudo-state duality obstruction for Tier 3 ($\operatorname{Tr}(Y) = 1$, arbitrary signature). |
| 7 | L706 | osum_tier2_iff | Exact orthogonal-join equivalence: $(R_1 \oplus R_2) \in \text{Tier 2} \iff R_1 \in \text{Tier 2} \land R_2 \in \text{Tier 2}$. |
| 8 | L857 | osum_tier3_iff | Exact orthogonal-join equivalence: $(R_1 \oplus R_2) \in \text{Tier 3} \iff R_1 \in \text{Tier 3} \land R_2 \in \text{Tier 3}$. |
| 9 | L988 | osum_not_tier4_of_left | KS-colorability transfers from $R_1$ to $R_1 \oplus R_2$. |
| 10 | L1091 | cone_not_tier2 | Orthogonal cone $R \oplus \operatorname{stdBasis}(d_2)$ fails Tier 2 for all $d_2 \ge 1$. |
| 11 | L1221 | tensor_tight_frame | Multiplicativity of weighted independence bounds & tight-frame constants under tensor product. |
| 12 | L1298 | equiangular_complement_indep_bound | Universal equiangular-complement independence theorem: $\gamma \in [1/2, 1), d \ge 3 \implies \alpha(G(R)) \le d$. |
| 13 | L1799 | e8_indep_le_eight | Computer-search-free proof that $\alpha(G(E_8)) \le 8$ for the 120-ray $E_8$ configuration. |
| 14 | L2085 | e8_tier3_tight_frame | $E_8$ is Tier-3 tight-frame SI-C with exact $\alpha \le 8$ and $\sum P_i = 15 I_8$ (ratio $15/8$). |
| 15 | L2115 | e8_tensor_power_sic | Exponential amplification: $E_8^{\otimes k}$ in $\mathbb{R}^{8^k}$ has $\alpha \le 8^k$ and $\sum P_i = 15^k I_{8^k}$. |
| 16 | L2356 | checkBB_sound | Soundness of kernel-checked branch-and-bound weighted independence certificate checker. |
| 17 | L2951 | ks18_tier4 | Irreducible 18-ray 4D KS set is Tier 4 (9-basis parity proof). |
| 18 | L2994 | yuoh13_tier3_not_tier4 | Irreducible 13-ray 3D Yu–Oh set is Tier 3 $\setminus$ Tier 4. |
| 19 | L3006 | union22_tier3_not_tier4 | Irreducible 22-ray 4D union22 is Tier 3 $\setminus$ Tier 4. |
| 20 | L3018 | u24_tier3_not_tier4 | Irreducible 24-ray 5D u24 is Tier 3 $\setminus$ Tier 4. |
| 21 | L3046 | r18_tier2_not_tier3 | Flagship 4D witness: irreducible 18-ray R18 is Tier 2 $\setminus$ Tier 3. |
| 22 | L3088 | r27_tier2_not_tier3 | Flagship 5D witness: irreducible 27-ray R27 is Tier 2 $\setminus$ Tier 3. |
| 23 | L3133 | r29_tier2_not_tier3 | Flagship 6D witness: irreducible 29-ray R29 is Tier 2 $\setminus$ Tier 3. |
| 24 | L3176 | sub17_irred_tier1_not_tier2 | Irreducible 4D witness: 17-ray sub17 is Tier 1 $\setminus$ Tier 2 (strengthening CKB 2015). |
| 25 | L3259 | strict_tier3_not_tier4_all_dim | Strict Tier 3 $\setminus$ Tier 4 separation for every $d \ge 3$. |
| 26 | L3289 | strict_tier2_not_tier3_all_dim | Strict Tier 2 $\setminus$ Tier 3 separation for every $d \ge 4$. |
| 27 | L3320 | strict_tier1_not_tier2_all_dim | Strict Tier 1 $\setminus$ Tier 2 separation for every $d \ge 4$. |
| 28 | L3340 | four_tier_strict_hierarchy_all_dim | Grand Summary Theorem: all 3 implications + all 3 strict separations for every $d \ge 4$. |
Additional Supporting Theorems (8) & Lemmas (44)
- Additional Theorems (8):
stdBasis_not_tier2(L1061),osum_tier1_not_tier2_of_tier1_basis(L1098),tensor_weight_bound(L1173),e8_tight_frame_sum(L1941),int_weight_bound_of_checkBB(L2479),int_not_tier4_of_checkBB(L2500),int_irreducible_of_edges(L2560),int_no_tier3_of_canonical_Y(L2609). - Supporting Lemmas (44): Euclidean inner product & norm algebra (
dot_comm..projVal_nonneg, 12 lemmas); tight-frame matrix entries (tightFrame_matrix_entries); orthogonal-join projections & independent-set dichotomy (normSq_split..osum_projVal_right,clique_card_le_dim, 13 lemmas); tensor-product inner product (tensor_dot); $E_8$ combinatorial & root-system lemmas (card_evenSign7,card_ltPairs8,e8VecAux_normSq,e8_normSq_eq_eight,e8_intDot_cases,evenSign7_sum_prod, 6 lemmas); exact integer-denominator quadratic-form & branch-and-bound helpers (IntRayConfig.orthBool_sound,nonOrthBool_sound,sum_projVal_eq_quadZ12,tightFrame_of_decideZ12,le_foldl_max,le_listMaxWeight,isCliqueBool_sound, 7 lemmas); dimension transport (castDim_tier1..castDim_tier4, 4 lemmas).
5. Lean 4 Compilation & Verbatim #print axioms Output
Compilation Command
cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && lake env lean /Users/arthurcolle/math_rip/new-results/open-kochen-specker-contextuality/StateIndependentContextuality.lean
Exit code: 0, compiler warnings: 0, forbidden tokens (sorry, admit, custom axiom, native_decide): 0.
Verbatim #print axioms Output
'SICContextuality.RayConfig.parseval_of_isBasis' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.tier4_implies_tier3' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.tier3_implies_tier2' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.tier2_implies_tier1' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.no_tier2_of_nchv_state' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.no_tier3_of_pseudostate' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.osum_tier2_iff' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.osum_tier3_iff' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.osum_not_tier4_of_left' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.cone_not_tier2' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.tensor_tight_frame' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.equiangular_complement_indep_bound' depends on axioms: [propext,
Classical.choice,
Quot.sound]
'SICContextuality.RayConfig.e8_indep_le_eight' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.e8_tier3_tight_frame' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.e8_tensor_power_sic' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.checkBB_sound' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.ks18_tier4' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.yuoh13_tier3_not_tier4' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.union22_tier3_not_tier4' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.u24_tier3_not_tier4' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.r18_tier2_not_tier3' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.r27_tier2_not_tier3' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.r29_tier2_not_tier3' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.sub17_irred_tier1_not_tier2' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.strict_tier3_not_tier4_all_dim' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.strict_tier2_not_tier3_all_dim' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.strict_tier1_not_tier2_all_dim' depends on axioms: [propext, Classical.choice, Quot.sound]
'SICContextuality.RayConfig.four_tier_strict_hierarchy_all_dim' depends on axioms: [propext,
Classical.choice,
Quot.sound]