Does light charge the quons? › Files cited on the page › the trials
relativistic_hold.py
"""Trial 13: the held quon, treated relativistically (16 November 2026).
Lock: papers/Lock_relativistic_hold_2026-11-16.md, committed with this script before the run. Every choice is the lock's.
M1: H = sqrt(P^2 + M^2) + (1/2) K r^2 (spinless Salpeter, harmonic hold that adds to the energy), solved in momentum space;
M2: Klein-Gordon with a scalar harmonic hold, (M + K r^2/2)^2, solved in position space (confinement energy only).
Units: energies in eV, lengths in m, P = pc in eV, K in eV/m^2.
Run: python3 relativistic_hold.py (numpy, scipy). Under a minute.
"""
import numpy as np
import scipy
from scipy import constants as Kc
from scipy.linalg import eigh_tridiagonal, solve_banded
from scipy.optimize import brentq
out = []
def say(s=""):
print(s); out.append(s)
checks = []
def check(name, ok, detail=""):
checks.append((name, bool(ok)))
say(f" CHECK {'pass' if ok else 'FAIL'}: {name} {detail}")
# one source of constants: scipy's CODATA
c, e, eps0 = Kc.c, Kc.e, Kc.epsilon_0
HC = Kc.hbar * c / e # hbar c in eV m
LY = 9.4607304725808e15
D_SP = 6.37403e-13 # m, Aspden's spacing
N_D = 1 / D_SP ** 3 # quons per m^3
M0 = 20839.2 # eV, m0 c^2
E0_CELL = 412.6658 * Kc.m_e * c ** 2 / e # eV, Aspden's cell energy
U_MAX = 0.00551496 * D_SP # m, trial 12's spread for N = 1843
E_G, L_EFF = 28e9, 21.2e9 * LY
say("Trial 13: the held quon, relativistically. Lock: papers/Lock_relativistic_hold_2026-11-16.md")
say(f"scipy {scipy.__version__}; hbar c = {HC:.6e} eV m; m0 c^2 = {M0} eV; u_max = {U_MAX:.4e} m")
# ---------------- M1: spinless Salpeter with a harmonic hold, in momentum space ----------------
def m1(K, M=M0, N=6000):
A = 0.5 * K * HC ** 2 # eV^3
ps = max(A ** (1 / 3), (A * M) ** 0.25)
Pmax = 25 * ps
h = Pmax / N
P = h * np.arange(1, N + 1)
W = np.sqrt(P ** 2 + M ** 2)
off = -A / h ** 2 * np.ones(N - 1)
d0 = 2 * A / h ** 2 + W
d1 = 2 * A / h ** 2 + 2 * A / P ** 2 + W
w0, v0 = eigh_tridiagonal(d0, off, select='i', select_range=(0, 0))
E0 = w0[0]
chi = v0[:, 0] / np.sqrt(h) # normalized: sum chi^2 h = 1
if chi[np.argmax(np.abs(chi))] < 0: chi = -chi
chi_ext = np.concatenate([[0.0], chi, [0.0]])
dchi = (chi_ext[2:] - chi_ext[:-2]) / (2 * h)
r2 = HC ** 2 * np.sum(np.diff(chi_ext) ** 2 / h) # (hbar c)^2 int (chi')^2 dP
u = np.sqrt(r2 / 3)
f = HC / np.sqrt(3) * (dchi - chi / P) # the l = 1 part of z|0>, radial
w1, _ = eigh_tridiagonal(d1, off, select='i', select_range=(0, 0))
dE1 = w1[0] - E0
# (H1 - E0) as a banded matrix; solve repeatedly
ab = np.zeros((3, N)); ab[0, 1:] = off; ab[1, :] = d1 - E0; ab[2, :-1] = off
g1 = solve_banded((1, 1), ab, f)
g2 = solve_banded((1, 1), ab, g1)
g3 = solve_banded((1, 1), ab, g2)
X1 = np.sum(f * g1) * h # sum |z_n|^2 / dE_n (m^2/eV)
X3 = np.sum(f * g3) * h # sum |z_n|^2 / dE_n^3 (m^2/eV^3)
alpha = 2 * e * X1 # C m^2/V
share = N_D * alpha / eps0
delay = 1.5 * (N_D / eps0) * 2 * e * X3 * E_G ** 2 * L_EFF / c
return dict(E0=E0, conf=E0 - M, u=u, dE1=dE1, alpha=alpha, share=share, delay=delay)
# ---------------- M2: Klein-Gordon with a scalar harmonic hold, in position space ----------------
def m2(K, M=M0, N=6000):
rs = (2 * HC / K) ** (1 / 3)
rmax = 8 * rs
h = rmax / N
r = h * np.arange(1, N + 1)
d0 = 2 * HC ** 2 / h ** 2 + (M + 0.5 * K * r ** 2) ** 2
off = -HC ** 2 / h ** 2 * np.ones(N - 1)
w, v = eigh_tridiagonal(d0, off, select='i', select_range=(0, 0))
chi = v[:, 0] / np.sqrt(h)
u = np.sqrt(np.sum(chi ** 2 * r ** 2) * h / 3)
E0 = np.sqrt(w[0])
return dict(E0=E0, conf=E0 - M, u=u)
# ---------------- code checks ----------------
say("\nCode checks")
Mh, hw = 1e12, 1e6
Kh = Mh * (hw / HC) ** 2
r = m1(Kh, M=Mh)
u_nr = HC / np.sqrt(2 * Mh * hw)
check("C1 non-relativistic limit: spread", abs(r['u'] / u_nr - 1) < 1e-3, f"({r['u']:.5e} vs {u_nr:.5e} m)")
check("C1 non-relativistic limit: first excitation = h-bar omega", abs(r['dE1'] / hw - 1) < 1e-3, f"({r['dE1']:.6e} vs {hw:.6e} eV)")
check("C1 non-relativistic limit: polarizability = e/K", abs(r['alpha'] / (e / Kh) - 1) < 1e-3, f"({r['alpha']:.5e} vs {e/Kh:.5e})")
Ku = 2 * 1e18 / HC ** 2
r = m1(Ku, M=1e-3)
airy = 2.338107410 * (0.5 * Ku * HC ** 2) ** (1 / 3)
check("C2 ultra-relativistic limit: E0 = 2.338107 (K (hbar c)^2/2)^(1/3)", abs(r['E0'] / airy - 1) < 1e-3, f"({r['E0']:.6e} vs {airy:.6e} eV)")
e_u15 = E_G * np.sqrt(1.5 * L_EFF / (c * 0.859))
check("C4 U15's 3.0e19 eV with s = 1, limit (a), to 5%", abs(e_u15 / 3.0e19 - 1) < 0.05, f"({e_u15:.3e} eV)")
# ---------------- Q1: the hold N needs ----------------
say("\nQ1. The hold N needs: spread u = u_max")
lnKN = brentq(lambda x: m1(np.exp(x))['u'] - U_MAX, np.log(1e30), np.log(1e45), xtol=1e-12)
KN = np.exp(lnKN)
rN = m1(KN)
rN2 = m1(KN, N=12000)
check("C3 grid convergence at K_N (N 6000 vs 12000): u, dE1, alpha to 1e-3",
max(abs(rN2['u'] / rN['u'] - 1), abs(rN2['dE1'] / rN['dE1'] - 1), abs(rN2['alpha'] / rN['alpha'] - 1)) < 1e-3,
f"({abs(rN2['u']/rN['u']-1):.1e}, {abs(rN2['dE1']/rN['dE1']-1):.1e}, {abs(rN2['alpha']/rN['alpha']-1):.1e})")
say(f" M1: K_N = {KN:.4e} eV/m^2; confinement E0 - m0c^2 = {rN['conf']:.4e} eV = {rN['conf']/M0:.3e} m0c^2 = {rN['conf']/E0_CELL:.3f} E0,cell")
say(f" first dipole excitation {rN['dE1']:.4e} eV; share of eps0 {rN['share']:.3e}; "
f"{'inside GRB 090510 range (needs share < 6.2e-20)' if 0.2e6 <= rN['dE1'] <= 28e9 else 'outside the range'}")
lnK2 = brentq(lambda x: m2(np.exp(x))['u'] - U_MAX, np.log(1e30), np.log(1e45), xtol=1e-12)
K2 = np.exp(lnK2); r2_ = m2(K2)
say(f" M2 (scalar hold): K_N = {K2:.4e} eV/m^2; confinement E0 - m0c^2 = {r2_['conf']:.4e} eV = {r2_['conf']/M0:.3e} m0c^2 = {r2_['conf']/E0_CELL:.3f} E0,cell")
# ---------------- Q2: the hold light needs ----------------
say("\nQ2. The hold light needs (M1): first excitation above 28 GeV and promptness delay below the limit")
def k_for_delay(dt):
return np.exp(brentq(lambda x: np.log(m1(np.exp(x))['delay'] / dt), np.log(KN), np.log(1e70), xtol=1e-10))
def k_for_gap():
return np.exp(brentq(lambda x: np.log(m1(np.exp(x))['dE1'] / 28e9), np.log(KN), np.log(1e70), xtol=1e-10))
Kgap = k_for_gap()
res = {}
for lim, dt in (("(a)", 0.859), ("(e)", 0.010)):
Kd = k_for_delay(dt)
KL = max(Kd, Kgap)
rL = m1(KL)
res[lim] = (KL, rL)
say(f" limit {lim}: K = {KL:.4e} eV/m^2 ({'promptness' if Kd >= Kgap else 'the 28 GeV gap'} decides); first excitation {rL['dE1']:.4e} eV;"
f" confinement {rL['conf']:.4e} eV = {rL['conf']/M0:.2e} m0c^2; share {rL['share']:.3e}; spread {rL['u']/D_SP:.3e} d; delay {rL['delay']:.3e} s")
# ---------------- Q3: the photon unit ----------------
say("\nQ3. The photon unit's barrier, 24 x (1/2) K ((sqrt2 - 1) d)^2 (nearest sites; own sites about 5.1 times more)")
KW1, rW1 = res["(a)"]
decider = "light (limit (a))" if KW1 > KN else "N's margin"
B = 24 * 0.5 * KW1 * ((np.sqrt(2) - 1) * D_SP) ** 2
for name, K in (("the hold N needs", KN), ("W1's hold", KW1)):
b = 24 * 0.5 * K * ((np.sqrt(2) - 1) * D_SP) ** 2
say(f" {name:18s}: K = {K:.4e} eV/m^2 -> barrier {b:.3e} eV = {b/1.4e15:.2e} x 1.4 PeV")
# ---------------- verdict ----------------
say("\nVerdict, by the lock's rules")
say(f" W1: {decider} decides. The hold: K >= {KW1:.3e} eV/m^2, first excitation {rW1['dE1']:.3e} eV (limit (a));"
f" by limit (e) {res['(e)'][1]['dE1']:.3e} eV. N alone would need K = {KN:.3e} eV/m^2 (first excitation {rN['dE1']:.3e} eV).")
ratio = rW1['conf'] / M0
say(f" W2: at that hold the quon's confinement energy is {rW1['conf']:.3e} eV, {ratio:.2e} times its rest energy"
+ (" -> Aspden's chain keeps its numbers only if the held quon keeps its rest inertia m0 (his Tutorial Note 8 postulate), and the hold's energy stays out of I7."
if ratio > 10 else "."))
say(f" W3: photon-unit barrier {B:.3e} eV = {B/1.4e15:.2e} x 1.4 PeV"
+ (" -> the hold must turn with each photon unit." if B >= 10 * 1.4e15 else " (not ten times 1.4 PeV)."))
say(" W4: these replace trial 12's non-relativistic placeholders; trial 12's spread (0.0055 d) and the structure of its verdict"
+ (" stand." if (KW1 > KN and B >= 10 * 1.4e15) else " are contradicted here; see above."))
nfail = sum(1 for _, ok in checks if not ok)
say(f"\nCode checks: {len(checks)-nfail} of {len(checks)} pass.")