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

geared_gyrostat.py

In the investigation at sim/models_AB/geared_gyrostat.py · last changed in commit 47f4ccc, 22 November 2026 · 29,854 bytes · runnable copies in the scripts zip


"""Trial 21: a geared or intrinsic-spin gyrostatic medium (22 November 2026).

Lock: papers/Lock_geared_gyrostat_2026-11-22.md, committed with this script before the run. Every choice is the lock's.
Kelvin's gyrostatic realization of MacCullagh's rotationally elastic medium, taken beyond rigid spinners: (a) a gyrostat whose
mount is geared to turn G times the medium's local rotation, against a ground; (b) an intrinsic spin hbar/2 on a frame.
Questions Q1 to Q8, code checks K1 to K9 and verdict rules V1 to V7 as in the lock.
Run (after the lock's commit): OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 sim/models_AB/geared_gyrostat.py   (numpy, scipy, sympy). Seconds.
"""
import subprocess
import numpy as np
import scipy
import scipy.linalg
import sympy as sp
from scipy import constants as K

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

try:
    head = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, timeout=10).stdout.strip()
except Exception as exc:                                   # the script still runs outside the repository
    head = f"(not available: {exc.__class__.__name__})"
say("Trial 21: a geared or intrinsic-spin gyrostatic medium. Lock: papers/Lock_geared_gyrostat_2026-11-22.md")
say(f"git HEAD at run: {head}; numpy {np.__version__}, scipy {scipy.__version__}, sympy {sp.__version__}")

# ---------------- inputs ----------------
hbar, c, me, e, eps0, mu0, GN = K.hbar, K.c, K.m_e, K.e, K.epsilon_0, K.mu_0, K.G
eV = K.e
hbarc = hbar * c / eV                                      # eV m
a0 = K.physical_constants['Bohr radius'][0]
D_ASPDEN = 6.3740e-13                                      # m, Aspden's spacing (Part 1 section 3) [A]
R_ORB = hbar / (2 * me * c)                                # m, the orbit radius, c/2 at Omega = me c^2/hbar (the light-sector lock) [A, Doug]
OMEGA = me * c ** 2 / hbar                                 # rad/s, the clock [A]
M0 = 0.04078 * me                                          # the quon mass (U04) [A]
M_MUON_SEA = 1.45e9 * D_ASPDEN ** 3                        # kg per cell, reading B of the light-sector lock (412 m_e) [the record]
V_RIM = c / 2                                              # Doug's postulate: the spinners' rim speed [Doug]
S_HALF = hbar / 2                                          # the intrinsic spin tried [M]
# the record's dispersion bounds (the light-sector lock's inputs; the survey review section 2.2) [I]
BOUNDS = (("the Crab's X-ray pulses, 2 to 30 keV", 2e3, 30e3, 1.64e-16),
          ("GRB 090510 row (a), 0.1 MeV to 28 GeV", 0.1e6, 28e9, 2e-18),
          ("GRB 090510 row (e), 0.1 MeV to 28 GeV", 0.1e6, 28e9, 2.2e-20))
A_SPACING_E = 3.0e-27                                      # m, the record's lattice-spacing bound, beta = 1/24, row (e) (survey review 2.2) [the record]
RHO_PLANCK = np.sqrt(hbar * c / GN) / np.sqrt(hbar * GN / c ** 3) ** 3     # Planck mass over Planck length cubed [S]
H0 = 67.4e3 / 3.0857e22                                    # 1/s, Planck 2018 [S, from memory]
RHO_CRIT = 3 * H0 ** 2 / (8 * np.pi * GN)                  # kg/m^3 [S]
T_UNIVERSE, T_EARTH = 13.8e9 * 3.156e7, 4.54e9 * 3.156e7   # s [S, from memory]
V_CMB = 370e3                                              # m/s, the record's figure for the CMB frame (survey review 2.1) [I]
R_PROTON = 0.8414e-15                                      # m, the proton's rms charge radius, CODATA 2018 [S, from memory]
B_EARTH, R_EARTH = 50e-6, 6.371e6                          # T, m [S, from memory]
TOL_HIT = 1e-3                                             # the lock's pass criterion: |c_w/c - 1| < 1e-3

# rotor shapes [S]: K/(m v_rim^2) = (I3/I_perp)(I3/(m R^2)); omega_max/Omega_spin = I3/I_perp
SHAPES = (("thin ring", 2.0, 2.0), ("solid disc", 1.0, 2.0), ("solid sphere", 0.4, 1.0))    # name, kappa = K/(m v^2), I3/I_perp
ISO = (("one axis", 1.0), ("isotropic, three families", 1.0 / 3.0))
GEARS = (2, 3, 4)
trials = []
def trial(name, ratio):
    hit = abs(ratio - 1) < TOL_HIT
    trials.append((name, ratio, hit))
    return hit

say("\nInputs")
say(f"   hbar c = {hbarc:.6e} eV m; Aspden's d = {D_ASPDEN:.4e} m; orbit radius r = {R_ORB:.4e} m; Omega = {OMEGA:.4e} rad/s"
    f" ({hbar*OMEGA/eV/1e3:.1f} keV); quon mass m0 = {M0/me:.5f} m_e; muon sea per cell {M_MUON_SEA/me:.1f} m_e = {M_MUON_SEA/M0:.3e} m0")
say(f"   rim speed c/2 (Doug's postulate); intrinsic spin tried hbar/2; Planck density {RHO_PLANCK:.3e} kg/m^3; critical density {RHO_CRIT:.3e} kg/m^3")

# ---------------- the model's formulas [D] ----------------
def cw_over_c(kappa, f_iso, G, v_over_c=0.5, mass_fraction=1.0):
    """Long-wave speed of Kelvin's medium: c_w^2 = f_iso G^2 K/(4 m), K = kappa m_r v_rim^2, m_r = mass_fraction * m."""
    return np.sqrt(f_iso * G ** 2 * kappa * mass_fraction * v_over_c ** 2 / 4)

def omega_max_rotor(ratio_I3_Iperp, v_rim, R):
    """The cutoff omega_max = S/I_perp = (I3/I_perp) Omega_spin, Omega_spin = v_rim/R."""
    return ratio_I3_Iperp * v_rim / R

# ================= code checks =================
say("\nCode checks")
# K1: the ungeared ring at c/2 and the record's six V2 combinations
k1a = cw_over_c(2.0, 1.0, 1)
h_pair = 2 * M0 * R_ORB ** 2 * OMEGA
v2 = {}
for a_ig in (1.0, 0.5):
    for b_m, lab in ((2.0, "pair"), (1.0, "lattice"), (M_MUON_SEA / M0, "muon sea")):
        v2[(a_ig, lab)] = h_pair / (2 * np.sqrt(a_ig * M0 * R_ORB ** 2 * b_m * M0)) / c
k1_ok = (abs(k1a - 1 / (2 * np.sqrt(2))) < 1e-9 and abs(v2[(1.0, "pair")] - 0.3536) < 1e-3 and abs(v2[(1.0, "lattice")] - 0.5) < 1e-3
         and abs(v2[(0.5, "lattice")] - 0.7071) < 1e-3 and abs(v2[(0.5, "pair")] - 0.5) < 1e-3
         and 0.0045 < v2[(1.0, "muon sea")] < 0.0075 and 0.0045 < v2[(0.5, "muon sea")] < 0.0075)
check("K1 the ungeared ring at c/2 gives c/(2 sqrt 2) = 0.35355c (Model L section 5), and the light-sector lock's six V2 combinations"
      " give 0.354c, 0.500c, 0.707c and 0.005c to 0.007c", k1_ok,
      f"(ring {k1a:.5f}c; V2: " + ", ".join(f"a={a}, {lab}: {v:.4f}c" for (a, lab), v in v2.items()) + ")")
# K2: the rotor bound S^2/I_perp <= 2 m v_rim^2 for the three shapes and for random mass distributions (time-averaged inertia)
rng = np.random.default_rng(2026_11_22)
worst = 0.0
for _ in range(2000):
    npt = rng.integers(2, 30)
    pts = rng.normal(size=(npt, 3)) * rng.uniform(0.1, 1.0, size=3)
    ms = rng.uniform(0.1, 1.0, size=npt)
    Rmax = np.sqrt((pts[:, 0] ** 2 + pts[:, 1] ** 2).max())            # the rim: largest distance from the spin axis z
    I3 = np.sum(ms * (pts[:, 0] ** 2 + pts[:, 1] ** 2))
    Ix = np.sum(ms * (pts[:, 1] ** 2 + pts[:, 2] ** 2)); Iy = np.sum(ms * (pts[:, 0] ** 2 + pts[:, 2] ** 2))
    Iperp = 0.5 * (Ix + Iy)                                             # time-averaged over the spin (Doug's method: averages)
    Om = 1.0 / Rmax                                                     # so that v_rim = 1
    worst = max(worst, (I3 * Om) ** 2 / Iperp / (2 * ms.sum() * 1.0 ** 2))
shapes_ok = all(kap <= 2.0 + 1e-12 for _, kap, _ in SHAPES) and SHAPES[0][1] == 2.0
check("K2 the rotor bound S^2/I_perp <= 2 m v_rim^2 (perpendicular-axis theorem): equality for the ring; 2000 random mass"
      " distributions stay below it", shapes_ok and worst <= 1.0 + 1e-9, f"(largest ratio found {worst:.6f})")
# K3: the differential gear between two gyrostats cannot exceed K_A + K_B
k3_ok = True; k3_eq = None
for _ in range(1000):
    a_, b_, KA, KB = rng.uniform(0.1, 10, size=4)
    Keff = (a_ + b_) ** 2 * KA * KB / (a_ ** 2 * KB + b_ ** 2 * KA)
    k3_ok &= Keff <= KA + KB + 1e-9
KA, KB, a_ = 1.3, 2.9, 1.7; b_ = a_ * KA / KB                              # the equality case a K_B = b K_A
k3_eq = (a_ + b_) ** 2 * KA * KB / (a_ ** 2 * KB + b_ ** 2 * KA) - (KA + KB)
check("K3 a differential gear between two gyrostats gives at most K_A + K_B (1000 random cases), with equality at a K_B = b K_A",
      k3_ok and abs(k3_eq) < 1e-9, f"(equality residual {k3_eq:.1e})")
# K4: the compliant ground, by sympy: K_eff = G^2 K/(1 + (G-1)^2 K/K_g); its maximum over G is K + K_g at G = 1 + K_g/K
Ks, Kgs, Gs, ths = sp.symbols('K K_g G theta', positive=True)
thg = sp.symbols('theta_g', real=True)
Esym = sp.Rational(1, 2) * Ks * (Gs * ths - (Gs - 1) * thg) ** 2 + sp.Rational(1, 2) * Kgs * thg ** 2
thg_sol = sp.solve(sp.diff(Esym, thg), thg)[0]
Keff_sym = sp.simplify(2 * Esym.subs(thg, thg_sol) / ths ** 2)
closed = Gs ** 2 * Ks / (1 + (Gs - 1) ** 2 * Ks / Kgs)
k4_num = max(abs(float((Keff_sym - closed).subs({Ks: kk, Kgs: gg, Gs: g_}))) for kk, gg, g_ in ((1.0, 3.5, 2.8), (0.5, 7.0, 8.0), (2.0, 0.3, 1.5)))
Gg = np.linspace(1.0, 40.0, 390001); Kk, Kgg = 1.0, 7.0
f = Gg ** 2 * Kk / (1 + (Gg - 1) ** 2 * Kk / Kgg)
k4_max_ok = abs(f.max() - (Kk + Kgg)) < 1e-6 and abs(Gg[f.argmax()] - (1 + Kgg / Kk)) < 1e-3
check("K4 the compliant ground: sympy's minimum-energy K_eff equals G^2 K/(1 + (G-1)^2 K/K_g); its maximum over G is K + K_g at G = 1 + K_g/K",
      k4_num < 1e-9 and k4_max_ok, f"(K_eff = {Keff_sym}; residual {k4_num:.1e}; max {f.max():.6f} at G = {Gg[f.argmax()]:.4f})")
# K5: random ideal mechanisms with no ground never beat the sum of the gyrostats' stiffnesses
k5_ok = True; k5_worst = 0.0
for _ in range(500):
    N = int(rng.integers(1, 6)); p = int(rng.integers(0, N + 1))
    Ki = rng.uniform(0.1, 5, size=N); Nmat = rng.normal(size=(N, p)) if p else np.zeros((N, 0))
    th0 = 1.0
    if p:
        z, *_ = np.linalg.lstsq(np.sqrt(Ki)[:, None] * Nmat, -np.sqrt(Ki) * th0, rcond=None)
        alpha = th0 + Nmat @ z
    else:
        alpha = np.full(N, th0)
    Keff = np.sum(Ki * alpha ** 2) / th0 ** 2
    k5_worst = max(k5_worst, Keff / Ki.sum()); k5_ok &= Keff <= Ki.sum() + 1e-9
check("K5 500 random workless mechanisms housed in the element (no ground) give K_eff <= sum K_i", k5_ok, f"(largest K_eff/sum {k5_worst:.6f})")
# K6: the dispersion of one medium with the gimbals as dynamic variables: omega^2 = G^2 (S^2/I) k^2 / (4 (m + G^2 I k^2/4)); saturation at S/I
def omega_numeric(m, I, S, G, k):
    b = (S * G * k / 2) / (m + I * G ** 2 * k ** 2 / 4); a = S * G * k / (2 * I)
    A = np.array([[0, 1, 0, 0], [0, 0, 0, -b], [0, 0, 0, 1], [0, a, 0, 0]], float)
    return np.abs(np.linalg.eigvals(A).imag).max()
m_, I_, S_, G_ = 1.0, 0.5 * 0.3 ** 2, 1.0 * 0.5 * 0.3, 2.83          # a ring of radius 0.3 at rim speed 0.5, geared 2.83
ell2 = G_ ** 2 * I_ / (4 * m_)
k6_ok = True; k6_lines = []
for kl in (0.1, 1.0, 10.0, 1000.0):
    k = kl / np.sqrt(ell2)
    w_num = omega_numeric(m_, I_, S_, G_, k); w_form = np.sqrt(G_ ** 2 * (S_ ** 2 / I_) * k ** 2 / (4 * (m_ + I_ * G_ ** 2 * k ** 2 / 4)))
    k6_ok &= abs(w_num / w_form - 1) < 1e-9; k6_lines.append(f"k l = {kl:g}: omega/(S/I) = {w_num/(S_/I_):.4f}")
check("K6 the one-medium dispersion from the gyrostat equations equals the lock's formula at k l = 0.1, 1, 10, 1000, and saturates at S/I",
      k6_ok and abs(omega_numeric(m_, I_, S_, G_, 1e4 / np.sqrt(ell2)) / (S_ / I_) - 1) < 1e-6, "(" + "; ".join(k6_lines) + ")")
# K7: the two-medium eigenproblem (medium + inertial ground) reproduces W = K (G^2/m + (G-1)^2/m_g) when K_g = 0
def two_media(Kq, G, mg, Kg, m=1.0):
    Khat = np.array([[Kq * G ** 2, -Kq * G * (G - 1)], [-Kq * G * (G - 1), Kq * (G - 1) ** 2 + Kg]])
    Mm = np.diag([m, mg])
    W, V = scipy.linalg.eigh(Khat, Mm)
    return W, V                                            # omega^2 = (k^2/4) W: c_w = sqrt(W)/2 in units of c when K is in units of m c^2
W7, _ = two_media(0.5, 2.83, 7.0, 0.0)
k7_form = 0.5 * (2.83 ** 2 / 1.0 + 1.83 ** 2 / 7.0)
W7b, _ = two_media(0.5, 1.0, 7.0, 0.0)
check("K7 the two-medium eigenproblem gives the light branch W = K (G^2/m + (G-1)^2/m_g) for K_g = 0 and a zero branch; G = 1 gives the ungeared speed",
      abs(W7.max() - k7_form) < 1e-10 and abs(W7.min()) < 1e-10 and abs(np.sqrt(W7b.max()) / 2 - 1 / (2 * np.sqrt(2))) < 1e-10,
      f"(W = {W7.max():.6f} against {k7_form:.6f}; zero branch {W7.min():.1e}; G = 1: {np.sqrt(W7b.max())/2:.5f}c)")
# K8: the group index (1 - x^2)^(-3/2) - 1 = (3/2) x^2 + ...
xs = sp.symbols('x')
ser = sp.series((1 - xs ** 2) ** sp.Rational(-3, 2), xs, 0, 6).removeO()
k8_ok = sp.simplify(ser.coeff(xs, 2) - sp.Rational(3, 2)) == 0 and abs(((1 - 1e-6) ** -1.5 - 1) / (1.5e-6) - 1) < 1e-5
check("K8 the group index of the dispersion is 1 + (3/2)(omega/omega_max)^2 + ... (sympy series; numeric at x = 1e-3)", k8_ok, f"(series {ser})")
# K9: Model L's two intrinsic-spin values re-derived: hbar/2 with I = m0 d^2 gives 3.7c, with I = m0 r^2/2 gives 17c
cw_L1 = S_HALF / (2 * np.sqrt(M0 * D_ASPDEN ** 2 * M0)) / c
cw_L2 = S_HALF / (2 * np.sqrt(0.5 * M0 * R_ORB ** 2 * M0)) / c
check("K9 Model L section 5's values for a spin hbar/2 on the quon: 3.7c (gimbal m0 d^2) and 17c (gimbal m0 r^2/2), within 3%",
      abs(cw_L1 / 3.7 - 1) < 0.03 and abs(cw_L2 / 17 - 1) < 0.03, f"({cw_L1:.2f}c, {cw_L2:.2f}c)")

# ================= Q1: the ungeared baseline =================
say("\nQ1. Rigid spinners at c/2, no gear: the baseline and the general limit [D]")
for sname, kap, r31 in SHAPES:
    for iname, fiso in ISO:
        say(f"   {sname:12s}, {iname:26s}: c_w = {cw_over_c(kap, fiso, 1):.4f}c   (K = {kap:.1f} m v_rim^2; cutoff omega_max = {r31:.0f} Omega_spin)")
say(f"   the bound for any rigid spinner (K <= 2 m v_rim^2): c_w <= v_rim/sqrt2 = {0.5/np.sqrt(2):.4f}c on one axis, v_rim/sqrt6 = {0.5/np.sqrt(6):.4f}c isotropic")
say(f"   the light-sector lock's six combinations re-derived: " + ", ".join(f"{v:.4f}c" for v in v2.values()))

# ================= Q2: the geared frame against a rigid ground =================
say("\nQ2. The geared frame, with a rigid ground: the mount turns G times the medium's local rotation [M]")
say("   c_w^2 = f_iso G^2 K/(4 m): the gear multiplies the quasi-elastic stiffness and the carried inertia by G^2; the cutoff S/I is unchanged")
say("   G needed for exactly c, rim speed c/2, rotor mass = element mass:")
for sname, kap, _ in SHAPES:
    for iname, fiso in ISO:
        Gneed = 1.0 / cw_over_c(kap, fiso, 1)
        say(f"      {sname:12s}, {iname:26s}: G = {Gneed:.4f}; reaction on the ground (G-1)/G = {(Gneed-1)/Gneed:.3f} of the element's restoring couple;"
            f" a ground of the same rotors needs m_g/m >= 9 (G-1)^2 kappa/2 = {9*(Gneed-1)**2*kap/2:.1f} to keep 90% of the static gain (Q3)")
say("   The counted grid: G in (2, 3, 4) x three shapes x two isotropy conventions, 18 trials against |c_w/c - 1| < 1e-3:")
for G in GEARS:
    for sname, kap, _ in SHAPES:
        for iname, fiso in ISO:
            v = cw_over_c(kap, fiso, G)
            hit = trial(f"Q2: G = {G}, {sname}, {iname}", v)
            say(f"      G = {G}, {sname:12s}, {iname:26s}: c_w = {v:.4f}c {'HIT' if hit else 'miss'}")
say("   The gear must be exact; with rotors below the ring bound (disc, sphere) the needed G rises as 1/sqrt(kappa f_iso).")
say("   If the element's mass exceeds the rotor's (mount, gears, ground's share), G rises as sqrt(m/m_r); the grid takes m_r = m, the most favourable case.")

# ================= Q3: no ground, and a ground that is a second medium =================
say("\nQ3. Where the gear's reaction goes [D]")
say("   (i) No ground. A mechanism housed in the element has no input but rotations relative to the element, which are zero for the element's own")
say("       rotation; its references can only be other gyrostats. By energy minimization, any workless mechanism among the element and its gyrostats")
say("       gives K_eff <= sum K_i (K3, K5), and K_i <= 2 m_i v_rim^2 (K2). So in one medium, geared or not, c_w <= v_rim/sqrt2 for the long wave.")
say("   (ii) Neighbours as the reference: the input is a difference of rotations, of order k a theta; its stiffness enters at order (k a)^2: dispersion, not speed.")
say("   (iii) A second medium as the ground, of mass m_g per element and its own rotational stiffness K_g (per element of the medium):")
say("       static stiffness (what a held twist feels) K_stat = G^2 K/(1 + (G-1)^2 K/K_g) <= K + K_g (K4): a ground with no gyrostats holds nothing statically;")
say("       wave stiffness (what light feels) from the two-medium equations: for K_g = 0, 4 c_w^2 = K (G^2/m + (G-1)^2/m_g) (K7): a heavy ground serves by its inertia alone.")
for mg, Kg, lab in ((7.0, 0.0, "m_g = 7 m, no gyrostats in the ground"), (7.0, 9 * (2 * np.sqrt(2) - 1) ** 2 * 0.5, "m_g = 7 m, K_g = 9 (G-1)^2 K"),
                    (M_MUON_SEA / M0, 0.0, "m_g = the muon sea's mass per quon, no gyrostats"), (1.0, 0.0, "m_g = m, no gyrostats")):
    W, V = two_media(0.5, 2 * np.sqrt(2), mg, Kg)
    lines = []
    for i in range(2):
        ug_over_u = V[1, i] / V[0, i] if abs(V[0, i]) > 1e-300 else np.inf
        lines.append(f"branch {i+1}: c = {np.sqrt(max(W[i], 0))/2:.4f}c, u_ground/u_medium = {ug_over_u:+.3e}")
    Kstat = (2 * np.sqrt(2)) ** 2 * 0.5 / (1 + (2 * np.sqrt(2) - 1) ** 2 * 0.5 / Kg) if Kg > 0 else 0.0
    say(f"      ring at c/2 geared G = 2 sqrt2, {lab}: " + "; ".join(lines) + f"; static stiffness {Kstat/0.5:.3f} K against the wave's {8:.0f} K")
say("   So the ground takes the reaction couple G(G-1) K theta per element and moves with the wave at the ratios printed: the gearing's energy and angular")
say("   momentum are exchanged with the ground. For light the gain holds if the ground is heavy; for a static twist (a Coulomb field in Larmor's reading)")
say("   only the ground's own gyrostats hold it. Unless K_g >> (G-1)^2 K, static fields and light see different stiffnesses in the same medium.")
# Aspden's cell read this way
eps_ = M0 / M_MUON_SEA
roots = np.roots([1 + eps_, -2 * eps_, eps_ - 8])
G_asp = roots[roots > 0].max().real
w_max_asp = omega_max_rotor(2.0, c / 2, R_ORB)
say(f"   Aspden's cell read this way (quon lattice the medium, K = m0 c^2/2 per quon; the muon sea the ground by inertia, m_g/m = {1/eps_:.3e}):")
say(f"      c needs G = {G_asp:.5f} (2 sqrt2 = {2*np.sqrt(2):.5f}); the record supplies no gear and no gimbal (the light-sector lock's V4);")
say(f"      the orbit's cutoff S/I_perp = 2 Omega: hbar omega_max = {hbar*w_max_asp/eV/1e6:.3f} MeV, so his medium would be opaque to gamma rays above it;"
    f" the charged lattice's plasma gap (survey review 2.3) stands.")

# ================= Q4: an intrinsic spin hbar/2 =================
say("\nQ4. An intrinsic spin hbar/2 on a frame of mass M and gyration radius r_g [M]: c_w = hbar/(4 sqrt(J M)), J = j M r_g^2")
say("   The speed depends only on r_g/lambda_C with lambda_C = hbar/(M c): c_w/c = lambda_C/(4 sqrt(j) r_g). Six counted trials:")
for jname, j in (("point frame, J = M r_g^2", 1.0), ("ring frame, J = M r_g^2/2", 0.5)):
    for fname, fC in (("lambda_C", 1.0), ("lambda_C/2 (the zitterbewegung radius)", 0.5), ("lambda_C/4", 0.25)):
        v = 1.0 / (4 * np.sqrt(j) * fC)
        hit = trial(f"Q4: hbar/2, {jname}, r_g = {fname}", v)
        v_rim_if_rotor = 1.0 / (2 * fC)                   # S = M v r_g with S = hbar/2: v/c = lambda_C/(2 r_g)
        say(f"      {jname:26s}, r_g = {fname:38s}: c_w = {v:.4f}c {'HIT ' if hit else 'miss'}; were the spin the frame's own rotation its rim would move at {v_rim_if_rotor:.2f}c")
say(f"   Model L's two values (K9) re-read: a mass m0 carrying hbar/2 within radius d needs a rim at {S_HALF/(M0*D_ASPDEN)/c:.2f}c, within r at {S_HALF/(M0*R_ORB)/c:.2f}c:")
say(f"   the 3.7c and 17c are what a superluminal rotor would give. A mass m0 carries hbar/2 at c only at radius lambda_C = {hbar/(M0*c):.3e} m (at c/2: twice that), where it is a c/2 ring again (0.354c).")
say("   A point spin with no frame gives no stiffness: tied rigidly to the element it couples the two polarizations at order k^2 omega (a magnon-like quadratic mode, as V1);")
say("   the frame is the gimbal, and its tie to the spin must hold the spin's axis to the frame up to omega_max: an anisotropy energy A >> S omega_max per spin (Q5).")

# ================= Q5: dispersion, cutoff and fineness =================
say("\nQ5. Dispersion and the fineness needed [D]: omega^2 = c^2 k^2/(1 + k^2 l^2), n_g - 1 = (3/2)(omega/omega_max)^2, opaque above omega_max")
rows5 = []
for name, E1, E2, dn in BOUNDS:
    hw = np.sqrt(1.5 * (E2 ** 2 - E1 ** 2) / dn)                  # eV, the least hbar omega_max
    r_ring = hbarc / hw                                           # omega_max = 2 Omega_spin = c/R for ring or disc at c/2
    r_sphere = r_ring / 2
    M_half = hw / 8 / c ** 2 * eV                                 # kg: hbar omega_max = 8 M c^2 at the hbar/2 hit (point frame, r_g = lambda_C/4)
    rg_half = hbar / (4 * M_half * c)
    rows5.append((name, hw, r_ring, M_half, rg_half))
    say(f"   {name:40s}: Delta n_g < {dn:.2e} needs hbar omega_max > {hw:.2e} eV; rotors at c/2: R < {r_ring:.1e} m (ring, disc) or {r_sphere:.1e} m (sphere),"
        f" {D_ASPDEN/r_ring:.1e} times finer than Aspden's d; the hbar/2 frame: M > {M_half*c**2/eV:.1e} eV, r_g = {rg_half:.1e} m")
hw_e, r_e, M_e = rows5[2][1], rows5[2][2], rows5[2][3]
w_e = hw_e * eV / hbar                                            # rad/s
m_floor = hbar * w_e / c ** 2                                     # kg: a rotor of radius c/omega_max carrying S >= hbar/2 at c/2
rho_floor = m_floor / A_SPACING_E ** 3
A_tie = S_HALF * w_e
say(f"   The cutoff is a prediction: the medium is opaque above hbar omega_max; the data put that above {hw_e:.1e} eV (row e).")
say(f"   Rotors need not carry much spin classically; but a quantum rotor carries at least hbar/2 [S], so m_r >= hbar/(c R) >= hbar omega_max/c^2 = {m_floor:.2e} kg"
    f" = {m_floor*c**2/eV:.2e} eV, one per element of spacing a <= {A_SPACING_E:.1e} m (the record's beta = 1/24 bound):")
say(f"   mass density >= {rho_floor:.2e} kg/m^3 = {rho_floor/RHO_PLANCK:.1e} of the Planck density, {rho_floor/RHO_CRIT:.1e} times the critical density.")
say(f"   The hbar/2 frame's tie must hold to A >> S omega_max = {A_tie/eV:.2e} eV per spin.")
say(f"   For the geared medium the cutoff is unchanged by G (K6); the mount's and gears' inertia only lowers it, so the spinners must be finer still.")

# ================= Q6: covariance =================
say("\nQ6. Covariance [D]: the k -> 0 equations are MacCullagh's, hence Maxwell's; the frame shows at order (omega/omega_max)^2 and in the ground")
x2 = (28e9 / hw_e) ** 2
say(f"   at 28 GeV with hbar omega_max = {hw_e:.1e} eV, (omega/omega_max)^2 = {x2:.1e}; the one-way group-index anisotropy for an observer at {V_CMB/1e3:.0f} km/s"
    f" is about 3 (v/c)(omega/omega_max)^2 = {3*(V_CMB/c)*x2:.1e}: the light sector hides the frame.")
say("   What does not hide it: the ground (a medium with a fixed orientation that takes couples), and matter, as section 11.3 says (strain cores with their own dynamics).")

# ================= Q7: charges, Kelvin's time limit =================
say("\nQ7. Charges as strain centres [D, from Kelvin's own limitation]: a held twist theta makes the gimbal turn at omega_max theta; the couple lasts while it has turned little")
say(f"   theta_max(T) = 1/(omega_max T); with hbar omega_max = {hw_e:.1e} eV (omega_max = {w_e:.2e} rad/s) a twist of 1e-20 lasts {1/(w_e*1e-20):.1e} s;")
say(f"   held for the age of the universe it must be below {1/(w_e*T_UNIVERSE):.1e}. The twist of a static field of energy density w is theta = sqrt(w/(2 rho c^2)),")
say("   so holding it for a time T needs a mass density rho >= w (omega_max T)^2/(2 c^2). The fields tried (the reading in which each is a twist):")
E_a0 = e / (4 * np.pi * eps0 * a0 ** 2); E_p = e / (4 * np.pi * eps0 * R_PROTON ** 2); E_1m = e / (4 * np.pi * eps0)
FIELDS = (("hydrogen's field at the Bohr radius (Larmor's reading, twist = D)", 0.5 * eps0 * E_a0 ** 2, a0, T_UNIVERSE),
          ("the proton's surface field (Larmor's reading)", 0.5 * eps0 * E_p ** 2, R_PROTON, T_UNIVERSE),
          ("1 m from one electron (Larmor's reading)", 0.5 * eps0 * E_1m ** 2, 1.0, T_UNIVERSE),
          ("the Earth's magnetic field, 50 microtesla (the record's reading, twist = B)", B_EARTH ** 2 / (2 * mu0), R_EARTH, T_EARTH))
q7 = {}
for fname, w, L, T_ent in FIELDS:
    rho_ent = w * (w_e * T_ent) ** 2 / (2 * c ** 2)
    T_str = L / V_CMB
    rho_str = w * (w_e * T_str) ** 2 / (2 * c ** 2)
    t_wind_floor = 1 / (w_e * np.sqrt(w / (2 * rho_floor * c ** 2)))
    q7[fname] = (rho_ent, rho_str, t_wind_floor)
    say(f"   {fname}:")
    say(f"      w = {w:.2e} J/m^3; entrained medium (held {T_ent:.1e} s): rho >= {rho_ent:.1e} kg/m^3 = {rho_ent/RHO_PLANCK:.1e} Planck;"
        f" streaming at {V_CMB/1e3:.0f} km/s (dwell {T_str:.1e} s): rho >= {rho_str:.1e} kg/m^3 = {rho_str/rho_floor:.1e} of Q5's floor;")
    say(f"      at Q5's floor density the gimbals turn one radian in {t_wind_floor:.1e} s")
say("   Gearing multiplies the gimbal rate by G; a higher cutoff (a prompter medium) winds them faster, as omega_max^2 in the density needed.")

# ================= Q8: Aspden =================
say("\nQ8. Aspden's aether as this medium")
say(f"   fineness: his d is {D_ASPDEN/r_e:.1e} times the largest spinner the GRB allows (row e), the order of section 10.16's 1.3e13 bound and section 11.4's 2e14;")
say(f"   cutoff: his orbit's 2 Omega is {hbar*w_max_asp/eV/1e6:.2f} MeV; no gimbal (V4), no gear, no ground mechanism in the muon sea; the plasma gap stands.")

# ================= verdict =================
say("\nVerdict, by the lock's rules")
hits = [t for t in trials if t[2]]
q2_hits = [t for t in hits if t[0].startswith("Q2")]; q4_hits = [t for t in hits if t[0].startswith("Q4")]
theorem_ok = all(ok for name, ok in checks if name[:2] in ("K2", "K3", "K4", "K5"))
if theorem_ok:
    say("   V1: In one medium no gearing raises the long-wave gyrostatic stiffness above the gyrostats' own sum, so rigid spinners at c/2 carry waves at most at"
        f" {0.5/np.sqrt(2):.3f}c (one axis) or {0.5/np.sqrt(6):.3f}c (isotropic) however they are geared. A gear needs a second medium as its ground.")
else:
    say("   V1: not stated: a theorem check failed; see K2 to K5.")
if q2_hits and len(q2_hits) < len([t for t in trials if t[0].startswith("Q2")]):
    say(f"   V2: With a heavy ground, c is reached in the grid only at {len(q2_hits)} of 18 combinations: " + "; ".join(t[0][4:] for t in q2_hits) +
        ". Nothing in the mechanics fixes the gear ratio to the rotor's shape; the ratios 2 and 3 miss, and so does every isotropic combination."
        " The gain is tuned, not derived.")
elif not q2_hits:
    say("   V2: No combination of the grid reaches c; the gain would have to be tuned to a non-integer ratio.")
else:
    say("   V2: not met as written: every grid combination reaches c; see Q2.")
say("   V2 (continued): the ground takes the reaction couple and moves with the wave; its own gyrostats alone hold a static twist, so unless K_g >> (G-1)^2 K"
    " static fields and light see different stiffnesses in the same medium.")
if len(q4_hits) == 1 and "lambda_C/4" in q4_hits[0][0] and "point" in q4_hits[0][0]:
    say("   V3: A spin hbar/2 carries waves at c only if its frame's gyration radius is exactly a quarter of the frame's own Compton wavelength. No principle fixes"
        " that; such a frame is smaller than its own Compton wavelength, so it is not a classical frame; the spin's tie to it must hold to"
        f" {A_tie/eV:.0e} eV; and were the spin the frame's own rotation its rim would move at 2c. The classical treatment fails there, as Model L said, and for that reason.")
elif not q4_hits:
    say("   V3: No frame of the grid reaches c with a spin hbar/2.")
else:
    say("   V3: the hbar/2 grid gave hits other than the quarter-Compton point frame: " + "; ".join(t[0][4:] for t in q4_hits) + " (see Q4).")
say(f"   V4: The medium is opaque above its cutoff, which the GRB puts above {hw_e:.1e} eV. Rotors at c/2 must then be smaller than {r_e:.1e} m"
    f" ({D_ASPDEN/r_e:.1e} times finer than Aspden's spacing), and an hbar/2 frame must weigh more than {M_e*c**2/eV:.1e} eV; with a quantum floor on the"
    f" rotors' spin the medium's mass density exceeds {rho_floor:.1e} kg/m^3.")
say("   V5: The continuum limit is Maxwell's, and the light sector hides the medium's frame to order (omega/omega_max)^2; the frame shows in the ground, if there is one,"
    " and in matter, which stays untested.")
rho_h_ent = q7[FIELDS[0][0]][0]; rho_h_str = q7[FIELDS[0][0]][1]
if rho_h_ent > RHO_PLANCK:
    say(f"   V6: An entrained gyrostatic medium cannot hold matter's static fields: Kelvin's couple lasts only while the gimbals have turned little, and the hydrogen"
        f" atom's field would wind them through a radian at any density below {rho_h_ent:.0e} kg/m^3, {rho_h_ent/RHO_PLANCK:.0e} times the Planck density.")
else:
    say(f"   V6: An entrained medium of density above {rho_h_ent:.1e} kg/m^3 holds the hydrogen atom's field for the age of the universe (below the Planck density).")
if rho_h_str < rho_floor:
    say("   V6 (continued): A medium streaming through matter at the CMB speed survives each passage, but then matter moves through the medium, Larmor's strain centres"
        " must be re-formed in every element they pass, and the frame question returns to the matter sector.")
say(f"   V7: Not Aspden's aether: his spacing is {D_ASPDEN/r_e:.0e} times too coarse, his orbit's cutoff is {hbar*w_max_asp/eV/1e6:.2f} MeV, his cell has no gimbal and"
    " no gear, his muon sea has a ground's mass but none of its mechanism, and his charged lattice keeps its plasma gap. Any such medium is a different aether.")
say(f"\nTrials: {len(trials)}; hits: {len(hits)}" + (" (" + "; ".join(t[0][4:] for t in hits) + ")" if hits else "") + "; every hit is at a value no principle selects.")
nfail = sum(1 for _, ok in checks if not ok)
say(f"Code checks: {len(checks)-nfail} of {len(checks)} pass.")