Does light charge the quons? › Files cited on the page › the trials
quantum_lattice.py
"""Trial 12: quons as waves: what would keep each quon in its cell without breaking N = 1843? (16 November 2026)
Lock: papers/Lock_quantum_lattice_2026-11-16.md, committed with this script before the run. Every choice is the lock's.
Run: python3 quantum_lattice.py (numpy, scipy, mpmath). A few seconds.
"""
import numpy as np
import mpmath as mp
import scipy
from scipy import constants as K
from scipy.integrate import quad
from scipy.special import erf, erfc
mp.mp.dps = 30
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, hbar, e = K.c, K.hbar, K.e
hbarc = hbar * c / e # eV m
LY = 9.4607304725808e15
# Aspden's numbers (Part 1A W-lines) [A]
D_SP = 6.37403e-13 # m
M0C2 = 20839.2 # eV, m0 c^2 (W2 line 8: 20.8392 keV)
HW_P = 361331.0 # eV, h-bar omega_p, quons alone
HW_E = HW_P / np.sqrt(3) # eV, the continuum's hold on one quon (W3)
E0 = 412.6658 * K.m_e * c ** 2 / e # eV, Aspden's cell energy (I7)
L_SUM = mp.mpf("2.3136987") # exact Ewald sum (main paper 5.2; Part 1A W-lines)
say("Trial 12: quons as waves, and N = 1843. Lock: papers/Lock_quantum_lattice_2026-11-16.md")
say(f"scipy {scipy.__version__}; hbar c = {hbarc:.6e} eV m; d = {D_SP} m; m0 c^2 = {M0C2} eV; h-bar omega_E = {HW_E/1e3:.3f} keV")
# ---------------- Q1: N's margin ----------------
say("\nQ1. The zero-energy condition 8 pi x^2 - L + 2 pi (b/d)^2 + 2 pi (u/d)^2 = 0, b/d = 1/(96 pi x^2); N0 = (9/8)^3 x^-6")
def N0(w):
w = mp.mpf(w)
f = lambda x: 8 * mp.pi * x ** 2 - L_SUM + 1 / (4608 * mp.pi * x ** 4) + 2 * mp.pi * w ** 2
x0 = mp.findroot(f, mp.mpf("0.3029"))
return (mp.mpf(9) / 8) ** 3 / x0 ** 6, x0
n00, x00 = N0(0)
say(f" u = 0: x0 = r/d = {mp.nstr(x00, 9)}, N0 = {mp.nstr(n00, 9)}")
check("C1: N0 at u = 0 reproduces the record's 1844.538 to 1e-6", abs(float(n00) / 1844.538 - 1) < 1e-6, f"({mp.nstr(n00, 9)})")
w_max = mp.findroot(lambda w: N0(w)[0] - 1845, mp.mpf("0.005"))
say(f" N0 reaches 1845 at u/d = {mp.nstr(w_max, 6)}: the largest spread that keeps N = 1843 is u_max = {mp.nstr(w_max, 6)} d = {float(w_max)*D_SP:.3e} m")
for w in (0.001, 0.003, float(w_max), 0.01):
say(f" u/d = {w:.5f}: N0 = {mp.nstr(N0(w)[0], 9)}")
# ---------------- Q2: the hold ----------------
say("\nQ2. The hold that spread needs: u = sqrt(h-bar/(2 m0 omega_t)), omega_t^2 = omega_h^2 + omega_E^2")
def hold_for(w):
u = w * D_SP
hw_t = hbarc ** 2 / (2 * M0C2 * u ** 2)
hw_h = np.sqrt(max(hw_t ** 2 - HW_E ** 2, 0.0))
return hw_t, hw_h
rows = {}
for name, w in (("u_max (N stays 1843)", float(w_max)), ("u = 0.1 d", 0.1), ("u = 0.3 d", 0.3)):
hw_t, hw_h = hold_for(w)
rows[name] = (hw_t, hw_h)
say(f" {name:22s}: h-bar omega_t = {hw_t:.4e} eV, hold h-bar omega_h = {hw_h:.4e} eV; zero-point energy per cell (3/2) h-bar omega_t = {1.5*hw_t:.3e} eV = {1.5*hw_t/E0:.2e} x Aspden's E0")
H_N = rows["u_max (N stays 1843)"][1]
# ---------------- Q3: what light sees ----------------
say("\nQ3. Light: a site-held lattice is a dielectric with one resonance at h-bar omega_h, share s_h = (omega_p/omega_h)^2")
E_G, L_EFF = 28e9, 21.2e9 * LY
def e_min_prompt(s, dt): # U15's form for a share s (trial 10)
return E_G * np.sqrt(1.5 * s * L_EFF / (c * dt))
check("C3: U15's 3.0e19 eV reproduced with s = 1, limit (a), to 5%", abs(e_min_prompt(1.0, 0.859) / 3.0e19 - 1) < 0.05, f"({e_min_prompt(1.0, 0.859):.3e} eV)")
e_inrange = HW_P / np.sqrt(6.2e-20)
say(f" in GRB 090510's range (0.2 MeV to 28 GeV) a resonance needs s_h < 6.2e-20, i.e. h-bar omega_h > {e_inrange:.2e} eV: above the range, so no hold inside it passes")
H_L = {}
for lim, dt in (("(a)", 0.859), ("(e)", 0.010)):
eh = (1.5 * HW_P ** 2 * E_G ** 2 * L_EFF / (c * dt)) ** 0.25
H_L[lim] = eh
say(f" above the range, promptness by limit {lim}: (3/2) s_h (E/E_h)^2 L_eff/c < {dt} s needs h-bar omega_h > {eh:.3e} eV (share there {(HW_P/eh)**2:.2e})")
s_at_HN = (HW_P / H_N) ** 2
dly = 1.5 * s_at_HN * (E_G / H_N) ** 2 * L_EFF / c if H_N > 28e9 else float('nan')
say(f" at the hold N needs ({H_N:.3e} eV): share {s_at_HN:.2e}; {'inside the range' if H_N <= 28e9 else f'promptness delay {dly:.2e} s against 0.859 s'}")
# ---------------- Q4: the photon unit ----------------
say("\nQ4. The photon unit: a 45-degree turn puts its 24 off-axis quons (sqrt 2 - 1) d from the nearest site; barrier 24 x (1/2) m0 omega_h^2 ((sqrt2-1) d)^2")
delta = (np.sqrt(2) - 1) * D_SP
def barrier(hw_h):
return 24 * 0.5 * M0C2 * (hw_h * delta / hbarc) ** 2
H_W1 = max(H_N, H_L["(a)"])
decider = "N's margin (Q1)" if H_N >= H_L["(a)"] else "light (Q3, limit (a))"
for name, hw in (("the hold N needs", H_N), ("the hold light needs, limit (a)", H_L["(a)"]), ("W1's hold (the larger)", H_W1)):
say(f" {name:34s}: h-bar omega_h = {hw:.3e} eV -> barrier {barrier(hw):.3e} eV = {barrier(hw)/1.4e15:.2e} x 1.4 PeV")
say(" (no estimate for Aspden's electric hold alone: its continuum part does not oppose a rigid turn about the block's centre)")
# ---------------- C2: the shell theorem for Gaussian clouds ----------------
say("\nQ5 (C2). <1/|R + delta|> for an isotropic Gaussian delta (sigma per axis) = erf(R/(sqrt2 sigma))/R")
def direct(R, s):
# radial average: the potential of a Gaussian cloud at distance R, by quadrature of the shells
f = lambda rr: 4 * np.pi * rr ** 2 * np.exp(-rr ** 2 / (2 * s ** 2)) / (2 * np.pi * s ** 2) ** 1.5 * (1 / max(R, rr))
v, _ = quad(f, 0, R + 20 * s, points=[R], limit=400, epsabs=1e-14, epsrel=1e-12)
return v
R, s = 1.0, 0.3
dv, fv = direct(R, s), erf(R / (np.sqrt(2) * s)) / R
check("C2: erf formula vs direct average at sigma = 0.3 R, to 1e-8", abs(dv / fv - 1) < 1e-8, f"({dv:.12f} vs {fv:.12f})")
sig_rel = np.sqrt(2) * float(w_max)
say(f" at u_max, two neighbours' relative spread sigma = sqrt2 u_max = {sig_rel:.4e} d: correction erfc(d/(sqrt2 sigma)) = {erfc(1/(np.sqrt(2)*sig_rel)):.1e}")
# ---------------- verdict ----------------
say("\nVerdict, by the lock's rules")
say(f" W1: the hold must be at least {H_W1:.3e} eV per quon; {decider} decides (N needs {H_N:.3e} eV; light, limit (a), {H_L['(a)']:.3e} eV; limit (e), {H_L['(e)']:.3e} eV)")
B = barrier(H_W1)
if B >= 10 * 1.4e15:
say(f" W2: at that hold a photon unit's barrier is {B:.2e} eV, {B/1.4e15:.1e} x the highest photon energy measured: a hold to fixed sites")
say(" would stop the photon unit turning, and with it I5, on which 1/alpha rests; such a hold keeps the wins only if it turns with each photon unit")
else:
say(f" W2: the barrier at that hold, {B:.2e} eV, is not ten times 1.4 PeV; W2's statement does not apply")
say(" W3: quantum quons keep the wins only with a non-electric hold of at least W1's strength that moves with the orbit (eq. 7.5 kept)")
say(" and, by W2, with each photon unit; otherwise the quons must not be quantum, against Doug's answer")
nfail = sum(1 for _, ok in checks if not ok)
say(f"\nCode checks: {len(checks)-nfail} of {len(checks)} pass.")