Does light charge the quons? › Files cited on the page › the trials

fold_checks_2026-11-18.py

In the investigation at sim/models_AB/fold_checks_2026-11-18.py · last changed in commit bc4d6b6, 18 November 2026 · 7,689 bytes · runnable copies in the scripts zip


"""The author seat's own checks before folding two reviews into charging quons 10.14 (18 November 2026). Post hoc arithmetic; not a trial.

A. The seventeenth reviewer's F1 and F2 (trial 16, E1): under E1 an electron in eps times the orbit field radiates; the bounds that follow;
   the massive mode's lag over GRB 090510's path.
B. The eighteenth reviewer's F1 (trial 15, the lepton ladder): a tetragonal (stretched or flattened) quon lattice under the rule set trial 15
   used for its body- and face-centred layers (I1 to I4 and I7; I5 dropped). Own Ewald sum, written fresh (not trial 15's code, not the
   reviewer's), checked against the record's simple cubic site potential and for independence of the splitting parameter.
Run: python3 fold_checks_2026-11-18.py   (numpy, scipy). A few seconds.
"""
import numpy as np
from scipy import constants as K
from scipy.optimize import brentq
from scipy.special import erfc

out = []
def say(s=""):
    print(s); out.append(s)
nok = 0; nchk = 0
def check(name, ok, detail=""):
    global nok, nchk
    nchk += 1; nok += bool(ok)
    say(f"   CHECK {'pass' if ok else 'FAIL'}: {name} {detail}")

alpha = K.fine_structure
say("Fold checks, 18 November 2026 (post hoc arithmetic; not a trial)")

# ---------------- A. Trial 16, the seventeenth reviewer's F1 and F2 ----------------
say("\nA. Under E1, matter in eps times the orbit field")
sT = K.physical_constants['Thomson cross section'][0]
E_orb = 2.698e16                                   # V/m (answers_16nov_arith_out.txt; trial 11)
P_rot = sT * K.c * K.epsilon_0 * E_orb ** 2        # a field of constant magnitude turning at Omega: Larmor, constant in time
say(f"   Larmor power per electron at eps = 1: {P_rot:.1f} W (turning field); {P_rot/2:.1f} W for a field along one line (Picture A's 64 W)")
mec2 = K.m_e * K.c ** 2 / K.e
Eg = 0.75 * mec2                                   # a quantum m_e c^2 with no momentum, absorbed by an electron at rest
check("recoil photon 3/4 m_e c^2 conserves energy and momentum", abs((mec2 + mec2) - (Eg + np.hypot(mec2, Eg))) < 1e-6 * mec2, f"({Eg/1e3:.2f} keV)")
Ne_earth = 5.972e24 / (2 * K.atomic_mass)          # electrons in the Earth, Z/A ~ 1/2
say(f"   the Earth's heat flow, 47 TW [S, from memory, as trial 11]: eps <= {np.sqrt(47e12 / (P_rot * Ne_earth)):.2e}")
W_g = 3.85 / 86400 * 511e3 * K.e / 0.3 / 900      # CJPL: 3.85 counts/day in the 511 keV peak, efficiency ~0.3, 0.90 kg (Picture A section 4)
ne_g = 32 / 72.63 * K.N_A                          # electrons per gram of germanium
say(f"   CJPL: {W_g:.1e} W/g, {ne_g:.3e} electrons/g: eps < {np.sqrt(W_g/(P_rot*ne_g)):.1e} (turning field), {np.sqrt(W_g/(P_rot/2*ne_g)):.1e} (one line)")
say("   (Picture A's own figures: 5e-23 for the classical line, 1e-22 for the 383 keV recoil line, from its own reading of the spectrum)")
T0 = 3.245e17                                      # s, the record's comoving path for GRB 090510 (section 10.8)
yr = 365.25 * 86400
say("   The massive mode's lag over T0 = 3.245e17 s (cold-plasma form, 511 keV; formal above about 1 MeV, the seventeenth reviewer's F7):")
for E in (1e6, 10e6, 1e9, 31e9):
    vg = np.sqrt(1 - (511e3 / E) ** 2)
    say(f"      {E/1e6:8.0f} MeV: {T0 * (1/vg - 1) / yr:.2e} years")

# ---------------- B. Trial 15, the eighteenth reviewer's F1 ----------------
say("\nB. A tetragonal quon lattice (sides a, a, c; one quon per cell, volume d^3 = 1) under trial 15's rules without I5")

def ewald_site(A, eta, rcut=None, gcut=None):
    """Site potential (units e/d) of a Bravais lattice of unit charges on a neutralizing background, mean-zero convention. A: rows a1, a2, a3."""
    A = np.asarray(A, float); V = abs(np.linalg.det(A)); Bm = 2 * np.pi * np.linalg.inv(A).T
    rcut = rcut or 6.5 / eta; gcut = gcut or 13.0 * eta
    def shells(M, cut):
        # a box of integer triples wide enough to hold every vector of length < cut (bound from the inverse of the basis)
        n = [int(np.ceil(cut * np.linalg.norm(np.linalg.inv(M)[:, i]))) + 1 for i in range(3)]
        g = np.mgrid[-n[0]:n[0]+1, -n[1]:n[1]+1, -n[2]:n[2]+1].reshape(3, -1).T
        v = g @ M; r = np.linalg.norm(v, axis=1)
        keep = (r > 0) & (r < cut)
        return r[keep]
    r = shells(A, rcut); G = shells(Bm, gcut)
    return (np.sum(erfc(eta * r) / r) + (4 * np.pi / V) * np.sum(np.exp(-G ** 2 / (4 * eta ** 2)) / G ** 2)
            - 2 * eta / np.sqrt(np.pi) - np.pi / (eta ** 2 * V))

sc = ewald_site(np.eye(3), 2.0)
check("simple cubic site potential equals the record's -2.8372974795", abs(sc + 2.8372974795) < 1e-9, f"({sc:.10f})")
bcc_prim = 0.5 * np.array([[-1, 1, 1], [1, -1, 1], [1, 1, -1]]) * 2 ** (1/3)     # one quon per unit volume
bcc = ewald_site(bcc_prim, 2.0)
check("body-centred site potential equals trial 15's -2.8884615031 (to 1e-8)", abs(bcc + 2.8884615031) < 1e-8, f"({bcc:.10f})")
aws = (3 / (4 * np.pi)) ** (1 / 3)
def tet(ca):
    a = ca ** (-1 / 3); c = ca * a                  # a^2 c = 1
    return np.diag([a, a, c]), a, c
def phi_tet(ca, eta=None):
    A, a, c = tet(ca)
    return ewald_site(A, eta or 2.0 / min(a, c) ** 0.5)
worst = max(abs(phi_tet(ca, 1.6) - phi_tet(ca, 2.6)) for ca in (0.4, 0.7, 1.5, 2.2, 2.6))
check("tetragonal site potentials do not depend on the splitting parameter (two values, five shapes), to 1e-9", worst < 1e-9, f"(worst {worst:.1e})")

def L_tet(ca):
    A, a, c = tet(ca)
    B = (2 * np.pi / 3) * (2 * a ** 2 + c ** 2) / 12    # whole-cell term for the box cell, (2 pi/3) <rho^2>
    return -(phi_tet(ca) + B), B
x0 = (1 / (4 * np.pi ** 2 * 4608)) ** (1 / 6)          # the balance's minimum
Lmin = 8 * np.pi * x0 ** 2 + x0 ** -4 / (4608 * np.pi)
def x_of_L(L):
    return brentq(lambda x: 8 * np.pi * x ** 2 + x ** -4 / (4608 * np.pi) - L, x0, 2.0)
def Q_of_x(x):
    return 96 * (96 * np.pi) ** 3 * alpha * x ** 9
Lsc, Bsc = L_tet(1.0)
check("c/a = 1 gives the simple cubic L = 2.3136987 and Q = 412.15", abs(Lsc - 2.3136987) < 1e-6 and abs(Q_of_x(x_of_L(Lsc)) - 412.15) < 0.01,
      f"(L {Lsc:.7f}, Q {Q_of_x(x_of_L(Lsc)):.3f})")
say(f"   the balance has a root only for L >= {Lmin:.3f} (its minimum, at x = {x0:.4f})")
say(f"   {'c/a':>6} {'Madelung (e^2/a_ws)':>20} {'B':>7} {'L':>8} {'x':>8} {'Q':>9} {'1/alpha = 144 pi x':>19}")
for ca in (0.4, 0.425, 0.5, 0.7, 1.0, 1.5, 2.0, 2.219, 2.353, 2.6, 2.8, 3.0):
    L, B = L_tet(ca); E_M = 0.5 * phi_tet(ca) * aws
    if L < Lmin:
        say(f"   {ca:6.3f} {E_M:20.4f} {B:7.4f} {L:8.4f}   no root (L below the balance's minimum)")
        continue
    x = x_of_L(L)
    say(f"   {ca:6.3f} {E_M:20.4f} {B:7.4f} {L:8.4f} {x:8.5f} {Q_of_x(x):9.3f} {144*np.pi*x:19.2f}")
mtau, mmu = K.physical_constants['tau mass energy equivalent in MeV'][0], K.physical_constants['muon mass energy equivalent in MeV'][0]
for target, name in ((2 * mtau / mmu, "a tau pair"), (mtau / mmu, "one tau")):
    for lo, hi in ((1.0, 2.6), (0.37, 1.0)):              # inside the range where the balance has a root (narrowed after the first run, whose
                                                          # brackets reached the no-root region and so found nothing)
        f = lambda ca: Q_of_x(x_of_L(L_tet(ca)[0])) - target
        try:
            ca = brentq(f, lo, hi, xtol=1e-6)
            x = x_of_L(L_tet(ca)[0])
            say(f"   Q = {target:.4f} ({name}) at c/a = {ca:.4f}: x = {x:.5f}; under I5 this layer would give 1/alpha = {144*np.pi*x:.1f}")
        except ValueError:
            say(f"   Q = {target:.4f} ({name}): no c/a in [{lo}, {hi}]")
say("   Under I5 (1/alpha = 144 pi x, with the measured alpha) x is fixed at 0.30287, so L = 2.3137 and Q = 412 whatever the lattice.")
say(f"\nChecks: {nok} of {nchk} pass.")