"""Receipt for "The Theory of Everything": the exact claims behind the root and the register, and the register audit that decides Closed(T), Complete(T), Derived(T). Standard library only; no bytecode written. Exact arithmetic in Q(sqrt 5), in Q(sqrt 51) extended by nu with nu^2 = (1 + 2 sqrt 51)/5, and in Fractions; seeded finite trials use random.Random(35). Prints PASS/FAIL/INFO lines and RESULT PASS|FAIL.""" from __future__ import annotations import itertools import math import sys from fractions import Fraction as F sys.dont_write_bytecode = True OK = True LABELS = [] def line(label, cond): global OK OK = OK and bool(cond) LABELS.append((label, bool(cond))) print(("PASS " if cond else "FAIL ") + label) def info(label): print("INFO " + label) class K: """a + b sqrt 5, rational a, b.""" __slots__ = ("a", "b") def __init__(s, a=0, b=0): s.a, s.b = F(a), F(b) def __add__(s, o): o = k(o); return K(s.a + o.a, s.b + o.b) __radd__ = __add__ def __neg__(s): return K(-s.a, -s.b) def __sub__(s, o): return s + (-k(o)) def __rsub__(s, o): return k(o) - s def __mul__(s, o): o = k(o); return K(s.a * o.a + 5 * s.b * o.b, s.a * o.b + s.b * o.a) __rmul__ = __mul__ def inv(s): n = s.a * s.a - 5 * s.b * s.b return K(s.a / n, -s.b / n) def __truediv__(s, o): return s * k(o).inv() def __eq__(s, o): o = k(o); return s.a == o.a and s.b == o.b def __hash__(s): return hash((s.a, s.b)) def val(s): return float(s.a) + float(s.b) * math.sqrt(5) k = lambda x: x if isinstance(x, K) else K(x) ZERO, ONE = K(0), K(1) R5 = K(0, 1) PHI = K(F(1, 2), F(1, 2)) M = lambda rows: [[k(x) for x in r] for r in rows] mm = lambda A, B: [[sum((A[i][t] * B[t][j] for t in range(len(B))), ZERO) for j in range(len(B[0]))] for i in range(len(A))] mt = lambda A: [[A[j][i] for j in range(len(A))] for i in range(len(A[0]))] madd = lambda A, B: [[A[i][j] + B[i][j] for j in range(len(A[0]))] for i in range(len(A))] msc = lambda c, A: [[k(c) * A[i][j] for j in range(len(A[0]))] for i in range(len(A))] meq = lambda A, B: len(A) == len(B) and all(k(A[i][j]) == k(B[i][j]) for i in range(len(A)) for j in range(len(A[0]))) mv = lambda A, v: [sum((A[i][t] * v[t] for t in range(len(v))), ZERO) for i in range(len(A))] comm = lambda A, B: madd(mm(A, B), msc(-1, mm(B, A))) acomm = lambda A, B: madd(mm(A, B), mm(B, A)) I2 = M([[1, 0], [0, 1]]); Q = M([[1, 1], [1, 0]]); Om = M([[0, 1], [-1, 0]]) G = comm(Q, Om) H = msc(R5 / 5, G) # G / sqrt 5 S = msc(R5 / 5, madd(msc(2, Q), msc(-1, I2))) # (2Q - I)/sqrt 5 B = mm(Q, Q) isqrt5 = R5 / 5 print("The Theory of Everything: receipt of exact claims, register and register audit\n") # A. root carrier print("A. Root carrier (Theorem 2.1)") line("Q^2 = Q + I, Omega^2 = -I, G = [[-2, 1], [1, 2]], G^2 = 5I, det G = -5", meq(B, madd(Q, I2)) and meq(mm(Om, Om), msc(-1, I2)) and meq(G, [[-2, 1], [1, 2]]) and meq(mm(G, G), msc(5, I2)) and k(G[0][0]) * k(G[1][1]) - k(G[0][1]) * k(G[1][0]) == K(-5)) line("S^2 = I, S^T G + G S = 0, H^2 = I, H^T G H = G, H S H = -S (S = (2Q - I)/sqrt 5, H = G/sqrt 5)", meq(mm(S, S), I2) and meq(madd(mm(mt(S), G), mm(G, S)), [[0, 0], [0, 0]]) and meq(mm(H, H), I2) and meq(mm(mm(mt(H), G), H), G) and meq(mm(mm(H, S), H), msc(-1, S))) line("Q^T G Q = -G, (Q^2)^T G Q^2 = G, and S = Omega H; H^T H = I and det H = det S = -1", meq(mm(mm(mt(Q), G), Q), msc(-1, G)) and meq(mm(mm(mt(B), G), B), G) and meq(mm(Om, H), S) and meq(mm(mt(H), H), I2) and k(H[0][0]) * k(H[1][1]) - k(H[0][1]) * k(H[1][0]) == K(-1) and k(S[0][0]) * k(S[1][1]) - k(S[0][1]) * k(S[1][0]) == K(-1)) cosh_lp, sinh_lp = R5 / 2, K(F(1, 2)) Lax = madd(msc(cosh_lp, I2), msc(sinh_lp, S)) line("L_(log Phi) = cosh(log Phi) I + sinh(log Phi) S = (Q + 2I)/sqrt 5, L^2 = Q^2; and e^(2 log Phi S) = cosh(2 log Phi) I + sinh(2 log Phi) S = (3/2) I + (sqrt 5 / 2) S = Q^2 (cosh(log Phi) = sqrt 5 / 2, sinh(log Phi) = 1/2 from Phi - 1/Phi = 1, Phi + 1/Phi = sqrt 5)", meq(Lax, msc(isqrt5, madd(Q, msc(2, I2)))) and meq(mm(Lax, Lax), B) and meq(madd(msc(F(3, 2), I2), msc(R5 / 2, S)), B) and PHI - PHI.inv() == ONE and PHI + PHI.inv() == R5) # B. register rows that are counts, finite identities, or finite algebra print("\nB. Register rows: variational, gauge phase, scalar supersymmetry, Standard Model counts, K8 ledger, finite arithmetic") Bi = [[2, 1], [1, 1]] Bi_inv_T = [[1, -1], [-1, 2]] Mcot = [[2, 1, 0, 0], [1, 1, 0, 0], [0, 0, 1, -1], [0, 0, -1, 2]] Jc = [[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1, 0, 0]] imm = lambda A, C: [[sum(A[i][t] * C[t][j] for t in range(len(C))) for j in range(len(C[0]))] for i in range(len(A))] itr = lambda A: [list(r) for r in zip(*A)] line("variational map: M_cot = diag(B, B^-T) is symplectic, M_cot^T J M_cot = J with J = [[0, I], [-I, 0]]; its configuration part preserves q_G by B^T G B = G (section A)", imm(imm(itr(Mcot), Jc), Mcot) == Jc and imm(Bi, Bi_inv_T) == [[1, 0], [0, 1]] and Bi_inv_T == [[1, -1], [-1, 2]]) iU = msc(-1, Om) line("gauge phase: i = -Omega has i^2 = -I and H i H = -i, so H U_theta H = U_(-theta) for U_theta = cos theta I + sin theta i; U_pi = -I", meq(mm(iU, iU), msc(-1, I2)) and meq(mm(mm(H, iU), H), msc(-1, iU))) Sraw = madd(msc(2, Q), msc(-1, I2)) Ap = madd(Sraw, msc(R5, iU)); Am = madd(Sraw, msc(-1, msc(R5, iU))) line("scalar supersymmetry: S_raw^2 = 5I, i^2 = -I, {S_raw, i} = 0, S_raw i = -G; A_+ = S_raw + sqrt 5 i, A_- = A_+^T = S_raw - sqrt 5 i; A_+^2 = A_-^2 = 0, {A_+, A_-} = 20 I, H A_+ H = -A_+", meq(mm(Sraw, Sraw), msc(5, I2)) and meq(acomm(Sraw, iU), [[0, 0], [0, 0]]) and meq(mm(Sraw, iU), msc(-1, G)) and meq(mm(Ap, Ap), [[0, 0], [0, 0]]) and meq(mm(Am, Am), [[0, 0], [0, 0]]) and meq(acomm(Ap, Am), msc(20, I2)) and meq(Am, mt(Ap)) and meq(mm(mm(H, Ap), H), msc(-1, Ap))) def det(Mx): n = len(Mx) if n == 1: return Mx[0][0] return sum(((-1) ** j) * Mx[0][j] * det([r[:j] + r[j + 1:] for r in Mx[1:]]) for j in range(n)) flat = lambda A: [F(k(A[i][j]).a) for i in range(2) for j in range(2)] line("mirror grading: H I H = I and H G H = G (even), H S_raw H = -S_raw and H i H = -i (odd); the four matrices I, G, S_raw, i are linearly independent in M_2(R) (coordinate determinant nonzero), so they span it: dimensions 2|2", meq(mm(mm(H, I2), H), I2) and meq(mm(mm(H, G), H), G) and meq(mm(mm(H, Sraw), H), msc(-1, Sraw)) and meq(mm(mm(H, iU), H), msc(-1, iU)) and det([flat(I2), flat(G), flat(Sraw), flat(iU)]) != 0) line("Standard Model gauge algebra counts: dim = 8 + 3 + 1 = 12; dim of the exterior square C(12, 2) = 66; with a bracket image of dimension 11 (8 + 3, proved in the next line), the kernel has dimension 66 - 11 = 55; dim of the exterior square of su(3) = C(8, 2) = 28; parameter count 3 + 2 + 9 + 4 + 1 = 19", 8 + 3 + 1 == 12 and math.comb(12, 2) == 66 and 66 - (8 + 3) == 55 and math.comb(8, 2) == 28 and 3 + 2 + 9 + 4 + 1 == 19) def e5(i, j): return [[F(int(r == i and c == j)) for c in range(5)] for r in range(5)] def dg(*d): return [[F(d[r]) if r == c else F(0) for c in range(5)] for r in range(5)] def msub(A, B_): return [[A[r][c] - B_[r][c] for c in range(5)] for r in range(5)] def mc(A, B_): return msub(imm(A, B_), imm(B_, A)) def frank(vecs): rows = [list(v) for v in vecs]; rk = 0; ncol = len(rows[0]) if rows else 0 for c in range(ncol): pr = next((r for r in range(rk, len(rows)) if rows[r][c] != 0), None) if pr is None: continue rows[rk], rows[pr] = rows[pr], rows[rk] for r in range(len(rows)): if r != rk and rows[r][c] != 0: f_ = rows[r][c] / rows[rk][c]; rows[r] = [x - f_ * y for x, y in zip(rows[r], rows[rk])] rk += 1 return rk fl5 = lambda A: [x for r in A for x in r] sl3 = [e5(0, 1), e5(1, 0), e5(0, 2), e5(2, 0), e5(1, 2), e5(2, 1), msub(e5(0, 0), e5(1, 1)), msub(e5(1, 1), e5(2, 2))] sl2 = [e5(3, 4), e5(4, 3), msub(e5(3, 3), e5(4, 4))] Yh = dg(-2, -2, -2, 3, 3) gens = sl3 + sl2 + [Yh] brk = lambda L: [fl5(mc(L[i], L[j])) for i in range(len(L)) for j in range(i + 1, len(L))] line("gauge algebra bracket image: with su(3) as sl_3, su(2) as sl_2 and u(1) as the hypercharge Y = diag(-2, -2, -2, 3, 3) in block form (rational basis, 8 + 3 + 1 = 12 independent generators), the brackets of the 66 pairs span a space of dimension 11: the brackets of sl_3 span dimension 8, those of sl_2 span dimension 3, the two blocks commute, Y commutes with all twelve generators, and every bracket lies in the span of the twelve", frank([fl5(g) for g in gens]) == 12 and frank(brk(sl3)) == 8 and frank(brk(sl2)) == 3 and frank(brk(gens)) == 11 and all(mc(x, y_) == [[F(0)] * 5 for _ in range(5)] for x in sl3 for y_ in sl2) and all(mc(Yh, g) == [[F(0)] * 5 for _ in range(5)] for g in gens) and frank([fl5(g) for g in gens] + brk(gens)) == 12 and math.comb(12, 2) - 11 == 55) verts = ["inf"] + list(range(7)) edges = {frozenset(e) for e in itertools.combinations(verts, 2)} Mr = lambda r: {frozenset(("inf", r))} | {frozenset(((r + j) % 7, (r - j) % 7)) for j in (1, 2, 3)} parts = [Mr(r) for r in range(7)] line("K8 ledger: each M_r is a perfect matching (4 disjoint edges covering 8 vertices), the seven are pairwise edge-disjoint and cover all 28 edges, and an edge {a, b} of Z7 lies in M_r with r = 4(a + b) mod 7", all(len(m) == 4 and len(set().union(*m)) == 8 for m in parts) and sum(len(m) for m in parts) == 28 and set().union(*parts) == edges and all(frozenset((a_, b_)) in Mr((4 * (a_ + b_)) % 7) for a_ in range(7) for b_ in range(7) if a_ != b_)) class Pn: """polynomial in n variables over Q: dict exponent-tuple -> Fraction""" __slots__ = ("t", "n") def __init__(s, n, t=None): s.n = n; s.t = {e: c for e, c in (t or {}).items() if c != 0} @staticmethod def var(n, i): e = [0] * n; e[i] = 1 return Pn(n, {tuple(e): F(1)}) @staticmethod def const(n, c): return Pn(n, {tuple([0] * n): F(c)}) def _o(s, o): return o if isinstance(o, Pn) else Pn.const(s.n, o) def __add__(s, o): o = s._o(o); t = dict(s.t) for e, c in o.t.items(): t[e] = t.get(e, F(0)) + c return Pn(s.n, t) __radd__ = __add__ def __neg__(s): return Pn(s.n, {e: -c for e, c in s.t.items()}) def __sub__(s, o): return s + (-s._o(o)) def __rsub__(s, o): return s._o(o) - s def __mul__(s, o): o = s._o(o); t = {} for e1, c1 in s.t.items(): for e2, c2 in o.t.items(): e = tuple(x + y for x, y in zip(e1, e2)); t[e] = t.get(e, F(0)) + c1 * c2 return Pn(s.n, t) __rmul__ = __mul__ def __eq__(s, o): o = s._o(o); return s.t == o.t g2p, gYp, vp = (Pn.var(3, i) for i in range(3)) cq = Pn.const(3, F(1, 4)) * vp * vp Mn = [[cq * g2p * g2p, -(cq * g2p * gYp)], [-(cq * g2p * gYp), cq * gYp * gYp]] line("neutral gauge-boson mass matrix: for M = (v^2/4) [[g_2^2, -g_2 g_Y], [-g_2 g_Y, g_Y^2]] the identities det M = 0 and tr M = (v^2/4)(g_2^2 + g_Y^2) hold as polynomial identities in g_2, g_Y, v over Q, M = (v^2/4) u u^T for u = (g_2, -g_Y), and M u = (v^2/4)(g_2^2 + g_Y^2) u; so the eigenvalues are 0 and (v^2/4)(g_2^2 + g_Y^2)", Mn[0][0] * Mn[1][1] - Mn[0][1] * Mn[1][0] == 0 and Mn[0][0] + Mn[1][1] == cq * (g2p * g2p + gYp * gYp) and Mn[0][0] == cq * g2p * g2p and Mn[0][1] == -(cq * g2p * gYp) and Mn[1][1] == cq * gYp * gYp and Mn[0][0] * g2p + Mn[0][1] * (-gYp) == cq * (g2p * g2p + gYp * gYp) * g2p and Mn[1][0] * g2p + Mn[1][1] * (-gYp) == cq * (g2p * g2p + gYp * gYp) * (-gYp)) Lc = [2, 1] for _ in range(10): Lc.append(Lc[-1] + Lc[-2]) Fb = [0, 1] for _ in range(12): Fb.append(Fb[-1] + Fb[-2]) line("finite arithmetic of 137: L_5^2 + 4^2 = 11^2 + 4^2 = 137 = 1 + 4 F_9, 4^17 = -1 mod 137, ord_137(4) = 34, F_137^x / <4> has order 4 (136 = 4 x 34)", Lc[5] ** 2 + 16 == 137 == 1 + 4 * Fb[9] and pow(4, 17, 137) == 136 and min(j for j in range(1, 137) if pow(4, j, 137) == 1) == 34 and 136 // 34 == 4) ap_, bp_ = Pn.var(2, 0), Pn.var(2, 1) Nf = lambda x, y_: x * x + x * y_ - y_ * y_ qG = lambda b, a: b * b * (-2) + b * a * 2 + a * a * 2 # z^T G z for z = (b, a), G = [[-2, 1], [1, 2]] line("local Lorentzian plane: G has trace 0 and determinant -5 (eigenvalues +/- sqrt 5), so signature (1, 1) and G + I_2 (block sum) has signature (3, 1); as polynomial identities in (a, b) over Q, z^T G z = 2 N for z = (b, a) and N = a^2 + ab - b^2, N(Phi x) = -N(x) (Phi(a + b Phi) = b + (a + b) Phi) and N(Phi^2 x) = N(x)", k(G[0][0]) + k(G[1][1]) == K(0) and k(G[0][0]) * k(G[1][1]) - k(G[0][1]) * k(G[1][0]) == K(-5) and qG(bp_, ap_) == Nf(ap_, bp_) * 2 and Nf(bp_, ap_ + bp_) == -Nf(ap_, bp_) and Nf(ap_ + bp_, ap_ + bp_ * 2) == Nf(ap_, bp_)) # C. Euler adapter print("\nC. Euler-orbit adapter: equilibrium, Newtonian linearization, hyperbolic plane, intertwining (exact claims)") sq = lambda x: x * x isq = lambda n: (lambda r: r if r * r == n else None)(math.isqrt(n)) Gn, m_, a_ = F(4, 5), F(1), F(1) def accel(rs, i): ax = ay = F(0) for j in range(3): if j == i: continue dx, dy = rs[j][0] - rs[i][0], rs[j][1] - rs[i][1] d2 = dx * dx + dy * dy rt = isq(int(d2)) if d2.denominator == 1 else None assert rt is not None ax += Gn * m_ * dx / rt ** 3; ay += Gn * m_ * dy / rt ** 3 return ax, ay okE = True for c_, s_ in [(F(1), F(0)), (F(3, 5), F(4, 5)), (F(5, 13), F(12, 13)), (F(8, 17), F(15, 17)), (F(-7, 25), F(24, 25))]: base = [(F(-1), F(0)), (F(0), F(0)), (F(1), F(0))] rs = [(c_ * x - s_ * y, s_ * x + c_ * y) for x, y in base] for i in range(3): okE &= accel(rs, i) == (-rs[i][0], -rs[i][1]) # omega^2 = 1 line("Euler relative equilibrium (equal masses m = a = 1, G_N = 4/5): at five exact rotation angles the Newtonian acceleration of each body equals -omega^2 r_i with omega^2 = 5 G_N m/(4 a^3) = 1; the middle body feels zero net force", okE and Gn * 5 * m_ / (4 * a_ ** 3) == 1) line("total angular momentum l = sum m r x v = 2 with v = omega J r (r x v = omega |r|^2 = 1 for each outer body, 0 for the middle one)", 1 * 1 + 1 * 1 + 0 == 2) eH = [ONE, PHI * PHI * PHI] line("physical mirror axis: Phi^3 = 2 + sqrt 5 and 1 + Phi^6 = 10 + 4 sqrt 5; H e_H = e_H for e_H = (1, Phi^3)/sqrt(10 + 4 sqrt 5)", PHI * PHI * PHI == K(2, 1) and ONE + (PHI * PHI * PHI) * (PHI * PHI * PHI) == K(10, 4) and mv(H, eH) == eH) okR = True for c_, s_ in [(F(3, 5), F(4, 5)), (F(5, 13), F(12, 13)), (F(8, 17), F(15, 17))]: Rp = M([[c_, -s_], [s_, c_]]); Rm = M([[c_, s_], [-s_, c_]]) okR &= meq(mm(H, Rm), mm(Rp, H)) for sgn in (-1, 1): r0 = [sgn * x for x in eH] okR &= mv(mm(H, Rm), r0) == mv(Rp, mv(H, r0)) and mv(Rp, mv(H, r0)) == mv(Rp, r0) line("mirror of the Euler orbit: H R(-alpha) = R(alpha) H for three exact rational rotations, and H (R(-alpha) r) = R(alpha) r for r = -/+ e_H, hence H r_i(-t) = r_i(t) for the Euler orbit (H e_H = e_H, outer bodies at -/+ a e_H)", okR) line("root relations used by the Euler adapter: S = Omega H and Q^2 = e^(2 log Phi S) with H Q^2 H = (Q^2)^-1 (exact, section A); H and S are Euclidean isometries (H^T H = S^T S = I) while H^T G H = G and S^T G S = -G", meq(mm(mt(S), S), I2) and meq(mm(mm(mt(S), G), S), msc(-1, G)) and meq(mm(mm(H, B), H), M([[1, -1], [-1, 2]]))) # direct linearization of Newton's equations in the frame rotating at omega = 1 def charpoly(Am): n = len(Am); Mk = [[F(0)] * n for _ in range(n)]; c = [F(1)] I_n = [[F(int(i == j)) for j in range(n)] for i in range(n)] for kk in range(1, n + 1): Mk = [[sum(Am[i][t] * Mk[t][j] for t in range(n)) + c[-1] * I_n[i][j] for j in range(n)] for i in range(n)] AM = [[sum(Am[i][t] * Mk[t][j] for t in range(n)) for j in range(n)] for i in range(n)] c.append(-sum(AM[i][i] for i in range(n)) / kk) return c def pmulc(p, q): out = [F(0)] * (len(p) + len(q) - 1) for i, x in enumerate(p): for j, y in enumerate(q): out[i + j] += x * y return out rest = [(F(-1), F(0)), (F(0), F(0)), (F(1), F(0))] Kj = [[F(0)] * 6 for _ in range(6)] for i in range(3): for j in range(3): if i != j: dx, dy = rest[j][0] - rest[i][0], rest[j][1] - rest[i][1] d2 = dx * dx + dy * dy; rt = isq(int(d2)) Bk = [[Gn * m_ * (d2 * (1 if r == c else 0) - 3 * d_[r] * d_[c]) / rt ** 5 for c in range(2)] for r in range(2) for d_ in [(dx, dy)]] for r in range(2): for c in range(2): Kj[2 * i + r][2 * j + c] += Bk[r][c]; Kj[2 * i + r][2 * i + c] -= Bk[r][c] J2 = [[F(0), F(2)], [F(-2), F(0)]] A12 = [[F(0)] * 12 for _ in range(12)] for i in range(6): A12[i][6 + i] = F(1); A12[6 + i][i] = F(1) for j in range(6): A12[6 + i][j] += Kj[i][j] for i in range(3): for r in range(2): for c in range(2): A12[6 + 2 * i + r][6 + 2 * i + c] = J2[r][c] exp12 = pmulc(pmulc(pmulc([F(1), F(0), F(0)], pmulc(pmulc([F(1), F(0), F(1)], [F(1), F(0), F(1)]), [F(1), F(0), F(1)])), [F(1), F(0), F(-2, 5), F(0), F(-203, 25)]), [F(1)]) line("Newtonian linearization: in the frame rotating at omega = 1 the perturbation of the three equal-mass bodies about the collinear equilibrium obeys x'' = 2 J x' + x + K x with J = [[0, 1], [-1, 0]], where the force Jacobian of a pair at separation d is G_N m (|d|^2 I - 3 d d^T)/|d|^5 (exactly G_N m/D^3 diag(-2, 1) for the collinear pairs at D = 1, 2) and K has rows summing to zero; the 12 x 12 first-order matrix A has characteristic polynomial l^2 (l^2 + 1)^3 (l^4 - (2/5) l^2 - 203/25)", all(sum(Kj[i][j] for j in range(0, 6, 2)) == 0 and sum(Kj[i][j] for j in range(1, 6, 2)) == 0 for i in range(6)) and Kj[0][0] == Gn * (F(2) + F(2, 8)) and Kj[1][1] == -Gn * (F(1) + F(1, 8)) and Kj[0][2] == Gn * F(-2) and Kj[1][3] == Gn) line("characteristic polynomial of the Newtonian linearization A: (12 x 12, exact Faddeev-LeVerrier in Q) equal to l^2 (l^2 + 1)^3 (l^4 - (2/5) l^2 - 203/25), so the hyperbolic eigenvalues are +/- nu with nu^2 = (1 + 2 sqrt 51)/5, and the remaining eigenvalues are 0 (twice), +/- i (three times) and +/- i kappa with kappa^2 = (2 sqrt 51 - 1)/5", charpoly(A12) == exp12 and len(exp12) == 13) Rv = [F(1), F(-1)] * 3 + [F(-1), F(1)] * 3 line("reversor: R = diag(1, -1) on the positions and diag(-1, 1) on the velocities of each body (reflection of y with reversal of time) satisfies R^2 = I and R A R = -A", all(Rv[i] * A12[i][j] * Rv[j] == -A12[i][j] for i in range(12) for j in range(12))) Ahs = [[F(0), F(0), F(1), F(0)], [F(0), F(0), F(0), F(1)], [F(29, 5), F(0), F(0), F(2)], [F(0), F(-7, 5), F(-2), F(0)]] Emb = [[F(0)] * 4 for _ in range(12)] for i_, c_ in enumerate([1, -2, 1]): for r_ in range(2): Emb[2 * i_ + r_][r_] = F(c_); Emb[6 + 2 * i_ + r_][2 + r_] = F(c_) line("shape reduction: the subspace {positions c_i q, velocities c_i q'} with c = (1, -2, 1) and q in the plane is invariant under A, and A E = E A_h with A_h = [[0, 0, 1, 0], [0, 0, 0, 1], [29/5, 0, 0, 2], [0, -7/5, -2, 0]] and E the 12 x 4 embedding; the characteristic polynomial of A_h is l^4 - (2/5) l^2 - 203/25, and R_h = diag(1, -1, -1, 1) satisfies R_h A_h R_h = -A_h", imm(A12, Emb) == imm(Emb, Ahs) and charpoly(Ahs) == [F(1), F(0), F(-2, 5), F(0), F(-203, 25)] and imm(imm([[F(int(i == j)) * (1 if i in (0, 3) else -1) for j in range(4)] for i in range(4)], Ahs), [[F(int(i == j)) * (1 if i in (0, 3) else -1) for j in range(4)] for i in range(4)]) == [[-x for x in r] for r in Ahs]) class N: """(x0 + x1 s) + (x2 + x3 s) nu, s = sqrt 51, nu^2 = (1 + 2 s)/5.""" __slots__ = ("c",) def __init__(self, c0=0, c1=0, c2=0, c3=0): self.c = (F(c0), F(c1), F(c2), F(c3)) @staticmethod def qs(a, b, c, d): # (a + b s)(c + d s) return (a * c + 51 * b * d, a * d + b * c) def __add__(self, o): return N(*[x + y for x, y in zip(self.c, o.c)]) def __sub__(self, o): return N(*[x - y for x, y in zip(self.c, o.c)]) def __neg__(self): return N(*[-x for x in self.c]) def __mul__(self, o): a0, a1, b0, b1 = self.c; c0, c1, d0, d1 = o.c aa = N.qs(a0, a1, c0, c1); bb = N.qs(b0, b1, d0, d1) n2 = (F(1, 5), F(2, 5)) # nu^2 bbn = N.qs(bb[0], bb[1], *n2) ad = N.qs(a0, a1, d0, d1); bc = N.qs(b0, b1, c0, c1) return N(aa[0] + bbn[0], aa[1] + bbn[1], ad[0] + bc[0], ad[1] + bc[1]) def __eq__(self, o): return self.c == o.c Nn = lambda x: x if isinstance(x, N) else N(x) s51 = N(0, 1); nu = N(0, 0, 1, 0) nu_inv = N(0, 0, F(5) * F(1, -203), F(5) * F(-2) * F(1, -203)) # nu / nu^2 = 5 nu (1 - 2 s)/(-203) y1 = N(0, 0, F(4, 7), F(-1, 7)) # y_1 = nu (4 - sqrt 51)/7 line("nu is a root of x^2 = (1 + 2 sqrt 51)/5 with nu nu^-1 = 1 (arithmetic in Q(sqrt 51)(nu)), 25 nu^4 - 10 nu^2 - 203 = 0, y_1 = nu (4 - sqrt 51)/7 is nonzero and nu y_1 = (sqrt 51 - 14)/5", nu * nu_inv == N(1) and nu * nu == N(F(1, 5), F(2, 5)) and (nu * nu) * (nu * nu) * N(25) - (nu * nu) * N(10) - N(203) == N(0) and not (y1 == N(0)) and nu * y1 == N(F(-14, 5), F(1, 5))) cvec = [1, -2, 1] wp = [N(cvec[i]) * (N(1) if r == 0 else y1) for i in range(3) for r in range(2)] + [N(cvec[i]) * nu * (N(1) if r == 0 else y1) for i in range(3) for r in range(2)] wm = [N(int(Rv[i])) * wp[i] for i in range(12)] # R w_+ An = [[N(x) for x in r] for r in A12] mvN = lambda A, v: [sum((A[i][t] * v[t] for t in range(len(v))), N(0)) for i in range(len(A))] line("hyperbolic eigenvectors: with y_1 = nu (4 - sqrt 51)/7 the vector w_+ = ((1, y_1), (-2, -2 y_1), (1, y_1); nu (1, y_1), nu (-2, -2 y_1), nu (1, y_1)) satisfies A w_+ = nu w_+, and w_- = R w_+ satisfies A w_- = -nu w_- (exact in Q(sqrt 51)(nu)); w_+ and w_- are independent; both have zero centre-of-mass position and velocity", mvN(An, wp) == [nu * x for x in wp] and mvN(An, wm) == [-(nu * x) for x in wm] and not (y1 == N(0)) and sum((wp[2 * i] for i in range(3)), N(0)) == N(0) and sum((wp[2 * i + 1] for i in range(3)), N(0)) == N(0) and sum((wp[6 + 2 * i] for i in range(3)), N(0)) == N(0) and sum((wp[7 + 2 * i] for i in range(3)), N(0)) == N(0)) up = [PHI, ONE]; um = mv(H, up) line("u_+ = (Phi, 1), u_- = H u_+ = (-1, Phi) and H u_- = u_+; Q^2 u_+ = Phi^2 u_+ and Q^2 u_- = Phi^-2 u_-; det [u_+ u_-] = Phi^2 + 1 != 0", um == [K(-1), PHI] and mv(H, um) == up and mv(B, up) == [PHI * PHI * x for x in up] and mv(B, um) == [(PHI * PHI).inv() * x for x in um] and PHI * PHI + 1 != ZERO) nu_f = math.sqrt((1 + 2 * math.sqrt(51)) / 5); sig = 2 * math.log((1 + math.sqrt(5)) / 2) / nu_f phi_f = (1 + math.sqrt(5)) / 2 line("theorem (intertwining), exact part: with C u_+ = w_+, C u_- = w_- (an isomorphism onto W = span{w_+, w_-}) and sigma_* defined by nu sigma_* = 2 log Phi, so that e^(nu sigma_*) = Phi^2 and e^(-nu sigma_*) = Phi^-2 analytically: A w_pm = pm nu w_pm and Q^2 u_pm = Phi^(pm 2) u_pm give e^(A sigma_*) C = C Q^2 on u_+ and u_-; and R C = C H because H u_+ = u_-, H u_- = u_+, R w_+ = w_-, R w_- = w_+ (exact)", all(N(int(Rv[i])) * wm[i] == wp[i] for i in range(12)) and all(N(int(Rv[i])) * wp[i] == wm[i] for i in range(12)) and mv(B, up) == [PHI * PHI * x for x in up] and mv(B, um) == [(PHI * PHI).inv() * x for x in um] and mv(H, up) == um and mv(H, um) == up) line("numerical: the decimal evaluation of e^(nu sigma_*) = Phi^2 and e^(-nu sigma_*) = Phi^-2 at sigma_* = 2 log Phi / nu agrees to 1e-12 (the identity itself is analytic)", abs(math.exp(nu_f * sig) - phi_f ** 2) < 1e-12 and abs(math.exp(-nu_f * sig) - phi_f ** -2) < 1e-12) print("INFO adapter data: D_A = the hyperbolic plane W of the Euler equilibrium; alpha = C^-1; chi: time-sigma_* map -> Q^2, reversor R -> H; preserved relation: conjugacy of the sampled map to Q^2 and compatibility with the mirror; falsifier: any failure of A w_pm = pm nu w_pm, and a nonzero fourth-order coefficient a outside the stable/unstable cross") # D. numerical values print("\nD. Numerical values of the Euler adapter (decimal evaluations of the closed forms)") a_val = -(82891803 + 215881566 * math.sqrt(51)) / 585841760 line("numerical values: nu = 1.748305285531431, sigma_* = 0.550489470050798 and the closed form a = -(82891803 + 215881566 sqrt 51)/585841760 = -2.773094488229637 (agreement to 1e-12)", abs(nu_f - 1.748305285531431) < 1e-12 and abs(sig - 0.550489470050798) < 1e-12 and abs(a_val + 2.773094488229637) < 1e-12) info("the quartic coefficient a is not recomputed by this reader; check_hamiltonian.py expands the reduced Hamiltonian by a Lie transform and matches the closed form") info("the nonlinear cross (stable manifold, Koenigs linearization, reversor argument) rests on cited analytic theorems that are not replayed here") # E. finite statistical mechanics print("\nE. Finite coarse-graining identity: containment, additivity, exhaustive and seeded") import copy import random def fibres(f, dom): d = {} for x in dom: d.setdefault(f[x], set()).add(x) return d def is_refinement(eta, rho, X): return all(len({rho[x] for x in fib}) == 1 for fib in fibres(eta, X).values()) def stat_checks(X, eta, lam, rho): fe, fr = fibres(eta, X), fibres(rho, X) ok = is_refinement(eta, rho, X) for r, fib in fe.items(): ok &= fib <= fr[lam[r]] Wr, We = F(len(fr[lam[r]])), F(len(fib)) ok &= Wr / We >= 1 and Wr / (Wr / We) == We # equation (50) in multiplicative form, W_eta(r) = W_rho(lam r) / (W_rho(lam r) / W_eta(r)) ok &= sum(len(v) for v in fr.values()) == len(X) ok &= all(len(fr[m]) == sum(len(fe[r]) for r in fe if lam[r] == m) for m in fr) # W_rho(mu) = sum of W_eta(r) over the refinements r of mu return ok okx = True cnt = 0 for eta_vals in itertools.product(range(3), repeat=4): for lam_vals in itertools.product(range(2), repeat=3): X = list(range(4)); eta = dict(enumerate(eta_vals)); lam = dict(enumerate(lam_vals)) okx &= stat_checks(X, eta, lam, {x: lam[eta[x]] for x in X}) cnt += 1 rng = random.Random(35) oks = True; n_nonref = 0 for _ in range(300): nX, nR, nM = rng.randint(1, 40), rng.randint(1, 8), rng.randint(1, 4) X = list(range(nX)) eta = {x: rng.randrange(nR) for x in X}; lam = {r: rng.randrange(nM) for r in range(nR)} oks &= stat_checks(X, eta, lam, {x: lam[eta[x]] for x in X}) n_nonref += not is_refinement(eta, {x: rng.randrange(nM) for x in X}, X) line("finite coarse-graining identity: for rho = lam o eta every fibre of eta lies in the fibre of rho over lam(r), W_rho(mu) is the sum of W_eta(r) over the refinements r of mu, W_rho >= W_eta, and equation (50) holds in multiplicative form with exact rationals; exhaustive over all eta: 4 points -> 3 cells and lam: 3 cells -> 2 macrostates (648 pairs) and 300 seeded trials with up to 40 points", okx and cnt == 648 and oks) line("negative control for the refinement test: a macrostate map chosen independently of eta fails the containment test in at least one seeded trial (it fails in " + str(n_nonref) + " of 300), so the containment line above is not vacuous", n_nonref > 0) # E2. the continuum-closure adapter: finite compatibility (Lemma 1) over a non-Abelian group print("\nE2. Continuum-closure adapter: finite non-Abelian compatibility on a sparse 2-complex (Lemma 1), and its separation from flatness") def pmul(p, q): """composition in a permutation group: apply q, then p.""" return tuple(p[i] for i in q) def pinv(p): r = [0] * len(p) for i, x in enumerate(p): r[x] = i return tuple(r) def edge(d, u, v): """transport G_e of the oriented edge u -> v from data stored on the edge with u < v; reversed edges carry the inverse.""" return d[(u, v)] if u < v else pinv(d[(v, u)]) def transport(d, verts, n): """G_l = G_(e_n) ... G_(e_1) for the path listed in traversal order.""" acc = tuple(range(n)) for u, v in zip(verts, verts[1:]): acc = pmul(edge(d, u, v), acc) return acc def spanning_frames(d, n, nverts, tree): """vertex frames s_v: ordered transport along the tree path from the base vertex 0 (the construction in the proof of Lemma 1); tree is a list of (parent, child) pairs in a valid order.""" s = {0: tuple(range(n))} for u, v in tree: s[v] = pmul(edge(d, u, v), s[u]) return s def factors(d, s, n): return all(edge(d, u, v) == pmul(s[v], pinv(s[u])) for (u, v) in d) # disk: two triangles (0,1,2) and (0,2,3) over S3; every assignment of edge data is enumerated S3 = list(itertools.permutations(range(3))) e1 = [(0, 1), (1, 2), (0, 2), (2, 3), (0, 3)] faces1 = [[0, 1, 2, 0], [0, 2, 3, 0]] I3 = (0, 1, 2) flat1, fact1 = set(), set() for vals in itertools.product(S3, repeat=5): d = dict(zip(e1, vals)) if all(transport(d, f, 3) == I3 for f in faces1): flat1.add(vals) for s_rest in itertools.product(S3, repeat=3): s = dict(enumerate((I3,) + s_rest)) fact1.add(tuple(pmul(s[v], pinv(s[u])) for (u, v) in e1)) fib = {} for s_all in itertools.product(S3, repeat=4): key = tuple(pmul(s_all[v], pinv(s_all[u])) for (u, v) in e1) fib[key] = fib.get(key, 0) + 1 tree1 = [(0, 1), (0, 2), (2, 3)] okt = all(factors(dict(zip(e1, v)), spanning_frames(dict(zip(e1, v)), 3, 4, tree1), 3) for v in flat1) line("compatibility lemma, disk: on the two-triangle disk over S3 (non-Abelian, order 6) all 6^5 = 7776 edge assignments are enumerated; the 216 assignments with trivial boundary product on both faces are exactly the 216 assignments of the form G_e = s_v s_u^-1, each such assignment has exactly 6 frame tuples (unique up to common right multiplication), and the spanning-tree frames of the proof factor every one of them", len(flat1) == 216 and flat1 == fact1 and set(fib.values()) == {6} and len(fib) == 216 and okt) # cone over a hexagon over S4: 300 seeded trials with spokes free and rim edges fixed by the faces S4 = list(itertools.permutations(range(4))) I4 = tuple(range(4)) rng2 = random.Random(35) okc = okl = okn = True nfl = 0 for _ in range(300): d = {} for i in range(1, 7): d[(0, i)] = rng2.choice(S4) for i in range(1, 6): # face 0 -> i -> i+1 -> 0 has trivial product: G(i+1,0) G(i,i+1) G(0,i) = I d[(i, i + 1)] = pmul(pinv(edge(d, i + 1, 0)), pinv(edge(d, 0, i))) d[(1, 6)] = pmul(edge(d, 0, 6), edge(d, 1, 0)) # face 0 -> 6 -> 1 -> 0: G(1,0) G(6,1) G(0,6) = I faces = [[0, i, i + 1, 0] for i in range(1, 6)] + [[0, 6, 1, 0]] okc &= all(transport(d, f, 4) == I4 for f in faces) s = spanning_frames(d, 4, 7, [(0, i) for i in range(1, 7)]) okc &= factors(d, s, 4) okl &= transport(d, [1, 2, 3, 4, 5, 6, 1], 4) == I4 # negative control: one rim edge multiplied by a non-identity element breaks a face and the rim loop g = rng2.choice([x for x in S4 if x != I4]) d2 = dict(d); d2[(2, 3)] = pmul(g, d[(2, 3)]) nb = transport(d2, [0, 2, 3, 0], 4) != I4 nr = transport(d2, [1, 2, 3, 4, 5, 6, 1], 4) != I4 okn &= nb and nr nfl += nb line("compatibility lemma, cone: on the cone over a hexagon over S4 (non-Abelian, order 24), 300 seeded trials with free spokes and rim edges fixed by the six faces: every face product is I, the tree frames satisfy G_e = s_v s_u^-1 on all 12 edges, and the closed rim loop has transport I (equation (46))", okc and okl) line("negative control for the compatibility lemma: multiplying one rim edge by a non-identity element breaks its face and the rim loop transport in all 300 trials (" + str(nfl) + " broken faces), so the cone line is not vacuous", okn and nfl == 300) # annulus: ring of 4 over S4, faces trivial, the ring loop is not h = (1, 2, 0, 3) # a 3-cycle na = 4 verts = {("a", i): i for i in range(na)} verts.update({("b", i): na + i for i in range(na)}) rngA = random.Random(35) S = {v: rngA.choice(S4) for v in range(2 * na)} def hpow(k): r = I4 for _ in range(abs(k) % 12): r = pmul(r, h if k > 0 else pinv(h)) return r def cobound(u, v): """c(u -> v) in {-1, 0, 1}: difference of the ring coordinates modulo 4, taken to the representative of smallest absolute value; a 2-step jump does not occur on this complex.""" t = ((v % na) - (u % na)) % na return {0: 0, 1: 1, 3: -1}[t] # oriented edge data G_(u->v) = s_v h^c(u->v) s_u^-1, stored for u < v eA = set() tri = [] for i in range(na): a0, a1, b0, b1 = i, (i + 1) % na, na + i, na + (i + 1) % na tri.append([a0, a1, b0, a0]) tri.append([a1, b1, b0, a1]) dA = {} for t in tri: for u, v in zip(t, t[1:]): lo, hi = min(u, v), max(u, v) dA[(lo, hi)] = pmul(pmul(S[hi], hpow(cobound(lo, hi))), pinv(S[lo])) facesA = all(transport(dA, t, 4) == I4 for t in tri) ring = transport(dA, [0, 1, 2, 3, 0], 4) # the strip of six triangles B_0, A_1, B_1, A_2, B_2, A_3 is a disk; the tree frames factor the data on its edges strip = [tri[1], tri[2], tri[3], tri[4], tri[5], tri[6]] sedges = {(min(u, v), max(u, v)) for t in strip for u, v in zip(t, t[1:])} dS = {k_: dA[k_] for k_ in sedges} V = {v for t in strip for v in t} adj = {} for (u, v) in dS: adj.setdefault(u, []).append(v); adj.setdefault(v, []).append(u) base = min(V) seen = {base} parent = [] queue = [base] while queue: u = queue.pop(0) for v in sorted(adj[u]): if v not in seen: seen.add(v); parent.append((u, v)); queue.append(v) treeok = len(parent) == len(V) - 1 sS = {base: I4} for u, v in parent: sS[v] = pmul(edge(dS, u, v), sS[u]) okstrip = all(edge(dS, u, v) == pmul(sS[v], pinv(sS[u])) for (u, v) in dS) and treeok and V == set(sS) and len(V) - len(sedges) + len(strip) == 1 line("compatibility lemma, annulus: on the eight-triangle annulus (ring of 4, group S4, ring holonomy a 3-cycle) every face product is I; the strip of six triangles, which is a disk (Euler characteristic 1), factors by tree frames on all its edges; the ring loop a_0 a_1 a_2 a_3 a_0 has transport a conjugate of a 3-cycle, not I, so no global factorization exists and simple connectivity in Lemma 1 is necessary", facesA and okstrip and ring != I4 and pmul(ring, pmul(ring, ring)) == I4 and len(tri) == 8) # separation from flatness: compatibility data G flat, physical transport U independent nflat_pairs = sum(1 for v in flat1) nU_bad = sum(1 for u_vals in itertools.product(S3, repeat=5) if any(transport(dict(zip(e1, u_vals)), f, 3) != I3 for f in faces1)) line("compatibility separation: F_comp = 0 does not imply H_f^phys = I: with the 216 flat compatibility assignments of the disk fixed, the physical transports U_e range over all 7776 assignments and 7560 of them have a face holonomy different from I, so the compatibility zero locus places no flatness condition on U", nflat_pairs == 216 and nU_bad == 7560) info("the composition hypotheses (iv) distributional physical states and (v) spin-two survival, and the finite overlap burden, are conditions on the refinement limit and on a physical spin-two residue and are not replayed; the composition of the cited ultraviolet amplitude with the distributional hypotheses is not established") # E3. ultraviolet Gaussian carrier and minimum TT reader: the exact parts print("\nE3. Ultraviolet closure: Gaussian carrier, minimum TT reader and helicity structure (exact parts only)") okc2 = all(F(1, 12) * (k + 1) ** 2 * k * (k + 2) / ((k + 1) ** 2 * (k * (k + 2))) == F(1, 12) and ((k + 1) ** 2 - 1) / (12 * F(k * (k + 2))) == F(1, 12) and k * (k + 2) == (k + 1) ** 2 - 1 for k in range(2, 202, 2)) line("UV carrier C2: with Han's coefficient C_2 = (1/12) d^2 (d-1)(d+1) / (d^2 E), the spectrum E_k = k(k+2), d_k = k+1 (so E_k = d_k^2 - 1), one has C_2 = (d^2 - 1)/(12 E) = 1/12 exactly at every nonzero spectral mode (E_k = d_k^2 - 1 is an identity); checked for every even k_0 = 2, 4, ..., 200 (the coefficient is imported from Han; this line checks the arithmetic only)", okc2) def mat_t(M): return [list(r) for r in zip(*M)] def mat_mul(A, B): return [[sum(A[i][k_] * B[k_][j] for k_ in range(len(B))) for j in range(len(B[0]))] for i in range(len(A))] def mat_inv(M): n = len(M) A = [[F(x) for x in row] + [F(int(i == j)) for j in range(n)] for i, row in enumerate(M)] for c in range(n): p = next((r for r in range(c, n) if A[r][c] != 0), None) if p is None: return None A[c], A[p] = A[p], A[c] pv = A[c][c] A[c] = [x / pv for x in A[c]] for r in range(n): if r != c and A[r][c] != 0: f = A[r][c] A[r] = [x - f * y for x, y in zip(A[r], A[c])] return [row[n:] for row in A] def rank_q(M): A = [[F(x) for x in row] for row in M] rk = 0 for c in range(len(A[0])): p = next((r for r in range(rk, len(A)) if A[r][c] != 0), None) if p is None: continue A[rk], A[p] = A[p], A[rk] for r in range(len(A)): if r != rk and A[r][c] != 0: f = A[r][c] / A[rk][c] A[r] = [x - f * y for x, y in zip(A[r], A[rk])] rk += 1 return rk def minors_pos(M): return all(det_q([row[:m] for row in M[:m]]) > 0 for m in range(1, len(M) + 1)) def det_q(M): A = [[F(x) for x in row] for row in M] n = len(A); d = F(1) for c in range(n): p = next((r for r in range(c, n) if A[r][c] != 0), None) if p is None: return F(0) if p != c: A[c], A[p] = A[p], A[c]; d = -d d *= A[c][c] for r in range(c + 1, n): f = A[r][c] / A[c][c] A[r] = [x - f * y for x, y in zip(A[r], A[c])] return d # the cone over a hexagon: unknowns on the six edges outside the gauge tree (rim path 1-2-3-4-5-6 and the spoke 0-1 are the tree) cols = ["t02", "t03", "t04", "t05", "t06", "t61"] d1 = [[0] * 6 for _ in range(6)] for i in range(1, 6): # face 0 -> i -> i+1 -> 0 : t_0i + t_(i,i+1) - t_0(i+1), tree edges set to 0 if i >= 2: d1[i - 1][cols.index("t0%d" % i)] = 1 d1[i - 1][cols.index("t0%d" % (i + 1))] = -1 d1[5][cols.index("t06")] = 1; d1[5][cols.index("t61")] = 1 # face 0 -> 6 -> 1 -> 0 M = mat_mul(mat_t(d1), d1) Kt = [[F(x, 12) for x in row] for row in M] Ki = mat_inv(Kt); Mi = mat_inv(M) okcov = Ki is not None and Mi is not None and all(Ki[i][j] == 12 * Mi[i][j] for i in range(6) for j in range(6)) and det_q(d1) != 0 and minors_pos(M) and minors_pos(Kt) line("UV carrier covariance: on the cone over a hexagon with the tree gauge fixed (six unknowns, six faces) the coboundary d_1 has nonzero determinant, d_1^T d_1 and K = (1/12) d_1^T d_1 are positive definite, and A_cut _c -> K^-1 = 12 (d_1^T d_1)^-1 holds entrywise in exact rationals", okcov) d1f = [[0] * 12 for _ in range(6)] # without gauge fixing: all twelve edges free ee = [(0, i) for i in range(1, 7)] + [(i, i + 1) for i in range(1, 6)] + [(1, 6)] for fi, (a_, b_, c_) in enumerate([(0, i, i + 1) for i in range(1, 6)] + [(0, 6, 1)]): for u, v in ((a_, b_), (b_, c_), (c_, a_)): d1f[fi][ee.index((min(u, v), max(u, v)))] += 1 if u < v else -1 line("negative control for the UV carrier covariance: without the gauge fixing, d_1 on all twelve edges has rank at most 6 < 12, so d_1^T d_1 is singular and no covariance exists; the nondegeneracy in the line above is the gauge-fixed statement", rank_q(d1f) < 12 and rank_q(M) == 6) # the minimum TT reader at j = 1, basis (|1,1>, |1,0>, |1,-1>) = (e0, e1, e2); L_+ = sqrt2 N, L_- = sqrt2 N^T so every product below is rational N = [[0, 1, 0], [0, 0, 1], [0, 0, 0]] NT = mat_t(N) def cm(A, B): return mat_mul([[complex(x) for x in r] for r in A], [[complex(x) for x in r] for r in B]) def cadd(A, B, a=1, b=1): return [[a * x + b * y for x, y in zip(r, s)] for r, s in zip(A, B)] Np, Nm = cadd(N, NT), cadd(N, NT, 1, -1) Lz = [[1, 0, 0], [0, 0, 0], [0, 0, -1]] Lx2 = [[0.5 * x for x in r] for r in cm(Np, Np)] Ly2 = [[-0.5 * x for x in r] for r in cm(Nm, Nm)] LxLy = [[-0.5j * x for x in r] for r in cm(Np, Nm)] LyLx = [[-0.5j * x for x in r] for r in cm(Nm, Np)] comm = cadd(LxLy, LyLx, 1, -1) okal = comm == [[1j * x for x in r] for r in Lz] # [L_x, L_y] = i L_z cas = cadd(cadd(Lx2, Ly2), cm(Lz, Lz)) okal &= cas == [[2 if i == j else 0 for j in range(3)] for i in range(3)] # L^2 = j(j+1) = 2 Qp = cadd(Lx2, Ly2, 1, -1) Qx = cadd(LxLy, LyLx) psi = [1, 0, 0] def apply(A, v): return [sum(A[i][k_] * v[k_] for k_ in range(3)) for i in range(3)] Qpp, Qxp = apply(Qp, psi), apply(Qx, psi) okq = Qpp == [0, 0, 1] and Qxp == [0, 0, 1j] def dot(u, v): return sum(complex(x).conjugate() * y for x, y in zip(u, v)) means = (dot(psi, Qpp), dot(psi, Qxp)) cov = [[dot(apply(A, psi), apply(B, psi)) for B in (Qp, Qx)] for A in (Qp, Qx)] # herm. Q: = okcov2 = means == (0, 0) and cov == [[1, 1j], [-1j, 1]] sym = [[(cov[a][b] + cov[b][a]) / 2 for b in range(2)] for a in range(2)] line("UV minimum TT reader (j = 1): with L_pm built from N so that [L_x, L_y] = i L_z and L^2 = 2, Q_+ = L_x^2 - L_y^2 and Q_x = L_x L_y + L_y L_x give Q_+|1,1> = |1,-1> and Q_x|1,1> = i|1,-1>; both one-point reads vanish; the connected covariance is delta_AB + i eps_AB with eps_(+x) = 1, and its symmetrization is the identity diag(1, 1)", okal and okq and okcov2 and sym == [[1, 0], [0, 1]]) okj = True for tw in range(2, 21): j = F(tw, 2) c1 = (j + j) * 1; c2 = (j + j - 1) * 2 # |L_-|j,m>|^2 = (j+m)(j-m+1) at m = j, j-1 nrm = F(1, 4) * c1 * c2 okj &= nrm == j * (2 * j - 1) and (j * j - j * (j + 1) / 3) == j * (2 * j - 1) / 3 and ((j * (2 * j - 1)) != 0) == (j >= 1) line("UV TT reader, general j: for j = 1, 3/2, ..., 10 the squared norm of Q_+|j,j> (and of Q_x|j,j>) is j(2j - 1), and Q_zz|j,j> = (j(2j - 1)/3)|j,j>; the quantity is nonzero exactly for j >= 1 and vanishes at j = 1/2", okj and F(1, 2) * (2 * F(1, 2) - 1) == 0) # helicity structure on the TT plane with C_TT = Omega, H_TT = G/sqrt5 (conjugation by G is H up to the scalar 5); Pi_pm2 = (I -/+ i C)/2 Om = [[0, 1], [-1, 0]]; Gm = [[-2, 1], [1, 2]]; I2 = [[1, 0], [0, 1]] def W2x(zp, zm): # 2 W = zp (I - i C) + zm (I + i C), entries are complex integers return [[zp * (I2[i][j] - 1j * Om[i][j]) + zm * (I2[i][j] + 1j * Om[i][j]) for j in range(2)] for i in range(2)] def conjG(A): return [[sum(Gm[i][a] * A[a][b] * Gm[b][j] for a in range(2) for b in range(2)) for j in range(2)] for i in range(2)] def commOm(A): return cadd(cm(A, Om), cm(Om, A), 1, -1) zero2 = [[0, 0], [0, 0]] okh = True for zp, zm in [(3, 1), (1, 3), (2, 2), (5, 0), (0, 0)]: Wd = W2x(zp, zm) okh &= commOm(Wd) == zero2 # rotational covariance: W commutes with exp(-2 alpha C) Wsw = W2x(zm, zp) okh &= conjG(Wd) == [[5 * x for x in r] for r in Wsw] # H Pi_(+2) H = Pi_(-2): conjugation swaps the helicities okh &= (conjG(Wd) == [[5 * x for x in r] for r in Wd]) == (zp == zm) # parity invariance holds iff Z_+^-1 = Z_-^-1 okh &= commOm([[2, 0], [0, 1]]) != zero2 # a non-scalar real symmetric residue is not rotationally covariant okh &= (W2x(0, 0) == zero2) and all(W2x(zp, zm) != zero2 for zp, zm in [(1, 0), (0, 1), (3, 1)]) line("UV helicity structure: with C_TT = Omega and the root mirror H (H Omega H = -Omega, so conjugation by G sends Pi_+2 to Pi_-2), every residue Z_+^-1 Pi_+2 + Z_-^-1 Pi_-2 commutes with the phase action, H W H = W holds exactly when Z_+^-1 = Z_-^-1 (five integer pairs), a non-scalar real symmetric residue does not commute, and W is nonzero exactly when some Z_pm^-1 is nonzero", okh) info("UV: the overlap beta_pm(P_TT) on a fixed packet, the regular-refinement symbol (IF-REF), the quotient annihilation of the physical read for Han's amplitude, and the parity hypothesis (IF-PAR) are not replayed; the source states that the complete-amplitude overlap is evaluated on a selected physical boundary state and is open") def _pmul(a_, b_): return tuple(a_[b_[i]] for i in range(4)) def _a4(): gens = [(1, 2, 0, 3), (1, 0, 3, 2)] grp = {(0, 1, 2, 3)} fr = list(grp) while fr: nf = [] for x_ in fr: for g_ in gens: y_ = _pmul(g_, x_) if y_ not in grp: grp.add(y_); nf.append(y_) fr = nf return grp def _ordp(x_): n_, y_ = 1, x_ while y_ != (0, 1, 2, 3): y_ = _pmul(x_, y_); n_ += 1 return n_ # G. single-carriage action, the 548 reader, the discrete boundary action, the Hodge turn, the Maxwell witness, the plane adapter print("\nG. Single carriage, 548 reader, boundary action, Hodge turn, Maxwell witness, plane adapter") _sv = (S, H, Om, I2, Q) _kM = lambda rows: [[k(x) for x in r] for r in rows] I2 = _kM([[1, 0], [0, 1]]); Q = _kM([[1, 1], [1, 0]]); Om = _kM([[0, 1], [-1, 0]]) H = msc(R5 / 5, madd(mm(Q, Om), msc(-1, mm(Om, Q)))) S = msc(R5 / 5, madd(msc(2, Q), msc(-1, I2))) Hn = H ch_sh = lambda p: (K(F(p) + 1 / F(p)) * K(F(1, 2)), K(F(p) - 1 / F(p)) * K(F(1, 2))) # cosh s, sinh s for e^s = p rational okc = True; okn = True z0s = [[ONE, ZERO], [K(2), K(-3)], [R5, ONE], [K(F(1, 2)), R5 * K(F(2, 3))]] vdot = lambda u, v: sum((u[i] * v[i] for i in range(2)), ZERO) bil = lambda u, v: vdot(u, mv(Hn, v)) # u^T H v for z0 in z0s: for p in (2, 3, F(1, 2), F(5, 3)): c_, s_ = ch_sh(p) Sz0 = mv(S, z0) z = [c_ * z0[i] + s_ * Sz0[i] for i in range(2)] # z = cosh s z0 + sinh s S z0 zd = [s_ * z0[i] + c_ * Sz0[i] for i in range(2)] # derivative of z in s zdd = [c_ * z0[i] + s_ * Sz0[i] for i in range(2)] # derivative of zd Sz = mv(S, z) okc &= zdd == z and zd == Sz # z'' = z and z' = S z on the orbit Qh = bil(zd, mv(S, z)) # z'^T H S z okn &= Qh == -bil(z, z) and Qh == -bil(z0, z0) # Q_H = -z^T H z = const E_ = K(F(1, 2)) * bil(zd, zd) - K(F(1, 2)) * bil(z, z) okn &= E_ == -bil(z, z) line("carriage oscillator: for z(s) = cosh s z_0 + sinh s S z_0 = e^(sS) z_0 (e^s = 2, 3, 1/2, 5/3; four exact start vectors in Q(sqrt 5)) the Euler-Lagrange equation of L = (1/2) z'^T H z' + (1/2) z^T H z is z'' = z (not z'' = 0), z' = S z on the orbit, and L_s^T H L_s = H, H L_s H = L_(-s) (section A)", okc) line("carriage invariants: on the orbit Q_H = z'^T H S z = -z^T H z = -z_0^T H z_0 and E = (1/2) z'^T H z' - (1/2) z^T H z = -z^T H z are constant; for the general solution z = p a + p^-1 b (p = e^s) E = -2 a^T H b and J = z'^T H S z = 2 a^T H S b are constant, and for z = p (1, 0) (b = 0) J = E = 0 while -z^T H z = 2p^2/sqrt 5 varies", okn and (lambda ok_: ok_)(all( (lambda a_, b_, p: (lambda z_, zd_: K(F(1, 2)) * bil(zd_, zd_) - K(F(1, 2)) * bil(z_, z_) == K(-2) * bil(a_, b_) and bil(zd_, mv(S, z_)) == K(2) * vdot(a_, mv(mm(Hn, S), b_)))( [K(p) * a_[i] + K(1 / F(p)) * b_[i] for i in range(2)], [K(p) * a_[i] - K(1 / F(p)) * b_[i] for i in range(2)]))(a0, b0, p0) for a0, b0 in [([ONE, ZERO], [ZERO, ONE]), ([K(2), R5], [K(-1), K(3)])] for p0 in (2, 3, F(1, 2)))) and all(bil([K(p) * ONE, ZERO], mv(S, [K(p) * ONE, ZERO])) == ZERO and K(-1) * bil([K(p) * ONE, ZERO], [K(p) * ONE, ZERO]) == K(2 * p * p) * R5 / 5 for p in (2, 3))) Pp = madd(msc(F(1, 2), I2), msc(F(1, 2), S)); Pm = madd(msc(F(1, 2), I2), msc(F(-1, 2), S)) line("projector time conjugation: P_pm = (I pm S)/2 are complementary idempotents, P_+ P_- = 0, P_+ + P_- = I, H P_+ H = P_-, so Theta = H Lambda H exchanges the expanding and contracting branches for Lambda = P_+, while for the central Lambda = U_pi = -I one has H(-I)H = -I (conjugation is trivial)", meq(mm(Pp, Pp), Pp) and meq(mm(Pm, Pm), Pm) and meq(mm(Pp, Pm), [[0, 0], [0, 0]]) and meq(madd(Pp, Pm), I2) and meq(mm(mm(H, Pp), H), Pm) and meq(mm(mm(H, msc(-1, I2)), H), msc(-1, I2))) C1 = msc(-1, Om) line("quarter-turn and the form: C_1 = -Omega has C_1^2 = -I, C_1 H = -H C_1 and C_1^T H C_1 = -H (it reverses the sign of the (1, 1) form), so the quarter-turn is outside the isometry group of H; C_1 has order 4 and the alternating group A_4 (order 12, generated by (1 2 3) and (1 2)(3 4)) has element orders 1, 2, 3 only, so no element of A_4 has order 4", meq(mm(C1, C1), msc(-1, I2)) and meq(mm(C1, H), msc(-1, mm(H, C1))) and meq(mm(mm(mt(C1), H), C1), msc(-1, H)) and meq(mm(mm(C1, C1), mm(C1, C1)), I2) and (lambda grp: len(grp) == 12 and {_ordp(x_) for x_ in grp} == {1, 2, 3})(_a4())) line("548 reader: phi(q, s) = 2 pi (q/4 + s/137) = (2 pi/548)(137 q + 4 s); (q, s) -> 137 q + 4 s mod 548 is a bijection Z_4 x Z_137 -> Z_548 (all 548 pairs), the quarter-turn is index 137 = 548/4 of order 4 and the micro-step is index 4 of order 137; the row address u = 137 q + s is also a bijection onto 0..547 but a different one, agreeing with the phase index exactly on the 4 pairs with s = 0 (3 s = 0 mod 548 forces s = 0)", len({(137 * q_ + 4 * s_) % 548 for q_ in range(4) for s_ in range(137)}) == 548 and len({137 * q_ + s_ for q_ in range(4) for s_ in range(137)}) == 548 and min(j for j in range(1, 549) if (137 * j) % 548 == 0) == 4 and min(j for j in range(1, 549) if (4 * j) % 548 == 0) == 137 and sum(1 for q_ in range(4) for s_ in range(137) if (137 * q_ + 4 * s_) % 548 == 137 * q_ + s_) == 4) # v9: the half-turn, the least loops, the turn against the metric, the CRT address, the units modulo 137 (local K-valued copies; no global is rebound) _J = msc(-1, Om) # the quarter-turn J = i = -Omega = U_(pi/2), the gauge phase of section B _Gm = madd(mm(Q, Om), msc(-1, mm(Om, Q))) # G = [Q, Omega] _Z2 = [[0, 0], [0, 0]] _Utur = lambda c_, s_: madd(msc(c_, I2), msc(s_, _J)) # U = c I + s J, with (c, s) = (cos theta, sin theta) def _mpow(A_, n_): R_ = I2 for _ in range(n_): R_ = mm(A_, R_) return R_ _units2 = [[[1, 0], [0, 0]], [[0, 1], [0, 0]], [[0, 0], [1, 0]], [[0, 0], [0, 1]]] _Upi = mm(_J, _J) _Jinv = msc(-1, _J) _vecs = [[k(a_), k(b_)] for a_ in range(-3, 4) for b_ in range(-3, 4) if (a_, b_) != (0, 0)] _det2 = lambda u_, v_: u_[0] * v_[1] - u_[1] * v_[0] line("half-turn: C_1 = -Omega is the minimum turn U_(pi/2) with C_1^2 = -I, so C_1^-1 = -C_1; the half-turn U_pi = C_1 C_1 = -I is central (it commutes with the four matrix units, hence with every 2 x 2 matrix) and returns every line (for every integer vector v of [-3, 3]^2 the vectors v and U_pi v span no plane), and the turn from C_1 to its mirror C_1^-1 = -C_1 is U_pi: U_pi C_1 = C_1 U_pi = C_1^-1; the quarter-turn C_1 itself returns no line, det(v, C_1 v) = v_1^2 + v_2^2 > 0 for every such v", meq(_J, [[0, -1], [1, 0]]) and meq(_Upi, msc(-1, I2)) and meq(mm(_J, _Jinv), I2) and meq(mm(_Jinv, _J), I2) and meq(_Jinv, mm(_Upi, _J)) and meq(mm(_Upi, _J), mm(_J, _Upi)) and all(meq(mm(_Upi, _kM(e_)), mm(_kM(e_), _Upi)) for e_ in _units2) and all(_det2(v_, mv(_Upi, v_)) == ZERO for v_ in _vecs) and all(_det2(v_, mv(_J, v_)) == v_[0] * v_[0] + v_[1] * v_[1] and _det2(v_, mv(_J, v_)) != ZERO for v_ in _vecs)) _Jp = [_mpow(_J, j_) for j_ in range(0, 13)] line("least loops: the turns C_1^j (angle j pi/2) are I, C_1, -I, -C_1, I, ... with C_1^j = I iff 4 | j and C_1^j = -I iff j = 2 mod 4 (j = 0..12), so C_1, C_1^2, C_1^3 are not I, C_1^4 = I, the least j >= 1 with C_1^j = -I is 2 (angle pi) and the least with C_1^j = I is 4 (angle 2 pi); U_(k pi) = (C_1^2)^k = (-I)^k is I iff k is even (k = 0..11); I and C_1 are linearly independent, so U = cos theta I + sin theta C_1 equals I iff cos theta = 1 and sin theta = 0, whose least positive solution is theta = 2 pi (a standard fact about cos and sin, not replayed here)", all(meq(_Jp[j_], I2) == (j_ % 4 == 0) and meq(_Jp[j_], msc(-1, I2)) == (j_ % 4 == 2) for j_ in range(13)) and not meq(_J, I2) and not meq(mm(_J, _J), I2) and not meq(_mpow(_J, 3), I2) and min(j_ for j_ in range(1, 13) if meq(_Jp[j_], msc(-1, I2))) == 2 and min(j_ for j_ in range(1, 13) if meq(_Jp[j_], I2)) == 4 and all(meq(_mpow(_Upi, k_), I2) == (k_ % 2 == 0) for k_ in range(12)) and (lambda a_, b_: a_[0] * b_[1] - a_[1] * b_[0] != ZERO)([k(x_) for r_ in I2 for x_ in r_], [k(x_) for r_ in _J for x_ in r_])) _GJ = mm(_Gm, _J) _circ = [(F(1), F(0)), (F(-1), F(0)), (F(0), F(1)), (F(0), F(-1)), (F(3, 5), F(4, 5)), (F(5, 13), F(12, 13)), (F(-8, 17), F(15, 17)), (F(7, 25), F(24, 25)), (F(-20, 29), F(21, 29)), (F(-3, 5), F(-4, 5))] _okm = meq(mm(mt(_J), _Gm), _GJ) and meq(mm(mm(mt(_J), _Gm), _J), msc(-1, _Gm)) and meq(mm(mm(mt(_Upi), _Gm), _Upi), _Gm) for c_, s_ in [(F(2), F(3)), (F(1, 2), F(-5, 3)), (F(7), F(1, 4)), (F(-1), F(2))] + _circ: # identities in (c, s), not only on the circle U_ = _Utur(K(c_), K(s_)) _okm &= meq(mm(mt(U_), _Gm), mm(_Gm, U_)) and meq(mm(mm(mt(U_), _Gm), U_), madd(msc(c_ * c_ - s_ * s_, _Gm), msc(2 * c_ * s_, _GJ))) _okm &= meq(mm(mm(mt(U_), _Gm), U_), mm(_Gm, _Utur(K(c_ * c_ - s_ * s_), K(2 * c_ * s_)))) _okm &= all((c_ * c_ + s_ * s_ == 1) and (meq(mm(mm(mt(_Utur(K(c_), K(s_))), _Gm), _Utur(K(c_), K(s_))), _Gm) == (s_ == 0)) and (all(_det2(v_, mv(_Utur(K(c_), K(s_)), v_)) == ZERO for v_ in _vecs) == (s_ == 0)) for c_, s_ in _circ) line("turn and the metric: for U = c I + s C_1 (c = cos theta, s = sin theta; U_theta is the gauge phase of section B) C_1^T G = G C_1 and C_1^T G C_1 = -G, hence U^T G = G U and U^T G U = G U^2 = (c^2 - s^2) G + 2 c s G C_1 as an identity in (c, s) (checked at 14 exact points, with c^2 + s^2 = 1 at 10 of them), so the quarter-turn gives -G and the half-turn gives G; G and G C_1 are linearly independent, so at c^2 + s^2 = 1 the form is preserved iff c^2 - s^2 = 1 and c s = 0, i.e. s = 0, and every line is returned iff U is scalar iff s = 0 (C_1 is not scalar): the metric is preserved and every line is returned iff sin theta = 0, i.e. theta in pi Z (on the ten exact circle points c^2 + s^2 = 1 both hold exactly when s = 0)", _okm and (lambda a_, b_: a_[0] * b_[1] - a_[1] * b_[0] != ZERO)([k(x_) for r_ in _Gm for x_ in r_], [k(x_) for r_ in _GJ for x_ in r_])) _crtA = lambda q_, s_: (137 * q_ + 412 * s_) % 548 _pairs = [(q_, s_) for q_ in range(4) for s_ in range(137)] _agree_pu = [(q_, s_) for q_, s_ in _pairs if (137 * q_ + 4 * s_) % 548 == 137 * q_ + s_] _agree_pA = [(q_, s_) for q_, s_ in _pairs if (137 * q_ + 4 * s_) % 548 == _crtA(q_, s_)] _agree_Au = [(q_, s_) for q_, s_ in _pairs if _crtA(q_, s_) == 137 * q_ + s_] line("CRT address: A(q, s) = 137 q + 412 s mod 548 is a bijection Z_4 x Z_137 -> Z_548 with A = q mod 4 and A = s mod 137 (the inverse is a -> (a mod 4, a mod 137)), because gcd(4, 137) = 1 and the weights 137 and 412 are the idempotents of Z_548 (137^2 = 137, 412^2 = 412, 137 * 412 = 0, 137 + 412 = 1 mod 548; 412 = 4 * 103 = 3 * 137 + 1); the phase index 137 q + 4 s equals A(q, 4 s mod 137), so it differs from A by the automorphism s -> 4 s of Z_137 and the two agree exactly where 3 s = 0, i.e. s = 0 (4 pairs, as for the row address u = 137 q + s); A and the row address agree on 140 pairs (those with 4 | s for the representative 0 <= s < 137), so the three readers are three different maps", len({_crtA(q_, s_) for q_, s_ in _pairs}) == 548 and all(_crtA(q_, s_) % 4 == q_ and _crtA(q_, s_) % 137 == s_ for q_, s_ in _pairs) and all(_crtA(a_ % 4, a_ % 137) == a_ for a_ in range(548)) and math.gcd(4, 137) == 1 and (137 * 137) % 548 == 137 and (412 * 412) % 548 == 412 and (137 * 412) % 548 == 0 and (137 + 412) % 548 == 1 and 412 == 4 * 103 == 3 * 137 + 1 and all((137 * q_ + 4 * s_) % 548 == _crtA(q_, (4 * s_) % 137) for q_, s_ in _pairs) and len(_agree_pu) == 4 and len(_agree_pA) == 4 and all(s_ == 0 for q_, s_ in _agree_pu + _agree_pA) and len(_agree_Au) == 140 and all(s_ % 4 == 0 for q_, s_ in _agree_Au) and 3 * 137 == 411) _p137 = 137 _ord = lambda a_, p_: next(e_ for e_ in range(1, p_) if pow(a_, e_, p_) == 1) _isprime = lambda n_: n_ > 1 and all(n_ % d_ for d_ in range(2, int(n_ ** 0.5) + 1)) _pw4 = {pow(4, e_, _p137) for e_ in range(34)} _gen = next(g_ for g_ in range(2, _p137) if _ord(g_, _p137) == 136) _qord = min(e_ for e_ in range(1, 137) if pow(_gen, e_, _p137) in _pw4) _cos = {frozenset((pow(_gen, e_, _p137) * h_) % _p137 for h_ in _pw4) for e_ in range(136)} line("units modulo 137: 137 is prime and 137 = 11^2 + 4^2 = 1 + 4 * 34; the order of 4 in F_137^x is 34 (computed by search, 4^17 = -1), so <4> has 34 elements and index 136/34 = 4 in F_137^x; F_137^x has a generator g (order 136) and the least e >= 1 with g^e in <4> is 4, so the quotient F_137^x / <4> is cyclic of order 4 (generated by the coset of g, with exactly 4 cosets); 137 is the least prime p with ord_p(4) = 34 (no prime p < 137 has it), and for it (p - 1)/34 = 4; the order 4 of the quotient and the order 4 of the quarter-turn are equal as numbers, and no map between the two groups is claimed here", _isprime(137) and 11 * 11 + 4 * 4 == 137 == 1 + 4 * 34 and _ord(4, 137) == 34 and pow(4, 17, 137) == 136 and len(_pw4) == 34 and 136 // 34 == 4 and _ord(_gen, 137) == 136 and _qord == 4 and len(_cos) == 4 and all(_ord(4, p_) != 34 for p_ in range(3, 137) if _isprime(p_)) and (137 - 1) // 34 == 4) # v9b: null coordinates of the carriage and the kept amplitude (local K-valued copies) _Psi = K(F(1, 2), F(-1, 2)) # (1 - sqrt 5)/2 _Pn = [[PHI, _Psi], [ONE, ONE]] # columns v_+ = (Phi, 1), v_- = (Psi, 1): eigenvectors of Q and of S, G-null _sx = [[0, 1], [1, 0]] _nv = lambda a_, b_: mv(_Pn, [K(a_), K(b_)]) # z = a v_+ + b v_- _Hq = lambda u_, v_: vdot(u_, mv(H, v_)) # u^T H v _Lag = lambda z_, zd_: K(F(1, 2)) * _Hq(zd_, zd_) + K(F(1, 2)) * _Hq(z_, z_) _okn = meq(mm(mm(mt(_Pn), _Gm), _Pn), msc(5, _kM(_sx))) and meq(mm(mm(mt(_Pn), H), _Pn), msc(R5, _kM(_sx))) and meq(mm(S, _Pn), mm(_Pn, _kM([[1, 0], [0, -1]]))) _okn &= _Pn[0][0] * _Pn[1][1] - _Pn[0][1] * _Pn[1][0] == R5 and R5 != ZERO for a_, b_, ad_, bd_ in [(F(1), F(2), F(3), F(-1)), (F(4), F(1), F(-2), F(5, 3)), (F(1, 7), F(13, 5), F(2), F(9, 4)), (F(0), F(1), F(1), F(0))]: z_, zd_ = _nv(a_, b_), _nv(ad_, bd_) _okn &= _Lag(z_, zd_) == R5 * K(ad_ * bd_ + a_ * b_) # L = sqrt 5 (a' b' + a b) _okn &= _Hq(zd_, mv(S, z_)) == R5 * K(a_ * bd_ - ad_ * b_) # J = sqrt 5 (a b' - a' b) _okn &= K(F(1, 2)) * _Hq(zd_, zd_) - K(F(1, 2)) * _Hq(z_, z_) == R5 * K(ad_ * bd_ - a_ * b_) # E = sqrt 5 (a' b' - a b) _okn &= _Hq(z_, z_) == K(2 * a_ * b_) * R5 and vdot(z_, mv(_Gm, z_)) == K(10 * a_ * b_) # z^T H z = 2 sqrt 5 a b, z^T G z = 10 a b for p_ in (F(2), F(3), F(1, 2)): # a = c1 p + c2/p, b = d1 p + d2/p solve a'' = a, b'' = b, hence z'' = z for c1_, c2_, d1_, d2_ in [(F(1), F(2), F(-1), F(3)), (F(5, 2), F(0), F(1, 3), F(-4))]: ap_, bp_ = c1_ * p_ + c2_ / p_, d1_ * p_ + d2_ / p_ adp_, bdp_ = c1_ * p_ - c2_ / p_, d1_ * p_ - d2_ / p_ zg_, zgd_ = _nv(ap_, bp_), _nv(adp_, bdp_) _okn &= K(F(1, 2)) * _Hq(zgd_, zgd_) - K(F(1, 2)) * _Hq(zg_, zg_) == K(-2 * (c1_ * d2_ + c2_ * d1_)) * R5 # E constant in p _okn &= _Hq(zgd_, mv(S, zg_)) == K(2 * (c2_ * d1_ - c1_ * d2_)) * R5 # J constant in p line("null coordinates: for z = a v_+ + b v_- with v_+ = (Phi, 1), v_- = (Psi, 1) (eigenvectors of Q and of S with S v_pm = pm v_pm, G-null; det [v_+, v_-] = sqrt 5) one has P^T G P = 5 sigma_x and P^T H P = sqrt 5 sigma_x, so z^T G z = 10 a b and z^T H z = 2 sqrt 5 a b; the carriage Lagrangian L = (1/2) z'^T H z' + (1/2) z^T H z equals sqrt 5 (a' b' + a b), its Euler-Lagrange equations are a'' = a and b'' = b (the same as z'' = z), the symmetry z -> e^(sS) z is (a, b) -> (e^s a, e^-s b), and J = z'^T H S z = sqrt 5 (a b' - a' b), E = (1/2) z'^T H z' - (1/2) z^T H z = sqrt 5 (a' b' - a b) (identities checked at four exact points of (a, b, a', b'); on the general solution a = c_1 p + c_2/p, b = d_1 p + d_2/p, which solves a'' = a and b'' = b, E = -2 sqrt 5 (c_1 d_2 + c_2 d_1) and J = 2 sqrt 5 (c_2 d_1 - c_1 d_2) at p = 2, 3, 1/2)", _okn) _okk = True _cases = [(F(4), F(1)), (F(9), F(16)), (F(1, 7), F(13, 5)), (F(3), F(3))] for a0_, b0_ in _cases: for p_ in (F(2), F(3), F(1, 2), F(5, 3)): a_, b_ = p_ * a0_, b0_ / p_ # the carriage: a' = a, b' = -b z_, zd_ = _nv(a_, b_), _nv(a_, -b_) _okk &= meq([zd_], [mv(S, z_)]) and _Lag(z_, zd_) == ZERO # z' = S z; L vanishes on the carriage, not as a functional _okk &= _Hq(zd_, mv(S, z_)) == K(-2 * a_ * b_) * R5 and K(F(1, 2)) * _Hq(zd_, zd_) - K(F(1, 2)) * _Hq(z_, z_) == K(-2 * a_ * b_) * R5 _okk &= a_ * b_ == a0_ * b0_ and vdot(z_, mv(_Gm, z_)) == K(10 * a0_ * b0_) # m^2 = a b = z^T G z / 10 is kept _okk &= (a_ / b_) == p_ * p_ * (a0_ / b0_) # a/b is multiplied by p^2, so r = (1/2) log (a/b) advances by log p g_, b2_ = (a_ - b_) / (a_ + b_), 4 * a_ * b_ / (a_ + b_) ** 2 _okk &= g_ * g_ + b2_ == 1 and (a_ + b_) ** 2 - 4 * a_ * b_ == (a_ - b_) ** 2 and (a_ + b_) ** 2 >= 4 * a_ * b_ _okk &= (lambda a_, b_: (a_ - b_) / (a_ + b_) == F(3, 5) and 4 * a_ * b_ / (a_ + b_) ** 2 == F(16, 25))(F(4), F(1)) _okk &= (lambda a_, b_: (a_ - b_) / (a_ + b_) == 0 and 4 * a_ * b_ / (a_ + b_) ** 2 == 1 and a_ * b_ == 4)(F(4) * F(1, 2), F(1) / F(1, 2)) # (4, 1) returns to (2, 2) at p = 1/2, m^2 = 4 throughout line("kept amplitude: on the carriage z' = S z, i.e. a = p a_0, b = b_0/p (p = 2, 3, 1/2, 5/3; start values (4, 1), (9, 16), (1/7, 13/5), (3, 3)), L = 0 (it vanishes along the carriage and not as a functional: the Euler-Lagrange law is that of L) and J = E = -2 sqrt 5 a b, with a b = z^T G z / 10 = m^2 constant, so m^2 = -J/(2 sqrt 5) is the Noether charge up to a constant; a/b is multiplied by p^2, so r = (1/2) log (a/b) advances by log p while g = (a - b)/(a + b) and beta^2 = 4 a b/(a + b)^2 satisfy g^2 + beta^2 = 1 and (a + b)^2 - 4 a b = (a - b)^2 >= 0, least at a = b, the neutral return; (4, 1) returns to (2, 2) at p = 1/2 with g from 3/5 to 0, beta^2 from 16/25 to 1 and m^2 = 4 throughout (no logarithm is evaluated: r is read through the ratio a/b)", _okk) okb = all(4 * N_ - 2 * g_ == 2 * (N_ + 1) - 2 * (g_ - N_ + 1) and (N_ - 1) + (g_ - N_ + 1) == g_ for N_ in range(1, 120) for g_ in range(1, 240)) line("discrete boundary action: for every pair (N, g) with lock = N - 1 and contact = g - N + 1, Exposed = 4N - 2g = 2(N + 1) - 2 contact and lock + contact = g (identity over 1 <= N < 120, 1 <= g < 240); at the declared inputs N = 168, g = 276: lock 167, contact 109, Exposed 120 = 96 + 24; at the declared 336 states of Cell 169: 216 + 96 + 24 = 336 (the lattice data N, g are declared inputs of their own records and are not rederived here)", okb and 168 - 1 == 167 and 276 - 168 + 1 == 109 and 4 * 168 - 2 * 276 == 120 == 96 + 24 and 216 + 96 + 24 == 336) # Hodge turn on two-forms of Minkowski space and its mirror def psign(seq): return (-1) ** sum(1 for i in range(len(seq)) for j in range(i + 1, len(seq)) if seq[i] > seq[j]) PAIRS = [(i, j) for i in range(4) for j in range(i + 1, 4)] def hodge_mat(gd, sqrtdet): Mx = [[F(0)] * 6 for _ in range(6)] for col, (i, j) in enumerate(PAIRS): kk = [x for x in range(4) if x not in (i, j)] Mx[PAIRS.index(tuple(kk))][col] = sqrtdet * (1 / gd[i]) * (1 / gd[j]) * psign([i, j] + kk) return Mx gM = [F(-1), F(1), F(1), F(1)] Hs_ = hodge_mat(gM, F(1)) hs = [F(1), F(-1), F(1), F(1)] Hm = [[F(0)] * 6 for _ in range(6)] for t_, (i, j) in enumerate(PAIRS): Hm[t_][t_] = hs[i] * hs[j] line("Hodge turn: on the six two-forms of Minkowski space (metric diag(-1, 1, 1, 1), orientation e^0123 > 0) the Hodge star satisfies star^2 = -I, and for the orientation-reversing involutive isometry h = diag(1, -1, 1, 1) (det h = -1, h^2 = I) the pullback satisfies h* star h* = -star; with G_Lorentz = diag(-c^2, r^2, 1, 1), star^2 = -I also holds for c, r = 2, 3 and 1/2, 5/7", imm(Hs_, Hs_) == [[F(-int(i == j)) for j in range(6)] for i in range(6)] and imm(imm(Hm, Hs_), Hm) == [[-x for x in r] for r in Hs_] and hs[0] * hs[1] * hs[2] * hs[3] == -1 and all(imm(hodge_mat([F(-c_ * c_), F(r_ * r_), F(1), F(1)], F(c_) * F(r_)), hodge_mat([F(-c_ * c_), F(r_ * r_), F(1), F(1)], F(c_) * F(r_))) == [[F(-int(i == j)) for j in range(6)] for i in range(6)] for c_, r_ in [(2, 3), (F(1, 2), F(5, 7))])) # Maxwell witness on R_t x S^1 x R_x x R_y with g_L = -c^2 dt^2 + r^2 dtheta^2 + dx^2 + dy^2 (coordinates 0, 1, 2, 3), A = a dtheta + f(u) dy, u = t - x/c NV = 4 # f0 = f, f1 = f', f2 = f'', f3 = f''' def Dchain(p): out = Pn(NV) for e, c_ in p.t.items(): for m in range(NV): if e[m] > 0: if m + 1 >= NV: raise ValueError("derivative order exceeded") e2 = list(e); e2[m] -= 1; e2[m + 1] += 1 out = out + Pn(NV, {tuple(e2): c_ * e[m]}) return out def dpart(k, p, cc): if k == 0: return Dchain(p) if k == 2: return Dchain(p) * (F(-1) / cc) return Pn(NV) def d_form(form, cc): # form: dict {index tuple: Pn} out = {} for idx, coef in form.items(): for k in range(4): if k in idx: continue new = (k,) + idx srt = tuple(sorted(new)); sg = psign(list(new)) term = dpart(k, coef, cc) * sg out[srt] = out.get(srt, Pn(NV)) + term return {k_: v for k_, v in out.items() if v.t} def hodge_form(form, gd, sqrtdet): out = {} for (i, j), coef in form.items(): kk = tuple(x for x in range(4) if x not in (i, j)) out[kk] = out.get(kk, Pn(NV)) + coef * (sqrtdet * (1 / gd[i]) * (1 / gd[j]) * psign([i, j] + list(kk))) return out fv = [Pn.var(NV, m) for m in range(NV)] okmx = True; okhol = True for c_, r_ in [(F(1), F(1)), (F(2), F(3)), (F(1, 2), F(5, 7)), (F(3), F(1, 4))]: gd = [-c_ * c_, r_ * r_, F(1), F(1)] for a_ in (F(0), F(3, 7)): A1 = {(1,): Pn.const(NV, a_), (3,): fv[0]} # A = a eta + f dy as a one-form (components on e^1, e^3) # dA computed from the components: (dA)_{kj} = d_k A_j - d_j A_k Fcomp = {} for j, Aj in A1.items(): for kx in range(4): if kx == j[0]: continue key = tuple(sorted((kx, j[0]))); sg = psign([kx, j[0]]) Fcomp[key] = Fcomp.get(key, Pn(NV)) + dpart(kx, Aj, c_) * sg Fcomp = {k_: v for k_, v in Fcomp.items() if v.t} Fexp = {(0, 3): fv[1], (2, 3): fv[1] * (F(-1) / c_)} sF = hodge_form(Fcomp, gd, c_ * r_) sFexp = {(0, 1): fv[1] * (-r_), (1, 2): fv[1] * (-r_ / c_)} okmx &= Fcomp == Fexp and sF == sFexp and d_form(Fcomp, c_) == {} and d_form(sF, c_) == {} okhol &= Fcomp == Fexp # the curvature does not depend on a line("Maxwell witness: on M = R x S^1 x R x R with g_L = -c^2 dt^2 + r^2 dtheta^2 + dx^2 + dy^2 and A = a eta + f(u) dy, u = t - x/c, exact in the free symbols f, f', f'', f''' (polynomial ring over Q) at (c, r) = (1, 1), (2, 3), (1/2, 5/7), (3, 1/4): F = dA = f'(u) du ^ dy, star F = -r f' dt ^ dtheta - (r/c) f' dtheta ^ dx, dF = 0 and d star F = 0", okmx) line("Maxwell holonomy separation: F is the same for a = 0 and a = 3/7 (the curvature is independent of a), while the loop holonomy exp(-2 pi a Omega) = cos(2 pi a) I - sin(2 pi a) Omega (Omega^2 = -I) depends only on a mod 1 and not on f; at a = 0 it is I", okhol and meq(mm(Om, Om), msc(-1, I2))) # plane adapter: Sylvester normal form of a Lorentzian two-plane def lagr(g): a, b, c = g if a != 0: L = [[F(1), -b / a], [F(0), F(1)]] elif c != 0: L = [[F(0), F(1)], [F(1), -b / c]] return L else: L = [[F(1), F(1)], [F(1), F(-1)]] return L okpl = True; cntpl = 0 for a_ in range(-4, 5): for b_ in range(-4, 5): for c_ in range(-4, 5): if a_ * c_ - b_ * b_ < 0: gm = [[F(a_), F(b_)], [F(b_), F(c_)]] L = lagr((F(a_), F(b_), F(c_))) Dg = imm(imm(itr(L), gm), L) okpl &= Dg[0][1] == 0 and Dg[1][0] == 0 and Dg[0][0] * Dg[1][1] < 0 and (Dg[0][0] * Dg[1][1]) == (a_ * c_ - b_ * b_) * (L[0][0] * L[1][1] - L[0][1] * L[1][0]) ** 2 cntpl += 1 L0 = [[F(1), F(1, 2)], [F(0), F(1)]] G_q = [[F(-2), F(1)], [F(1), F(2)]] okpl &= imm(imm(itr(L0), G_q), L0) == [[F(-2), F(0)], [F(0), F(5, 2)]] line("plane adapter: a Lorentzian two-plane of a metric has a Gram matrix g with det g < 0; Lagrange diagonalization over Q gives L^T g L = diag(d_1, d_2) with d_1 d_2 = det g (det L)^2 < 0 for all " + str(cntpl) + " integer Gram matrices with entries in [-4, 4] and det < 0, and G = [[-2, 1], [1, 2]] satisfies L_0^T G L_0 = diag(-2, 5/2) with L_0 = [[1, 1/2], [0, 1]]; scaling each basis vector by a positive real square root gives iota with iota^* g = l^2 H for H = G/sqrt 5 (Sylvester), so the planar root is an exact local normal form of every Lorentzian two-plane and of no more", okpl and cntpl > 0) S, H, Om, I2, Q = _sv okfib = True a_, b_ = 0, 1 for n in range(1, 41): a_, b_ = b_, a_ + b_ Qn = [[1, 0], [0, 1]] for _ in range(n): Qn = [[Qn[0][0] + Qn[0][1], Qn[0][0]], [Qn[1][0] + Qn[1][1], Qn[1][0]]] okfib &= Qn == [[b_, a_], [a_, b_ - a_]] line("Fibonacci representation Q^n: for n = 1..40, Q^n = [[F_(n+1), F_n], [F_n, F_(n-1)]] in exact integers, so n -> Q^n is a proved representation of the Fibonacci recurrence in the carrier of the root", okfib) F_START = len(LABELS) # lines before this point check the root or a finite relation; lines after it are the audit's own output META_EXCL = True # F. the register and its audit print("\nF. Register over J0 and the audit that decides Closed, Complete, Derived") LADDER = ["defined-office", "declared-placement", "unbuilt", "conditional-adapter", "closed-typed", "closed-exact"] CLOSED = {"closed-typed", "closed-exact"} DISCHARGED = CLOSED | {"declared-placement"} OPENSET = {"defined-office", "unbuilt", "conditional-adapter"} KNOWN = set() # named receipts admitted by this register: none ROOT = ["Q^2 = Q + I, Omega^2 = -I", "S^2 = I, S^T G + G S = 0", "Q^T G Q = -G, (Q^2)^T G Q^2 = G", "L_(log Phi) = cosh(log Phi) I"] J0 = { "R1": {"name": "Lorentzian spacetime sector", "native": ("general relativity", "established"), "demands": ["d_lor", "d_ein"]}, "R2": {"name": "local quantum field theory of matter and gauge fields", "native": ("quantum field theory of the Standard Model", "established"), "demands": ["d_gauge", "d_dyn"]}, "R3": {"name": "quantum gravitational state space", "native": ("covariant loop quantum gravity", "candidate"), "demands": ["d_qg"]}, "R4": {"name": "parameter and mass spectrum", "native": ("renormalized parameter space of the Standard Model", "established"), "demands": ["d_pcount", "d_pval"]}, "R5": {"name": "statistical-mechanical limit", "native": ("statistical mechanics", "established"), "demands": ["d_count", "d_therm"]}, } def E(i, addr, status, jur, rel, certs, burden, fals, derives=False, repr_certs=()): return dict(id=i, addresses=list(addr), status=status, jurisdiction=jur, relation=rel, certs=list(certs), burden=burden, falsifier=fals, derives=derives, repr_certs=list(repr_certs)) ENTRIES = [ E("e_lor_plane", ["d_lor"], "closed-exact", "tangent two-plane of the root: G has trace 0 and determinant -5; G plus I_2 has signature (3, 1); every Lorentzian two-plane of a metric has the root as its Sylvester normal form iota^* g = l^2 H", "signature of G, the polynomial identities z^T G z = 2 N, N(Phi x) = -N(x), N(Phi^2 x) = N(x), and the Lagrange diagonalization over Q of every integer Lorentzian Gram matrix of the tested range", ["local Lorentzian plane:", "plane adapter:"], "", "an integer pair with N_alg(Phi x) != -N_alg(x), or a sign pattern of G other than (+, -)"), E("e_einstein", ["d_ein"], "declared-placement", "curvature, the Einstein field equation and its source stay native to general relativity", "none claimed beyond the tangent plane", [], "an adapter from the root's tangent plane to a Lorentzian manifold carrying the Einstein equation", "any statement that the root derives the Einstein equation, the cosmological term or the matter source"), E("e_gauge_phase", ["d_gauge"], "closed-exact", "real 2 x 2 representation of U(1) generated by i = -Omega", "H U_theta H = U_(-theta)", ["gauge phase: i = -Omega"], "", "any theta with H U_theta H != U_(-theta)"), E("e_sm_counts", ["d_gauge", "d_pcount"], "closed-exact", "dimension counts 12, 66, 55, 28, 19 and the seven-matching partition of the 28 edges of K8", "finite counts, the bracket image of dimension 11 from a rational basis, and the partition", ["Standard Model gauge algebra counts", "gauge algebra bracket image", "K8 ledger"], "", "any count failure, or an edge outside its matching"), E("e_mass_matrix", ["d_pcount"], "closed-exact", "tree-level neutral gauge-boson mass matrix of the declared form (v^2/4) u u^T, u = (g_2, -g_Y), identities over Q[g_2, g_Y, v]", "determinant 0 and trace (v^2/4)(g_2^2 + g_Y^2) as polynomial identities", ["neutral gauge-boson mass matrix"], "", "a polynomial identity of the matrix that fails"), E("e_qft_dyn", ["d_dyn"], "declared-placement", "interacting matter and gauge dynamics, Higgs mechanism, renormalization scheme and scale stay native to quantum field theory", "none claimed", [], "an adapter from the root's finite gauge ledger to a renormalized local field theory", "any statement that the root derives a Lagrangian, a beta function or a Higgs potential"), E("e_qg", ["d_qg"], "declared-placement", "physical Hilbert space, constraint quotient, continuum limit and propagating spin-two sector stay native to covariant loop quantum gravity; the compatibility layer is typed by e_lqg_compat, the Gaussian carrier and minimum TT reader by e_uv_tt, and the joint criterion F_comp = 0 and W2[G_phys] != 0 is the declared interface", "criterion F_comp = 0 and W2[G_phys] != 0, with W2 the residue W_TT of the minimum TT reader; the compatibility half is closed in e_lqg_compat and the carrier and local reader in e_uv_tt", [], "the finite overlap beta_pm(P_TT) != 0 on a fixed packet (graph, sector vector, boundary state with a link of spin at least 1, quotient, refinement normalization), with the quotient annihilation of the physical read for the amplitude and the conditions IF-REF and IF-ROT of the minimum TT reader (and IF-PAR for a scalar residue)", "beta_+ = beta_- = 0 on every admissible fixed packet, in which case that ultraviolet realization does not flow to four-dimensional graviton dynamics"), E("e_sm_params", ["d_pval"], "declared-placement", "numerical values of the 19 coordinates and the mass spectrum are declared inputs of the renormalized Standard Model at a stated scheme and scale, read through a calibrated measurement record; the root supplies counts (e_sm_counts) and the tree-level mass-matrix structure (e_mass_matrix) and claims no value", "none claimed beyond the counts and the mass-matrix structure; a record closes at declared resolution delta when every entry is declared and the residual is at most delta", [], "a calibrated record for each value: scheme, scale, source and residual at most the declared resolution; or a selection rule from declared input data compared at the same scheme and scale", "any statement that the root yields a value of a coupling or a mass; or a selection rule whose predicted observable disagrees with measurement at the same scheme and scale"), E("e_stat", ["d_count"], "closed-exact", "finite microstate and macrostate spaces, coarse graining of a declared macrostate", "coarse-graining identity: containment, additivity, S_eta = S_B - k_B log(W_rho/W_eta)", ["finite coarse-graining identity", "negative control for the refinement test"], "", "a finite pair with an eta-fibre outside its rho-fibre"), E("e_thermo", ["d_therm"], "declared-placement", "thermodynamic limit and energy and entropy balances stay native to statistical mechanics", "none claimed", [], "an adapter from finite counting to a thermodynamic limit with the balances", "any statement that the root derives a thermodynamic limit or the second law"), # outside J0: supporting entries E("e_variational", [], "closed-exact", "discrete variational map, cotangent lift", "M_cot symplectic and q_G preserved", ["variational map"], "", "a lift with M^T J M != J"), E("e_susy", [], "closed-exact", "1|1 carrier and scalar fermionic oscillator, grading 2|2", "A_+^2 = A_-^2 = 0 and {A_+, A_-} = 20 I", ["scalar supersymmetry: S_raw^2", "mirror grading:"], "", "any failure of the nilpotency or the supercommutator"), E("e_euler", [], "closed-exact", "hyperbolic plane of the Newtonian linearization at the equal-mass collinear Euler equilibrium, at the declared interval sigma_*", "e^(A sigma_*) C = C Q^2 and R C = C H", ["Euler relative equilibrium (equal masses", "total angular momentum", "physical mirror axis:", "mirror of the Euler orbit:", "root relations used by the Euler adapter:", "Newtonian linearization:", "characteristic polynomial of the Newtonian", "reversor:", "shape reduction:", "nu is a root of x^2", "hyperbolic eigenvectors:", "u_+ = (Phi, 1)", "theorem (intertwining), exact part:"], "", "any failure of A w_pm = pm nu w_pm"), E("e_euler_cross", [], "conditional-adapter", "nonlinear cross and the sampled map beyond the linear plane", "cited stable-manifold, Koenigs and reversor arguments", [], "the reduction to the reduced Hamiltonian by Jacobi coordinates at fixed angular momentum, a replay of the stable-manifold, Koenigs and reversor theorems, and a symbolic proof of the quartic coefficient a (matched here at fifty digits by a second reader)", "a = 0, or a failure of the linear intertwining"), E("e_arith", [], "closed-exact", "finite arithmetic of 137 and the quotient F_137^x / <4>", "137 = L_5^2 + 4^2 = 1 + 4 F_9; 4^17 = -1 mod 137; ord_137(4) = 34, the quotient F_137^x / <4> cyclic of order 4, and 137 the least prime with ord_p(4) = 34", ["finite arithmetic of 137", "units modulo 137:"], "", "any failure of 4^17 = -1 mod 137, a quotient that is not cyclic of order 4, or a smaller prime p with ord_p(4) = 34"), E("e_lqg_compat", [], "closed-exact", "finite non-Abelian compatibility on a sparse two-complex: face-trivial transport implies tree-frame factorization G_e = s_v s_u^-1 on simply connected subcomplexes; compatibility zero locus carries no flatness condition on the physical transport", "Lemma 1 and the separation of compatibility from flatness, checked exhaustively over S3 on a disk, seeded over S4 on a cone, and with an annulus showing necessity of simple connectivity", ["compatibility lemma, disk:", "compatibility lemma, cone:", "compatibility lemma, annulus:", "negative control for the compatibility lemma", "compatibility separation:"], "", "a face-trivial assignment on a simply connected complex with no tree-frame factorization, or a flat compatibility assignment that forces a physical face holonomy to be I"), E("e_han_hessian", [], "declared-placement", "imported premise of the ultraviolet carrier: the transverse quadratic block of the fixed-point amplitude of the cited fixed-point paper has Hessian -H_t = C_2 d_1^T d_1 (x) I_3 with C_2 = (d^2 - 1)/(12 E), at first propagating order in the cutoff", "none claimed; it is the premise of e_uv_tt", [], "a derivation of the Hessian form and the coefficient C_2 from the amplitude, or a certified reading of them from the cited paper", "a Hessian of the amplitude at first propagating order that is not C_2 d_1^T d_1 (x) I_3, or a coefficient other than (d^2 - 1)/(12 E)"), E("e_uv_tt", [], "closed-exact", "implication from the premise e_han_hessian to its finite consequences: Gaussian carrier', of the ultraviolet fixed point at first propagating order and the minimum j = 1 two-polarization TT reader: normalization C_2 = 1/12, covariance 12 (d_1^T d_1)^-1, the covariance diag(1, 1) of the metric-shear insertions, and the two-helicity form of a rotationally covariant residue", "exact parts of the minimum TT reader, as the implication from the premise e_han_hessian: C_2 = 1/12 at every nonzero spectral mode, covariance, the j = 1 reader and the helicity structure", ["UV carrier C2:", "UV carrier covariance:", "negative control for the UV carrier covariance", "UV minimum TT reader (j = 1):", "UV TT reader, general j:", "UV helicity structure:"], "", "a nonzero determinant failure of the gauge-fixed coboundary, a j = 1 covariance other than the identity, or a rotationally covariant residue outside the two-helicity form"), E("e_carriage", [], "closed-exact", "single-carriage action on the hyperbolic plane of the root: Euler-Lagrange equation z'' = z of L = (1/2) z'^T H z' + (1/2) z^T H z, its invariants E and J, the projector time conjugation H P_+ H = P_- and the quarter-turn outside the isometry group of H; the turns U = cos theta I + sin theta C_1 of the quarter-turn C_1: the central half-turn U_pi = C_1^2 = -I, the least loops (pi to the mirror C_1^-1 = -C_1, 2 pi to I), and U^T G U = G U^2, so the metric and every line are returned iff sin theta = 0", "z'' = z, z' = S z on the orbit, E = -2 a^T H b and J = 2 a^T H S b for the general solution, Theta = H P_+ H = P_-, C_1 H = -H C_1 and C_1^T H C_1 = -H; C_1^2 = -I central, C_1^4 = I with C_1, C_1^2, C_1^3 != I, U^T G U = (c^2 - s^2) G + 2 c s G C_1; in the null coordinates z = a v_+ + b v_-: L = sqrt 5 (a' b' + a b), J = sqrt 5 (a b' - a' b), and on the carriage L = 0 and J = E = -2 sqrt 5 a b with a b = z^T G z / 10 kept", ["carriage oscillator:", "carriage invariants:", "projector time conjugation:", "quarter-turn and the form:", "half-turn:", "least loops:", "turn and the metric:", "null coordinates:", "kept amplitude:"], "", "a carriage orbit with z'' != z, an invariant that varies on a solution, a quarter-turn preserving H, a half-turn that is not central, a turn with sin theta != 0 that preserves G or returns every line, or a carriage solution on which a b varies"), E("e_lattice_reader", [], "closed-exact", "finite readers of the lattice carriage: the phase index 137 q + 4 s on Z_4 x Z_137 = Z_548, distinct from the row address 137 q + s and from the CRT address 137 q + 412 s, and the discrete boundary identity 4N - 2g = 2(N + 1) - 2 contact with lock = N - 1 and contact = g - N + 1; the lattice data N and g are declared inputs of their own records", "bijection onto Z_548 with the orders 4 and 137, the CRT address as the bijection with A = q mod 4 and A = s mod 137 and the phase index as A(q, 4 s), the agreements of the three readers (4, 4 and 140 pairs), and the boundary identity over the stated range of (N, g)", ["548 reader:", "CRT address:", "discrete boundary action:"], "", "a collision of the phase index or of the CRT address, a conflation of the three readers beyond their stated agreements, or a pair (N, g) of the stated range violating the boundary identity"), E("e_hodge_maxwell", [], "closed-exact", "Hodge turn on the six two-forms of Minkowski space (star^2 = -I, h* star h* = -star for the orientation-reversing mirror) and the exact vacuum Maxwell witness A = a eta + f(u) dy on R x S^1 x R x R: dF = 0, d star F = 0, curvature independent of a, holonomy independent of f; a witness of the field equations that carries no claim of a derived field theory (see e_qft_dyn)", "star^2 = -I, h* star h* = -star, F = f'(u) du ^ dy, d star F = 0 as polynomial identities in f and its first three derivatives", ["Hodge turn:", "Maxwell witness:", "Maxwell holonomy separation:"], "", "a two-form basis element with star^2 != -I, or a Maxwell witness with dF != 0 or d star F != 0"), E("e_supercharge", [], "unbuilt", "spacetime supercharge Q_alpha, translation generators P_mu and a multiplet", "none", [], "odd generators acting on a field space with a supertranslation algebra", "odd generators with {Q, Q} not proportional to P"), ] def prefix_ok(t): pool = LABELS[:F_START] if META_EXCL else LABELS # a certificate is never a line of the audit itself ms = [ok for (l, ok) in pool if l.startswith(t)] return len(ms) == 1 and ms[0] def audit(J, entries, open_list, root_prefixes): """Returns the set of failed clauses among E1, E2a-E2d, E3a-E3b, E4, E5a-E5b.""" fail = set() dem = {d for r in J.values() for d in r["demands"]} if not all(prefix_ok(t) for t in root_prefixes): fail.add("E1") if not J or not dem: fail.add("E2a") # J is nonempty and has demands if any((not r["native"]) or r["native"][1] not in ("established", "candidate") for r in J.values()): fail.add("E2b") # every requirement names its native theory if not dem <= {d for e in entries for d in e["addresses"]} or any(not set(e["addresses"]) <= dem for e in entries): fail.add("E2c") # every demand addressed; entries address only demands of J ids = [e["id"] for e in entries] if len(set(ids)) != len(ids) or any(e["status"] not in LADDER for e in entries): fail.add("E2d") # statuses on the ladder, ids unique for e in entries: if e["status"] in CLOSED and (not e["certs"] or any((t not in KNOWN) if t.startswith("receipt:") else (not prefix_ok(t)) for t in e["certs"])): fail.add("E3a") # closed entries carry certificates that exist, are unique and pass if not e["jurisdiction"] or not e["relation"] or not e["falsifier"]: fail.add("E3b") # every entry states jurisdiction, relation, falsifier if e["derives"] and not (e["status"] == "closed-exact" and e["repr_certs"] and all(prefix_ok(t) for t in e["repr_certs"])): fail.add("E4") # no derivation without a proved representation if e["status"] not in CLOSED and not e["burden"]: fail.add("E5a") # non-closed entries name their burden if sorted(open_list) != sorted(e["id"] for e in entries if e["status"] not in CLOSED): fail.add("E5b") # the non-closed set is listed return fail def verdict(J, entries, open_list, root_prefixes=ROOT): fail = audit(J, entries, open_list, root_prefixes) dem = sorted({d for r in J.values() for d in r["demands"]}) by = {d: [e for e in entries if d in e["addresses"]] for d in dem} opendem = [d for d in dem if not any(e["status"] in DISCHARGED for e in by[d]) or any(e["status"] in OPENSET for e in by[d])] derived_raw = bool(dem) and all(any(e["derives"] and e["status"] in CLOSED for e in by[d]) for d in dem) closed = not fail complete = closed and not opendem derived = complete and derived_raw return dict(fail=fail, closed=closed, open_demands=opendem, complete_raw=not opendem, complete=complete, derived=derived, conventional=derived and all(r in J and J[r] == J0[r] for r in J0), open_reqs=sorted(r for r, v in J.items() if any(d in opendem for d in v["demands"]))) def listing(entries): return [e["id"] for e in entries if e["status"] not in CLOSED] V = verdict(J0, ENTRIES, listing(ENTRIES)) ndem = sum(len(r["demands"]) for r in J0.values()) line("audit of the instance: no clause fails (E1, E2a-E2d, E3a-E3b, E4, E5a-E5b) over 5 requirements, " + str(ndem) + " demands and 22 entries; Closed(T) holds", V["fail"] == set() and V["closed"] and len(ENTRIES) == 22 and ndem == 9) line("Complete(T) is true: no demand is open and the open requirements are none; four demands are closed (d_lor, d_gauge, d_pcount, d_count) and five are declared placements (d_ein, d_dyn, d_qg, d_pval, d_therm), and no entry addressing a demand has status in the open set", V["open_demands"] == [] and V["open_reqs"] == [] and V["complete"] and sorted(d for d in ["d_lor", "d_ein", "d_gauge", "d_dyn", "d_qg", "d_pcount", "d_pval", "d_count", "d_therm"] if any(e["status"] in CLOSED for e in ENTRIES if d in e["addresses"])) == ["d_count", "d_gauge", "d_lor", "d_pcount"] and sorted(d for d in ["d_ein", "d_dyn", "d_qg", "d_pval", "d_therm"] if all(e["status"] == "declared-placement" for e in ENTRIES if d in e["addresses"])) == ["d_dyn", "d_ein", "d_pval", "d_qg", "d_therm"]) line("Derived(T) is false and no entry asserts a derivation; the conventional reading (J contains J0 and Derived) is false", not V["derived"] and not any(e["derives"] for e in ENTRIES) and not V["conventional"]) line("the non-closed entries are finite and listed: e_einstein, e_qft_dyn, e_qg, e_sm_params, e_thermo, e_euler_cross, e_han_hessian, e_supercharge; six are declared placements (five inside J0 and the Hessian premise outside it), one is a conditional adapter and the one unbuilt entry is e_supercharge, outside J0", listing(ENTRIES) == ["e_einstein", "e_qft_dyn", "e_qg", "e_sm_params", "e_thermo", "e_euler_cross", "e_han_hessian", "e_supercharge"] and [e["id"] for e in ENTRIES if e["status"] == "unbuilt"] == ["e_supercharge"] and [e["id"] for e in ENTRIES if e["status"] == "conditional-adapter"] == ["e_euler_cross"]) cnt_in = {} for e in ENTRIES: if e["addresses"]: cnt_in[e["status"]] = cnt_in.get(e["status"], 0) + 1 line("status counts of the ten entries inside J0: closed-exact 5, declared-placement 5, closed-typed 0; twelve entries lie outside J0 (nine closed-exact supporting entries, one declared placement, one conditional adapter, one unbuilt)", cnt_in == {"declared-placement": 5, "closed-exact": 5} and sum(cnt_in.values()) == 10 and sum(1 for e in ENTRIES if not e["addresses"]) == 12 and sorted(e["status"] for e in ENTRIES if not e["addresses"]) == ["closed-exact"] * 9 + ["conditional-adapter", "declared-placement", "unbuilt"]) line("the register uses no named receipt: every closed entry is certified by a line of this reader", all(not t.startswith("receipt:") for e in ENTRIES for t in e["certs"]) and KNOWN == set()) def mutate(f): ent = copy.deepcopy(ENTRIES) J = copy.deepcopy(J0) r = f(J, ent) return r if r else (J, ent) FAILS = {} def control(tag, desc, f, expect, list_override=None, root=ROOT): J, ent = mutate(f) Vm = verdict(J, ent, listing(ent) if list_override is None else list_override, root) FAILS[tag] = Vm["fail"] line("negative control " + tag + ": " + desc + "; the audit fails exactly {" + ", ".join(sorted(expect)) + "} and Closed(T) is false", Vm["fail"] == set(expect) and not Vm["closed"]) return Vm def setf(eid, **kw): def f(J, ent): for e in ent: if e["id"] == eid: e.update(kw) return f def promote(ent, ids, certs): for e in ent: if e["id"] in ids: e["status"] = "closed-exact"; e["certs"] = list(certs) def m2(J, ent): promote(ent, {"e_qg"}, ["quantum gravity model replay"]) promote(ent, {"e_sm_params"}, ["receipt:unlisted"]) def m6(J, ent): for e in ent: e["addresses"] = [] return {}, ent def m11(J, ent): J["R3"]["native"] = None Vm = control("M1", "the mystic register: quantum gravity and the parameter values both promoted to closed-exact with no certificate", lambda J, ent: promote(ent, {"e_qg", "e_sm_params"}, []), {"E3a"}) line("M1 is load-bearing: without the audit the mystic register reads Complete, and with the audit it is refused", Vm["complete_raw"] and not Vm["complete"]) Vm = control("M2", "the same promotion with a certificate that matches no line of the reader and a receipt that the register does not admit", m2, {"E3a"}) line("M2 is load-bearing: the promoted register reads Complete without the audit and is refused with it", Vm["complete_raw"] and not Vm["complete"]) control("M3", "false non-closure: a closed count demoted to unbuilt with no burden, an untyped gap", setf("e_sm_counts", status="unbuilt", burden=""), {"E5a"}) control("M4", "a closed entry stripped of its falsifier", setf("e_sm_counts", falsifier=""), {"E3b"}) control("M5", "hidden gap: the entry for the parameter values deleted so that the demand d_pval has no entry", lambda J, ent: (J, [e for e in ent if e["id"] != "e_sm_params"]), {"E2c"}) control("M6", "a derivation claimed for the Einstein equation with no proved representation", setf("e_einstein", derives=True), {"E4"}) control("M7", "empty jurisdiction: J = {}", m6, {"E2a"}) control("M8", "an invalid status 'closed-ish' on the quantum gravity entry", setf("e_qg", status="closed-ish"), {"E2d"}) control("M9", "a non-closed entry (the quantum gravity placement) omitted from the declared list of non-closed entries", lambda J, ent: None, {"E5b"}, list_override=[i for i in listing(ENTRIES) if i != "e_qg"]) control("M10", "a root relation with no line in the reader", lambda J, ent: None, {"E1"}, root=ROOT[:3] + ["L_(log Phi) = a closed form that was never checked"]) control("M11", "two entries with the same id", lambda J, ent: (J, ent + [copy.deepcopy(ent[0])]), {"E2d"}) control("M12", "a requirement whose native theory is left unnamed", m11, {"E2b"}) control("M13", "an entry with no stated jurisdiction", setf("e_qg", jurisdiction=""), {"E3b"}) def inverted(J, ent): for e in ent: if e["id"] == "e_einstein": e.update(status="closed-exact", certs=["audit of the instance"], derives=True, repr_certs=["audit of the instance"]) Vm = control("M14", "inverted reading: the Einstein equation promoted to closed-exact with a derivation asserted, the register's own closure verdict (\"audit of the instance\") cited as both the certificate and the proved representation", inverted, {"E3a", "E4"}) META_EXCL = False J_, ent_ = mutate(inverted) raw = audit(J_, ent_, listing(ent_), ROOT) META_EXCL = True line("M14 is load-bearing: if audit lines could serve as certificates the circular derivation would pass the audit (no clause fails), and with the rule that a certificate is never a line of the audit itself it is refused; so the closure of a register cannot certify a physical derivation", raw == set() and Vm["fail"] == {"E3a", "E4"}) allc = ["E1", "E2a", "E2b", "E2c", "E2d", "E3a", "E3b", "E4", "E5a", "E5b"] line("the clauses are independent: each of the ten clauses E1, E2a-E2d, E3a-E3b, E4, E5a-E5b is the sole failure of some one-fault mutation of the instance, so none is implied by the others", all({c} in FAILS.values() for c in allc) and len(FAILS) == 14) # the Fibonacci register: a jurisdiction in which Derived holds JF = {"R_fib": {"name": "the Fibonacci recurrence", "native": ("the Fibonacci recurrence", "established"), "demands": ["d_fib"]}} EF = [E("e_fib", ["d_fib"], "closed-exact", "the integer sequence with F_(n+1) = F_n + F_(n-1)", "Q^n = [[F_(n+1), F_n], [F_n, F_(n-1)]]", ["Fibonacci representation Q^n"], "", "an n with Q^n different from the Fibonacci matrix", derives=True, repr_certs=["Fibonacci representation Q^n"])] Vf = verdict(JF, EF, []) Jn = copy.deepcopy(J0) En = copy.deepcopy(ENTRIES) for r in ("R3", "R4"): del Jn[r] live = {d for r in Jn.values() for d in r["demands"]} for e in En: e["addresses"] = [d for d in e["addresses"] if d in live] Vn = verdict(Jn, En, listing(En)) Ew = copy.deepcopy(ENTRIES) for e in Ew: if e["id"] in ("e_qg", "e_sm_params"): e["status"] = "unbuilt"; e["relation"] = "none" Vw = verdict(J0, Ew, listing(Ew)) line("strict chain, witnesses: Derived => Complete => Closed by definition, and neither converse holds. W1 the instance with the two placements e_qg and e_sm_params withdrawn to unbuilt is Closed and not Complete, with open demands exactly d_qg and d_pval; W2 the instance over J0 (and over J' = {R1, R2, R5}) is Complete and not Derived; W3 the Fibonacci register over {R_fib} is Derived, hence Complete and Closed", Vw["closed"] and not Vw["complete"] and Vw["open_demands"] == ["d_pval", "d_qg"] and V["complete"] and not V["derived"] and Vn["complete"] and not Vn["derived"] and Vf["closed"] and Vf["complete"] and Vf["derived"]) line("the conventional reading needs the jurisdiction: W3 is Derived and not conventional, and the instance over J0 is Complete and not Derived, hence not conventional; no register evaluated here is conventional", not Vf["conventional"] and not Vn["conventional"] and not V["conventional"] and not Vw["conventional"]) # restriction of the instance (and of the withdrawn register W1) to every nonempty sub-jurisdiction names = sorted(J0) def restrictions(ents): out = {} for mask in range(1, 32): S = [names[i] for i in range(5) if mask >> i & 1] Js = {r: copy.deepcopy(J0[r]) for r in S} live = {d for r in Js.values() for d in r["demands"]} Es = copy.deepcopy(ents) for e in Es: e["addresses"] = [d for d in e["addresses"] if d in live] out[frozenset(S)] = verdict(Js, Es, listing(Es)) return out res = restrictions(ENTRIES) resw = restrictions(Ew) line("restriction to jurisdictions, the instance: of the 31 nonempty sub-jurisdictions of J0 the restricted register is Closed in all 31 and Complete in all 31, and Derived in none", all(v["closed"] and v["complete"] and not v["derived"] for v in res.values()) and len(res) == 31) line("restriction to jurisdictions, the withdrawn register W1: the restricted register is Closed in all 31 and Complete in exactly the 7 contained in {R1, R2, R5}; the two placements e_qg and e_sm_params are what carry R3 and R4 from open to complete", all(v["closed"] for v in resw.values()) and {tuple(sorted(s)) for s, v in resw.items() if v["complete"]} == {tuple(sorted(s)) for s in resw if s <= {"R1", "R2", "R5"}} and sum(v["complete"] for v in resw.values()) == 7) line("monotonicity: for every pair S contained in S' of sub-jurisdictions, Complete over S' implies Complete over S (checked on all pairs for the instance and for W1); enlarging the jurisdiction can only lose completeness", all((not res[b]["complete"]) or res[a]["complete"] for a in res for b in res if a <= b) and all((not resw[b]["complete"]) or resw[a]["complete"] for a in resw for b in resw if a <= b)) info("certificate relevance (that a cited line is the right line for the claim) is a reader judgment and is not audited; the audit tests that a certificate exists, is unique and passes") print("\nRESULT " + ("PASS" if OK else "FAIL")) sys.exit(0 if OK else 1)