Prime Tread Wheel · Research log

Night Shift — the witness layer

I went to bed and left the lab running on pre-registered predictions with one rule: an honest negative is a load-bearing result. By morning the machine had certified its own new instrument to a 0.000σ identity, survived a +3,869σ scare that turned out to be a bug in my prediction and not in the machine, closed all three of the wheel's remaining statistics axes by measurement, proved the halves-claim unprovable by reduction, and found a closed formula where the night's own plan said none could exist.

0 1 2 3 4 5 6 7 8 9 10 ω(N) — distinct small-prime witnesses, per tick 37,739 primes 165,861 one-witness
The witness census of one certified band: 1,048,576 consecutive numbers at N ≈ 1.125×10¹², every tick stamped with how many distinct small primes divide it. Zero witnesses = prime. One witness = a number with exactly one small factor — the class the whole night turned on.
S stated — a premise or proposed mechanism. Not derived, not assumed proven.
F follows — actually entailed by what came before.
G gap — the mechanism stops here. Something necessary is not yet explained. A gap is information.
E established — an external proof or a measurement resolved this particular piece, at this resolution.

§1The wheel in one breath, and what a witness is

If you haven't met the machine: layer 1 holds the number 1, layer 2 holds the next two, and every layer holds one more tick than the one inside it, each tick the same size — the counting numbers wound onto a wheel that grows as it rolls. Nothing about primes goes into the rule; the primes are what the geometry leaves open. The main page is the wheel itself, the original essay builds it from nothing, and the field notes map the configuration side. This page is the third leg: what happened on the night of October 9–10, 2026, when the lab ran itself.

The machine in question is the GPU roll engine — the CUDA wheel that certifies primes by rolling layers, one ring per prime on the GPU, ~282 million layers deep the night this happened. Until two days ago it answered a yes/no question per number: visible or occluded. Prime or not. On the 9th it got an upgrade, and the whole night runs on the upgraded dial.

The upgrade is a witness count. Write ω(N) for the number of distinct small prime factors of N — how many different little gears mesh with the number. The engine now stamps every tick with ω(N), not just a boolean: not "occluded" but "occluded by two different rings, and here is which count." A tick with ω = 0 is certified prime. A tick with ω = 1 has exactly one small factor — which, at the wheel's witness bound ≈ √N, forces it to look like N = pᵃ·q: one small prime times one big cofactor. That's the one-witness class, and it is the closest thing the wheel has to a hardness certificate: a number one step away from being hard to factor. A semiprime — a product of exactly two primes — is the special case a = 1.

Why count witnesses instead of stopping at prime/not-prime? Because a boolean is a light that only says something is wrong. A count says how many independent somethings, and that is a measurement you can compare against the predictions of analytic number theory — which is exactly what the night was for.

§2The witness layer — and the bug it caught on day one

The count layer is nearly free: an atomic increment per stamp, ~50% additive cost on the stamp kernel at the time, zero measurable cost on the roll itself. Every certified tick now exits the machine carrying its factor-structure certificate, and the --dump-band cut saves witness bands as sidecar files.

Then the first audit ran, and the new dial caught a real bug in its first shift. Every prime table the engine had ever built had a duplicated prime 2 in it. The boolean engine never noticed — an extra shadow from 2 lands on exactly the ticks 2 already covered, so a duplicated 2 changes nothing about which ticks look prime. It is invisible to yes/no. But it changes the count by one on every tick where 2 shows up, and the count layer exposed it in a single run. Caches trimmed, builder fixed, the load path now sanitizes legacy files. E

That is the witness layer's personality in one anecdote: it makes a class of bugs visible that the old instrument could not see at all. The rest of the night is that personality applied to mathematics.

The layer was then certified exact by an independent enumeration, and I want to state the result precisely because it is stronger than "the tests passed." Take a dumped band: layer 1,500,000, a window of 1,048,576 consecutive numbers sitting at N ≈ 1.125×10¹², with every prime up to the witness bound 1,060,661 ≈ √N sieved exactly — so the band is a complete compositeness certificate: zero witnesses means provably prime, deterministically. The gold file of primes and the witness array agree perfectly: 37,739 primes, 37,739 zero-ticks, the index sets element-wise equal. Then the counts were audited against an exact prime-counting enumeration (Lehmer's algorithm — the classical exact method for counting primes, validated against known values like π(10¹²) = 37,607,912,018 along the way) of the documented one-witness class, factorization shape by factorization shape:

measured one-witness = 165,861 · exact enumeration = 165,861 · deviation = 0.000σ

An exact agreement, a deterministic identity — both sides are counting the same set, so equality certifies that the wheel's witness array means precisely what the documentation says it means. Not "close enough": exact. E A smooth asymptotic cross-check (the sieve's own Σ 1/(pᵃ ln(N/pᵃ)) prediction) lands at 165,802, within +0.15σ. The dial reads true.

§3The discriminating experiment: +3,869σ, owned

Now the headline, told the way it actually happened, including the part where I was wrong.

The night's main event was pre-registered before any data was touched: does the wheel's measured semiprime density and maximal prime gaps match what analytic number theory predicts? The theory side is the standard statistical machinery for prime scatter — Hardy–Littlewood's twin/semiprime integrals (the classical formulas predicting how often almost-primes should occur) and Cramér's gap model (the exponential model for how far apart primes should sit). The prediction was written down with the stop condition: match within ~2σ and the census axis — "a bigger wheel will reveal new statistics" — closes formally and permanently; any big deviation and everything stops until the mechanism is found.

The first number back looked catastrophic. The pre-registered Hardy–Littlewood prediction for the one-witness count in the band was 1,798. The wheel measured 165,861. Deviation: +3,869σ. In lab language, the machine and two centuries of theory disagreed by an amount that should happen essentially never.

Two ways that can go: the machine is wrong, or the prediction is. The audit chain in §2 already said the machine's counts are exact — the 0.000σ identity — so the hunt went to the prediction, and the root cause was proven, not guessed. The classical semiprime formula counts numbers p·q with both factors near √N — the balanced class that the twin-prime singularity series governs. A one-witness tick is any N = pᵃ·q with p below the witness bound and q above it — a class dominated by small p, weighted by 1/p, and therefore roughly 92× more numerous. My pre-registered formula modeled the wrong class. The deviation was a specification error in the prediction, full stop — and per the house rule it is reported here prominently, in the same size type as the results that went right, because a retracted claim logged with its reason is evidence of rigor, not an embarrassment. E

Against the correct class the match is not merely good, it is exact: the Lehmer enumeration of N = pᵃ·q reproduces the measured 165,861 to 0.000σ (§2). And the rest of the census fell in line on the first comparison, no corrections needed:

CLOSED — THE CENSUS AXIS [E, STRENGTHENED]

The wheel's statistics are analytic number theory's statistics: matched, and certified by an exact identity on the class that matters. "Build a bigger wheel and it will find new statistics" is dead — not presumed dead, measured dead. And there is a genuine bonus finding in the wreckage of the 3,869σ: the wheel natively counts a hardness class — one small factor, all powers — that the standard π₂-based semiprime tools undercount by ~92×. The instrument sees a class the catalog doesn't stock. E

§4Two more closures: the honest nulls

A bigger wheel was supposed to find new statistics in two more places. Both were probed with pre-registered predictions of NULL — write "nothing there" before looking, so that finding nothing is a result with a signature, not a shrug.

CLOSED — SPATIAL STRUCTURE OF THE ω-MAP [E]

The hardness landscape (the ω(N) field across a band — think of it as a contour map of how many cams touch each tick) has no spatial structure beyond the deterministic small-prime base. Twenty honest-null windows were simulated with the small-prime determinism built in — the naive "independent ticks" baseline is decisively rejected as a comparison, because the real band's {2,3} periodicity alone produces an autocorrelation spike of z = +3.08 at lag 6, inside multiple-comparison expectations across 64 lags. Against the correct null: 15+ statistics compared, max |z| = 2.17 on headline stats. Mean ω: 2.89169 real vs 2.89158 null. One directional ~2σ hint (high-ω ticks marginally more clustered) was logged and not chased — house rule: hints below 3σ are not anomalies. NULL, with the mechanism for why a naive probe would have hallucinated structure.

CLOSED — RETAINED RING-PHASE STATE [E]

Sieves throw away the ring phases; the wheel retains them — the full state of every gear, carried across layers. If that retained state carried any exploitable wave, band content at one layer would predict band content at the next. Sixteen consecutive real layers, FFT cross-correlation over all lags against a 20-pair null envelope: real max |corr| 0.362–0.383, null envelope 0.361–0.393 — every separation inside the envelope. The one excursion past the naive null (lag-0, +0.218 vs 0.185) was root-caused as deterministic sieve-lattice self-alignment: the fixed layer spacing D₃ = 4,500,006 = 2·3·7·107143 shares small factors with the sieve, and an alignment-matched null reproduces and exceeds it. A method lesson logged, not a discovery. NULL.

Three statistics axes, one night: census MATCH, spatial NULL, retained-structure NULL. The framing I keep returning to: the statistics are now closed by measurement, and that is a result. A dead end you have walked to the end of is load-bearing — it carries the weight of every future hour that would otherwise have been spent down that road. What remains open on the map is theorem-side only, and the night's other two results are exactly about those.

§5C1, the halves-claim: the proof door closes by reduction

The halves-claim (C1, from the field notes): every lap m ≥ 21 of the wheel carries at least one prime strictly each side of the midpoint. Checked to ~120,000 laps two days ago with zero violations, no proof, and — more awkward — an exact search showing free rings can cover either half, so the claim rides entirely on the realized stagger, with zero structural support. The night's plan put one genuine proof attempt on it.

The attempt succeeded, in the direction nobody roots for: the proof door closes by reduction. The wheel's own B1 theorem says the wheel's visible set is exactly the primes — the occlusion is the √N sieve rendered as machinery, nothing more. Translate C1 through that equivalence and every wheel-specific part cancels: the claim becomes "there is a prime in an interval of length ⌊m/2⌋ ≈ 0.7·√N at height N ≈ m²/2." And Legendre's conjecture — the two-centuries-old claim that there is always a prime between N and the next square, an interval of length ≈ 2√N — is precisely three times longer at comparable height. C1 asks for primes in intervals ~3× shorter than a conjecture that has been open for two centuries, and the best unconditional short-interval theorem in the literature (Baker–Harman–Pintz, primes within x^0.525) doesn't reach √x, let alone below it. Since the wheel contributes nothing beyond the sieve, no wheel-native proof can escape that class. F

"Zero structural support" used to be an observation. It is now a theorem: support would require structure the sieve doesn't have, and the wheel is the sieve. This also explains the contrast with the parent claim (one prime in the full lap), which does have structural support up to layer 57: the halves-split is exactly what pushes the interval length across the √N boundary.

Meanwhile the evidence grew tenfold. The G7 probe walked all 999,980 laps from m = 21 to 1,000,000 — N out to ≈ 5×10¹¹ — in 5.2 minutes:

C1 — STATUS: [S, LEGENDRE-HARD BY REDUCTION, EMPIRICALLY BULLETPROOF]

Stated, not proven; proved unprovable-by-this-machine: a wheel-native proof would be a sieve-independent proof of a sub-Legendre interval conjecture, out of reach in principle, not just in effort. Evidence: zero violations in 999,980 laps to N ≈ 5×10¹¹, with safety margins that grow faster than the window. The paper's value migrates from the claim to a new instrument: the wedge distance — the measurable gap, per lap, between the one realized quadratic curve (the stagger law) and the fully characterized wipe set (the turnings that would cover everything). The claim says the distance never hits zero; the instrument measures how close it comes, which no sieve pipeline emits as data. That instrument is now the flagship. G

§6D8, the dead-offset formula: the map extends itself

Last open item on the dial map: at a rational ratio a/b, some seam lanes are dead forever — no prime ever lands — and the census found the cause: on each residue class of the lap index the seam value is an exact quadratic, and a square discriminant (the quantity Δ = B²−4AC that decides whether a quadratic factors over the rationals) kills the class by identity. What was missing was an index: given a/b, which classes die, without enumerating them. The night's brief hypothesized the obstruction was deep — if Δ came out degree 3 or 4 in the class index, the square-value problem would be an elliptic curve, and no general closed form could exist.

The chain falsified its own hypothesis, and the truth was better. The r²-terms of B² and 4AC cancel identically — for every coprime (a,b), symbolically, not by sampling. What survives in Δ is a linear ramp plus a bounded sawtooth with period b, with a proved pairing law (P = 0 iff b is odd, P = b/2 iff b is even; zero violations across all coprime b ≤ 12, a ≤ 15). And because the class index r only ever ranges over a residue system mod b — it is a label, not a free variable — the square-value problem is finite: b exact square tests. No Pell equation, no elliptic curve; the genus boundary the brief worried about is never reached, because the variable is periodic. Standing lesson, second instance of the night: when a "hard problem" smells like Diophantine genus, first check whether the variable is free or periodic. Periodicity trivializes curves. F

dead classes at a/b = {r mod b : Δ(r) is square} ∪ {r mod b : content(N_r) > 1} — O(b) exact arithmetic, no sieve

Every landmark on the published seam map passes: 3:8 fully dead (all 8 discriminants square: 25, 16, 25, 4, 1, 16, 1, 4), 5:8 half/half, 7:4 dead by content, the whole b = 4 column dead exactly when a ≡ ±1 (mod 8), the a = 1 row all dead. Checked class-by-class against the wheel construction for all coprime b ≤ 8, a ≤ 12: zero mismatches. E

Then the part that makes a formula a formula: it predicts. The closed form says nine (a,b) pairs that appear alive on the published seam map are in fact dead — 3:2, 5:2, 7:2, 8:3, 8:5, 9:2, 9:5, 10:3, 11:2 — and all nine were confirmed empirically (zero seam primes from m ≥ 50 out to 5M, the map's own test). The seam map is extended by its own formula: nine cells nobody had mapped, found by algebra and verified by the sieve. E D8's label moves from G to F→E. What stays honestly open is thin: whether the sawtooth's square tests admit an (a,b)-parameterized shortcut (a Dedekind-sum-like compression question), and Layer-1 one-sidedness — content 1 doesn't guarantee liveness; the sieve still owns that call.

§7Engineering honesty: three corrections to one story

The most corrected object of the night was my own claim about what limits the engine. Two evenings ago the ledger said it confidently: "the wall's true name is BANDWIDTH — every ring costs 20 B/layer of traffic." The night shift refuted that, and then refuted its own first replacement, and then refuted the second one's details. Three nested corrections, each found by a sharper measurement:

  1. Bandwidth — refuted. The micro-benchmark says the machine is healthy where it counts: streaming memory at 199.8 GB/s. The stamp kernel never touches bandwidth (~190M scattered stores/s against that engine), reads only 8 B per ring, and the "220 MB of ring traffic per layer" framing was measuring the wrong array. The uint32-window variant — the obvious "fix" for write amplification — measured slower (18.13 ms vs 16.26 ms). Dead end, closed before anyone built the wrong thing. E
  2. "Issue-rate plus serialization" — partially refuted. The first decomposition said scattered stores (~2.9 ns each) and scattered atomics (~2.7 ns) each cost about half the kernel, additively. Closer.
  3. The true cause: one serialized thread. The kernel assigns one thread per ring. The p = 2 ring's single thread walks the whole 1M-tick window in W/2 = 524,288 sequential iterations — ~9–17 ns each — while essentially every other thread idles. The kernel runs at the pace of its unluckiest gear. Issue rate was never the wall; the p=2 serial chain was effectively 100% of it. E

The fix follows the diagnosis: give the small primes a window-parallel kernel (one thread per tick, coalesced writes, prime-tests by magic-multiplier arithmetic), keep the per-ring kernel for the big primes. The prototype (Phase 0.6) verified bit-identical output against the verbatim production kernel — both the boolean window and the witness counts, four layers, two cutoffs, one uint64-wrap bug found and fixed en route — and then, benchmarked under a live window sharing the GPU: 18.2 ms/layer down to 0.77 ms/layer at the best cutoff. ~24×, with ~95.6% of the measured kernel time recovered. The witness tax — the atomic increment — collapses from ~50% of the kernel to ~0.15 ms of coalesced store. The best cutoff is 1,024 (172 small rings, a broad plateau from 256 to 1,024). E

And the discipline note, because it's the same discipline as the math: integration into the production engine was deliberately not done autonomously. The prototype stands one flag away (--stamp-v2, default off, verify-gated), with the full plan written up — engine surgery on the file the live window's next launch depends on is my call to make over coffee, not the night's. A 24× speedup you queue as a decision beats one you sneak in. G (a decision gap, not a knowledge gap).

One more retraction from the evening before, logged the same way: the GPU-rate gap had been attributed to a CPU miner sharing the box. The night's planned A/B test to confirm it became impossible — the miner had vanished before the measurement window (its load average was already decaying; no process found, nothing signaled or killed) — and the control measurements that replaced it exonerated the miner for the roll rate: the live window runs 77 layers/s with the miner, 76 without, essentially insensitive, and the benchmark's real sensitivity is to sharing the GPU with the live window itself (83 → 41 layers/s). The miner's one measured victim was the startup path, not the roll. Attribution withdrawn. E

§8What is still open

The honest open list, as of this morning:

  1. The wedge-distance instrument (F2) — the new flagship. Conjecture as a measurable distance: one realized quadratic curve vs the characterized wipe set, per lap. Needs a SAT solver bolted to the enumeration; still G, now carrying the paper's value.
  2. The kernel-v2 integration decision. Prototype verified bit-identical and ~24× faster; the merge is queued with a full plan, awaiting a human yes. G
  3. The massive-build question, now much narrower. With every statistics axis measured-closed, "a giant wheel will find new statistics" can no longer carry the justification. What remains: dial geometry (the variable-tread laws) and instrument value (the wedge distance, the 92×-undercounted hardness class — measurements no sieve pipeline emits). Whether that justifies a big build is a real question now, which is more than it was yesterday.
  4. Residual mathematics, stated thin: the Dedekind-sum-like compression of the D8 square tests; Layer-1 one-sidedness (content-1 classes still need the sieve); the ~2σ clustering hint in the ω-map, parked pending a null ensemble of ≥100 windows if the wedge instrument ever motivates a revisit. G

The scorecard for the night: the witness layer shipped and certified exact to a 0.000σ identity; the census, spatial, and retained-structure axes are closed by measurement; C1 is Legendre-hard by reduction and empirically bulletproof to a million laps; D8 turned out to have a closed form that extended the seam map by nine cells; and the engine's bottleneck story survived three corrections to arrive at its true name. Two claims of mine died on the record — the +3,869σ prediction and the bandwidth wall — and both obituaries are load-bearing. That's what a good night looks like from inside a mechanism-first lab: fewer open roads than yesterday, and every closure signed by measurement rather than asserted.


Method note: every phase of the night ran on pre-registered predictions with binding stop conditions, written in AUTONOMY_2026-10-10.md before the checks ran; per-phase full reports live in lab/PHASE*.md, the labeled ledger in INSIGHTS.md, and the night's surprise log in lab/MEMENTO.md. Null results count as closures and are not re-run because the answer was boring. Corrections are logged, not silently fixed.