Climbing the SkyLadder: A Certified Lower Bound of 25 for Kochen-Specker Sets in $\mathbb{R}^3$
Zhengyu Li, Vijay Ganesh
cs.AI
Nov 26, 2026 · v1
cs.LO quant-ph
TL;DR
Lean 4 with Mathlib proves the soundness of enumeration, LRAT, symmetry and obstruction certificate checkers, which are then executed to certify the Kochen–Specker lower bound.
Abstract
Can an AI agent find new techniques for a search problem that experts already optimised? Can we trust a "no" answer that the agent's own code produced? We introduce SkyLadder, a protocol for agent-driven research on exact search problems. The agent climbs the problem one size at a time. It develops techniques motivated by measured bottlenecks and records both improvements and dead ends. Certification requires complete coverage by certificate checkers that Lean 4 proves sound. We apply SkyLadder to the minimum Kochen-Specker (KS) problem in $\mathbb{R}^3$, a question from the foundations of quantum mechanics. The best lower bound was 24 vectors. It came from two independent SAT-based searches of about 12,000 CPU-hours each. On one 8-core laptop, the agent's pipeline reproduces every published order from 17 to 23 and matches the published candidate counts exactly. At order 23 it is $2.5\times10^{4}$ times faster than the state of the art. Most of the gain comes from one reformulation: the search runs over basis structures instead of vector graphs. The pipeline resolves the next open case: every KS set in $\mathbb{R}^3$ has at least 25 vectors. The certificate checks establish that the enumeration is complete. They cover 2.2 million final basis structures across orders 1-24 and validate 1,027 real-algebraic non-embeddability certificates. The retained verification records account for all 1,748,733 required order-24 structures, including supplementary and cube-split checks. Lean proves that the checkers are sound. The trusted base also includes the mathematical specification, Lean and Mathlib, compiled checker execution, certificate-file handling, and assembly of per-process logs. Under this explicit trusted base, the result does not depend on the correctness of the search tools. An ablation and a prior-art audit separate the new techniques from those that the agent rediscovered.
Problem
The minimum size of a Kochen–Specker set in R^3 was known to lie in [24,31]. The lower bound of 24 came from SAT-based searches costing about 12,000 CPU-hours each. The paper asks whether an AI agent can advance such an expert-optimised exhaustive search, and how its non-existence result can be trusted without trusting the agent's code.
Approach
SkyLadder is a protocol in which an AI coding agent climbs the problem one order at a time. At each rung it adds techniques motivated by measured bottlenecks and logs dead ends. The key reformulation is a structure-first search over basis structures, enumerated with nauty's genbg and solved with one small SAT problem per structure, plus learned obstruction clauses. Certification uses compiled checkers whose soundness is proved in Lean 4 on top of a 35-line Mathlib specification; the checkers accept enumeration witnesses, CaDiCaL LRAT proofs and real-algebraic non-embeddability certificates.
Results
The pipeline reproduces the published candidate counts for orders 17–23 and is 2.5×10^4 times faster than SAT+CAS at order 23 on an 8-core laptop. It establishes that every KS set in R^3 has at least 25 vectors. The Lean-verified checks cover 2.2 million final basis structures and 1,027 non-embeddability certificates, under an explicit trusted base.
| order | SAT+CAS cpu s | SkyLadder cpu s | gain | Lean checks cpu s |
|---|
| 20 | 8,430 | 138.5 | 61× | 369 |
| 21 | 116,700 | 65.0 | 1.8×10^3 | 784 |
| 22 | 3.36×10^6 | 179.7 | 1.9×10^4 | 3,242 |
| 23 | 4.36×10^7 | 1,767 | 2.5×10^4 | 33,478 |
CPU seconds by order, SAT+CAS vs SkyLadder search (selected orders)