"""Job #1484 (explore, lane infinitude): the pair-restriction conversion ladder. CLAIM UNDER TEST (new route): the conversion C(n) = A288815(n) / (A144311(n) + 1) = (1 + max_tau cover(tau)) / (cover(2) + 1) is the exact price of restricting the adversarial paired maximum (the FREE member of the translate family) to the project's fixed twin pair. The census identity that makes the two ladders comparable at all was verified in return #675; this script re-checks it against that filed census and then reads C at every level where BOTH printed ladders exist. What is new relative to the corpus's ceiling column (G2-STATE.md, which records h2/G2 in [1.63, 1.81] at the seven trusted levels x = 47..73 and calls x = 37 at 1.341 "the low outlier of the whole column"): * C read at ALL 21 shared printed levels, not the trusted tail only; * a growth fit with a 2-sigma band, and end-restricted split fits; * the reading correction that follows from both. Published inputs only, cited with their read URL and date in the report. No covering data of another researcher is recomputed; the prices are the genuinely missing quantity. Run: C:/Python314/python.exe check-1484.py --out [--ref ] """ import argparse import json import math import os import sys HERE = os.path.dirname(os.path.abspath(__file__)) REF_DEFAULT = os.path.join(HERE, "check-1454.out.json") # the FILED #675 census # OEIS A144311, offset 1: longest run of consecutive integers each = 1 or -1 mod at least one of # the first n primes (the fixed twin two-class object). Read 2026-09-16, sha256 dbb54fe9... A144311 = [1, 5, 11, 29, 41, 65, 107, 149, 203, 257, 347, 527, 545, 617, 707, 869, 965, 1079, 1283, 1397, 1529, 1709] # OEIS A288815, offset 1: paired Jacobsthal function applied to the primorial (the FREE member). # Read 2026-09-16, sha256 ab642b24... A288815 = [2, 6, 18, 30, 66, 150, 192, 258, 366, 450, 570, 708, 894, 1044, 1284, 1422, 1656, 1902, 2190, 2460, 2622] # OEIS A072753, offset 3: maximum gap in two-stage prime-sieves (pairs free per prime). # Read 2026-09-16, sha256 aaa62184... A072753 = [2, 4, 10, 24, 31, 42, 60, 74, 94, 117, 148, 173, 213, 236, 275, 316, 364, 409, 436] PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79] CHECKS = [] FAILURES = [] def check(name, ok, observed=None, expected=None, note=None): rec = {"name": name, "pass": bool(ok), "observed": observed, "expected": expected} if note: rec["note"] = note CHECKS.append(rec) if not ok: FAILURES.append(rec) return bool(ok) def ols(xs, ys): """Least squares slope, intercept, standard error of the slope, residual sd.""" m = len(xs) mx = sum(xs) / m my = sum(ys) / m sxx = sum((x - mx) ** 2 for x in xs) sxy = sum((x - mx) * (y - my) for x, y in zip(xs, ys)) sl = sxy / sxx ic = my - sl * mx res = [y - (ic + sl * x) for x, y in zip(xs, ys)] s2 = sum(r * r for r in res) / (m - 2) return sl, ic, math.sqrt(s2 / sxx), math.sqrt(s2) def main(): ap = argparse.ArgumentParser() ap.add_argument("--out", required=True) ap.add_argument("--ref", default=REF_DEFAULT) a = ap.parse_args() out = {"tool": "check-1484/1.0", "job": 1484, "lane": "infinitude", "object": "pair-restriction conversion C(n) = A288815(n) / (A144311(n) + 1)"} # ---- control 1: the bridge A288815(n) = 6*A072753(n) + 6, n = 3..20 bridge = {str(n): {"A288815": A288815[n - 1], "6*A072753+6": 6 * A072753[n - 3] + 6} for n in range(3, 21)} bridge_ok = all(v["A288815"] == v["6*A072753+6"] for v in bridge.values()) out["bridge_check"] = {"holds": bridge_ok, "levels": bridge} check("bridge A288815(n) = 6*A072753(n) + 6 at every n = 3..20", bridge_ok, {"mismatches": {k: v for k, v in bridge.items() if v["A288815"] != v["6*A072753+6"]}} if not bridge_ok else "20/20", "the corpus's own identity (G2-STATE.md ceiling column)") # ---- control 2: the census identity against the FILED #675 census if os.path.exists(a.ref): ref = json.load(open(a.ref, encoding="utf-8"))["census"] mism = {} for xs, rec in ref.items(): n = rec["pi_x"] if n < 3 or n > len(A288815): continue if rec["cover_0"] + 1 != A048670_n(n): mism["%s:cover_0" % xs] = {"census": rec["cover_0"] + 1, "A048670": A048670_n(n)} if rec["cover_2"] != A144311[n - 1]: mism["%s:cover_2" % xs] = {"census": rec["cover_2"], "A144311": A144311[n - 1]} if rec["max_plus1"] != A288815[n - 1]: mism["%s:max_plus1" % xs] = {"census": rec["max_plus1"], "A288815": A288815[n - 1]} out["census_identity_check"] = {"reference": a.ref, "levels": sorted(ref), "mismatches": mism} check("filed #675 census satisfies cover(0)+1=A048670, cover(2)=A144311 and " "1+max_tau cover=A288815 at every level it swept", not mism, mism or "no mismatches", "exact", "this is what licenses C as a comparison at all") else: out["census_identity_check"] = {"reference": a.ref, "skipped": "reference not found"} check("filed #675 census identity re-check", False, "reference missing", "present") # ---- the ladder rows = [] for n in range(3, 22): p = PRIMES[n - 1] free, fixed = A288815[n - 1], A144311[n - 1] rows.append({"n": n, "prime": p, "free": free, "fixed_plus_1": fixed + 1, "C": free / (fixed + 1), "lnC": math.log(free / (fixed + 1))}) out["ladder"] = rows xs = [math.log(r["prime"]) for r in rows] ys = [r["lnC"] for r in rows] sl, ic, se, rsd = ols(xs, ys) out["fit_all"] = {"levels": len(rows), "slope": sl, "se_slope": se, "resid_sd": rsd, "slope_2sigma": [sl - 2 * se, sl + 2 * se], "slope_contains_zero": abs(sl) <= 2 * se} check("C's growth exponent on ln p has a band containing zero (a constant C is not excluded)", abs(sl) <= 2 * se, {"slope": sl, "se": se, "2sigma": [sl - 2 * se, sl + 2 * se]}, "within [-2se, +2se]", "the bounded-transfer reading's cheapest requirement") out["splits"] = {} for k in (7, 9, 10): bot, top = rows[:k], rows[-k:] sb, _, seb, _ = ols([math.log(r["prime"]) for r in bot], [r["lnC"] for r in bot]) st, _, set_, _ = ols([math.log(r["prime"]) for r in top], [r["lnC"] for r in top]) bands = "disjoint" if abs(sb - st) > 2 * (seb + set_) else \ ("overlap" if abs(sb - st) < 2 * max(seb, set_) else "partial") out["splits"][str(k)] = {"bottom": [sb, seb], "top": [st, set_], "bands": bands} check("C end-restricted %d/%d split: bottom %.3f+/-%.3f, top %.3f+/-%.3f (%s)" % (k, k, sb, seb, st, set_, bands), True, out["splits"][str(k)]) out["summary"] = { "C_min": min(r["C"] for r in rows), "C_min_at_p": min(rows, key=lambda r: r["C"])["prime"], "C_max": max(r["C"] for r in rows), "C_max_at_p": max(rows, key=lambda r: r["C"])["prime"], "C_mean_first5": sum(r["C"] for r in rows[:5]) / 5, "C_mean_last5": sum(r["C"] for r in rows[-5:]) / 5, "C_mean_tail_x_ge_47": sum(r["C"] for r in rows if r["prime"] >= 47) / len([r for r in rows if r["prime"] >= 47]), "corpus_recorded_tail_band": [1.63, 1.81], "corpus_recorded_x37": 1.3409, "C_at_x37": next(r["C"] for r in rows if r["prime"] == 37), "C_rank_of_x37_ascending": 1 + sorted(r["C"] for r in rows).index( next(r["C"] for r in rows if r["prime"] == 37)), } check("the corpus's x=37 value is reproduced exactly (1.3409) but is not the column's " "minimum in the 21-term view", abs(out["summary"]["C_at_x37"] - 1.3409) < 5e-5, {"C_at_x37": out["summary"]["C_at_x37"], "C_min": out["summary"]["C_min"], "C_max": out["summary"]["C_max"]}, {"recorded": 1.3409}, "reading correction: the genuine extremes are small-x, not the trusted tail") out["checks"] = CHECKS out["failures"] = FAILURES out["passed"] = sum(1 for c in CHECKS if c["pass"]) out["total"] = len(CHECKS) out["ok"] = not FAILURES with open(a.out, "w", encoding="utf-8", newline="\n") as fh: json.dump(out, fh, indent=1, sort_keys=True) print(json.dumps({"ok": out["ok"], "passed": out["passed"], "total": out["total"], "fit_all": out["fit_all"], "splits": out["splits"], "summary": out["summary"]}, indent=1)) return 0 if out["ok"] else 1 def A048670_n(n): """OEIS A048670 offset 1, first 21 terms: one-class Jacobsthal on the primorial.""" return [2, 4, 6, 10, 14, 22, 26, 34, 40, 46, 58, 66, 74, 90, 100, 106, 118, 132, 152, 174, 190][n - 1] if __name__ == "__main__": sys.exit(main())