Job #15: break the two-sided parity identity 4TS = 4 P_odd P'_odd + (CS − AB) − 4 N_odd3 S (research/fold-arithmetic-bridge.md Proposition 1, line 81)
Caveat first. The identity is exact algebra, and no twin-prime conclusion follows from it either way. Lane E's two ratio tests are CLOSED (research/OUTCOMES.md, fold-arithmetic-bridge entry).
Rung: measured. No falsifier with the definitions exactly as the note states them (lines 55–66). The findings below concern conventions the note does not use, the S = 0 clause, and the validator's rounding of y.
1. Rederivation
Write o(m) = [Ω(m) odd], so λ(m) = 1 − 2 o(m). Over S_X:
- A = S − 2 P_odd and B = S − 2 P'_odd;
- C = Σ (1 − 2o(n))(1 − 2o(n+2)) = S − 2 P_odd − 2 P'_odd + 4 N_both, with N_both = #{n ∈ S_X : Ω(n), Ω(n+2) both odd}.
Hence CS − AB = 4 S N_both − 4 P_odd P'_odd. The right-hand side is therefore 4S (N_both − N_odd3) = 4S · #{n ∈ S_X : Ω(n), Ω(n+2) odd and both < 3} = 4S · #{n ∈ S_X : Ω(n) = Ω(n+2) = 1}. Since Ω(m) = 1 exactly when m is prime, that is 4ST with the note's T.
The identity holds for every finite set of positive integers used as S_X, under any rounding of y and any interval convention. It needs only two things: all eight counts are taken over the same set, and T counts the lesser member n ∈ S_X with n and n+2 prime. The both-odd identity S − A − B + C = 4(T + N_odd3) is the same computation.
2. Grid (parity.c, grid.py → parity.log, results.txt)
- X: every integer 1..128 and 2^0..2^22 (143 values).
- u: {1/2, 9/10, 19/20, 1, 3/2, 2, 5/2, 3, 4, 9/2, 5, 6, 8, 10, 12, 16, 20, 24}, plus u = log₂X, where y = 2 exactly.
- Intervals: (X,2X], [X,2X], (X,2X) and [X,2X); above 2^16 only (X,2X].
- y: the exact integer floor of X^(1/u) (u rational, computed with Python integers), the exact ceiling, and the validator's
Math.floor(Math.pow(X, 1/u))evaluated in node. - Counter: my own C program, independent of the validator: smallest-prime-factor table, Ω by table, 128-bit arithmetic, and n = 1 counted as having no prime factor.
- Size: 29,949 tasks, 1.5 s on one core.
| interval | y | tasks | identity fails (note's T) | both-odd identity fails | S = 0 tasks |
|---|---|---|---|---|---|
| (X,2X] | floor / ceil / Math.pow | 2585 each | 0 / 0 / 0 | 0 / 0 / 0 | 172 / 183 / 172 |
| [X,2X] | floor / ceil / Math.pow | 2472 each | 0 / 0 / 0 | 0 / 0 / 0 | 156 / 165 / 156 |
| (X,2X) | floor / ceil / Math.pow | 2454 each | 0 / 0 / 0 | 0 / 0 / 0 | 156 / 167 / 156 |
| [X,2X) | floor / ceil / Math.pow | 2472 each | 0 / 0 / 0 | 0 / 0 / 0 | 156 / 165 / 156 |
3. Readings of T that do fail (scope: none is the note's definition)
| T read as | fails at | where |
|---|---|---|
| all twin openers in the interval, S_X ignored | 2,496 tasks | always a twin opener n ≤ y inside the interval. On (X,2X]: 367 tasks, every one with y > X, so line 66's "= #{twin openers in I} for X > y" is the condition needed (X ≥ y suffices). The 56 failures with u ≥ 1 all have n = lo ≤ y: a closed lower end, or y rounded up to X. |
| pairs with both members inside the interval | 3,460 tasks | a twin opener at the top of the interval, e.g. (3, 5) for X = 2 |
| S, A, B, C, P, P', N_odd3 on [X,2X] but T on (X,2X] | 419 tasks | exactly at lesser twin primes X > y |
Line 66's definition, lesser member in S_X, is the one that works. These rows are recorded so that no consumer substitutes another reading.
4. S = 0
There are 1,960 S = 0 tasks, and at 1,932 of them the interval contains a twin opener. The denominator-free form holds there for every value of T, since both sides vanish. So "valid also at S = 0" is correct but carries no information about T.
- Under the note's definitions: S = 0 forces T = 0.
- On (X,2X] with X ≥ y: no S = 0 task has a twin opener (count 0).
The patch adds this clause to line 81.
5. The four-sign identity threshold (Proposition 1 proof, and line 444)
- Threshold holds: 0 tasks with y³ ≥ 2X+2 and N_odd3 > 0.
- Below the threshold: 1,450 tasks with y³ < 2X+2 and N_odd3 > 0.
- The recorded case: at X = 64, u = 3, y = 4 and N_odd3 = 1 (the pair (125, 127)), so S − A − B + C = 16 against 4T = 12, as line 444 records.
6. The validator's conventions (research/fold-arithmetic-bridge-validation.js, SEC 1)
Rounding of y.
Math.floor(Math.pow(X, 1/u))differs from ⌊X^(1/u)⌋ on 3 of its 10 printed lines:X u printed y X^(1/u) 2^18 4.5 15 16 2^18 6 7 8 2^24 6 15 16 S, T and every count on those lines are unchanged, because no prime lies in the gap (8 and 16 are composite).
- Across the grid: the float floor differs from the exact floor at 21 (X, u) pairs and changes S at one of them, X = 125, u = 3 (y = 4 against 5; S = 20 against 12). X = 125 is not dyadic.
- Dyadic X: the rounding could change S only where X^(1/u) = 2, and at all 22 such pairs (X = 2..2^22, u = log₂X)
Math.powreturns 2 exactly.
spf[1] = 0.if (spf[n] <= y || …) continuedrops n = 1 although 1 has no prime factor. This is unreachable on (X, 2X] with X ≥ 1. The grid has 108 tasks with n = 1 in S (closed lower end at X = 1), and the identity holds at all of them.The SEC 1 assertion is an algebra check by construction. T is counted as Ω(n) = Ω(n+2) = 1 in the same loop as the other counts, so it cannot fail. The file's reading 1 already says so.
Reproduction. The served stdout equals the embedded block except for the timing line
SEC1 done in … s.
7. Patch (job15.patch; patch -p1 --dry-run applies to the served files)
- Validator. SEC 1 computes y as the exact integer floor of X^(1/u), with u = p/q in BigInt, and guards
spfwith n > 1.- The patched stdout differs from the served one only in the three y values (15→16, 7→8, 15→16) and the timing line; see
make_patch15.log. - The out-sha256 changes, so the file needs re-embedding with
node research/qc/embed.js research/fold-arithmetic-bridge-validation.js.
- The patched stdout differs from the served one only in the three y values (15→16, 7→8, 15→16) and the timing line; see
- Note, line 81: "valid also at S=0 (where both sides vanish for every T, so it says nothing about T there)".
8. What would falsify this return
- A line of
results.txtwhose okIn field is 0. - An (X, u) where
grid.py's exact floor is wrong. - A finite set S where the algebra of section 1 fails.
None was found.
Sources
research/fold-arithmetic-bridge.md, snapshotmain, sha256 2d41665a…aca3c: §2 lines 53–90, lines 444–449.research/fold-arithmetic-bridge-validation.js, sha256 1d638945…4a1bf7: SEC 1 lines 37–75, embedded block lines 291–351.research/OUTCOMES.md: lines 2652–2673.CLAUDE.md.
No external or local-only sources.
Transcript: from the GET /start that received job #15 to this return. Removed: the bearer token, platform and Claude Code session ids, account and organisation ids, e-mail, the local user name and absolute paths. Local notebook content is replaced in place with an omission note.
Patch
--- a/research/fold-arithmetic-bridge-validation.js
+++ b/research/fold-arithmetic-bridge-validation.js
@@ -46,14 +46,18 @@
console.log('SEC1 exact two-sided parity identity on (X,2X], y=floor(X^(1/u))');
const XS = [1 << 16, 1 << 18, 1 << 20, 1 << 22, 1 << 24];
-const US1 = [4.5, 6];
+const US1 = [[9, 2], [6, 1]]; // u = p/q, so that y = floor(X^(1/u)) can be computed exactly
const t0 = Date.now();
const spf = spfSieve(2 * XS[XS.length - 1] + 2);
-for (const X of XS) for (const u of US1) {
- const y = Math.floor(Math.pow(X, 1 / u));
+for (const X of XS) for (const [up, uq] of US1) {
+ const u = up / uq;
+ // exact floor of X^(1/u), the largest y with y^p <= X^q: Math.pow alone gives 15 at X = 2^18, u = 4.5, where X^(1/u) = 16
+ let y = Math.floor(Math.pow(X, 1 / u));
+ while (BigInt(y + 1) ** BigInt(up) <= BigInt(X) ** BigInt(uq)) y++;
+ while (BigInt(y) ** BigInt(up) > BigInt(X) ** BigInt(uq)) y--;
let S = 0, A = 0, B = 0, C = 0, T = 0, Po = 0, Po2 = 0, N3 = 0, P1 = 0;
for (let n = X + 1; n <= 2 * X; n++) {
- if (spf[n] <= y || spf[n + 2] <= y) continue;
+ if ((n > 1 && spf[n] <= y) || spf[n + 2] <= y) continue; // spf[1] = 0, but 1 has no prime factor
const o1 = omegaBig(n, spf), o2 = omegaBig(n + 2, spf);
const l1 = (o1 & 1) ? -1 : 1, l2 = (o2 & 1) ? -1 : 1;
S++; A += l1; B += l2; C += l1 * l2;
--- a/research/fold-arithmetic-bridge.md
+++ b/research/fold-arithmetic-bridge.md
@@ -78,7 +78,7 @@
T = P_odd P'_odd / S + (S/4) cov - N_odd3, cov := C/S - (A/S)(B/S),
-The denominator-free identity, valid also at S=0, is 4 T S = 4 P_odd P'_odd + (C S - A B) - 4 N_odd3 S. Also
+The denominator-free identity, valid also at S=0 (where both sides vanish for every T, so it says nothing about T there), is 4 T S = 4 P_odd P'_odd + (C S - A B) - 4 N_odd3 S. Also
S - A - B + C = 4 (T + N_odd3).
*Proof.* (1 - lambda(m))/2 is the indicator of Omega(m) odd. Summing