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

model_B.py

In the investigation at sim/models_AB/model_B.py · last changed in commit 196b08b, 16 November 2026 · 10,687 bytes · runnable copies in the scripts zip


"""Trial 10: Model B, the quon cells carry light as quantum orbits (16 November 2026).

Lock: papers/Lock_model_B_2026-11-16.md, committed with this script before the run. Every choice is the lock's.
Run: python3 model_B.py  (numpy, scipy). Under a minute.
"""
import numpy as np
from scipy import constants as K
from scipy.linalg import eigh_tridiagonal

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

# ---------------- constants: one alpha throughout (CODATA, from scipy) ----------------
c, hbar, e, eps0, me = K.c, K.hbar, K.e, K.epsilon_0, K.m_e
alpha = e ** 2 / (4 * np.pi * eps0 * hbar * c)
hbarc = hbar * c / e                      # eV m
mec2 = me * c ** 2 / e                    # eV
a0 = K.physical_constants["Bohr radius"][0]
Ry = K.physical_constants["Rydberg constant times hc in eV"][0]
LY = 9.4607304725808e15                   # m
# Aspden's numbers (Part 1A W-lines) [A]
D_SP = 6.37403e-13; R_ORB = 0.302916 * D_SP; M0_ME = 0.0407813; m0c2 = M0_ME * mec2
HW_P, HOMEGA = 361.331e3, 510.999e3       # eV
n = 1 / D_SP ** 3
# timing bounds (record)
E_GAM, L_EFF = 28e9, 21.2e9 * LY          # eV; m (U15's effective path with (1+z)^2)
DT_A, DT_E = 0.859, 0.010                 # s, limits (a) and (e)
H_E = 6.2e-20                             # share bound for a level in 0.2 MeV..28 GeV, limit (e)
CRAB = (2e3, 30e3, 1.64e-16)              # eV, eV, group-index bound

say("Trial 10: Model B (the quon cells carry light as quantum orbits). Lock: papers/Lock_model_B_2026-11-16.md")
import scipy
say(f"scipy {scipy.__version__}; alpha^-1 = {1/alpha:.9f}; hbar c = {hbarc:.6e} eV m; m_e c^2 = {mec2:.3f} eV; a0 = {a0:.6e} m")
say(f"Aspden: d = {D_SP:.5e} m, r = {R_ORB:.5e} m, m0 c^2 = {m0c2:.2f} eV, h-bar omega_p = {HW_P/1e3:.3f} keV, h-bar Omega = {HOMEGA/1e3:.3f} keV")

def ermin(s, dt):
    return E_GAM * np.sqrt(1.5 * s * L_EFF / (c * dt))
e_u15 = ermin(1.0, DT_A)
check("E_r,min with s = 1, limit (a), reproduces U15's 3.0e19 eV to 5%", abs(e_u15 / 3.0e19 - 1) < 0.05, f"({e_u15:.3e} eV)")

def classify(Ex, s):
    tags = []
    if CRAB[0] <= Ex <= CRAB[1]: tags.append(f"in the Crab band (response changes by ~{s:.2f} across 2-30 keV, bound {CRAB[2]:.2e})")
    if 0.2e6 <= Ex <= 28e9: tags.append(f"in GRB 090510's range (share {s:.3f} vs bound {H_E:.1e})")
    if Ex < 0.1e6: tags.append("below the GRB photons: light above it travels at c/sqrt(f)")
    passes = Ex >= ermin(s, DT_A)
    tags.append(f"{'ABOVE' if passes else 'below'} E_r,min(a) = {ermin(s, DT_A):.2e} eV")
    return passes, "; ".join(tags)

verdicts = {}

# ---------------- variant i ----------------
say("\nVariant i. Aspden's own orbit, read with quantum mechanics")
gam = 1 / np.sqrt(1 - 0.25)
L = gam * m0c2 * R_ORB / (2 * hbarc)
say(f"   L = gamma m0 (c/2) r = {L:.5f} h-bar  (non-relativistic m0 (c/2) r: {L/gam:.5f} h-bar); r p = {L:.4f} h-bar vs the uncertainty floor h-bar/2")
a_bohr_c2 = 2 * hbarc / (gam * m0c2)
say(f"   a quon at c/2 with L = h-bar would circle at radius {a_bohr_c2:.4e} m = {a_bohr_c2/D_SP:.2f} d = {a_bohr_c2/R_ORB:.1f} times Aspden's r")
hw_E = HW_P / np.sqrt(3)
u_min = np.sqrt(hbarc ** 2 / (2 * m0c2 * hw_E))
say(f"   h-bar omega_E = h-bar omega_p/sqrt(3) = {hw_E/1e3:.3f} keV; zero-point spread per axis >= sqrt(h-bar/(2 m0 omega_E)) = {u_min:.4e} m = {u_min/D_SP:.3f} d")
a_ws = (3 / (4 * np.pi * n)) ** (1 / 3)
aB = a0 / M0_ME
rs = a_ws / aB
say(f"   a_WS = {a_ws:.4e} m; a_B* (quon mass) = {aB:.4e} m; r_s = {rs:.4e}  (crystal needs r_s >= 106 for fermions, ~160 for bosons)")
for crit in (106, 160):
    say(f"   for r_s = {crit}: quon mass at Aspden's spacing {M0_ME*crit/rs:.4e} m_e = {M0_ME*crit/rs*mec2/1e9:.2f} GeV;  spacing with Aspden's m0 {D_SP*crit/rs:.3e} m")
say(f"   zero-point momentum h-bar/u_min = {hbarc/u_min/1e3:.1f} keV/c against m0 c = {m0c2/1e3:.2f} keV/c (relativistic)")
verdicts["i"] = (False, f"r_s = {rs:.2e} (needs >= 106); spread >= {u_min/D_SP:.2f} d; L = {L:.4f} h-bar")

# ---------------- variant ii ----------------
say("\nVariant ii. The quon held by the continuum: h-bar omega_E = 208.6 keV for one displaced quon; for light (all quons together) the hold cancels: a plasma (section 8.5 row 1; quoted)")
say(f"   as a carrier its response is a plasma's below {HW_P/1e3:.0f} keV (U34); its ground state is variant i's spread")
verdicts["ii"] = (False, "a plasma for light (section 8.5 row 1, U34)")

# ---------------- hydrogen code checks ----------------
say("\nHydrogen, solved numerically (atomic units; 4000 points, box 100 a0) for the code checks")
N, Rbox = 4000, 100.0
h = Rbox / N
rg = h * np.arange(1, N + 1)
def solve(l):
    dg = 1 / h ** 2 + l * (l + 1) / (2 * rg ** 2) - 1 / rg
    off = -0.5 / h ** 2 * np.ones(N - 1)
    return eigh_tridiagonal(dg, off)
E0, U0 = solve(0)
E1, U1 = solve(1)
u1s = U0[:, 0]; Eg = E0[0]
Rn = U1.T @ (rg * u1s)
dE = E1 - Eg
pol = 2 * np.sum(Rn ** 2 / 3 / dE)
fn = 2 * dE * Rn ** 2 / 3
r2 = np.sum(u1s ** 2 * rg ** 2)
say(f"   E_1s = {Eg:.6f} (exact -0.5); alpha_pol = {pol:.4f} a0^3 (exact 9/2); f(1s->2p) = {fn[0]:.5f}; sum f (l = 1, box) = {fn.sum():.5f}; <r^2>_1s = {r2:.5f}")
check("hydrogen polarizability within 1% of 9/2", abs(pol / 4.5 - 1) < 0.01, f"({pol:.4f})")
check("1s->2p oscillator strength within 0.5% of 0.4162", abs(fn[0] / 0.4162 - 1) < 0.005, f"({fn[0]:.5f})")
check("Thomas-Reiche-Kuhn sum within 1% of 1", abs(fn.sum() - 1) < 0.01, f"({fn.sum():.5f})")
check("<r^2>_1s within 0.5% of 3", abs(r2 / 3 - 1) < 0.005, f"({r2:.5f})")

# ---------------- variant iii ----------------
say("\nVariant iii(a). The electron itself bound to a quon (Coulomb, eps0)")
mu = M0_ME / (M0_ME + 1)                       # in m_e
a_e = a0 / mu
say(f"   reduced mass {mu:.5f} m_e; Bohr radius {a_e:.4e} m = {a_e/D_SP:.0f} d; binding {Ry*mu:.4f} eV")
verdicts["iii-a"] = (False, f"orbit {a_e/D_SP:.0f} d across, bound by {Ry*mu:.2f} eV")

say("\nVariant iii(b). A hydrogen-like orbit sized to supply the share s (binding inside the cell with eps_int)")
say(f"   {'f':>6s} {'s':>6s} {'binding':>8s} {'form':>7s} {'a/d':>8s} {'mu (m_e)':>10s} {'mu (MeV)':>10s} {'E_x (keV)':>10s} {'v/c':>8s}  bounds")
rows_iii = []
for f in (0.25, 0.085):
    s = 1 - f
    for bind in ("eps_b", "eps0"):
        eint = f * eps0 if bind == "eps_b" else eps0
        for form in ("dilute", "CM"):
            n_alpha = s * eps0 if form == "dilute" else 3 * f * eps0 * (1 - f) / (1 + 2 * f)
            aH = n_alpha / n
            a = (aH / (18 * np.pi * eint)) ** (1 / 3)
            mu_kg = 4 * np.pi * eint * hbar ** 2 / (e ** 2 * a)
            Ex = (3 / 8) * e ** 2 / (4 * np.pi * eint * a) / e
            v = alpha * eps0 / eint
            ok, tags = classify(Ex, s)
            fits = a <= D_SP / 2
            rows_iii.append((f, s, bind, form, a / D_SP, mu_kg / me, mu_kg * c ** 2 / e / 1e6, Ex, v, ok and fits))
            say(f"   {f:6.3f} {s:6.3f} {bind:>8s} {form:>7s} {a/D_SP:8.4f} {mu_kg/me:10.1f} {mu_kg*c**2/e/1e6:10.1f} {Ex/1e3:10.3f} {v:8.4f}  {tags}")
verdicts["iii-b"] = (any(r[-1] for r in rows_iii), f"E_x = {min(r[7] for r in rows_iii)/1e3:.1f} to {max(r[7] for r in rows_iii)/1e3:.1f} keV")

# ---------------- variant iv ----------------
say("\nVariant iv. An orbit at c/2 with L = h-bar (gamma m (c/2) a = h-bar; E_x = h-bar (c/2)/a; s <= 8 pi gamma alpha (a/d)^3)")
k4 = 8 * np.pi * gam * alpha
a_needed = (0.75 / k4) ** (1 / 3)
s_max = k4 / 8
Ex4 = hbarc / D_SP
say(f"   s = 0.75 needs a/d = {a_needed:.3f} (larger than the cell); with a <= d/2 the share is at most {s_max:.4f} (f >= {1-s_max:.4f}); E_x at a = d/2 is h-bar c/d = {Ex4/1e3:.1f} keV")
m4 = 2 * hbarc / (gam * D_SP / 2)
ok4, tags4 = classify(Ex4, s_max)
say(f"   the carrier at a = d/2 would have m c^2 = {m4/1e6:.3f} MeV; {tags4}")
verdicts["iv"] = (False, f"at most {s_max:.3f} of eps0 in its cell; E_x {Ex4/1e3:.0f} keV")

# ---------------- variant v ----------------
say("\nVariant v. The ceiling for a carrier of the quon's mass at Aspden's spacing (sum rule, section 9.10)")
for nm, w in (("continuum still", HW_P), ("both frames moving", HOMEGA)):
    say(f"   {nm}: h-bar omega_r <= {w/1e3:.3f} keV / sqrt(0.75) = {w/np.sqrt(0.75)/1e3:.1f} keV (inside GRB 090510's range)")
verdicts["v"] = (False, "ceiling 417 to 590 keV, in range")

# ---------------- magnetic matching ----------------
say("\nThe magnetic response against what matching needs (R = beta/(c^2 alpha_e))")
for f in (0.25, 1.0):
    eint = f * eps0
    a_any = 1e-13
    mu_k = 4 * np.pi * eint * hbar ** 2 / (e ** 2 * a_any)
    beta = e ** 2 * 3 * a_any ** 2 / (6 * mu_k)
    aH = 18 * np.pi * eint * a_any ** 3
    R1 = beta / (c ** 2 * aH)
    v = alpha * eps0 / eint
    R2 = v ** 2 / 9
    check(f"matching ratio two ways agree (eps_int = {f} eps0)", abs(R1 / R2 - 1) < 1e-10, f"({R1:.4e} vs {R2:.4e})")
    say(f"   hydrogen-like, eps_int = {f} eps0: v/c = {v:.4f}, R = {R1:.3e}; speed change across its energy ~ s(1-R)/2 = {0.75*(1-R1)/2:.3f} (bound 3.1e-20)")
say(f"   circular orbit at c/2 (diamagnetic only): R = {0.25/6:.4f} = 1/24; speed change ~ {0.75*(1-1/24)/2:.3f}")

# ---------------- the level Model B needs ----------------
say("\nThe level Model B needs")
say(f"   {'s':>5s} {'limit':>5s} {'E_r,min (eV)':>13s} {'d_max harmonic':>15s} {'d_max H-like':>13s} {'below Aspden':>13s} {'U44 level (s=3)':>15s} {'carrier m c^2 (GeV)':>20s} {'Compton/size':>12s}")
for s in (0.75, 0.99):
    for lim, dt in (("(a)", DT_A), ("(e)", DT_E)):
        Er = ermin(s, dt)
        dh = (2 * np.pi * alpha / s) * hbarc / Er
        dH = (3 / 8) * alpha * (18 * np.pi / s) ** (1 / 3) * hbarc / Er
        mc2 = 4 * np.pi * alpha * hbarc ** 3 / (s * dh ** 3 * Er ** 2)
        comp = (hbarc / mc2) / (dh / 2)
        lev = int(np.ceil(np.log(D_SP / dh) / np.log(3)))
        say(f"   {s:5.2f} {lim:>5s} {Er:13.3e} {dh:15.3e} {dH:13.3e} {D_SP/dh:13.2e} {lev:15d} {mc2/1e9:20.3e} {comp:12.3f}")

# ---------------- verdict ----------------
say("\nVerdict, by the lock's rules")
for k, (ok, why) in verdicts.items():
    say(f"   variant {k:>5s}: {'passes' if ok else 'fails'} at Aspden's spacing ({why})")
say(f"   W2: Aspden's lattice as a lattice under quantum mechanics: r_s = {rs:.2e} against 106; spread >= {u_min/D_SP:.2f} d -> {'survives' if rs >= 106 else 'does NOT survive'} at his numbers")
say("   W3: no variant passes at Aspden's spacing -> Model B needs the carrying level at or below d_max above, and T4 for every level above it")
nfail = sum(1 for _, ok, _ in checks if not ok)
say(f"\nCode checks: {len(checks)-nfail} of {len(checks)} pass.")