Climbing the SkyLadder: A Certified Lower Bound of 25 for Kochen-Specker Sets in $\mathbb{R}^3$

Zhengyu Li, Vijay GanesharXiv 2026

TL;DR

AI is increasingly good at finding clever mathematical examples, like discovering a novel algorithm or graph. Proving that something does not exist via exhaustive search—and actually trusting an AI’s code when it claims "I checked everywhere and found nothing"—is much harder. Introducing SkyLadder, an agentic protocol that tackled a classic open problem in quantum foundations on a single laptop, outperforming supercomputer baselines by 25,000$\times$ and proving—with formal Lean 4 verification—that any Kochen–Specker set in 3D space needs at least 25 vectors.

What Problem Does This Paper Address?

In quantum mechanics, the Kochen–Specker (KS) theorem rules out intuitive "hidden-variable" theories using a finite set of 3D vectors that cannot be consistently colored with 0s and 1s under specific orthogonality rules (every orthogonal pair can't both be 1; every mutually orthogonal trio must have exactly one 1).

How small can such a KS set be? The smallest known construction uses 31 vectors. To push the lower bound up, researchers rely on massive exhaustive searches to prove smaller sets don't exist. Previously, two independent teams spent ~12,000 CPU-hours each to prove the bound was at least 24.

Using an AI coding agent to push this bound to 25 introduces two thorny problems:

  1. Attribution: If an AI beats human baselines, did it invent genuinely new math/algorithms, or just re-implement known literature tricks?
  2. Trust: If an AI writes complex search code that outputs "no 24-vector set exists," a single silent bug could skip valid candidates and yield a false proof. You simply cannot take an agent's "no" at face value.

Methods

The authors introduce SkyLadder, a protocol where a coding agent (claude-opus-5-5) climbs a problem one size ($n$) at a time on a single 8-core Apple M3 laptop, guided by lightweight status prompts from a secondary "meta-prompter" agent.

Figure 1: SkyLadder on the minimum KS problem. Left: the agent climbs one order n at a time. At least one new technique clears each rung (bold: classed as new in Section 6). Below the published bound of 24 the pipeline must reproduce the published record. The left column gives its speed-up over SAT+CAS (Table 3). Certificate checks cover orders 1–24 (green bar). They yield the lower bound of 25 under the trusted base of Section 5. Right: the harness. The meta-prompter observes progress and runtimes and sends short prompts: status checks, the next order with a runtime target, and requests for new techniques. The coding agent (Claude Code) proposes and implements a technique, searches with the solvers, and measures the result against the published record. Certification came after the climb and used checkers proved sound in Lean. Profiles and dead ends seed the next rung, and kept techniques accumulate in a toolbox.

SkyLadder enforces strict rules:

  • One measured technique per rung: To advance from $n$ to $n+1$, the agent must profile its bottleneck, propose a targeted technique, validate on smaller orders, and record both wins and dead ends.
  • Structure-first reformulation (New): While human baselines built graphs vertex-by-vertex inside SAT solvers—repeatedly rediscovering triangle structures—the agent hit a wall at $n=20$ and pivoted. It used nauty to enumerate isomorphism-free basis structures (hypergraphs of orthogonal trios) upfront, leaving tiny, fast SAT problems for the remaining edges.
  • Lean 4 Verification Gate: Nothing in the search pipeline is trusted. After the search, the agent's certificates (enumeration completeness, SAT refutation proofs, and real-algebraic polynomial certificates for geometric non-embeddability) are validated by checkers proved sound in Lean 4.
Figure 2: The pipeline that solved order 24. Top: the search run (923 s wall, 3,623 s CPU). Computer algebra: Z3’s nlsat [de Moura and Bjørner, 2008, Jovanovi´c and de Moura, 2012] or Singu- lar [Decker et al., 2025]. Bottom: the certified run, without shortcuts (it also keeps one 8-basis structure that the search skips).

Datasets

Not discussed in the paper. Because this is an exact combinatorial search problem, there are no training or evaluation datasets. Instead, the pipeline generates and checks combinatorial structures from scratch, cross-checking intermediate candidate counts against published literature records for orders $n=17$ through $23$.

Key Insights and Ideas

  • Profiling forces paradigm shifts: At order 20, profiling revealed that SAT propagation—not Python overhead—consumed almost all runtime. Realizing code optimization wouldn't help forced the agent to change what was being searched, sparking the decisive structure-first reformulation at order 21.
  • Verification catches real agent bugs: Lean rejected the agent's certificates twice during development—exposing genuine bugs where the agent's certificate generator omitted 4-cycle clauses and mishandled self-pair literals. Standard candidate-count cross-checks missed these completely.
  • Honest novelty auditing: By logging every rung and dead end (25 rejected ideas!), the authors audited the AI's creativity. Most steps were rediscoveries or transfers of standard SAT tricks, while a few—notably structure-first search, upfront exact-transversal clauses, and certified canonical enumeration—were genuinely new to the problem.

Key Results

  • Massive Speedup: At order 23, SkyLadder ran in 1,767 CPU-seconds on a laptop versus ~4.3$\times 10^7$ CPU-seconds for prior SAT+CAS and SMS baselines—a 2.5$\times 10^4\times$ speedup.
  • Exact Reproduction: With geometric checks disabled, the pipeline matched published non-colorable candidate counts identically across orders 17–23 (e.g., all 3,747,950 candidates at $n=23$).
  • New Mathematical Bound: Resolved the open $n=24$ case in 1.0 CPU-hour (15 min wall-clock), proving every KS set in $\mathbb{R}^3$ has at least 25 vectors.
  • Complete Certification: Lean-verified checkers validated all 2,200,309 basis structures across orders 1–24 (including 1,748,733 at order 24) and 1,027 algebraic certificates in 46.6 CPU-hours on the laptop.
Figure 4: Total CPU through order 24 (log scale). Orange: the SkyLadder search. Green: user+sys CPU of the enumeration and per-structure certificate checks, under the trusted base of Section 5. Grey: SAT+CAS and SMS. Shaded: order 24, which establishes the new lower bound of 25. The numbers along the bottom give the gain of the search over SAT+CAS.

Limitations and Future Work

  • Trusted Computing Base: Rather than producing one monolithic proof term checked inside Lean's kernel, certification executes compiled Lean checkers and assembles multi-process logs externally. Thus, the Lean compiler, runtime, file handling, and the 35-line problem specification remain trusted.
  • Single-Problem Scope: SkyLadder was evaluated via a single exploratory climb on one problem without preregistration; testing whether the protocol generalizes to other combinatorial searches remains open.
  • Prompt Sensitivity: While the meta-prompter named no search techniques, occasional high-level nudges (like suggesting looking for patterns) influenced outcomes; sensitivity to prompt phrasing or agent choice wasn't ablated.

Summary updated

BibTeX
@misc{li2026climbing,
  author = {Zhengyu Li and Vijay Ganesh},
  title = {{Climbing the SkyLadder: A Certified Lower Bound of 25 for Kochen-Specker Sets in $\textbackslash\{\}mathbb\{R\}^3$}},
  year = {2026},
  eprint = {2611.35799},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35799},
}
Figure