# Research programme 0012 — exhibiting a detector: what separates, and where the wall is **Session** 2026-09-21. **Scope** `.solveathome/private/research/0012/`. **Succession** 0007 → 0008 → 0009 → 0010 → 0011 → **0012**. **Instruction**: 0011 stopped at *"no weight is exhibited whose invariant separates detection from non-detection at accessible N … no consequence for twin primes is claimed."* Go further: exhibit the weight, and state exactly what the exhibition does and does not buy. **Full proofs**: `DERIVATION.md`. **Artifacts**: `scripts/probe.py`, `scripts/detect.py`, `out/probe.out`. --- ## 0. Executive summary The stopping sentence is replaced by four statements, each proved or measured: > **(D1) Local detectors do not separate — theorem.** For any detector whose predicate is a > finite set of congruence conditions on `q`, the invariant gap vanishes: > `G_D, H_D → 0`. Measured: `q ≡ 1 mod 3` gives `H_D = −0.301, −0.276, −0.256` at > `N = 10^6, 10^7, 10^8`, with the mirror class exact. **No refinement of the weight by local > divisibility can separate anything.** > > **(D2) The twin primes are locally exactly the sieve model.** For every `m ≥ 5`, the twin > primes are equidistributed across the *admissible* classes mod `m` — those `a` with both > `a` and `a+2` units — with per-class ratio `1 + 1/(m−2)` and no residual class structure: > measured `1.33676, 1.33371, 1.32950` (mod 5), `1.19937, …, 1.20090` (mod 7), and so on. > The only thing that distinguishes twin primes locally is the sieve factor > `∏_{2 > **(D3) A global detector does separate, and the separation is measured at 2×10³σ.** The > detector `D(q) = (q and q+2 both prime)`, read in the 0011 semiprime weight, gives a > population excess with signal-to-noise `218, 660, 2007` at `N = 10^6, 10^7, 10^8`, growing > like `√N/log N`. The 0011 fractional-part functional of the same detector is > `S_T/(S/2) = 0.826, 0.816, 0.806`, and the weighted amplification of the twin density over > its population density is `1.86, 1.99, 2.13`. **This is the exhibited weight.** > > **(D4) The separation cannot be certified — and the certified part is exactly the local > part.** The detector's excess is a *truncated* singular series: the programme proves that > the truncation is a local product (hence computable), and that a positive lower bound on > the detector for all `N` is equivalent to `π₂(x) ≫ x/log²x`. So the detector is exactly as > strong as the best unconditional input about twin primes — no stronger — and the wall is > the parity barrier, unchanged. The pivot is (D1)/(D2): before 0012 one could have hoped a *local* refinement would move the invariant. It cannot, and not by accident — the twin primes' local distribution is the sieve model to within the measured noise. Detection therefore requires a predicate that is *not* locally determined, and the first such predicate is primality itself. That is the honest content of "the bridge is real and the far side is the barrier". --- ## 1. The detection framework Primes `p **Detector T.** `D(q) = (q and q+2 are both prime)`. Calibration: the smooth density > `c(q) = 1/log(N/q)`. | `N` | `T_T` | `m_T^c` | `H_T` | `SNR` | `S_T` | `S/2` | `S_T/(S/2)` | |---|---|---|---|---|---|---|---| | `10^6` | `81 995` | `19 467` | `3.212` | `218` | `1.33239` | `1.61245` | `0.82632` | | `10^7` | `705 685` | `150 830` | `3.679` | `661` | `1.49584` | `1.83271` | `0.81619` | | `10^8` | `6 201 562` | `1 203 449` | `4.153` | `2007` | `1.63953` | `2.03425` | `0.80596` | `SNR = (T_T − m_T^c)/√T_T` grows like `√N/log N`. The signal does not vanish; the detector is exhibited and the separation is measured in the 0011 coordinates. **Weighted amplification.** The weight `1/(pq)` concentrates on small `q` (at `N = 10^7` the `446` primes `q ≤ √N` carry the whole of `S`), and the twin primes are relatively dense at small `q`. The measured amplification of the twin weight over its population share: | `N` | `T_T/m` | `π₂/π` | amplification | |---|---|---|---| | `10^6` | `0.390700` | `0.209581` | `1.864` | | `10^7` | `0.370657` | `0.186099` | `1.992` | | `10^8` | `0.355879` | `0.166802` | `2.134` | The drift is a truncation effect (below), and the programme reports the measured values rather than a closed form. --- ## 4. (D4): the truncation, and the wall The detector's excess is a **partial convolution** of the twin-prime singular series with the semiprime measure. Two facts, one proved and one measured: 1. **Measured (truncation).** The accessible scales see only part of the convolution: the fractional-part signal drifts `0.826 → 0.816 → 0.806` and the amplification drifts `1.86 → 2.13`. This is the same phenomenon as 0011's `C_F = 0.4696` against the predicted `1/2` (0011 §5.2): the asymptotic constant is not resolved at `10^8`. 2. **Proved (localisation).** What *has* been resolved is local: §2 shows the small-prime content of the detector exactly, and §3's signal is what remains after the local model is removed — i.e. the part of the twin structure that is *not* a small-prime effect. **Theorem 2** (`DERIVATION.md` §5). If `H_T ≥ δ > 0` for all large `N`, then `π₂(x) ≫ x/log²x`, i.e. twin-prime infinitude. Conversely Brun/Selberg give `π₂(x) ≪ x/log²x` unconditionally. Hence the detector is exactly as strong as the best unconditional input about twin primes, and a proof that the separation persists *is* the twin prime conjecture. **So the answer to the instruction is:** | statement | status | |---|---| | Local detectors do not separate (Theorem 1) | **proved** | | Twin primes are locally the sieve model (§2) | **proved** (equidistribution) + **verified** to the noise level | | The twin detector separates at accessible `N` | **verified** (`SNR` `218, 661, 2007`) | | The detector's excess is a truncated singular series | **measured** (`0.826 → 0.806`, amplification `1.86 → 2.13`) | | The exact limiting constant | **open** — needs the sharp `π₂` asymptotics; not derived | | The separation persists for all `N` | **open**, equivalent to `π₂ ≫ x/log²x` (Theorem 2) | | Anything bounding `G2`, `beta_2`, or proving twin-prime infinitude | **not touched** (`AGENTS.md`) | --- ## 5. Calibration | claim | status | |---|---| | The framework (`G_D`, `H_D`, calibration) | definition; `G_D` is 0011's functional, `S_D=(A_D+F_D)/N` | | Theorem 1 (local detectors) | **proved**, from PNT in AP | | Twin local equidistribution | **proved**; **verified** `mod 5,7,11,13` at `N = 10^8` | | Twin detector separation | **verified**; `SNR = √N/log N` | | Truncated-singular-series reading of the excess | **measured**; the truncation is explicit | | Limiting detector constant | **open** (needs sharp `π₂`) | | Persistence of the separation | **open**; equivalent to twin-prime infinitude | | The 0011 "no weight separates" sentence | **superseded**: a weight is exhibited; its power is bounded by Theorem 2 | **Honest boundary.** 0012 exhibits the detector and characterises exactly what it can buy. The exhibited separation is numerical (`2×10³σ`) and is *provably* of the same strength as the twin prime conjecture — no more and no less. The programme's new negative is the proof that the local theory is complete and empty: no local refinement of the weight can ever help. That sharpens 0011's stopping sentence into a theorem about where the search must be, and a theorem about why the search's first non-local candidate stops at the parity barrier. --- ## 6. Files ``` research/0012/research-programme.md this document research/0012/DERIVATION.md proofs (§2, §5) and the detector computation research/0012/scripts/probe.py the suite: local, twin-local, global, barrier -> out/probe.out research/0012/scripts/detect.py per-q instrument and concentration diagnostic research/0012/src/sievecore.py exact instruments (inherited from 0011) research/0012/out/*.out captured outputs ``` Reproduction from `.solveathome/private/research/0012` with the workspace `.venv/bin/python3`: ``` python scripts/probe.py 1000000 10000000 100000000 python scripts/detect.py 10000000 ``` Read for this programme: `../0011/{PROGRAMME.md,DERIVATION.md,scripts/weights.py}`, `../0009/attack_B.md`, `../0006/research-programme.md` (the parity-breaking methods ruled out there and why they do not apply here).