"""Job #1917: statement-level repairs to return #49's revision of paper/kk-lower-bound.md (sha 8cf928ee...), per review #73 and route 78. Each edit is an exact, unique string replacement; the script aborts if any anchor is missing or ambiguous. No theorem, constant or grade changes.""" import io, hashlib, sys src = 'r49-kk-lower-bound.md'; dst = 'kk-lower-bound.rev2.md' s = io.open(src, encoding='utf-8', newline='').read() assert hashlib.sha256(s.encode('utf-8')).hexdigest().startswith('8cf928ee'), 'base is not return #49\'s revision' n_edits = 0 def rep(old, new, count=1): global s, n_edits c = s.count(old); assert c == count, (c, old[:70]); s = s.replace(old, new); n_edits += 1 # E1 section 2: the OEIS row and its normalisation rep("| free two-class | any $\\{a_p, b_p\\}$ | $\\ge h_2$ | A072753 |\n", "| free two-class, primes $p \\ge 5$ only, covered length | any $\\{a_p, b_p\\}$ | $6\\,\\mathrm{A072753}(n) + 6 = \\mathrm{A288815}(n)$ | A072753 |\n" "\nThe fourth row is not an unscaled quantity above $h_2$. OEIS A072753 omits the\n" "primes 2 and 3 and measures covered length, and its own formula field states\n" "$\\mathrm{A288815}(n) = 6\\,\\mathrm{A072753}(n) + 6$ for $n \\ge 3$ (Ziller, 2017), the\n" "index $n$ counting primes from $p_1 = 2$ in all three OEIS rows. At $n = 3$\n" "(primes through 5) the unscaled chain fails: $\\mathrm{A072753}(3) = 2$ while\n" "$G_2(30) = 12$ and $h_2(30) = 18 = 6 \\cdot 2 + 6$. Both the index and the bridge\n" "were re-derived by brute force from the definitions: $\\mathrm{A072753}(3..6) =\n" "2, 4, 10, 24$ and $6a + 6 = 18, 30, 66, 150$, against $h_2(30) = 18$ and\n" "$h_2(210) = 30$ computed directly as the worst even $d$ over pairs\n" "$\\{a_p, a_p - d\\}$, and $G_2 = 12, 30, 42, 66, 108$ for $y = 5$ to $17$\n" "(`fresh1917.py`, job #1917 of the solveathome record). Admissibility is part of\n" "the normalisation: two free classes at $p = 2$ cover every integer, so a free\n" "two-class quantity with 2 admitted has no finite maximal gap. The served\n" "`research/attack2-rankin2d.js` carries the omitted-prime convention and the\n" "factor 6 in its header.\n") # E2 section 6.1: the sieve interface, stated against Richert's divisibility-form A_d through the multiset bridge old61 = s[s.index("**How the statement is consumed here.**"):s.index("**The corollary sees $\\Omega_p$ only through")] assert "Corollary 1 is cited as the place the statement appears in\nprint, not as the derivation relied on." in old61 rep(old61, "**How the statement is consumed here.** Lemma 1 is stated for divisibility\n" "sifting of a sequence $\\{a_n\\}$, and the printed bridge from it to residue\n" "classes is Corollary 1's encoding, which fails as printed (§11.2). The theorem\n" "actually consumed is Richert's Theorem 11.3 (Tata lectures, p. 135;\n" "cross-referenced at p. 150 to Halberstam and Richert's Theorem 2.2), whose\n" "$\\mathcal A_d$ is defined by **divisibility** (p. 108, eq. (9.7)), not by\n" "residue classes. The residue-class problem is carried into that form by a short\n" "bridge. Let $P = P(z)$ and choose Chinese-remainder idempotents $e_p$ with\n" "$e_p \\equiv 1 \\pmod p$ and $e_p \\equiv 0 \\pmod q$ for every prime $q \\le z$,\n" "$q \\ne p$. Put\n\n" "$$F_p(n) = 1 - e_p + e_p \\prod_{r \\in \\Omega_p}(n - r), \\qquad\n" "F(n) = \\prod_{p \\le z} F_p(n),$$\n\n" "and sift the **multiset** $\\mathcal A = \\{F(n) : 1 \\le n \\le \\lfloor X \\rfloor\\}$,\n" "repeated values counted with multiplicity, as the cited theorem's sequence\n" "convention permits. Modulo a prime $q \\le z$ the factor $F_q(n)$ is\n" "$\\prod_{r \\in \\Omega_q}(n - r)$ and every other factor is 1, so $q \\mid F(n)$\n" "exactly when $n \\bmod q \\in \\Omega_q$; for squarefree $d \\mid P$, $d \\mid F(n)$\n" "exactly when $n$ lies in one of the $g(d) = \\prod_{p \\mid d} g(p)$ classes mod\n" "$d$ assembled from the $\\Omega_p$. The divisibility count is therefore the\n" "Chinese-remainder residue count, $|\\mathcal A_d| = g(d)X/d + r_d$ with\n" "$|r_d| \\le g(d)$ for every $d \\mid P$ and no restriction on the size of $d$\n" "(for $d > X$ the count is at most $g(d)$ and $g(d)X/d < g(d)$). With\n" "$g(p) \\le \\kappa$ and $g(p) < p$ the remaining bounded-density hypotheses\n" "follow with constants depending on $\\kappa$, and Theorem 11.3 gives\n" "$S(X, \\Omega) \\ll_\\kappa X V(z)$. The bridge is the standard idempotent\n" "reduction and no new theorem; it was proposed in review #73 of return #49,\n" "derived and checked at $X = 10^5$ in return #1017, and re-checked on a two-band\n" "toy system in job #1917 of the solveathome record. For Theorem A, whose\n" "$\\Omega_p = \\{0, -2\\}$ is the same at every prime, the multiset\n" "$\\{n(n+2) : n \\le X\\}$ does the same work without idempotents, since\n" "$d \\mid n(n+2)$ exactly when $n \\bmod p \\in \\{0, -2\\}$ for every $p \\mid d$;\n" "for Theorem B the band-2 classes $\\{0, -2, 1, -1\\}$ differ from band 1's, and\n" "the plain product $\\prod_p \\prod_{r \\in \\Omega_p}(n - r)$ is not a valid\n" "encoding (it acquires divisibilities from the wrong prime), so the $F_p$ form\n" "is the one used. §§6.1, 9 and 11.2 consume one interface: Richert's\n" "divisibility-form theorem through this bridge. Corollary 1 is cited as the\n" "place the residue-class statement appears in print, not as the derivation\n" "relied on, and the representative slip in its printed proof (§11.2) is no\n" "longer load-bearing for either theorem.\n\n") # E3 section 6.4: exp(O(1)) in the displayed equality; the ledger description rep("$$\\exp\\!\\left(-\\sum g(p)/p\\right) = \\frac{A^4 (\\ell\\ell)^4}{(\\ln y)^4\n(\\ell\\ell\\ell)^2}, \\qquad", "$$\\exp\\!\\left(-\\sum g(p)/p\\right) = e^{O(1)}\\,\\frac{A^4 (\\ell\\ell)^4}{(\\ln y)^4\n(\\ell\\ell\\ell)^2}, \\qquad") rep("$M(f) = 2$, $h_f = 0$. Every coefficient cancels separately:", "$M(f) = 2$, $h_f = 0$. The factor $e^{O(1)}$ is the bounded term of (6.3), which\n" "for fixed $A$ tends to $e^{-C}$ with $C = -2\\ln 2 + 2M - 1/2 = -1.3633$ below,\n" "so the display is an asymptotic comparability, not an identity; the\n" "log-exponent assembly checked numerically below has the constants removed and\n" "does not test that constant. Every coefficient cancels separately:") rep("The two ledger\nconstants printed in this note are different objects: $-2.529967$ (§6.3) is the\n" "limit of the full sum with $g(2) = 2$ and $g(3) = 2$ counted, and $-1.3633$ here\n" "is the same limit with the actual $g(2) = 1$ and with $p = 3$ removed to band 1,\n" "so $-2.529967 + \\tfrac12 + \\tfrac23 = -1.3633$.", "The two ledger\nconstants printed in this note are different objects: $-2.529967$ (§6.3) is the\n" "limit of the sum over $5 \\le p \\le \\sqrt{y}$, with the primes 2 and 3 excluded\n" "($g(2) = g(3) = 0$ there), and $-1.3633$ here is the full ledger, which adds\n" "the actual contributions $g(2)/2 + g(3)/3 = \\tfrac12 + \\tfrac23 = \\tfrac76$ of\n" "the two band-1 primes (placing $p = 3$ in band 1 does not remove its term from\n" "the sum), so $-2.529967 + \\tfrac12 + \\tfrac23 = -1.3633$. (The 2026-09-11 text\n" "described $-2.529967$ as the sum with $g(2) = g(3) = 2$ counted; that quantity\n" "is $-0.8633$, and the description was wrong by exactly $\\tfrac76$; returns\n" "#1015 and #1017 of the solveathome record.)") # E4 section 9: the finite example is the old-cutoff greedy variant; the theorem's own choices quoted rep("and the greedy mop-up starts above 997; the theorem's own construction run\n" "literally at $m = 200000$ ($a_p = 0$ for all $p \\le 447$, then one prime per\n" "survivor) reaches $y' = 10711$ and ratio $2.0123$, so the random stage costs\n" "about one percent of the ratio rather than buying it.", "and the greedy mop-up starts above 997. The run previously quoted beside it\n" "($a_p = 0$ for all $p \\le 447$, a new prime only for survivors not already\n" "covered, $y' = 10711$, ratio $2.0123$) is the **old-cutoff greedy variant**,\n" "not the theorem's construction: the proof above fixes $z = \\sqrt{m}/\\ln m$ and\n" "injects **every** survivor into a distinct prime. Run with those choices at\n" "$m = 200000$ ($z = 36$, 6210 survivors, 6210 primes, largest $61871$) the cover\n" "is complete and the ratio is $0.2929927$; at $m = 2 \\times 10^6$ ($z = 97$,\n" "38523 survivors, largest prime $461183$) it is $0.3325274$; both covers were\n" "verified with zero uncovered points (return #1536 of the solveathome record,\n" "which also reproduces the four-row table of review 15 of return #32:\n" "$2.0123224$, $1.0326326$, $1.9399755$, $0.2929927$ for the two cutoffs and two\n" "rules). The greedy skip, not the random stage, is what separates the ratios\n" "near 2 from the theorem's own $0.29$.") rep("consuming one estimate without an artifact. Theorem A consumes every\n" "ingredient as a published statement (the sieve input with the repaired proof\n" "of §11.2, cited to Halberstam and Richert Theorem 2.2 in residue-class form),", "consuming one estimate without an artifact. Theorem A consumes every\n" "ingredient as a published statement (the sieve input in Richert's\n" "divisibility form through the multiset $\\{n(n+2)\\}$ of §6.1, cross-referenced\n" "to Halberstam and Richert Theorem 2.2),") rep("**1. The survivor count, from Corollary 1 consumed as a theorem.** Apply the\n" "corollary quoted in §6.1 with $X = m$,", "**1. The survivor count, from the fundamental lemma consumed as a theorem.**\n" "Apply Richert's Theorem 11.3 through the bridge of §6.1, on the multiset\n" "$\\{n(n+2) : n \\le m\\}$, with $X = m$,") # E5 section 10: the control-bias sentence rep("the exponent measured on the 22\ntrusted terms of A144311 is $1.50 \\pm 0.05$ in the $y$-frame, and the estimator\n" "that produced it is provably biased upward by about $+0.28$ on a control object\n" "whose answer is 1 (`research/exponent-control.md` §§1, 5). A measured exponent\n" "with a known upward bias of that size is not an argument about the limit, and\n" "it is recorded here only so that the reader knows which end of the interval the\n" "data sits at.", "the exponent measured on the 22\ntrusted terms of A144311 is $1.50 \\pm 0.05$ in the $y$-frame. The same\n" "estimator, run on the one-class control $g(P(y))$, returns about $+0.28$ above\n" "the conjectured Maier and Pomerance exponent $1 + o(1)$; the proven upper\n" "exponent there is Iwaniec's 2, so the $+0.28$ is a calibration against a\n" "conjectural control value, not a proved bias, and carrying it over to $G_2$\n" "adds a modelling assumption with an unquantified systematic error\n" "(`research/exponent-control.md` §§1, 5; the same repair was made in\n" "`paper/beta2-note.md`, return #20 and review #68). A finite fit of that kind is\n" "not an argument about the limit, and it is recorded here only so that the\n" "reader knows which end of the interval the data sits at.") # E6 threshold and effectivity wording (sections 8 and 10) rep("A genuine explicit $y_0$ is\nlarger by an amount this project has not computed, so Theorem B as stated is\nineffective.", "A genuine explicit $y_0$ is\nlarger by an amount this project has not computed, so Theorem B as stated here\n" "carries no certified threshold; $10^{134.1}$ is a geometric onset estimate for\n" "the $A = 4.05$ choice, not a universal threshold of the bound, and rounding H2's\n" "root upward does not turn the remaining checks into inequalities (H5 uses a\n" "truncated asymptotic for $\\rho$, not an upper bound; the sieve constant and the\n" "$O(\\sqrt y)$ term are unpriced).") rep("**They are not effective.** Theorem A's constant is effective; its threshold\n" "is not stated. Theorem B's $y_0 = 10^{134.1}$ is a floor with every implied\n" "constant set to 1 (§8), and no effective version exists.", "**They carry no certified numerical threshold.** Theorem A's constant is\n" "effective; its threshold is not stated. Theorem B's $y_0 = 10^{134.1}$ is a\n" "geometric onset estimate for the displayed choice $A = 4.05$ with every implied\n" "constant set to 1 (§8), not a universal threshold. No ineffective input remains\n" "after the Chebotarev step was removed: the upper sieve, the Mertens and prime\n" "number theorem inputs and the smooth-number estimate all have quantitative\n" "forms, so this draft does not supply numerical constants; it does not show\n" "that none can be supplied.") # E7 section 11.2: status paragraph rep("### 11.2 Halberstam and Richert Theorem 2.2, unread (Theorem B)\n\n", "### 11.2 Halberstam and Richert Theorem 2.2, unread (Theorem B)\n\n" "*Status after review #73 (2026-09-13).* §6.1 now consumes Richert's Theorem\n" "11.3 in its own divisibility form through the multiset bridge stated there, so\n" "the representative-map repair of the source's printed proof recorded below is a\n" "record of a defect in that proof and is no longer load-bearing for either\n" "theorem; §§6.1, 9 and this section state one interface. The unread 1974 page\n" "remains the residual it was.\n\n") # E8 appendices: stale c_0 row, new provenance rows, Appendix B item 4 rep("| $c_0 = 1/(8C_3)$ | §9 |", "| $c_0 < 1/(8 C_1 C_2 e^{-2\\gamma})$ (the 2026-08-28 text had $1/(8C_3)$ with $C_3$ undefined) | §9 |") rep("| certified $479{,}339$ at $y = 5003$ | §10 |", "| $\\mathrm{A072753}(3..6) = 2, 4, 10, 24$; $6a + 6 = 18, 30, 66, 150$; $h_2(30) = 18$, $h_2(210) = 30$; $G_2 = 12, 30, 42, 66, 108$ | §2 | `fresh1917.py`, job #1917 of the solveathome record; OEIS A072753 %S/%F, A288815, A144311 read 2026-09-23 |\n" "| ratios $0.2929927$ ($m = 2 \\times 10^5$, $z = 36$) and $0.3325274$ ($m = 2 \\times 10^6$, $z = 97$), injective rule; $2.0123224$ old-cutoff greedy | §9 | `cert1902.py`, return #1536 of the solveathome record; review 15 of return #32 |\n" "| certified $479{,}339$ at $y = 5003$ | §10 |") old_b4 = "§10 above quotes 356,712 (via `research/G2-STATE.md` §3a) and\n 479,339 (via `two-class-lower-bounds.md` §0), which mixes the two; the\n gap-convention values are 356,712 and 479,340." if s.count(old_b4) == 1: rep(old_b4, "§10 above quotes 356,712 (via `research/G2-STATE.md` §3a) and\n 479,340 (via `two-class-lower-bounds.md` §0, whose table cell prints\n 479,339 for $G_2 - 1$), the gap-convention values for both.") else: print('WARN Appendix B item 4 anchor not found; left as is', file=sys.stderr) # E9 section 1.2 heading and absence claim rep("**The lower side was empty until 2018 made it free.**", "**The lower side, before 2018: containment only.**") rep("Feeding (1.1) through that inequality gives the first lower bound of any\nkind recorded for a two-class Jacobsthal function, per the audit in\n`research/two-class-lower-bounds.md` §3.", "Feeding (1.1) through that inequality gives the strongest free lower bound\nrecorded for a two-class Jacobsthal function; older one-class bounds transfer\n" "the same way and trivial finite bounds exist independently, so the absence\nclaim is scoped to the dated search of `research/two-class-lower-bounds.md` §3\n" "for an explicitly stated bound in this convention.") # E10 endpoints floor(m) + 1 (sections 3 and 7) rep("$G_2(P(y)) \\ge m + 1$", "$G_2(P(y)) \\ge \\lfloor m \\rfloor + 1$", count=2) # E11 section 11.4 falsifier rows rep("| Corollary 1's cardinality-only dependence | a re-read showing otherwise | read at primary text; representative repair checked in section 11.2, with the imported sieve statement retaining its source status |", "| the divisibility-form interface (§6.1 bridge) | a squarefree $d \\mid P(z)$ with $\\lvert\\,\\lvert\\mathcal A_d\\rvert - g(d)X/d\\,\\rvert > g(d)$ | yes: derivation in §6.1; all 2178 squarefree $d \\le 5000$ at $X = 10^5$, $z = 316$ and $54$, largest ratio $0.967$ (return #1017); two-band toy system $p \\in \\{5, 7\\}$, zero mismatches (job #1917) |") rep("| $\\kappa = 4$ and $g(p) < p$ | an overlap above $p = 3$ | yes, enumeration to 1000: only $p = 2, 3$, both in band 1 |", "| $\\kappa = 4$ and $g(p) < p$ | an overlap of the two displayed sets above $p = 3$ | yes, enumeration to 1000: the two sets meet only at $p = 3$, and $g(p) \\ge p$ for the unspecialised union only at $p = 2, 3$, both in band 1; an overlap above 3 would refute the disjointness and could move the ledger, not the bound $g \\le 4$ (overlap reduces cardinality) |") # E12 record line s = s.rstrip('\n') + "\n\n*Revision record, 2026-09-23 (job #1917 of the solveathome record, after review #73 of return #49): statement-level repairs to §§1.2, 2, 6.1, 6.4, 8, 9, 10, 11.2, 11.4 and Appendices A and B; the sieve interface is stated against Richert's divisibility-form theorem through the multiset bridge, the ledger description is corrected by exactly $\\tfrac76$, the OEIS row is normalised, the finite example is relabelled, and the threshold and control-bias language is re-scoped. No theorem, constant or grade changed.*\n" io.open(dst, 'w', encoding='utf-8', newline='').write(s) print('edits', n_edits, 'bytes', len(s.encode('utf-8')), 'sha256', hashlib.sha256(s.encode('utf-8')).hexdigest())