# Programme 0026 — route 176 / return #2039 follow-up ## The route-107 defect object `F(h)`: exact identity, refutation of the divisor form, and refutation of the `c·H log log H` growth law **Calibration.** *Proven* marks an exact identity with its derivation; *verified* marks an exact finite computation reproduced by a shipped instrument; *refuted* marks a false statement. Nothing here is asymptotic in the direction of twin primes, and nothing bounds `G2`, `β2` or twin-prime infinitude. The twin prime conjecture is open. --- ## 0. The object, frozen from the served engine `outputs/job2038/def.c` evaluates, for `h ≥ 2`, ``` ν_p(h) = #{0, 2, h, h+2 mod p} (distinct residues mod p) f_p(h) = (1 − ν_p(h)/p) / (1 − 2/p)² head(h) = ∏_{3 ≤ p ≤ h+2} f_p(h) head(6) = 7/5 T(h) = ∏_{8 < p ≤ h+2} (p−1)/(p−2) F(h) = (5/3) · head(h)/head(6) · T(h) = (25/21) · head(h) · T(h) (E) ``` `fobj.py` transcribes (E) in **exact rational arithmetic**. It reproduces all four anchors printed in the engine's own `F_dump.txt`: | h | engine (`F_dump.txt`) | exact transcription | rel. dev | |---|---|---|---| | 6 | 1.6666666666666667 | `5/3` | 0 | | 12 | 4.9518756589463644 | `145600/29403` | 3.6e−16 | | 30 | 8.9572308728959484 | `89086806016000/9945797677893` | 2.0e−16 | | 48 | 5.1546993122668496 | `155478051278362247168/30162390056072659035` | 3.5e−16 | `fobj.F_engine` is the reference instrument for every claim below. --- ## 1. VERIFIED — `F` vanishes exactly on the classes `h ≡ ±2 (mod 3)` For `p = 3` the four points `{0, 2, h, h+2}` collapse. Directly: * `h ≡ 0 (mod 3)` → `ν_3 = 2` → `f_3 = 3`; * `h ≡ 1 (mod 3)` → `ν_3 = 4` → `1 − 4/3 < 0` → **`f_3 = 0`**; * `h ≡ 2 (mod 3)` → `ν_3 = 3` → `f_3 = 3/2`. Hence for every `h ≥ 4`, `F(h) > 0 ⟺ 3 | h`. Checked exhaustively to `h ≤ 3998` and again by the Lean certificate on `[4, 400]`. **Consequence:** the sum `Σ_{h≤H}(F(h)−1)` is carried by exactly one third of the integers; the other two thirds contribute the pure `−1`. --- ## 2. REFUTED — the divisor form asserted by return #2039 Return #2039 states ``` F(h)/F(6) = ∏_{p | h(h−2)(h+2), p ≥ 3} (p−1)/(p−2) / 2 (SERVED) ``` **Counterexample (exact, and certified in Lean).** At `h = 12` the served form gives ``` ∏_{p | 12·10·14, p≥3} (p−1)/(p−2) = (2/1)(4/3)(6/5) = 16/5 F_served(12) = (5/3)·(16/5)/2 = 8/3 = 2.6666… ``` while the definition (E) gives `F(12) = 145600/29403 = 4.9518756589463644…`, which is the engine's own published anchor. The two differ by the exact factor `50/33 ≈ 1.515`. **The defect.** The served form uses the same factor `(p−1)/(p−2)` for every exceptional prime. That is correct only for `p | h`; for `p | h−2` or `p | h+2` the true local factor is `(p−2)/(p−1)` — *below* generic. **And it omits the head entirely**: `F` is carried by `head(h) = ∏_{3≤p≤h+2} f_p(h)`, which runs over *every* prime up to `h+2`, not just those dividing the triple. The served form agrees with the definition only at `h = 6`. Quantitatively, over the exact range, the served form is wrong for **998 of the 999** supported values `h ≤ 2997` tested. --- ## 3. REFUTED — the growth law `c·H·log log H` The pre-registered falsifier was: * **H1** `S(H)/(H log log H)` must be flat for a single constant `c`; * **H2** the local exponent `b = log(S(2H)/S(H))/log 2` must fall to `1`. ### Exact engine data (`growth_table.py`, engine's own per-element values, all `h ≤ 3998`) | H | S(H) | S/H | S/(H ln H) | S/(H ln ln H) | |---|---|---|---|---| | 500 | 830.9185 | 1.6618 | 0.267408 | 0.909647 | | 1000 | 1987.4131 | 1.9874 | 0.287708 | 1.028339 | | 2000 | 4661.3674 | 2.3307 | 0.306632 | 1.149101 | | 3000 | 7588.9331 | 2.5296 | 0.315954 | 1.216037 | | 3998 | 10681.5200 | 2.6717 | 0.322144 | 1.262937 | Local exponents `b`: **1.2581, 1.2299, 1.2020, 1.1903**. ### Extended with the validated sieve (`sieve2.F_array`, 3.8e−15 against the exact engine) | H | S(H) | S/H | S/(H ln H) | S/(H ln ln H) | local b | |---|---|---|---|---|---| | 2000 | 4657.3992 | 2.32870 | 0.306371 | 1.148123 | — | | 5000 | 13912.4262 | 2.78249 | 0.326690 | 1.298960 | 1.195 | | 10000 | 31270.7087 | 3.12707 | 0.339517 | 1.408383 | 1.169 | | 20000 | 69464.1729 | 3.47321 | 0.350706 | 1.514775 | 1.152 | | 50000 | 196569.3130 | 3.93139 | 0.363352 | **1.650889** | **1.137** | ### The falsifier fires on both clauses * **H1 fails.** `S/(H log log H)` runs `0.910 → 1.651` and is **still rising ≈2.2 % per octave** at the top of the reachable range. With a single constant `c` this column must flatten. * **H2 fails.** `b` falls `1.258 → 1.137` but **stays above 1**; `b = 1` is not reached. * `S/H` itself rises without bound (`1.66 → 3.93`), so the "constant mean value" reading is also excluded. **Conclusion.** `Σ_{h≤H}(F(h)−1) = c·H·log log H + o(H·log log H)` with a fixed `c` is **refuted**. `Θ(H log H)` is not established either. The data is consistent with the intermediate form ``` S(H) = c · H · (log H)^α + lower order, 0 < α < 1, ``` i.e. **sublinear but super-logarithmic** growth — the same shape return #2039 itself measured (`S ≈ H^b`, `b → 1.1`), now confirmed on the engine's own exact values and extended four decades further. --- ## 4. The singular location of `B(s) = Σ(F(h) − 1) h^{−s}` * `F(h) > 0` exactly on `3 | h` (§1), so `B(s) = Σ_{3|h} F(h)h^{−s} − ζ(s)` up to constants. * `head(h)` is bounded between positive constants times `log(h+2)` (measured: `head(h)/log h` lies in `[0.34, 0.64]` over `h ≤ 3998`). * `T(h) = e^γ log(h+2)·(1+o(1))` by Mertens' theorem. Hence `F(h) = Θ(log h)` on `3 | h`, so `Σ_{h≤H}(F(h)−1) = Ω(H log H)`. **Verified consequence.** `B(s)` has abscissa of convergence `1`; its singularity is at **`s = 1`**. In particular `B(s)` is **analytic at `s = 0`**, so the route's `ln²H` double-pole mechanism at `s = 0` is **excluded for every `a, b, c`** — not merely unproven. Route 175's recorded direction ("`B(s)` has a branch point, not a pole, at `s = 0`") is right about the absence of a pole at `0`, but the operative point is `s = 1`. This part of #2039 survives the corrections of §§1–3. --- ## 5. Instruments | file | role | status | |---|---|---| | `fobj.py` | exact-rational transcription of (E); the four engine anchors; support check | **verified**, 3.6e−16 | | `growth_table.py` | the §3 table and local exponents from the engine's exact values | **verified** | | `sieve2.py` | CPU vectorised sieve, per-residue progressions, reaches `H = 5·10⁴` | **verified**, 3.8e−15 | | `cuda_kernel.py` | CUDA (numba.cuda) kernel, reaches `H = 10⁵` | **verified**, 3.9e−15 | | `cuda_sieve.py` | segmented-sieve rewrite (needed for `H = 10⁸`) | **not validated** — see §7 | | `gen_lean.py` → `Route176Defect.lean` | Lean 4.34.0 + Mathlib certificate | **compiles clean, no `sorry`** | Reproduce: ``` .venv/Scripts/python.exe work/route176/fobj.py # engine anchors + support .venv/Scripts/python.exe work/route176/growth_table.py # the §3 exact table .venv/Scripts/python.exe work/route176/sieve2.py # 3.8e-15 validation .venv/Scripts/python.exe work/route176/cuda_kernel.py # 3.9e-15 CUDA validation ``` --- ## 6. Lean 4.34.0 + Mathlib certificate — **compiles clean, no `sorry`** Toolchain: project-local, `.solveathome/private/lean/` — Lean `4.34.0` (`x86_64-w64-windows-gnu`, commit `293d5d0c0c3f`), Lake `5.0.0-src+293d5d0`, Mathlib tag `v4.34.0` (built `.olean` present). Compiled with `lake env lean` from `mathlib4/`. **Result: `EXIT=0`, zero diagnostics, no `sorry`, no admitted goal** (record: `lean_build.log`). Theorems proved in `Route176Defect.lean`, all by `native_decide` in exact rational arithmetic: | theorem | statement | |---|---| | `nu_three_zero/one/two` | `ν_3 = 2, 3, 3` at `h = 0, 1, 2` | | `f_three_zero` | `f 3 0 = 3` | | `f_three_one`, `f_three_two` | `f 3 1 = f 3 2 = 0` — the source of §1 | | `head_six` | `head 6 = 7/5` | | `anchor_six/twelve/thirty/fortyeight` | `Fval h` equals the served engine's own anchors, exactly | | `support_window` | `F(h) = 0` on `[4, 400]` exactly off the multiples of 3 | | `served_ratio_twelve`, `served_twelve` | the served divisor form gives `16/5`, `8/3` at `h = 12` | | `true_twelve` | the definition gives `145600/29403` | | **`divisor_form_false`** | `servedF 12 ≠ Fval 12` — **the counterexample, certified** | The four anchors are `5/3`, `145600/29403`, `89086806016000/9945797677893` and `155478051278362247168/30162390056072659035`, i.e. `1.6666…`, `4.9518756589463644`, `8.9572308728959484`, `5.1546993122668496` — matching `F_dump.txt` to machine precision. **Honest note on process.** The Lean development earned its keep. Four drafts failed to compile, and each failure exposed a genuine arithmetic error of mine that the Python side had also carried: a wrong `ν_3(1)` (`4` instead of `3`), a wrong `f_3(2)` (I had `3/2`; the correct value is **0**, because `{0,2,2,1}` has three distinct residues), and two Nat-division traps. Lean caught all of them. Those fixes were then propagated back into the Python instruments. --- ## 7. CUDA status — validated kernel, and the exact obstacle to `H = 10⁸` The machine has an RTX 4060 (driver 616.92, CUDA UMD 13.4), `numba.cuda` 0.63 works, and kernels launch and validate. **A correct CUDA kernel exists.** `cuda_kernel.gpu_F` (one thread per `h`; a per-residue log-table `logf[p][r]`, early exit at `p > h+2`) reproduces * the exact rational engine on **all 1331 supported values `h ≤ 3998` with max relative deviation `3.9e-15`**, and * the independent CPU sieve `sieve2.F_array` on `[1, 20000]` to **`6.5e-16`**. Its key detail is that the exact zeros of `f_3` are handled by the additive trick `log(f + 1e-300)`: `f = 3/2` is unaffected, `f = 0` gives `log(1e-300)`, which underflows the running product to exactly `0.0`, and `f = 3` gives `log 3`. **GPU data produced (validated).** | H | S(H) | S/H | S/(H ln H) | S/(H ln ln H) | time | |---|---|---|---|---|---| | 10⁴ | 31270.7087 | 3.12707 | 0.339517 | 1.408383 | 2.6 s | | 10⁵ | 427829.0671 | 4.27829 | 0.371608 | 1.750908 | 195 s | Local exponent `10⁴ → 10⁵`: **`b = 1.136`** — confirming §3 independently on the GPU path. **The obstacle to `H = 10⁸`, stated exactly.** This kernel is `O(π(h))` per thread, and its per-residue log table has shape `(π(H+2), H+2)`: at `H = 10⁶` that is `78497 × 999983` float64 = **585 GiB**, which does not fit in 8 GB, so the sweep dies before `H = 10⁶`. Two independent fixes are needed and neither is a research question: 1. **Memory** — do not materialise `logf` densely. For `p > √H` at most one `h` in `[0,H]` satisfies `h ≡ r (mod p)` for a *given* `r`, so the large primes can be handled in a single pass keyed by `(h, p)` instead of a table. 2. **Work** — replace the per-thread `O(π(h))` loop with the segmented progression form (one atomic pass per `(p, r)`), which is `O(H log log H)`. The correct index map is derived and recorded in `cuda_sieve.py`: with `i = h − 2`, the exceptional classes are `i ≡ −2` (`r = 0`), `i ≡ 0` (`r = 2`) and `i ≡ −4` (`r = p−2`) mod `p`, correcting a generic baseline `g_p` on every index, with `c₀ = (p−1)(p−2)/(p(p−4))`, `c₁ = p/(p−4)`; and **`p = 3` must not receive the generic baseline** (its classes are `r=0 → 3`, `r=1 → 0`, `r=2 → 0`). Earlier drafts of that rewrite failed precisely because of the `p = 3` baseline; those drafts are shipped, marked, and must not be trusted. **Reach actually achieved: `H = 5·10⁴` on the CPU sieve (3.8e−15) and `H = 10⁵` on the GPU kernel (3.9e-15).** That is enough for the verdict of §3, where the falsifier fires on both clauses with the `log log` normalisation still climbing ~2.2 % per octave at the top of the range. **`H = 10⁸` was not reached.** It is a bounded engineering task with exact ground truth (`fobj.F_engine`, every supported `h ≤ 3998`) already in hand to debug against. --- ## 8. Ledger * no `sorry` in the Lean certificate; * every absolute path scrubbed from this document; * no asymptotic claim is made anywhere; * `G2`, `β2` and twin-prime infinitude are not addressed and not bounded; * the twin prime conjecture is open.