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

relay_requirements.py

In the investigation at sim/charge_wave/relay_requirements.py · last changed in commit ee2e4ab, 12 November 2026 · 5,067 bytes · runnable copies in the scripts zip


"""What Doug's relay form of the charging-quons model (12 November 2026, morning) must meet.

No trial: this applies the record's bounds (Part 1 U15, U16; R1_checks limit (f)) to a relay of
spacing d, and to the nested lattices of U44 (level k: spacing d/s^k, energy s^k x 511 keV).
Run: ~/aspden-review-venv/bin/python3 relay_requirements.py > relay_requirements_out.txt
"""
import numpy as np
from scipy.integrate import quad
# constants (CODATA 2018)
hbar = 1.054571817e-34; me = 9.1093837015e-31; c = 299792458.0; eV = 1.602176634e-19
hbarc_eVm = hbar*c/eV                              # 1.97327e-7 eV m
mec2_eV = me*c**2/eV                               # 510998.95 eV

# Aspden's lattice (Part 1 U01, U03): r = hbar/(2 m_e c), r/d = (3/4)(8/1843)^(1/6)
r = hbar/(2*me*c)
d = r/(0.75*(8/1843)**(1/6))
print(f"Aspden's spacing d = {d:.4e} m (2d = {2*d:.4e} m; U16 gives 1.275e-12)")

# 1. The nearest-neighbour cubic relay (continuous time):
#    omega^2/c^2 = (4/d^2) sum_i sin^2(k_i d/2); check: two equal transverse modes, one zero mode
print("\n1. Nearest-neighbour cubic relay: modes for 2000 random directions and wavenumbers")
rng = np.random.default_rng(1)
worst_split = 0.0; worst_zero = 0.0
for _ in range(2000):
    kh = rng.normal(size=3); kh /= np.linalg.norm(kh)
    kd = rng.uniform(0.01, np.pi)
    kap = 2*np.sin(kh*kd/2)                        # kappa_i d
    M = np.dot(kap, kap)*np.eye(3) - np.outer(kap, kap)   # curl-curl in Fourier space, units 1/d^2
    w = np.sort(np.linalg.eigvalsh(M))
    worst_zero = max(worst_zero, abs(w[0]))
    worst_split = max(worst_split, abs(w[2]-w[1])/w[2])
print(f"   largest relative split between the two transverse modes: {worst_split:.1e}")
print(f"   largest |lowest eigenvalue| (the static longitudinal mode): {worst_zero:.1e}")
for name, kh in (("[100]", np.array([1, 0, 0])), ("[110]", np.array([1, 1, 0])/np.sqrt(2)), ("[111]", np.ones(3)/np.sqrt(3))):
    S4 = np.sum(kh**4)
    top = 2*np.sqrt(np.sum(np.sin(kh*np.pi/np.max(np.abs(kh))/2)**2))   # omega d/c at the zone face along this line
    print(f"   {name}: sum k_i^4 = {S4:.4f}; group deficit (kd)^2 x {S4/8:.4f}; band top along the line {top:.4f} hbar c/d = {top*hbarc_eVm/d/1e6:.3f} MeV for Aspden's d")

# 2. GRB 090510 (Part 1 U14, U15): 28 GeV against 0.1 MeV, |dt| < 0.859 s (Abdo et al. 2009, Table 2, limit (a));
#    a quadratic deficit builds up with the weighting (1+z)^2; Planck 2018 as in the record
z = 0.903; H0 = 67.4e3/3.0856775814913673e22; Om = 0.3153; OL = 1 - Om   # aether_units.py uses OmL = 0.6847
h = lambda x: np.sqrt(Om*(1+x)**3 + OL)
T = {n: quad(lambda x: (1+x)**n/h(x), 0, z)[0]/H0 for n in (0, 1, 2)}
yr = 365.25*86400
for n in (0, 1, 2):
    print(f"   path weighting (1+z)^{n}: {T[n]:.4e} s = {T[n]*c/(c*yr)/1e9:.2f} billion light-years")
dt_a = 0.859; E28 = 28e9
k28 = E28/hbarc_eVm
lim2 = dt_a/T[2]
print(f"\n2. GRB 090510, limit (a), quadratic law: group deficit at 28 GeV below {lim2:.3e}")
Eres = E28*np.sqrt(1.5/lim2)
print(f"   internal resonance (1 - v_g/c = 1.5 (E/E_res)^2): E_res > {Eres:.3e} eV (U15: 3.0e19)")
for name, S4 in (("cube axis", 1.0), ("cube diagonal", 1/3)):
    dmax = np.sqrt(8*lim2/S4)/k28
    print(f"   relay spacing along the {name}: d < {dmax:.3e} m; Aspden's d is {d/dmax:.2e} times larger")
dmax_axis = np.sqrt(8*lim2)/k28

# 3. The Crab pulsar (Part 1 U16): 2-30 keV aligned, delta n_g < 1.64e-16; check U16's 2.4e-19 m
k30 = 30e3/hbarc_eVm
print(f"\n3. Crab check (U16): d < {np.sqrt(8*1.64e-16)/k30:.3e} m along a cube axis")

# 4. The nested lattices of U44: which level k is fine and prompt enough
print("\n4. Nested lattices (U44: level k has spacing d/s^k and energy s^k x 511 keV)")
for s in (2, 3, 4):
    k_d = next(k for k in range(200) if d/s**k < dmax_axis)
    k_E = next(k for k in range(200) if s**k*mec2_eV > Eres)
    k = max(k_d, k_E)
    print(f"   s = {s}: spacing below {dmax_axis:.2e} m from level {k_d}; energy above {Eres:.2e} eV from level {k_E};"
          f" both from level {k} (spacing {d/s**k:.2e} m, energy {s**k*mec2_eV:.2e} eV)")

# 5. A coarser level that responds up to its own energy and not above: light above it faster by f/2.
#    GRB 090510 limit (f) (R1_checks): high-energy photon early by less than 19 ms, 0.694 GeV against 0.1 MeV.
#    A constant speed offset builds up over the comoving distance (weighting (1+z)^0).
f_max = 2*0.019/T[0]
print(f"\n5. A level's share f, for a level between about 0.2 MeV and 0.7 GeV (limit (f), comoving path):")
print(f"   f < {f_max:.2e}")
for s in (2, 3, 4):
    ks = [k for k in range(60) if 0.19e6*1.0 < s**k*mec2_eV < 0.694e9]
    print(f"   s = {s}: levels {ks[0]} to {ks[-1]} ({len(ks)} levels) lie in that range")

# 6. Under the nesting rule, each level's separation per volume n_k e^2/K_k with K_k = m_k Omega_k^2
#    (m_k = m0 s^k, Omega_k = Omega s^k, n_k = s^(3k)/d^3) is the same at every level
s = 3
vals = [(s**(3*k)/d**3)/(s**k*s**(2*k)) for k in range(6)]
print(f"\n6. n_k/(m_k Omega_k^2), relative to level 0, for s = 3, k = 0..5: {[f'{v/vals[0]:.3f}' for v in vals]}")