← All papers
First page of The Algebraic Landscape of Kochen-Specker Sets in Dimension Three

The Algebraic Landscape of Kochen-Specker Sets in Dimension Three

Michael Kernaghan

quant-ph Mar 17, 2026 · v10
Lean 4 with Mathlib kernel-checks the roots-of-unity uncolorability theorem, the 45-word circle uncolorability, and minimum KS subset sizes for six pools.
The classic three-dimensional Kochen-Specker (KS) proofs take their ray coordinates from a small set of numbers: {0, +-1, +-sqrt(2)} for the 33 rays of Peres and {0, +-1, +-2} for the 31 rays of Conway and Kochen. We treat that set, the coordinate alphabet, as a parameter. An alphabet generates a finite pool of rays, and the pool is or is not KS-uncolorable. We determine the uncolorable alphabets in four families. (A) Two-symbol alphabets {0, +-1, +-x}, x complex: uncolorable only when x or 1/x is +-2, +-sqrt(2), +-sqrt(-2), or x is a primitive third or sixth root of unity; no KS set with such coordinates has fewer than 31 rays. (B) Real three-symbol alphabets {0, +-1, +-x, +-y} with 1 < x < y: uncolorable exactly when two letters have ratio 2 or sqrt(2), or at eight further points; again no KS set has fewer than 31 rays. (C) Conjugate-closed alphabets {0, +-1, +-x, +-x*}: uncolorable exactly when |x|^2 = 2, or |x|^2 = 1/2, or x*/x is a primitive third or sixth root of unity, or x is +-2 or +-1/2. The uncolorable alphabets are therefore not isolated. On the circle |x|^2 = 2 a fixed list of 45 words is uncolorable at every point, and no shorter fixed list is; the circle |x|^2 = 1/2 carries the 33-ray family of Gould and Aravind. (D) The pool of 0 and the n-th roots of unity is uncolorable if and only if 6 divides n. Minimum KS subsets are certified by exact computation for eleven named pools. The Lean proof assistant checks (D) for n >= 3, the uncolorability of the 45 words at every point of the circle, and the minima 31, 33, 33, 33, 43 and 47 of six pools. This version replaces the classification by "cancellation mechanisms" and "islands" proposed in versions 1-9, which did not survive checking; an appendix lists the withdrawn claims, among them a golden-ratio minimum of 52 (a 51-ray set exists).

Three-dimensional Kochen-Specker sets such as Peres' 33 rays and Conway-Kochen's 31 rays draw their coordinates from small sets of numbers. The paper asks which such coordinate alphabets generate ray pools that admit no KS coloring, and how small the minimum KS subsets of those pools are.

The alphabet is treated as a parameter. The method enumerates every integer relation that can make an inner product of two words vanish, then decides colorability exactly for each resulting orthogonality graph. Minimum KS subsets are certified with exact computation and SAT-style certificates. Several key results are proved in Lean 4 with Mathlib, where orthogonality is recomputed inside Lean and externally computed certificates are checked by the kernel.

The uncolorable alphabets are classified for four families: two-symbol, real three-symbol, conjugate-closed, and roots of unity (uncolorable iff 6 divides n). For each of the first two families, no KS set with such coordinates has fewer than 31 rays. Lean verifies the roots-of-unity theorem for n≥3, the uncolorability of the 45-word list at every point of the circle |x|²=2, and minima of 31, 33, 33, 33, 43 and 47 rays for six pools.

AlphabetRaysMinimum KS subset
{0,±1,±2}4931, certified, L
{0,±1,±√2}4933, certified, L
{0,±1,±ω,±ω²}5733, certified, L
{0,±1,±α,±α*}14543, certified, L
{0,±1,±ψ,±ψ²}10947, certified, L
Selected raw pools and their minimum KS subsets (L = also proved in Lean)