"""THE NINE-SPOKE WHEEL - instrument (2026-07-22, second walk). Claims: (1) mod 54, multiplication by 4 sends the nine fertile branch classes {4,16,10,40,52,46,22,34,28} around ONE 9-cycle (ord_27(4)=9); (2) therefore every fertile ray, per nine consecutive branches, births odd children covering ALL SIX fertile seed classes mod 18 exactly once (plus three steriles) - per-ray equidistribution of the next generation's entry classes is FORCED by rotation.""" def main(): # claim 1: the 9-cycle cyc, v = [], 4 for _ in range(9): cyc.append(v); v = (4 * v) % 54 assert v == 4 and len(set(cyc)) == 9, cyc print("mod-54 wheel (one orbit):", "->".join(map(str, cyc))) # claim 2: children per spoke fertile_children, sterile = [], [] for b in cyc: u18 = ((b - 1) // 3) % 18 (sterile if u18 % 3 == 0 else fertile_children).append(u18) print("fertile child classes mod 18:", sorted(fertile_children)) print("sterile spokes:", len(sterile)) assert sorted(fertile_children) == [1, 5, 7, 11, 13, 17] assert len(sterile) == 3 # live check on real rays: 50k fertile seeds, 9 branches each for u in range(1, 100_000, 2): if u % 3 == 0: continue v, bs = u, [] while len(bs) < 9: v *= 2 if v % 6 == 4: bs.append(v) kids = sorted(((b - 1) // 3) % 18 for b in bs if ((b - 1) // 3) % 3 != 0) assert kids == [1, 5, 7, 11, 13, 17], (u, kids) print("33,334 real rays x 9 branches: every ray births all six fertile") print("classes exactly once per revolution - zero exceptions") if __name__ == "__main__": main()