p4.py — src/27-fields

The file src/27-fields/p4.py of the validation package of the paper 27-fld, rendered with an anchor per line; the file itself is beside this page.

27-fields ledgersrc/27-fields/p4.py · 4.0 KBp4.py
1# framed-rational status: EXACT -- integer / modular-F_p / cyclotomic arithmetic; no float in any asserted check (float, if present, only formats an exact rational for display).2"""3P4: maximal parity violation (V-A) from the Frobenius branch.45The spinor's boost phase lives on the norm-one cycle U = C_{q+1} of K = F_{q^2}.6Frobenius sigma(z) = z^q = z^{-1} on U: it INVERTS the cycle -- parity/helicity7reversal.  The drive advances the boost phase by a step delta; it commutes with8Frobenius only if delta^2 = 0 (i.e. eta^2 = 1), so for a generic drive it BREAKS9parity.1011The two chiralities are the spinor (drive-aligned, winds +delta) and its Frobenius12conjugate (winds -delta).  The weak connection transports the phase forward by13delta.  Over one drive period the coupling to the LEFT (drive-aligned) spinor adds14coherently (relative phase 0 -> sum = N), while to the RIGHT (Frobenius) spinor it15oscillates (relative phase 2 delta -> sum = 0 by character orthogonality).  Hence16the weak SU(2) couples to the left branch only: maximal V-A, exact.1718This is the same coherent-vs-incoherent structure (N vs 0, the m vs sqrt(m) of the19synchronisation lemmas) that gives gravity universal attraction; chirality is the20coherence of the spinor winding with the drive.  Everything below is exact in21Z/(q+1) and its cyclotomic characters.22"""23import math2425def boost_cycle(q):26    return q + 1                                  # |U| = q+1, U ~ Z/(q+1)2728def frobenius_is_inversion(q):29    N = boost_cycle(q)30    # sigma(a) = q*a mod N  (since sigma(z)=z^q);  z^{q+1}=1 => q ≡ -1 (mod N)31    return all((q * a) % N == (-a) % N for a in range(N))3233def commutator_with_frobenius(q, delta):34    """drive D: a->a+delta ; Frobenius S: a->-a.  Return whether D∘S == S∘D on U."""35    N = boost_cycle(q)36    DS = [((-a) % N + delta) % N for a in range(N)]   # drive after Frobenius37    SD = [(-((a + delta) % N)) % N for a in range(N)]  # Frobenius after drive38    return DS == SD3940def coupling_coherence(q, delta):41    """Sum over one drive period of the weak connection's overlap with each branch,42    exact over Z/N: left (relative phase 0) = N; right = sum_tau zeta_N^{2 delta tau},43    a geometric series equal to N if N | 2 delta and EXACTLY 0 otherwise (no float)."""44    N = boost_cycle(q)45    left = N                                       # sum of zeta^0 over N terms46    right = N if (2 * delta) % N == 0 else 0       # exact character-sum value47    return left, right4849print("=" * 66)50print("P4  maximal parity violation (V-A) from the Frobenius branch")51print("=" * 66)52print("\n[A] Frobenius = inversion on the boost cycle (parity/helicity reversal)")53for q in (3, 5, 7, 13):54    print(f"    q={q:2d}: |U|=q+1={q+1:2d},  sigma(z)=z^q = z^-1 on U : {frobenius_is_inversion(q)}")5556print("\n[B] the drive breaks parity unless eta^2=1  (D∘S = S∘D  iff  2*delta ≡ 0)")57for q, delta in [(3, 1), (3, 2), (7, 1), (7, 3)]:58    N = q + 159    print(f"    q={q}, drive step delta={delta} (eta^2=1? {2*delta % N == 0}):"60          f"  drive commutes with Frobenius = {commutator_with_frobenius(q, delta)}")6162print("\n[C] coherence of the weak coupling over one drive period")63print("    LEFT = drive-aligned (coherent, sum=N) ; RIGHT = Frobenius (incoherent)")64for q in (3, 5, 7, 13):65    N = q + 166    delta = 1                                       # generator drive, gcd(delta,N) handled below67    # choose delta coprime to N for a true generator where possible68    delta = next(d for d in range(1, N) if math.gcd(d, N) == 1)69    L, R = coupling_coherence(q, delta)70    print(f"    q={q:2d} (N={N:2d}, delta={delta}):  left coupling = {L} (=N={N}),"71          f"   right coupling = {R}  (exactly 0)")7273print("\n[D] exactness: the right-branch sum is a character sum over Z/N,")74print("    sum_tau zeta_N^{2 delta tau} = N if 2 delta ≡ 0 (mod N), else 0;")75print("    for a generator drive (gcd(delta,N)=1) and N>2, 2 delta != 0 -> exactly 0.")76print("    => the Frobenius (right) branch decouples EXACTLY: maximal V-A.")77print("    Universal: all fermions ride the one drive, so all share one chirality.")78print("=" * 66)79