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

check_trial21.py

In the investigation at sim/models_AB/check_trial21_fable/check_trial21.py · last changed in commit 3f155ac, 23 November 2026 · 13,401 bytes · the folder as a zip


"""Independent check of trial 21 (a geared or intrinsic-spin gyrostatic medium), by the twenty-seventh reviewer.

Written from the lock (papers/Lock_geared_gyrostat_2026-11-22.md) and my own derivations, not from the trial's code.
Run: OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 sim/models_AB/check_trial21_fable/check_trial21.py
Parts: A the numbers (Q1, Q2, Q3, Q4, Q5, Q6, Q7); B the physics (gyrostat, rotor bound, MacCullagh factor, dispersion,
no-ground theorem and its scope, two media, intrinsic spin, Kelvin's time limit exactly, gimbal spring, strain-reading mounts).
Every line prints CHECK pass/FAIL where a number is tested, or NOTE where a derivation is reported.
"""
import subprocess
import numpy as np
import sympy as sp
from scipy import constants as C
from scipy.integrate import solve_ivp

head = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip()
print(f"check_trial21.py: git HEAD at run {head}; numpy {np.__version__}, sympy {sp.__version__}")
results = []
def chk(name, ok, detail=""):
    results.append((name, bool(ok)))
    print(f"  CHECK {'pass' if ok else 'FAIL'}: {name} {detail}")
def note(s):
    print("  NOTE: " + s)

hbar, c, me, e, eps0, mu0, G_N = C.hbar, C.c, C.m_e, C.e, C.epsilon_0, C.mu_0, C.G
eV = C.e
a0 = C.physical_constants['Bohr radius'][0]
d_A = 6.3740e-13                      # Aspden's spacing [A, the record]
r_orb = hbar / (2 * me * c)           # orbit radius at c/2 and Omega = me c^2/hbar [the record]
Omega = me * c**2 / hbar
m0 = 0.04078 * me                     # quon mass [A]
m_sea = 1.45e9 * d_A**3               # muon sea per cell, reading B [the record]
v = c / 2                             # Doug's postulate
rho_Pl = np.sqrt(hbar * c / G_N) / (np.sqrt(hbar * G_N / c**3))**3
H0 = 67.4e3 / (1e6 * C.parsec)        # [S, from memory: Planck 2018]
rho_crit = 3 * H0**2 / (8 * np.pi * G_N)
T_U, T_E = 13.8e9 * C.year, 4.54e9 * C.year     # [S, from memory]
v_cmb = 370e3                         # [the record]
R_p = 0.8414e-15                      # [S, from memory: CODATA 2018]
B_E, R_E = 50e-6, 6.371e6             # [S, from memory]

# ---------------- A. the numbers ----------------
print("\nA1. Q1: ungeared speeds. c_w^2 = f K/(4 m), K = kappa m v^2 (one axis f = 1; isotropic f = 1/3)")
shapes = {"ring": (2.0, 2.0), "disc": (1.0, 2.0), "sphere": (0.4, 1.0)}   # kappa = K/(m v^2), omega_max/Omega_s = I3/I_perp
exp_q1 = {("ring", 1): 0.3536, ("ring", 3): 0.2041, ("disc", 1): 0.2500, ("disc", 3): 0.1443, ("sphere", 1): 0.1581, ("sphere", 3): 0.0913}
ok = True
for s, (kap, _) in shapes.items():
    for f in (1, 3):
        cw = np.sqrt(kap / f * 0.25 / 4)
        ok &= abs(cw - exp_q1[(s, f)]) < 6e-5
        print(f"    {s:7s} f=1/{f}: c_w = {cw:.4f}c (results: {exp_q1[(s, f)]:.4f}c)")
chk("Q1 six speeds reproduced to 4 decimals", ok)
chk("Q1 the bound v_rim/sqrt2 = 0.3536c and v_rim/sqrt6 = 0.2041c", abs(0.5/np.sqrt(2) - 0.3536) < 1e-4 and abs(0.5/np.sqrt(6) - 0.2041) < 1e-4)
# the light-sector lock's six V2 values, from its own formula c_w = h/(2 sqrt(I_g M)), h = 2 m0 r^2 Omega
h = 2 * m0 * r_orb**2 * Omega
v2 = {(a, b): h / (2 * np.sqrt(a * m0 * r_orb**2 * b * m0)) / c for a in (1.0, 0.5) for b in (2.0, 1.0, m_sea / m0)}
chk("Q1 light-sector V2 six values 0.3536, 0.5000, 0.0050, 0.5000, 0.7071, 0.0070c",
    all(abs(v2[k] - t) < 6e-5 for k, t in zip([(1.0, 2.0), (1.0, 1.0), (1.0, m_sea/m0), (0.5, 2.0), (0.5, 1.0), (0.5, m_sea/m0)],
                                              [0.3536, 0.5, 0.0050, 0.5, 0.7071, 0.0070])), f"({', '.join(f'{x:.4f}' for x in v2.values())})")

print("\nA2. Q2: gear ratios for c, and the 18-trial grid")
exp_G = {("ring", 1): 2.8284, ("ring", 3): 4.8990, ("disc", 1): 4.0000, ("disc", 3): 6.9282, ("sphere", 1): 6.3246, ("sphere", 3): 10.9545}
ok = True
for s, (kap, _) in shapes.items():
    for f in (1, 3):
        Gn = 1 / np.sqrt(kap / f / 16)
        ok &= abs(Gn - exp_G[(s, f)]) < 6e-5
chk("Q2 six G values reproduced", ok, str({k: round(1/np.sqrt(shapes[k[0]][0]/k[1]/16), 4) for k in exp_G}))
hits = []
grid = {}
for Gr in (2, 3, 4):
    for s, (kap, _) in shapes.items():
        for f in (1, 3):
            cw = Gr * np.sqrt(kap / f / 16)
            grid[(Gr, s, f)] = cw
            if abs(cw - 1) < 1e-3:
                hits.append((Gr, s, f))
chk("Q2 grid: exactly one hit, (G = 4, disc, one axis)", hits == [(4, "disc", 1)], str(hits))
chk("Q2 grid values as in the results (0.7071, 0.4082, 0.5, 0.2887, 0.3162, 0.1826; x1.5 for G = 3; x2 for G = 4)",
    abs(grid[(2, "ring", 1)] - 0.7071) < 1e-4 and abs(grid[(3, "ring", 1)] - 1.0607) < 1e-4 and abs(grid[(4, "sphere", 3)] - 0.3651) < 1e-4
    and abs(grid[(3, "disc", 3)] - 0.4330) < 1e-4 and abs(grid[(4, "ring", 3)] - 0.8165) < 1e-4)
# the 90%-static-gain ground mass: K_g >= 9 (G-1)^2 K. "The same rotors" means K_g/K = m_g/m, so m_g/m >= 9 (G-1)^2;
# the script's 9 (G-1)^2 kappa/2 is for a ground of c/2 RING rotors (K_g = 2 m_g v^2 per axis convention) under a medium of shape kappa.
for s, (kap, _) in shapes.items():
    for f in (1, 3):
        Gn = 1 / np.sqrt(kap / f / 16)
        same = 9 * (Gn - 1)**2
        ring_ground = 9 * (Gn - 1)**2 * kap / 2
        print(f"    {s:7s} f=1/{f}: G = {Gn:.4f}; m_g/m for 90% static gain: same rotors {same:.1f}; ring rotors in the ground {ring_ground:.1f} (the script's number)")
note("the script's 'a ground of the same rotors' numbers (30.1 ... 178.4) are for a ground of c/2 ring rotors; with the same shape as the medium "
     "they are 30.1 (ring), 81.0 (disc, one axis), 255 (sphere, one axis), 136.8, 316, 892 (isotropic ring, disc, sphere)")

print("\nA3. Q3: the two-medium eigenproblem, my own set-up. Energy per element 1/2 K (G th - (G-1) th_g)^2 + 1/2 K_g th_g^2; masses m, m_g")
def two_media(K, G, m, mg, Kg):
    Kh = np.array([[K*G*G, -K*G*(G-1)], [-K*G*(G-1), K*(G-1)**2 + Kg]])
    M = np.diag([m, mg])
    # generalized symmetric eigenproblem by Cholesky
    L = np.linalg.cholesky(M); Li = np.linalg.inv(L)
    W, V = np.linalg.eigh(Li @ Kh @ Li.T)
    V = Li.T @ V
    return W, V
K_ring = 0.5                      # 2 m v^2 with v = c/2, m = 1, in units of m c^2
G0 = 2 * np.sqrt(2)
exp_q3 = {(7.0, 0.0): (1.0294, -0.092, 0.0, 1.547), (7.0, 9*(G0-1)**2*K_ring): (1.0560, -0.178, 0.6941, 0.8016),
          (m_sea/m0, 0.0): (1.0000, -6.4e-5, 0.0, 1.547), (1.0, 0.0): (1.1908, -0.646, 0.0, 1.547)}
ok = True
for (mg, Kg), (cl, rl, co, ro) in exp_q3.items():
    W, V = two_media(K_ring, G0, 1.0, mg, Kg)
    i_hi, i_lo = np.argmax(W), np.argmin(W)
    c_hi, c_lo = np.sqrt(W[i_hi]) / 2, np.sqrt(max(W[i_lo], 0)) / 2
    r_hi, r_lo = V[1, i_hi] / V[0, i_hi], V[1, i_lo] / V[0, i_lo]
    Kstat = G0**2 * K_ring / (1 + (G0-1)**2 * K_ring / Kg) if Kg > 0 else 0.0
    ok &= abs(c_hi - cl) < 1e-4 and abs(r_hi - rl) < 2e-3 * max(1, abs(rl)) + 1e-6 and abs(c_lo - co) < 1e-4 and abs(r_lo - ro) < 2e-3
    print(f"    m_g = {mg:9.3f} K_g = {Kg:6.3f}: light {c_hi:.4f}c (u_g/u {r_hi:+.3e}); other {c_lo:.4f}c (u_g/u {r_lo:+.3e}); K_stat/K = {Kstat/K_ring:.3f}")
chk("Q3 table: four rows' branch speeds and co-motion ratios reproduced", ok)
# the closed form for K_g = 0 and the lock's two cases not run (m_g = 1 and the muon sea, with K_g = 9 (G-1)^2 K)
W, _ = two_media(K_ring, G0, 1.0, 7.0, 0.0)
chk("Q3 light branch W = K (G^2/m + (G-1)^2/m_g) at K_g = 0, m_g = 7", abs(W.max() - K_ring * (G0**2 + (G0-1)**2 / 7)) < 1e-12 and abs(W.min()) < 1e-12)
for mg in (1.0, m_sea / m0):
    W, V = two_media(K_ring, G0, 1.0, mg, 9*(G0-1)**2*K_ring)
    i = np.argmax(W); j = np.argmin(W)
    print(f"    (lock's listed case not in the run) m_g = {mg:.3e}, K_g = 9 (G-1)^2 K: light {np.sqrt(W[i])/2:.4f}c, other {np.sqrt(W[j])/2:.4f}c, u_g/u light {V[1,i]/V[0,i]:+.3e}")
# Aspden's cell: G for c with the muon sea as inertial ground
eps = m0 / m_sea
Gs = np.roots([1 + eps, -2 * eps, eps - 8]); G_asp = Gs[Gs > 0].max().real
chk("Q3 Aspden's cell: G = 2.82837 with the muon sea's inertia", abs(G_asp - 2.82837) < 1e-5, f"({G_asp:.5f}; m_g/m = {1/eps:.3e})")
chk("Q3 the orbit's cutoff 2 Omega = 1.022 MeV", abs(2 * hbar * Omega / eV / 1e6 - 1.022) < 1e-3)

print("\nA4. Q4: hbar/2 on a frame: c_w/c = lambda_C/(4 sqrt(j) r_g)")
ok = True; q4hits = []
for j, jn in ((1.0, "point"), (0.5, "ring")):
    for fC in (1.0, 0.5, 0.25):
        cw = 1 / (4 * np.sqrt(j) * fC); rim = 1 / (2 * fC)
        if abs(cw - 1) < 1e-3: q4hits.append((jn, fC))
        print(f"    {jn:5s} frame, r_g = {fC:.2f} lambda_C: c_w = {cw:.4f}c; rim if the spin were the frame's rotation {rim:.2f}c")
chk("Q4 exactly one hit: point frame at lambda_C/4", q4hits == [("point", 0.25)])
lamC0 = hbar / (m0 * c)
chk("Q4 Model L's 3.7c and 17c: hbar/(4 m0 d) and hbar/(4 sqrt(1/2) m0 r)", abs(hbar/(4*m0*d_A)/c - 3.71) < 0.01 and abs(hbar/(4*np.sqrt(0.5)*m0*r_orb)/c - 17.34) < 0.01)
chk("Q4 rims 7.43c (within d) and 24.52c (within r) for m0 carrying hbar/2", abs(hbar/(2*m0*d_A)/c - 7.43) < 0.01 and abs(hbar/(2*m0*r_orb)/c - 24.52) < 0.01)
S_at_lamC_c = m0 * c * lamC0; S_at_lamC_half = m0 * (c/2) * lamC0
chk("Q4 wording: a mass m0 at radius lambda_C carries hbar/2 at c/2 (not at c; at c it carries hbar)",
    abs(S_at_lamC_half / (hbar/2) - 1) < 1e-12 and abs(S_at_lamC_c / hbar - 1) < 1e-12,
    f"(lambda_C(m0) = {lamC0:.3e} m; S at c = {S_at_lamC_c/hbar:.3f} hbar, at c/2 = {S_at_lamC_half/hbar:.3f} hbar)")

print("\nA5. Q5: cutoffs and finenesses. n_g - 1 = (3/2)(E/E_max)^2 between E1 and E2")
bounds = (("Crab", 2e3, 30e3, 1.64e-16, 2.86e12), ("GRB a", 0.1e6, 28e9, 2e-18, 2.42e19), ("GRB e", 0.1e6, 28e9, 2.2e-20, 2.31e20))
ok = True
for name, E1, E2, dn, exp_hw in bounds:
    hw = np.sqrt(1.5 * (E2**2 - E1**2) / dn)
    R_ring = hbar * c / eV / hw                 # omega_max = 2 Omega_s = c/R for ring and disc at c/2
    M_half = hw / 8                             # eV: hbar omega_max = 8 M c^2 at the point frame, r_g = lambda_C/4
    rg = hbar * c / eV / (4 * M_half)
    ok &= abs(hw / exp_hw - 1) < 3e-3
    print(f"    {name:6s}: hbar omega_max > {hw:.3e} eV; ring/disc R < {R_ring:.2e} m, sphere {R_ring/2:.2e} m; d/R = {d_A/R_ring:.2e}; frame M > {M_half:.2e} eV at r_g = {rg:.2e} m")
chk("Q5 the three hbar omega_max values 2.86 TeV, 2.42e19 eV, 2.31e20 eV", ok)
hw_e = np.sqrt(1.5 * (28e9**2 - 0.1e6**2) / 2.2e-20); w_e = hw_e * eV / hbar
R_e = hbar * c / eV / hw_e
chk("Q5 row e: R < 8.5e-28 m, 7.5e14 times finer than d", abs(R_e / 8.5e-28 - 1) < 0.01 and abs(d_A / R_e / 7.5e14 - 1) < 0.01, f"(R = {R_e:.3e}, d/R = {d_A/R_e:.3e})")
m_floor = hbar * w_e / c**2; a_e = 3.0e-27; rho_floor = m_floor / a_e**3
chk("Q5 quantum floor: m_r >= 4.12e-16 kg = 2.31e20 eV; rho >= 1.53e64 kg/m^3 = 3.0e-33 Planck = 1.8e90 critical",
    abs(m_floor / 4.12e-16 - 1) < 0.01 and abs(rho_floor / 1.53e64 - 1) < 0.01 and abs(rho_floor / rho_Pl / 3.0e-33 - 1) < 0.02 and abs(rho_floor / rho_crit / 1.8e90 - 1) < 0.03,
    f"(m = {m_floor:.3e} kg, rho = {rho_floor:.3e}, {rho_floor/rho_Pl:.2e} Planck, {rho_floor/rho_crit:.2e} critical; Planck density {rho_Pl:.3e})")
chk("Q5 the tie S omega_max = 1.16e20 eV", abs(0.5 * hw_e / 1.16e20 - 1) < 0.01)
chk("Q5 hbar omega_max = 8 M c^2 at the hit (derived: J = hbar^2/(16 M c^2), omega_max = S/J)", abs((hbar/2) / (hbar**2 / (16 * 1.0 * c**2)) * hbar / (8 * 1.0 * c**2) - 1) < 1e-12)

print("\nA6. Q6: the frame-revealing order at 28 GeV")
x2 = (28e9 / hw_e)**2
chk("Q6 (omega/omega_max)^2 = 1.5e-20 and 3 (v/c) x^2 = 5.4e-23", abs(x2 / 1.47e-20 - 1) < 0.02 and abs(3 * v_cmb / c * x2 / 5.4e-23 - 1) < 0.02, f"({x2:.2e}, {3*v_cmb/c*x2:.2e})")

print("\nA7. Q7: Kelvin's time limit for four static fields; rho >= w (omega_max T)^2/(2 c^2); wind-up at the floor 1/(omega_max sqrt(w/(2 rho c^2)))")
E_a0 = e / (4 * np.pi * eps0 * a0**2); E_p = e / (4 * np.pi * eps0 * R_p**2); E_1m = e / (4 * np.pi * eps0)
fields = (("hydrogen at a0 (Larmor, twist = D)", 0.5 * eps0 * E_a0**2, a0, T_U, (1.17e12, 1.5e101, 1.6e34, 0.14)),
          ("proton surface (Larmor)", 0.5 * eps0 * E_p**2, R_p, T_U, (1.83e31, 2.4e120, 6.5e43, 3.5e-11)),
          ("1 m from an electron (Larmor)", 0.5 * eps0 * E_1m**2, 1.0, T_U, (9.18e-30, 1.2e60, 4.6e13, 4.9e19)),
          ("Earth's 50 uT (record's reading, twist = B)", B_E**2 / (2 * mu0), R_E, T_E, (9.95e-4, 1.4e85, 2.0e53, 4.7e6)))
ok = True
for name, w, L, T, (ew, er_ent, er_str, et) in fields:
    rho_ent = w * (w_e * T)**2 / (2 * c**2); rho_str = w * (w_e * L / v_cmb)**2 / (2 * c**2)
    t_wind = 1 / (w_e * np.sqrt(w / (2 * rho_floor * c**2)))
    ok &= abs(w/ew - 1) < 0.01 and abs(rho_ent/er_ent - 1) < 0.05 and abs(rho_str/er_str - 1) < 0.05 and abs(t_wind/et - 1) < 0.05
    print(f"    {name:44s}: w = {w:.3e}; entrained rho >= {rho_ent:.2e} ({rho_ent/rho_Pl:.1e} Planck); streaming rho >= {rho_str:.2e} ({rho_str/rho_floor:.1e} floor); wind-up at floor {t_wind:.2e} s")
chk("Q7 four rows reproduced (w, both densities, wind-up time)", ok)
rho_H = 0.5 * eps0 * E_a0**2 * (w_e * T_U)**2 / (2 * c**2)
chk("Q7 hydrogen entrained: 1.5e101 kg/m^3 = 3.0e4 Planck", abs(rho_H / 1.5e101 - 1) < 0.02 and abs(rho_H / rho_Pl / 3.0e4 - 1) < 0.03, f"({rho_H:.3e}, {rho_H/rho_Pl:.2e})")
chk("Q7 theta_max for the age of the universe 6.5e-54; a twist 1e-20 lasts 2.8e-16 s", abs(1/(w_e*T_U)/6.5e-54 - 1) < 0.02 and abs(1/(w_e*1e-20)/2.8e-16 - 1) < 0.02)
chk("Q8/V7 fineness 7e14 and cutoff 1.02 MeV", abs(d_A / R_e / 7.46e14 - 1) < 0.01)