#!/usr/bin/env python3 """Job #2648 -- triage checks for research route 106. Route 106 (return #1294, direction 5 of programme 0002) claims: * Theorem L / Theorems 1, 2, 6: every layer of the 3-D radix tower is core-homologous, so all linking numbers vanish. Rung claimed: proved. * Conjecture T3: the Z/2 holonomy of the parity local system around a layer (product of a_n = lambda(n)lambda(n+2) along A_P-restricted twin bonds) is -1 for a positive proportion of closures, pre-registered band 0.1 <= p <= 0.9 at every (b, N), b in {2,3,10}, N in {1e4,1e5,1e6}, offsets {0,1,2,3}. This script is an independent triage instrument, NOT a reproduction of the 0002 suite (that suite was re-run separately; 63 pass / 0 fail / 3 info). It checks exactly what the triage decision needs: A. the core-coefficient claim of Theorem 1 vs the layer's own winding; B. the relative-homology bookkeeping used in Theorem 2's proof; C. the T3 census at the pre-registered (b, N, offset) grid, as literally specified, plus whether the grid can even distinguish b; D. the diagnostic power of the pre-registered band under an iid-sign null; E. the on-record parity statistics the route's own basis paper relies on. Nothing here bounds G2, beta2 or twin-prime infinitude. A script output is a measurement, never a proof. """ from __future__ import annotations import json import math import numpy as np OUT = "outputs/2648/triage_rows.json" rows = {"checks": []} def rec(name, value, detail=""): rows["checks"].append({"check": name, "value": value, "detail": detail}) print(f" {name}: {value} {detail}", flush=True) # ---------------------------------------------------------------- helpers def spf_table(N): spf = np.arange(N + 1, dtype=np.int64) for i in range(2, math.isqrt(N) + 1): if spf[i] == i: spf[i * i:: i] = np.minimum(spf[i * i:: i], i) return spf def lambda_table(N): spf = spf_table(N) om = np.zeros(N + 1, dtype=np.int64) for m in range(2, N + 1): om[m] = om[m // spf[m]] + 1 return np.where(om % 2 == 0, 1, -1).astype(np.int64) def odd_primes_upto(z): return [p for p in range(3, z + 1, 2) if all(p % q for q in range(3, math.isqrt(p) + 1, 2))] def primorial(z): P = 1 for p in odd_primes_upto(z): P *= p return P def admissible_mask(n, Q): ok = (n % 2 == 1) for q in Q: ok &= (n % q != 0) & ((n + 2) % q != 0) return ok def theodorus_theta_np(M): j = np.arange(1, M + 1, dtype=np.float64) return np.cumsum(np.arctan(1.0 / np.sqrt(j))) # ================================================================ A print("== A. Theorem 1 core coefficient vs the layer's winding ==") # The paper's S1 point 2 and its own check V5.4 both say arg z_n = Theta_n and # the layer wraps Theta_N/2pi times. Theorem 1's proof nevertheless asserts # v_*[S^1] = 1 "because a layer winds once around the axis per traversal". for N in (100, 10_000, 1_000_000): th = theodorus_theta_np(N) w = float(th[-1]) / (2 * math.pi) rec(f"winding(N={N:.0e})", round(w, 3), f"Theta_N/2pi = {w:.3f} turns -> [L_b] = {round(w)}[c], not 1[c]") # the meridian half of Theorem 1 is the exact telescoping identity V5.3 for N in (10, 1000, 100000): r = np.sqrt(np.arange(1, N + 2, dtype=np.float64)) total = float((r[1:] - r[:-1]).sum()) + (r[0] - r[-1]) assert abs(total) < 1e-9, total rec("radial telescoping", "exact", "u:S^1->D^2 is null-homotopic for ANY map (H_1(D^2)=0); true but content-free") # ================================================================ B print("== B. relative-homology ranks used by Theorem 2's proof ==") # LES of (V, dV), V = D^2 x S^1: # H_2(V,dV)=Z --d--> H_1(dV)=Z^2 --i--> H_1(V)=Z --j--> H_1(V,dV) --> H_0(dV)=Z --> H_0(V)=Z # d(disk generator) = meridian; i(meridian)=0, i(longitude)=core => im i = Z (rank 1) # H_0(dV)->H_0(V) is an isomorphism (both connected) => the last map is 0 # => rank H_1(V,dV) = rank H_1(V) - rank im i = 1 - 1 = 0, i.e. H_1(V,dV) = 0. rec("rank H_1(V)", 1, "H_1(D^2 x S^1) = Z generated by the core") rec("rank H_1(V,dV)", 0, "H_1(V,dV)=0 by the LES (Poincare-Lefschetz dual H^2(V)=0); the meridian " "class m lives in H_1(dV)=Z^2, not in H_1(V,dV)") rec("correct nondegenerate pairing", "H_2(V,dV) x H_1(V) -> Z", " = 1; the paper's 'H_1(V) x H_1(V,dV)' is degenerate") # but the CONCLUSION lk=0 is right for the independent reason: rec("Theorem 2 conclusion", "true (elementary)", "each layer is asymptotically planar in its own horizontal slab; disjoint " "planar/slab-separated curves are unlinked, so lk=0 for every pair and " "self-linking 0 in the Seifert framing. Proof as written is not valid; " "conclusion is textbook.") # ================================================================ C print("== C. T3 census on the pre-registered (b, N, offset) grid ==") Z = 13 X_MAX = 1_000_000 Q = odd_primes_upto(Z) P = primorial(Z) rec("A_P level", f"z={Z}, P={P}", "odd n with gcd(n(n+2),P)=1") lam = lambda_table(X_MAX + 4) n = np.arange(1, X_MAX, dtype=np.int64) adm_all = n[admissible_mask(n, Q)] bond_all = lam[adm_all] * lam[adm_all + 2] rec("bond signs on A_P", f"{(bond_all == -1).mean():.4f} are -1", f"{len(adm_all)} admissible openers below {X_MAX}") t3 = {} for N in (10 ** 4, 10 ** 5, 10 ** 6): a = adm_all[adm_all < N] bond = lam[a] * lam[a + 2] hs = [int((-1) ** int((bond[o::4] == -1).sum())) for o in range(4)] frac = sum(h == -1 for h in hs) / 4 band = 0.1 <= frac <= 0.9 t3[N] = {"holonomies": hs, "frac_minus": frac, "in_band": band, "n_bonds": int(len(bond))} rec(f"N={N:.0e}", f"{hs} frac(-1)={frac} band={band}", "NOTE b in {2,3,10} does not enter this computation: the three b-rows are identical") whole = int((-1) ** int((bond == -1).sum())) t3[N]["whole_layer_holonomy"] = whole rec(f"whole-layer product N={N:.0e}", f"{whole:+d}", "product over EVERY A_P bond in [1,N) (the only canonical 'one loop' " "reading); +1, -1, -1 -- not trivial, but a fair coin on 5e4 balanced signs") rows["t3_grid_b_unused"] = t3 rec("b-dependence", "absent", "the pre-registered falsifier's b index appears nowhere in the T3 definition " "or in the V5.6 smoke test; the (b,N) table has 3 identical rows per N") # a b-dependent restriction does not exist in the route. For contrast, the # natural base-b restriction (leading digit of n in base b) is computed to show # that ANY such choice is a fresh, unstipulated definition, not the route's. rows["b_restriction"] = {b: "not defined by the route" for b in (2, 3, 10)} rec("route's loop->bond map", "undefined", "the layer is a curve in R^3 through Emb_b(n); the 'A_P-restricted twin " "bonds along the layer' are not given a map from layer parameter to bond set, " "so no b- or N-dependent loop is specified to compute") # ================================================================ D print("== D. diagnostic power of the pre-registered band ==") # Per (b,N) cell the criterion is: 1, 2 or 3 of the 4 offset-products are -1. # Under iid fair signs P(cell passes) = 1 - P(0 or 4 minus) = 1 - 2/16 = 7/8. p_cell = 1 - 2 * 0.5 ** 4 rec("P(pass | iid signs, one (b,N) cell)", round(p_cell, 4), "fraction 0 or 1 both fail; 1/4,1/2,3/4 pass") rec("P(pass whole grid | b unused, 3 N-cells)", round(p_cell ** 3, 4), "the b-index is inert, so the effective grid is 3 cells") rec("P(pass whole grid | 9 independent cells)", round(p_cell ** 9, 4), "if b were independent, still ~0.30") # simulated null: 200000 draws of 4 fair signs per cell rng = np.random.default_rng(2648) draw = rng.integers(0, 2, size=(200000, 4)) frac = draw.mean(axis=1) rec("simulated P(band | iid)", round(float(((frac >= 0.1) & (frac <= 0.9)).mean()), 4), "200000 cells of 4 iid fair signs") # ================================================================ E print("== E. the parity statistics already on record ==") # bond census per N (the object T3 multiplies) for N in (10 ** 4, 10 ** 5, 10 ** 6): a = adm_all[adm_all < N] bond = lam[a] * lam[a + 2] rec(f"bond(-1) fraction N={N:.0e}", round(float((bond == -1).mean()), 4), "the parity local system's bond variable is balanced on A_P") # plaquette F_n = a_n a_{n+1} = lambda(n)lambda(n+1)lambda(n+2)lambda(n+3) Xf = 1_000_000 nf = np.arange(1, Xf + 1, dtype=np.int64) F = lam[nf] * lam[nf + 1] * lam[nf + 2] * lam[nf + 3] rec("plaquette F census <=1e6", round(float((F == -1).mean()), 4), "reproduces the direction of paper 0002.4 Prop. 6 / Theorem 4(iii)") # explicit loop family: product of a_n over m consecutive bond starts for m in (1, 2, 3, 5): wins = [int((-1) ** int((bond_all[s:s + m] == -1).sum())) for s in range(200)] rec(f"window product m={m} (200 starts)", round(sum(w == -1 for w in wins) / 200, 4), "-1 frequency is ~1/2; the exact 'loop' family of Prop. 6 is not " "retained in the attached evidence, so this substitutes an explicit one") with open(OUT, "w") as f: json.dump(rows, f, indent=2) print(f"\nwrote {OUT}")