Does light charge the quons? › Files cited on the page › check_relay_fable/

check_relay.py

In the investigation at sim/charge_wave/check_relay_fable/check_relay.py · last changed in commit 9b81ff9, 12 November 2026 · 10,447 bytes · the folder as a zip


"""Independent check of section 7 (the relay form) of papers/Charging_quons_2026-11-12.md, draft 0.3.

Own derivations and arithmetic throughout; the page's numbers are quoted only to compare.
Run: ~/aspden-review-venv/bin/python3 check_relay.py > check_relay_out.txt
"""
import numpy as np
import sympy as sp
from scipy.integrate import quad
from scipy.optimize import brentq

# CODATA 2018
hbar = 1.054571817e-34; me = 9.1093837015e-31; c = 299792458.0; eV = 1.602176634e-19
e = 1.602176634e-19; eps0 = 8.8541878128e-12; mu0 = 1.25663706212e-6
hbarc = hbar*c/eV            # eV m
mec2 = me*c**2/eV            # eV
yr = 365.25*86400
Mpc = 3.0856775814913673e22
M_Pl_GeV = 1.220890e19       # Planck energy in GeV (CODATA 2018: 1.220890e19 GeV)

# Aspden's lattice as the record has it (Part 1 U01/U03): r = hbar/(2 m_e c), r/d = (3/4)(8/1843)^(1/6), m0 = 0.04078 m_e (U17)
r = hbar/(2*me*c)
d = r/(0.75*(8/1843)**(1/6))
m0 = 0.04078*me
n0 = 1/d**3
print(f"d = {d:.4e} m, r = {r:.4e} m, kd for a photon of the level's own energy (k = 1/2r): {d/(2*r):.4f}")

print("\n=== A. The Darwin relay (7.2 item 5): my own derivation, symbolic ===")
w, k, K, m, n, q, mu, x = sp.symbols('omega k K m n e mu0 x', positive=True)
# transverse plane wave exp(i(kz - wt)), x perpendicular to k; polarization P = n e x, current J = dP/dt
J = -sp.I*w*n*q*x
A = mu*J/k**2                     # Ampere without displacement current, Coulomb gauge: -k^2 A = -mu0 J
E = sp.I*w*A                      # E = -dA/dt (Faraday built in), no Coulomb part for a transverse wave
B_over_E = sp.simplify((k*A)/(E))  # |B| = |k x A| = k|A|
eom = sp.Eq(-m*w**2*x, -K*x + q*E)
w2 = sp.solve(eom, w**2)[0]
eps_q = n*q**2/K
cq2 = 1/(mu*eps_q)
wr2 = K/m
page = cq2*k**2/(1 + cq2*k**2/wr2)
print("omega^2 from the equation of motion:", sp.simplify(w2))
print("difference from the page's c_q^2 k^2/(1 + c_q^2 k^2/omega_r^2):", sp.simplify(w2 - page))
print("|B|/|E| =", B_over_E, " (= k/omega: 1/c_q at long wavelengths)")
# energies at long wavelength: potential (1/2) n K x^2, magnetic B^2/(2 mu0), kinetic (1/2) n m omega^2 x^2, "electric" (1/2) eps_q E^2
Bamp = sp.simplify(k*A/x)*x
U_pot = sp.Rational(1, 2)*n*K*x**2
U_mag = sp.simplify(Bamp**2/(2*mu))
U_kin = sp.Rational(1, 2)*n*m*w**2*x**2
U_el = sp.simplify(sp.Rational(1, 2)*eps_q*E**2)
cq, wr = sp.symbols('c_q omega_r', positive=True)
sub = {K: m*wr**2, n: m*wr**2/(q**2*mu*cq**2)}   # so that eps_q = 1/(mu cq^2), K/m = wr^2
for name, U in (("magnetic/potential", U_mag/U_pot), ("(1/2)eps_q E^2/potential", U_el/U_pot), ("kinetic/potential", U_kin/U_pot)):
    ratio = sp.simplify(U.subs(sub).subs(w, sp.sqrt(page.subs(sub))))
    print(f"   {name} = {sp.simplify(ratio)}  -> at k->0: {sp.limit(ratio, k, 0)}")
# group velocity at long wavelength
wk = sp.sqrt(page.subs(sub))
vg = sp.series(sp.diff(wk, k), k, 0, 3).removeO()
print("   group velocity series:", sp.simplify(vg), "  i.e. 1 - v_g/c_q = (3/2)(c_q k/omega_r)^2 : U15's form with E_res = hbar omega_r")
# the same medium with Maxwell's vacuum term kept (polariton): k^2 = mu0 w^2 (eps0 + n e^2/(K - m w^2))
eps_vac = sp.symbols('epsilon_0', positive=True)
k2_full = mu*w**2*(eps_vac + n*q**2/(K - m*w**2))
vlow = sp.limit(sp.sqrt(w**2/k2_full), w, 0)
print("   with the vacuum term kept, low-frequency speed =", sp.simplify(vlow), " -> c/sqrt(2) when n e^2/K = eps0")
# causal tail: the kernel of this dispersion decays as exp(-omega_r |x|/c_q); compare c/Omega_k with d_k
print(f"   instantaneous tail length c/Omega_k relative to the level's spacing d_k: {hbarc/(mec2*d):.3f} (every level)")

print("\n=== B. Nearest-neighbour cubic relay (7.3 item 4): group deficits and band tops ===")
kk, dd = sp.symbols('k d', positive=True)
for name, kh in (("[100]", (1, 0, 0)), ("[110]", (1/sp.sqrt(2), 1/sp.sqrt(2), 0)), ("[111]", (1/sp.sqrt(3),)*3)):
    wd = 2*sp.sqrt(sum(sp.sin(kh_i*kk*dd/2)**2 for kh_i in kh))     # omega d / c
    ser = sp.series(wd/(kk*dd), kk, 0, 3).removeO()
    vg_ser = sp.series(sp.diff(wd, kk)/dd, kk, 0, 3).removeO()
    top = wd.subs(kk, sp.pi/(dd*max(kh)))                          # at the zone boundary along the line
    print(f"   {name}: phase: {sp.simplify(ser)};  group: {sp.simplify(vg_ser)};  band top {sp.nsimplify(sp.simplify(top))} hbar c/d = {float(top*hbarc/d)/1e6:.3f} MeV")
kd = d/(2*r)
print(f"   at kd = {kd:.3f} ([100]): phase slower by {1-np.sin(kd/2)/(kd/2):.3f}, group slower by {1-np.cos(kd/2):.3f} (page: 11%, 32%)")

print("\n=== C. Cosmology: path weightings for z = 0.903 ===")
def T(nn, z=0.903, H0=67.4, Om=0.3153):
    h = lambda zz: np.sqrt(Om*(1+zz)**3 + (1-Om))
    return quad(lambda zz: (1+zz)**nn/h(zz), 0, z)[0]/(H0*1e3/Mpc)
for nn in (0, 1, 2):
    print(f"   (1+z)^{nn}: {T(nn):.4e} s = {T(nn)/yr/1e9:.2f} Gly   (page/script: 3.2450e17, 4.5809e17, 6.6835e17)")
print(f"   comoving distance: {T(0)*c/Mpc/1e3:.3f} Gpc; light-travel time: {quad(lambda zz: 1/((1+zz)*np.sqrt(0.3153*(1+zz)**3+0.6847)), 0, 0.903)[0]/(67.4e3/Mpc)/yr/1e9:.3f} Gyr")
# Abdo et al.'s own cosmology (H0 = 71, Om = 0.27, z = 0.900 for the conservative limit): does 859 ms with 28 GeV give 1.19 M_Planck with the (1+z) weighting?
T1_paper = T(1, z=0.900, H0=71, Om=0.27)
MQG = (28.0 - 1e-4)*T1_paper/0.859            # GeV, linear law: dt = dE/(M c^2) * T1
print(f"   Abdo's cosmology (71, 0.27, z=0.900): 859 ms, 28 GeV -> M_QG,1 = {MQG/M_Pl_GeV:.3f} M_Planck (paper: 1.19) -> the (1+z) weighting is theirs")
for Eh in (0.75, 0.694):
    print(f"   limit (f): 19 ms with E_h = {Eh} GeV -> M_QG,1 = {(Eh-1e-4)*T1_paper/0.019/M_Pl_GeV:.3f} M_Planck (paper: 1.33)")
print(f"   E_h that gives exactly 1.33: {1.33*M_Pl_GeV*0.019/T1_paper + 1e-4:.3f} GeV")
T1_903 = T(1, z=0.903, H0=71, Om=0.27)
print(f"   same with z = 0.903: 28 GeV -> {28.0*T1_903/0.859/M_Pl_GeV:.3f}; E_h for 1.33: {1.33*M_Pl_GeV*0.019/T1_903:.3f} GeV")

print("\n=== D. GRB 090510 limit (a) on the relay: quadratic law, (1+z)^2 weighting ===")
T2 = T(2); T0 = T(0)
lim2 = 0.859/T2
E28 = 28e9; k28 = E28/hbarc
print(f"   group deficit at 28 GeV < {lim2:.3e}")
Eres = E28*np.sqrt(1.5/lim2)
print(f"   E_res > {Eres:.3e} eV (page: 3.0e19)")
dmax = {}
for name, S4 in (("axis", 1.0), ("diagonal", 1/3)):
    dmax[name] = np.sqrt(8*lim2/S4)/k28
    print(f"   relay spacing along the cube {name}: d < {dmax[name]:.3e} m (page: 2.3e-26 / 3.9e-26); Aspden's d / that = {d/dmax[name]:.2e}")
print(f"   for information, limit (e) (10 ms, either sign): d_axis < {np.sqrt(8*0.010/T2)/k28:.2e} m; with 31 GeV instead of 28: d_axis < {np.sqrt(8*lim2)/(31e9/hbarc):.2e} m")
print(f"   Crab check (U16): d < {np.sqrt(8*1.64e-16)/(30e3/hbarc):.3e} m")

print("\n=== E. The level table (7.3 item 5) ===")
for s in (2, 3, 4):
    k_d = next(kk_ for kk_ in range(200) if d/s**kk_ < dmax["axis"])
    k_E = next(kk_ for kk_ in range(200) if s**kk_*mec2 > Eres)
    kmax = max(k_d, k_E)
    print(f"   s = {s}: spacing from level {k_d}, promptness from level {k_E} -> level {kmax}: spacing {d/s**kmax:.2e} m, energy {s**kmax*mec2:.2e} eV")
# Filter_check section 8 reproduced: kd < sqrt(24e-18) with 31 GeV, and the page's route to 29
k31 = 31e9/hbarc
for lab, kdmax, kph in (("Filter_check: (kd)^2/24 < 1e-18, 31 GeV", np.sqrt(24e-18), k31), ("Filter_check: 2e-18", np.sqrt(48e-18), k31),
                        ("axis group (kd)^2/8 < 2e-18 (no (1+z)^2), 28 GeV", np.sqrt(16e-18), k28), ("axis group, (1+z)^2 weighting, 28 GeV", np.sqrt(8*lim2), k28)):
    dk = kdmax/kph
    print(f"   {lab}: kd < {kdmax:.1e}, d_k < {dk:.2e} m, s = 3 needs level {np.ceil(np.log(d/dk)/np.log(3)):.0f} (first level with d/3^k below it)")

print("\n=== F. Limit (f): a coarser level's share f (7.3 item 6) ===")
f_step = 2*0.019/T0
print(f"   step model (share f below the level's energy, none above; constant speed offset over the comoving path): f < {f_step:.3e} (page: 1.2e-19)")
# Lorentz-oscillator version: n_g - 1 = (f/2) Ek^2 (Ek^2 + E^2)/(Ek^2 - E^2)^2 for small f, E away from Ek; energies redshift along the path
def ng_excess_over_f(E, Ek):
    return 0.5*Ek**2*(Ek**2 + E**2)/(Ek**2 - E**2)**2
H0 = 67.4e3/Mpc
def dt_per_f(Ek, El=0.1e6, Eh=0.694e9, z=0.903, Om=0.3153):
    h = lambda zz: np.sqrt(Om*(1+zz)**3 + (1-Om))
    return quad(lambda zz: (ng_excess_over_f(El*(1+zz), Ek) - ng_excess_over_f(Eh*(1+zz), Ek))/h(zz), 0, z)[0]/H0
s = 3
for kk_ in range(0, 8):
    Ek = s**kk_*mec2
    inrange = 0.1e6*(1+0.903) < Ek < 0.694e9
    if inrange:
        f_lor = 0.019/dt_per_f(Ek)
        print(f"   s = 3, level {kk_} ({Ek/1e6:.3g} MeV): Lorentz-oscillator form gives f < {f_lor:.2e} (step: {f_step:.2e}); ratio {f_lor/f_step:.2f}")
    else:
        print(f"   s = 3, level {kk_} ({Ek/1e6:.3g} MeV): outside the range where one photon is above and the other below along the whole path")
for s in (2, 3, 4):
    ks = [kk_ for kk_ in range(60) if 0.19e6 < s**kk_*mec2 < 0.694e9]
    print(f"   s = {s}: levels {ks[0]} to {ks[-1]} in the range (page: 0-10, 0-6, 0-5)")

print("\n=== G. Item 6 of 7.2: the value of n_k e^2/K_k under K_k = m_k Omega_k^2, with the record's numbers ===")
wp = np.sqrt(n0*e**2/(eps0*m0))
Om_ = mec2*eV/hbar
print(f"   hbar omega_p (quons alone) = {hbar*wp/eV/1e3:.3f} keV (Part 1A W4: 361.331); hbar Omega = {hbar*Om_/eV/1e3:.3f} keV; Omega^2/omega_p^2 = {Om_**2/wp**2:.4f}")
for lab, Kval in (("K = m0 Omega^2", m0*Om_**2), ("K = m0 Omega^2 - n e^2/(3 eps0) (Lorentz pull)", m0*Om_**2 - n0*e**2/(3*eps0)),
                  ("K = m0 omega_p^2 = n e^2/eps0", m0*wp**2), ("K = m0 omega_p^2 - n e^2/(3 eps0)", m0*wp**2 - n0*e**2/(3*eps0))):
    eq = n0*e**2/Kval
    print(f"   {lab}: eps_q/eps0 = {eq/eps0:.4f}, relay speed c_q/c = {1/np.sqrt(eq/eps0):.4f}")
print("   (level-independence under the nesting rule is trivial: n_k ~ s^3k, m_k Omega_k^2 ~ s^3k)")

print("\n=== H. The 'QED-like' alternative (7.3 item 6): what the running of alpha already says (one-loop leading logs; from memory) ===")
MZ = 91.19e9
tot = 0
for kk_ in range(1, 7):
    mk = 3**kk_*mec2
    dinv = (2/(3*np.pi))*np.log(MZ/mk)
    tot += dinv
    print(f"   s = 3 level {kk_} at {mk/1e6:.1f} MeV as a unit-charge Dirac fermion: Delta(1/alpha)(M_Z) = -{dinv:.2f}")
print(f"   sum for levels 1-6: -{tot:.1f}; measured 1/alpha(M_Z) - 1/alpha(0) = about 128.95 - 137.04 = -8.1, accounted for by known particles to about +/-0.02 (from memory)")
print(f"   electron alone, same formula: -{(2/(3*np.pi))*np.log(MZ/mec2):.2f} (the known value is about -2.4 after the constant term)")