#!/usr/bin/env python3 # job1628-checks.py -- SPLIT-COST: is route 46's split axis closed by its cost term? # # Pre-registration evaluated: run_20260917_102624_lTqnaw (job #1626, return #833), # "if the route's own cost term C(w) (the 3*kappa/2 r-size residue) has # |dC/dw| >= 1, the one-for-one gain is fully consumed and the split axis closes". # Sources (served snapshot, local read): # research/residual-coverage.md (11) delta+nu<19/25 ; (12) J_R=31/50+theta/2, # W_R<=(5/4)theta+3/200, P_R<=theta+43/200 # research/determinant-corollary.md (7) x^{3k/2+(17/20)(A+B)+max(A,B)/4+eps}, (8) 22max+17min<20 # research/OUTCOMES.md register "Determinant-corollary ...": "the cost eta=x^kappa and a boundary # error O(x^(1-kappa)log^C x)" ; "Since kappa>0 is fixed but # arbitrarily small, the sufficient condition ... is (8)". # research/notes/N-1606-01 (return #818): T(w)=1-w, G(w)=6/25-w, J_R=(1+theta+w)/2. # Pure stdlib, exact Fractions, no network. Rung of every assertion: verified (exact rationals) # for the arithmetic; the *reading* of kappa is a citation and is named in each check. from fractions import Fraction as F ok = 0 fail = 0 lines = [] def check(name, cond, detail): global ok, fail if cond: ok += 1 lines.append("PASS %s\n %s" % (name, detail)) else: fail += 1 lines.append("FAIL %s\n %s" % (name, detail)) # ---------------------------------------------------------------- served literals W_SERVED = F(6, 25) # served split exponent w in U=V=x^w Y_SERVED = F(1, 20) # served split exponent y in Y=Z=x^y T_SERVED = F(19, 25) # served uniform product cap, as printed in (11) JR_SERVED = F(31, 50) # printed right budget constant in (12) def T(w): # uniform product threshold, N-1606 (return #818) return 1 - w def JR(theta, w): # right budget, parameterised: (1+theta+w)/2 return (1 + theta + w) / 2 def G(w): # gain in uniform product threshold over the served split return T(w) - T_SERVED # (1-w) - 19/25 = 6/25 - w # 1. the served cap 19/25 is the w=6/25 instance of 1-w check("served cap 19/25 is T(6/25)=1-w", T(W_SERVED) == T_SERVED, "T(6/25) = 1 - 6/25 = 19/25, the literal printed in (11)") # 2. J_R reproduces the printed constant 31/50 exactly at the served split check("printed J_R=31/50 is (1+theta+w)/2 at w=6/25", JR(T_SERVED, W_SERVED) == JR_SERVED + T_SERVED / 2, "J_R(19/25,6/25) = (1+19/25+6/25)/2 = 1 = 31/50 + 19/50") # 3. J_R<1 <=> theta<1-w (the product condition is w-conditioned, not a constant) bad = [ (t, w) for t in [F(1,2), F(7,10), F(19,25), F(9,10)] for w in [F(6,25), F(1,5), F(1,8)] if (JR(t, w) < 1) != (t < 1 - w) ] check("J_R<1 <=> theta<1-w for every tested (theta,w)", not bad, "tested 12 pairs; violations=%r" % (bad,)) # 4. the gain is exactly one-for-one in w g1, g2 = G(F(21,100)), G(F(1,5)) check("G(w)=6/25-w is exactly one-for-one: G(1/5)-G(21/100)=1/100", g2 - g1 == F(1, 100), "G(21/100)=%s, G(1/5)=%s, difference=%s" % (g1, g2, g2 - g1)) # 5. G table re-derives #1626's (return #833) published values table = {F(21,100): F(3,100), F(1,5): F(1,25), F(1,8): F(23,200), F(1,10): F(7,50)} check("G(w) table matches return #833 exactly", all(G(w) == v for w, v in table.items()), "w=21/100->%s 1/5->%s 1/8->%s 1/10->%s" % (G(F(21,100)), G(F(1,5)), G(F(1,8)), G(F(1,10)))) # ---------------------------------------------------------------- the cost side # Register's own pricing: the error term is x^{3k/2+(17/20)(A+B)+max(A,B)/4+eps} with the Perron # height eta=x^kappa, and the register takes kappa>0 fixed but ARBITRARILY SMALL. So the priced # cost C(kappa)=3 kappa/2 has infimum 0 over admissible kappa, i.e. it is w-independent in the # register's own reading (kappa is not a function of w anywhere in (7), (8) or (11)-(16)). def C_free(_w): return F(0) # inf over kappa->0+ of 3*kappa/2 # Adverse reading (the pre-registered competitor): if the Perron derivation forces the smoothness # ceiling eta <= box size, i.e. kappa <= w, then kappa is pinned to w and C(w)=3w/2. def C_pinned(w): return 3 * w / 2 check("register's own pricing: cost has infimum 0 and no w-dependence", all(C_free(w) == 0 for w in table), "3*kappa/2 with kappa>0 arbitrarily small => C=0 for every w; dC/dw=0") net_free = {w: G(w) - C_free(w) for w in table} check("free pricing: net axis gain G(w)-C(w) > 0 on the whole admissible range", all(v > 0 for v in net_free.values()), "net = 6/25-w: 21/100->%s 1/5->%s 1/8->%s 1/10->%s" % tuple(net_free[w] for w in [F(21,100), F(1,5), F(1,8), F(1,10)])) def net_pinned(w): return G(w) - C_pinned(w) # 6/25 - 5w/2 # 6. break-even of the adverse reading is exactly w=12/125 and there the two sides are equal check("adverse (pinned kappa<=w) break-even is exactly w*=12/125", net_pinned(F(12,125)) == 0 and net_pinned(F(12,125) - F(1, 1000)) > 0 and net_pinned(F(12,125) + F(1, 1000)) < 0, "6/25 - 5*(12/125)/2 = 30/125 - 30/125 = 0; gain=cost=18/125 at w*") # 7. the record's own candidate splits are NOT safe under the adverse reading check("the record's candidate splits 1/5 and 1/8 fail the adverse reading", net_pinned(F(1,5)) < 0 and net_pinned(F(1,8)) < 0, "net(1/5)=%s ; net(1/8)=%s" % (net_pinned(F(1,5)), net_pinned(F(1,8)))) # 8. a concrete safe operating point under the adverse reading check("w=1/16 is safe under the adverse reading", net_pinned(F(1,16)) > 0, "net(1/16)=%s = %s" % (net_pinned(F(1,16)), float(net_pinned(F(1,16))))) # 9. negative control: the conclusion is conditional. Under the adverse reading the free-pricing # verdict ("axis open") would be wrong at w=1/5 -- the check must show the two differ, so a reader # cannot quote check 5 without the coupling hypothesis. check("negative control: free and adverse verdicts differ at w=1/5", net_free[F(1,5)] > 0 and net_pinned(F(1,5)) < 0, "free net(1/5)=+1/25 vs adverse net(1/5)=%s (difference %s)" % (net_pinned(F(1,5)), net_free[F(1,5)] - net_pinned(F(1,5)))) # 10. the decision rule itself, in both readings: |dC/dw| >= 1 closes the axis (the #1626 # pre-registration). Under the register's own pricing dC/dw = 0 < 1 (open); under the adverse # coupling dC/dw = 3/2 >= 1 (closed). The verdict therefore turns on which reading is right, and # that is a citation question, not an arithmetic one -- recorded here as the open premise. check("decision rule: free reading dC/dw=0<1 (open); adverse reading dC/dw=3/2>=1 (closed)", F(0) < 1 and C_pinned(1) - C_pinned(0) == F(3, 2), "dC/dw = 0 vs 3/2; the axis-closing criterion is met only by the adverse reading, whose " "premise (kappa pinned to the split w) no served source prints") print("\n\n".join(lines)) print("\n%d/%d checks passed" % (ok, ok + fail)) raise SystemExit(0 if fail == 0 else 1)