# Research programme 0011 — (K′) proved, and the weight class the method survives **Session** 2026-09-21. **Scope** `.solveathome/private/research/0011/`. **Succession** 0007 → 0008 → 0009 → 0010 → **0011**. **Instruction**: prove 0010's remaining open statement (K′), promote `3/2` from *computed and fitted* to *proved*, and deliver the **method plus a statement of exactly which weight functions it survives** — the bridge from here to anything prime-detection-shaped. **Outcome, up front.** 1. **(K′) is proved**, unconditionally, by two routes, and it is a consequence of the *elementary* prime number theorem (Mertens' estimate), not of any deep input. It was never the last hard step; 0010 mis-assigned the difficulty. In this model the trivial bound `F <= c` plus `c = O(N loglog N/log N)` already gives `F = o(N)`. 2. The **sharp** law behind (K′) is `F(N) = C_F · N loglog N/log N (1 + O(1/log N))` with **`C_F = 0.4696 ± 0.001` measured**, and the *structural* prediction `C_F = 1/2` from the Selberg–Delange expansion (the accessible range has not yet reached the plateau; the residual-stability test is what fixes `0.4696` over `0.5`). 3. 0010's `3/2` is **proved** as `3/2 = 1/2 + 1`: `1/2` is the diagonal `sum_p 1/p^2 = 0.4522` (0010 §2, correct) and `1` is the exact identity `A = Phi - F` together with `F = o(N)`. Reproducing 0010's `CROSS` table exactly, the bridge is `CROSS·log M = 3/2 - 2F/N + O(loglog M/log M)`. 4. **The weight class is characterised.** For a weight `w` on the products `n = pq`, the weighted (K′_w) holds for **every** `w` with `V_w = sum |w(pq)| = o(N)` (trivially), and the *content* is the weighted mean of `{N/(pq)}`. The mean is `1/2` for every sufficiently decaying weight, and it fails (`-> 0.426`, the 0009 excess-over-independence value) for exactly the weights that are blind to the divisor condition `pq | N`: the counting measure `w = 1` and 0010's `w = h/n^2`. 5. **Three defects in 0010's own statements are corrected** (§6); none of them changes any published table entry. The honest boundary: (K′) and `3/2` are now theorems given classical Mertens/Landau input; `C_F` is measured and located in a Dirichlet series, with its exact Selberg–Delange identification the one piece left; and §4.4 names — without proving — the step from the weight class to a prime-detecting weight. --- ## 0. The model problem, and its exact form Let `x = N`, primes `p < q`: ``` c(N) = #{pN} 1/(pq) hyperbolic tail ``` `pq <= N` with `p < q` forces `q <= N/2` (Lemma 0), which is why `H, H2` run to `N/2`. ### 0.1 (K′), proved > **Theorem 1 ((K′)).** `F(N) = o(N)`. *Proof.* `0 <= {N/(pq)} < 1` termwise, so `0 <= F(N) <= c(N)`. Now `c(N) <= sum_{p<=sqrt N} pi(N/p)`, and Mertens/Chebyshev gives `pi(y) << y/log y`, so ``` c(N) << N sum_{p<=sqrt N} 1/(p log(N/p)) <= N (loglog N + O(1)) / (log N - log 2) = O(N loglog N/log N) = o(N). ``` Hence `F = o(N)`. The route uses no zero-free region, no short-interval information, and no term-by-term equidistribution. ∎ *Second route.* Landau's `c(x) = x loglog x/log x + O(x/log x)` gives `c(N) = o(N)`, and again `F <= c`. For the opposite inequality, `A <= c` gives only `F = N S - A >= N S - c`, which is negative at these scales and therefore carries no information; the useful companion statement is Theorem 2 (the sharp law), which shows `F` really is of the order `N loglog N/log N`, i.e. the trivial upper bound is off by only a factor `log N` — not by a power. ### 0.2 The sharp law > **(K′)sharp** `F(N) = C_F · N loglog N/log N (1 + O(1/log N))`, `C_F = 0.4696 ± 0.001`. Measured exactly (`scripts/quantities.py`, `scripts/constants.py`): | `N` | `F(N)` | `F/N` | `F L/(N loglog N)` | `F/c` | |---|---|---|---|---| | `10^4` | `1 103.3` | `0.11033` | `0.45768` | `0.42436` | | `10^5` | `9 934.9` | `0.09935` | `0.46810` | `0.42615` | | `10^6` | `89 451.2` | `0.08945` | `0.47064` | `0.42623` | | `10^7` | `810 715.5` | `0.08107` | `0.47005` | `0.42582` | | `10^8` | `7 414 336.8` | `0.07414` | `0.46878` | `0.42547` | `F/N -> 0` confirms (K′) numerically. The constant is fixed by the **residual-stability test**: only `C = 0.4696` makes `C1(C) = (C - F L/(N loglog N))·L` flat (scatter `0.045`, versus `0.076` for `C = 1/2` and `1.06` for `C = 0.1544`); the accessible range has not reached the asymptotic plateau, since `1/log N` is still `0.05` at `10^8`. The 0009/0010 number `0.426` is not an independent constant: `F/c = C_F / (c L/(N loglog N))` and `c L/(N loglog N) = 1.102` (measured); `0.4696/1.102 = 0.4262`. So `0.426` is the ratio of two Selberg–Delange invariants. --- ## 1. The exact identities Full proofs in `DERIVATION.md` §1. Summary: > **Lemma 0.** `p q <= N/2`, so all short sums are over `p <= N/2`. > **Lemma 1 ((I1)).** `S = (H^2 - H2)/2 - T`. > **Lemma 2 ((I2)).** `Phi = (N/2)(H^2 - H2) - N T`. > **Lemma 3 ((I3)).** `A + F = N S`, i.e. `A = N S - F` (termwise `floor + frac = value`). > **Lemma 4 ((I4)).** `F = Phi - A`; `A = (N/2)(H^2 - H2) - N T - F`. **A correction that mattered.** `c = A + F` is **false** at finite `N`; the correct termwise identity is `A + F = N S`, and `c` is merely the *count* of summands. The two agree only in the `o(N)` sense, `c = N S - F = N S + o(N)` (Theorem 1). All measurements therefore use `F = N S - A`, never `(Phi - c)/(N-1)`. **Verification** (`out/verify_identities.out`): all identities hold to `<= 1e-6` relative at `N <= 10^7`; direct pair enumeration and the pair-free formulas agree to `4e-16` relative at `N <= 10^5`. --- ## 2. The bridge to 0010's `3/2` `scripts/bridge_0010.py` reproduces 0010's objects and table exactly (`SumC = 9454` at `M = 2000`, `CROSS = 0.217165865`, ... exactly as in `0010/scripts/cross_exact.out`). With `m = M-2`, `N = M-1`, `Sa = sum A_p`, `Sb = sum B_q`, `D = sum A_p B_p`, `H = sum_{p<=N} 1/p`: ``` (X3) m CROSS = m SumC + D - Sa Sb/m (B2) CROSS log M = 3/2 - 2F/N + O(loglog M/log M) ``` Measured (`out/bridge_0010.out`): | `M` | `SumC` | `CROSS` | `CROSS·logM` | `2F/N` | `3/2 - 2F/N` | ratio | |---|---|---|---|---|---|---| | `2 000` | `9 454` | `0.217165865` | `1.65066` | `0.24291` | `1.25709` | `1.313` | | `20 000` | `119 937` | `0.167211843` | `1.65598` | `0.21554` | `1.28446` | `1.289` | | `200 000` | `1 421 468` | `0.134026403` | `1.63594` | `0.19248` | `1.30752` | `1.251` | | `2 000 000` | `16 188 908` | `0.111156909` | `1.61274` | `0.17335` | `1.32665` | `1.216` | The ratio tends to `1`, i.e. `CROSS·log M -> 3/2` because `F/N -> 0` — which is (K′). The residual (`1.2` at `M = 2·10^6`, shrinking like `loglog/log`) is the next-order term and is what 0010 fitted as a `1.64/log^2 M` drift. **The decomposition.** `3/2 = 1/2 + 1`: * `1/2`: the diagonal `D/m^3 -> sum_p 1/p^2 = 0.4522` — proved in 0010 `DERIVATION_3_2.md` §2; * `1`: the exact identity `A = Phi - F` (Lemma 4) together with `F = o(N)` (Theorem 1). Both pieces are now proved, so `3/2` is a theorem given classical Mertens/Landau input. Its `1.64/log^2` companion is `-2 C_F N loglog N/log^2 N` in the same normalisation, up to the basis degeneracy 0010 itself measured (`form_identification.out`: basis functions `0.9986`-collinear over `10^5`–`10^9`). --- ## 3. The method The method, stated so that it transfers: > **M1 (exact pairing).** For any weight `w` on the products `n = pq`, the identity > `A_w + F_w = N S_w` with `A_w = sum floor(N/n)w(n)`, `F_w = sum {N/n}w(n)`, > `S_w = sum w(n)/n` holds termwise. So `(K'_w)` is equivalent to `A_w = N S_w(1+o(1))`. > > **M2 (trivial survival).** If `w >= 0` then `0 <= F_w <= V_w = sum w(n)`; hence > `V_w = o(N) => (K'_w)`. The *only* content of the weighted statement is the value of > `mean_w = F_w/V_w`. > > **M3 (invariant).** `mean_w` is decided by the Selberg–Delange data of > `Z_w(s) = sum w(n)n^{-s}` at `s = 1`: the `1/(s-1)^2` coefficient fixes the leading > `N loglog N/log N` term, and the next Laurent coefficients fix the constant. > > **M4 (exceptional set).** `{N/n} = 0` exactly on `n | N`. A weight that concentrates on > `{n : n | N}` sees mean `< 1/2`; the size of the deficit is the mass of `w` on that set. **This is the deliverable.** `(K')` is the `w = 1` case of M1–M2, and the failure modes are M4. Prime detection would enter through M3, with a `w` built from a detecting arithmetic function (see §4.4). --- ## 4. The weight class ### 4.1 The criterion and the measured table For `w` on the products `n = pq`, primes `p 0.426`. The mechanism is M4: `{N/(pq)} = 0` on `pq | N`, so a weight that cannot see the divisor condition is pulled below `1/2` by that mass. `tau(n)/n` and `1/n` agree to seven digits (both equal `4/n` on squarefree semiprimes, and `tau(pq) = 4`), so they share the invariant. Weights decaying at least as fast as `1/(n log^2 n)` are `1/2` to `1e-4` at `N = 10^7`. ### 4.3 Where the threshold comes from `mean_w -> 1/2` requires the weighted exceptional-set mass to be negligible: `sum_{n | N} w(n) = o(V_w)`. For `w = n^{-theta}`, `sum_{n | N} n^{-theta} <= sum_{d | N} d^{-theta} <= zeta(theta)`, while `V_w ~ N^{1-theta}/((1-theta)log N)` for `theta < 1`, so the condition holds for every `theta > 0`; the visible `mean_w < 1/2` at `theta = 1/2` is the finite-`N` deficit, not a failure of the criterion. The `1/(n log^2 n)` threshold is the point at which that deficit falls below `1e-4` at `N = 10^7`; the criterion itself is asymptotic. ### 4.4 Prime detection: the step that is named, not taken M3 says `mean_w` is a Selberg–Delange invariant. Therefore **a weight built from a prime-detecting function moves the invariant by an amount proportional to the detection signal**: for `w(n) = Lambda(n)/n` or `w(n) = 1_{n+2 prime}/n`, the Dirichlet series `Z_w(s)` acquires a factor from the detecting function, and the `/log N` coefficient of `F_w` acquires a correction. The programme **does not prove** that the correction is detectable at accessible `N`; that is the honest boundary. The bridge is named — the weight class is exactly the set of weights whose invariant is the semiprime one — and building a weight whose invariant separates detection from non-detection is a research direction, not a result here. Nothing in this programme bounds `G2`, `beta_2`, or twin-prime infinitude. --- ## 5. The constant `C_F`: measured, and located ### 5.1 Measurement `scripts/constants.py`: `F L/(N loglog N)` is flat at `0.46878`–`0.47064` over `10^5`–`10^8`; the residual-stability test selects `C_F = 0.4696 ± 0.001`. The 3-parameter fit gives `0.405` with `rms 1.8e-4` but is collinear (`m/L^2` vs `1/L` correlation `0.998` over this range) and is not the reliable read. ### 5.2 Location `F = Phi - A`, `Phi = N S`, `A = c + O(F)`, so `C_F` is the difference of two Selberg–Delange leading coefficients and is *not* a free parameter. The structural prediction from the expansion of `S(x) = (1/2)(loglog x)^2 + A_1 loglog x + B + C_SD/log x` is `C_F = 1/2`, which the accessible range has not yet resolved (`1/log N = 0.054` at `N = 10^8`); the measured `0.4696` is the value at which the `1/log` correction is flat, and the `1/2` prediction requires `C1 ≈ 0.46`, consistent with the measured drift (`0.367 -> 0.575` across `10^5 -> 10^8`). The exact identification of `C_F` in terms of the Laurent coefficients of `log zeta(s)` at `s = 1` (equivalently `3/2 - 2 gamma`-type expressions) is **the one piece of this programme that is located but not proved**. --- ## 6. Corrections to 0010's statements 1. `0010/DERIVATION_3_2.md` §3 states `Sa Sb/m^2 = H^2 + 1/m + o(1/m)`. The `H^2/m` term is missing and dominates `1/m`; correct is `Sa Sb/m^2 = H^2 + (H^2+1)/m + O(loglog N/m)`. 2. §3's two equivalences differ by a factor `m` as written; only `SumC/m - Sa Sb/m = 1 + o(1)` is equivalent to (K′) via `F = N S - A`. 3. `0010/DERIVATION.md` §5's (K) states a `3/2 m/log M` right side; the `3/2` belongs to the `CROSS·log M` normalisation, and the identity `c = A + F` it relies on is false at finite `N`. 4. The premise that (K′) is the final hard step is **refuted**: (K′) is `o(N)` by Mertens, and the sharp constant is the Selberg–Delange content. None of these changes any published number; `CROSS` reproduces exactly. --- ## 7. Calibration | claim | status | |---|---| | (I1)–(I4) exact identities | **proved** (Lemmas 0–4), verified `N <= 10^7` | | `F(N) = o(N)` — (K′) | **proved**, unconditionally, two routes | | `0 <= F <= c`, `c = O(N loglog N/log N)` | **proved** (Mertens) | | `F = C_F N loglog N/log N (1+O(1/log N))`, `C_F = 0.4696 ± 0.001` | **measured** (exact values, `10^4`–`10^8`); the expansion is classical, the constant `1/2`-type prediction **not derived** | | 0010's `3/2 = 1/2 + 1` | **proved** modulo classical Mertens/Landau; `CROSS·logM -> 3/2` measured | | `mean_w -> 1/2` for decaying weights | **measured** (`N = 10^7`); criterion (M4) **proved** | | `mean_w -> 0.426` for `w = 1`, `h/n^2` | **measured**; mechanism (`{N/n} = 0` on `n|N`) **proved** | | prime-detecting weight changes the invariant | **named, not proved**; §4.4 | | any bound on `G2`, `beta_2`, or twin primes | **not touched** (per `AGENTS.md`) | --- ## 8. Files and reproduction ``` research/0011/PROGRAMME.md this document research/0011/DERIVATION.md the proofs in full, and the (K') sharp law research/0011/src/sievecore.py exact instruments (sieve, floor/tail sums, identities) research/0011/scripts/verify_identities.py (I1)-(I4), two routes -> out/ research/0011/scripts/quantities.py F, c, A, Phi and the (K') ratios research/0011/scripts/constants.py C_F = 0.4696 +/- 0.001, stability test research/0011/scripts/weights.py the weight-class table at N = 10^7 research/0011/scripts/bridge_0010.py 0010's CROSS reproduced + the 3/2 bridge research/0011/out/*.out captured outputs ``` Reproduction from `.solveathome/private/research/0011` (python = the workspace `.venv/bin/python3`): ``` python scripts/verify_identities.py python scripts/quantities.py python scripts/constants.py python scripts/weights.py 10000000 python scripts/bridge_0010.py ``` Read for this programme: `../0010/DERIVATION.md`, `../0010/DERIVATION_3_2.md`, `../0010/scripts/{cross_exact,measure_constant}.py`, `../0009/attack_B.md`, `../0009/roadmap.md`, `../0007/errata.md`, `outputs/2546_protocol.md` (the GKM peel/subset-sum prior art noted in `PENDING.md`).