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

r27_numbers.py

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


#!/usr/bin/env python3
"""Twenty-seventh reviewer (r27), trial 21 blind part: the numbers for parts (a) to (e).

Inputs: lock sections 3 and 4 (values marked there); constants from scipy [S]; items marked 'memory' are from memory.
Written before reading the trial's script, output or results paper.
"""
import numpy as np
from scipy import constants as C

hbar, c, me, e, eps0, mu0 = C.hbar, C.c, C.m_e, C.e, C.epsilon_0, C.mu_0
a0 = C.physical_constants['Bohr radius'][0]
eV = C.e
lamC_e = hbar / (me * c)
MeV = 1e6 * eV

def banner(s):
    print("\n" + "=" * 78 + "\n" + s + "\n" + "=" * 78)

# ---------------------------------------------------------------- inputs from the lock (section 3)
d = 6.3740e-13                       # Aspden's lattice spacing [A]
m0 = 0.04078 * me                    # quon mass [A, the record]
r_orb = hbar / (2 * me * c)          # orbit radius [A]
Om_orb = me * c**2 / hbar            # orbit rate [A]
m_sea = 1.45e9 * d**3                # muon sea mass per cell [A, the record]
v = c / 2                            # Doug's postulate
print(f"orbit rim speed r*Omega/c = {r_orb*Om_orb/c:.4f} (Doug's c/2); muon sea per cell = {m_sea/me:.1f} m_e = {m_sea/m0:.4g} m0")

shapes = {  # K/(m_r v^2), omega_max/Omega_s, S/(m_r R v)
    "ring":   (2.0, 2.0, 1.0),
    "disc":   (1.0, 2.0, 0.5),
    "sphere": (0.4, 1.0, 0.4),
}
conv = {"one axis": 1.0, "isotropic (3 families)": 1.0 / 3.0}

# ---------------------------------------------------------------- (a)
banner("(a) Ungeared rigid spinners at v_rim = c/2, rotor mass = element mass")
print(f"{'shape':8s} {'convention':24s} {'K/(m v^2)':>10s} {'c_w/c':>8s} {'omega_max/Omega_s':>18s}")
base = {}
for sh, (kf, wf, sf) in shapes.items():
    for cv, frac in conv.items():
        Kmv2 = kf * frac                     # K per axis over m v^2 (rotor mass per axis = frac * m)
        cw = np.sqrt(Kmv2 / 4) * (v / c)     # c_w^2 = K/(4m)
        base[(sh, cv)] = cw
        print(f"{sh:8s} {cv:24s} {Kmv2:10.4f} {cw:8.4f} {wf:18.1f}")
print("General limit: K <= 2 m v^2 -> c_w <= v/sqrt(2) = 0.3536 c (one axis), v/sqrt(6) = 0.2041 c (isotropic).")
print("Mass counting: the rotor is part of the element (m_r <= m); taking m_r = m is the most favourable case.")
print("Inertia counting: I enters the speed only through K = S^2/I; I_t >= I3/2 is the perpendicular-axis theorem [S];")
print("the mount's inertia adds to I (lowers K) and to the carried inertia (dispersion); a massless mount is most favourable.")

# ---------------------------------------------------------------- (b)
banner("(b) Gear G to a rigid ground: c_w = G * (ungeared); the G that gives c; the counted grid G in {2,3,4}")
print(f"{'shape':8s} {'convention':24s} {'G for c':>8s} {'(G-1)/G':>8s} {'m_g/m for 90% static gain':>26s}  grid hits")
for (sh, cv), cw in base.items():
    Gc = 1 / cw
    hits = [G for G in (2, 3, 4) if abs(G * cw - 1) < 1e-3]
    # static gain kept: K_stat = G^2 K/(1+(G-1)^2 K/K_g) >= 0.9 G^2 K -> K_g >= 9 (G-1)^2 K; same rotors: m_g/m = K_g/K
    print(f"{sh:8s} {cv:24s} {Gc:8.4f} {(Gc-1)/Gc:8.4f} {9*(Gc-1)**2:26.2f}  {hits if hits else '-'}")
print("Grid 3 x 3 x 2 = 18: hits are those with G * c_w(ungeared) = 1 to 1e-3: only (disc, one axis, G = 4): 4 x 0.25 = 1.")
print("That hit is arithmetic (c_w = G v/4 for a disc) and needs a rigid ground; it is not a prediction.")
print("The ground takes (G-1)/G of the restoring couple: the medium's own gyrostats supply only 1/G of it.")

# two media: wave branch and static stiffness, K_g = (m_g/m) K (ground rotors like the medium's) or 0
banner("(b) Two media: light branch 4 v^2 = K(G^2/m + (G-1)^2/m_g) [K_g = 0], and with ground gyrostats K_g = (m_g/m) K")
def light_branch(K_over_m, G, mg_ratio, Kg_over_K):
    # v^2 eigenvalues of (1/4) M^-1 Kmat, in units where K/m -> K_over_m
    Km = K_over_m
    A = 0.25 * np.array([[Km * G**2, -Km * G * (G - 1)],
                         [-Km * G * (G - 1) / mg_ratio, (Km * (G - 1)**2 + Km * Kg_over_K) / mg_ratio]])
    ev = np.linalg.eigvals(A)
    return np.sort(ev.real)
Km_ring = 2 * v**2   # one axis, ring
for mgr in (1.0, 7.0, m_sea / m0):
    for Kg in (0.0, mgr):
        # find G for c on the upper branch
        from scipy.optimize import brentq
        f = lambda G: np.sqrt(light_branch(Km_ring, G, mgr, Kg)[1]) - c
        Gc = brentq(f, 1.0, 20.0)
        v2 = light_branch(Km_ring, Gc, mgr, Kg)
        Kstat = Gc**2 / (1 + (Gc - 1)**2 / Kg) if Kg > 0 else 0.0   # in units of K
        Kwave = 4 * c**2 / Km_ring                                    # effective K the light branch uses, in units of K... = 4 v^2 m/K
        # ground co-motion on the light branch: U_g/U = -(G-1) m/(G m_g) for K_g = 0 (eigenvector); general: from matrix
        A = 0.25 * np.array([[Km_ring * Gc**2, -Km_ring * Gc * (Gc - 1)],
                             [-Km_ring * Gc * (Gc - 1) / mgr, (Km_ring * (Gc - 1)**2 + Km_ring * Kg) / mgr]])
        w, vecs = np.linalg.eig(A)
        iu = np.argmax(w.real)
        ratio = vecs[1, iu] / vecs[0, iu]
        print(f"m_g/m = {mgr:9.4g}, K_g/K = {Kg:9.4g}: G for c = {Gc:.4f}; other branch v/c = {np.sqrt(max(v2[0],0))/c:.4f};"
              f" ground co-motion U_g/U = {ratio:+.5f}; K_static/K = {Kstat:.4f}; K_static/(wave stiffness 8K... G^2K) = {Kstat/Gc**2:.4f}")
print("Aspden's cell read this way: medium = quon orbit (ring-like, K = 2 m0 v^2 = m0 c^2/2), ground = muon sea (1.0e4 m0):")
Gc = brentq(lambda G: np.sqrt(light_branch(Km_ring, G, m_sea / m0, 0.0)[1]) - c, 1.0, 20.0)
print(f"  G for c = {Gc:.4f} (one axis) ; isotropic (K/3): G = {brentq(lambda G: np.sqrt(light_branch(Km_ring/3, G, m_sea/m0, 0.0)[1]) - c, 1.0, 40.0):.4f}")
print(f"  the record supplies: no gear (G = 1): c_w = {np.sqrt(light_branch(Km_ring, 1.0, m_sea/m0, 0.0)[1])/c:.4f} c (quon alone);")
print(f"  if the muon sea's mass must also be moved by the wave (one medium of mass m0 + m_sea): c_w = {np.sqrt(Km_ring/4/(1+m_sea/m0))/c:.5f} c")
print(f"  orbit's cutoff omega_max = 2 Omega = {2*Om_orb:.4g} /s -> hbar omega_max = {hbar*2*Om_orb/MeV:.4f} MeV: opaque above 1.022 MeV.")
print(f"  n_g - 1 at the Crab's 30 keV = {1.5*(30e3/(hbar*2*Om_orb/eV))**2:.3g} against the bound 1.64e-16.")

# ---------------------------------------------------------------- dispersion bounds -> omega_max
banner("(c)/(d) Dispersion bounds [I, the lock] -> least omega_max; fineness; spin floor")
bounds = {  # name: (E_high in eV, delta n_g bound)
    "Crab 2-30 keV (1.64e-16)": (30e3, 1.64e-16),
    "GRB 090510 row a (2e-18)": (28e9, 2e-18),
    "GRB 090510 row e (2.2e-20)": (28e9, 2.2e-20),
}
wmax_of = {}
for name, (Eh, dn) in bounds.items():
    # n_g - 1 ~ (3/2)(E/E_max)^2 ; the low end of each band contributes negligibly
    Emax = Eh * np.sqrt(1.5 / dn)
    wmax = Emax * eV / hbar
    wmax_of[name] = wmax
    R_ring = c / wmax               # ring/disc: omega_max = 2 Omega_s = 2 v/R = c/R at v = c/2
    R_sph = c / (2 * wmax)          # sphere: omega_max = Omega_s = v/R
    m_floor_ring = hbar * wmax / c**2          # S = m R v >= hbar/2 with R = c/omega_max, v = c/2
    m_floor_disc = 2 * hbar * wmax / c**2      # S = m R v/2
    m_floor_sph = (5 / 4) * hbar / (R_sph * v)  # S = 0.4 m R v
    a_bound = 3.0e-27
    print(f"{name}: hbar omega_max >= {Emax:.3g} eV; omega_max >= {wmax:.3g}/s;")
    print(f"   rotor radius R <= {R_ring:.3g} m (ring/disc), {R_sph:.3g} m (sphere); R/d = {R_ring/d:.2g}")
    print(f"   spin floor S >= hbar/2 -> m_r >= {m_floor_ring:.3g} kg (ring) = {m_floor_ring/C.m_p:.3g} m_p ; disc {m_floor_disc:.3g} kg; sphere {m_floor_sph:.3g} kg")
    print(f"   density floor at a = 3.0e-27 m: {m_floor_ring/a_bound**3:.3g} kg/m^3 (ring); Planck 5.2e96; critical {3*(67.4e3/3.0857e22)**2/(8*np.pi*C.G):.3g}")
    print(f"   hbar/2 route: frame mass M >= hbar omega_max/(8 c^2) = {hbar*wmax/(8*c**2):.3g} kg = {hbar*wmax/(8*c**2)/C.m_p:.3g} m_p;"
          f" tuned radius lambda_C(M)/4 = {hbar/(hbar*wmax/(8*c**2)*c)/4:.3g} m (j = 1)")
    beta = 370e3 / c
    print(f"   one-way anisotropy at 28 GeV for 370 km/s: ~6 beta (E/E_max)^2 = {6*beta*(28e9/Emax)**2:.2g}")

# ---------------------------------------------------------------- (c)
banner("(c) Intrinsic spin hbar/2 on a frame: the six counted trials; Model L re-read")
print(f"{'frame radius':14s} {'j':>4s} {'c_w/c':>8s} {'rim speed if spun /c':>22s}  hit?")
for rname, rfac in (("lambda_C", 1.0), ("lambda_C/2", 0.5), ("lambda_C/4", 0.25)):
    for j in (1.0, 0.5):
        cw = 1 / (4 * np.sqrt(j) * rfac)           # c_w/c = lambda_C/(4 sqrt j r_g), any M
        vrim = 1 / (2 * j * rfac)                   # v/c = lambda_C/(2 j r_g)
        print(f"{rname:14s} {j:4.1f} {cw:8.4f} {vrim:22.4f}  {'HIT' if abs(cw-1)<1e-3 else '-'}")
print("c_w/c depends on r_g/lambda_C(M) only; the mass M cancels. The hit at lambda_C/4 (j = 1) is the tuned value by")
print("construction (the lock's role-play names it); hbar omega_max = 8 M c^2 there, so the dispersion bound sets M (above).")
print("Model L re-read: quon m0 with S = hbar/2 on a frame of radius d or r = lambda_C/2:")
lamC_q = hbar / (m0 * c)
for rname, rg in (("d", d), ("r = lambda_C/2", r_orb)):
    for j in (1.0, 0.5):
        print(f"   r_g = {rname:15s} j = {j}: c_w/c = {lamC_q/(4*np.sqrt(j)*rg):.3f}; rim speed to carry hbar/2 as a point mass m0: v/c = {hbar/(2*m0*rg)/c:.2f}")
print(f"   (lambda_C of the quon = {lamC_q:.4g} m = {lamC_q/d:.2f} d)")

# ---------------------------------------------------------------- (d)
banner("(d) Kelvin's time limit: rho >= w (omega_max T)^2 / (2 c^2) for G = 1")
Gyr = 3.15576e16
T_univ, T_earth = 13.8 * Gyr, 4.54 * Gyr      # memory
v_wind = 370e3                                  # the record's CMB speed
r_p = 0.8414e-15                                # memory (lock)
B_E, R_E = 50e-6, 6.371e6                       # memory (lock)
fields = {
    "hydrogen at a0 (E)":  (0.5 * eps0 * (e / (4 * np.pi * eps0 * a0**2))**2, a0, T_univ),
    "proton surface (E)":  (0.5 * eps0 * (e / (4 * np.pi * eps0 * r_p**2))**2, r_p, T_univ),
    "1 m from electron (E)": (0.5 * eps0 * (e / (4 * np.pi * eps0 * 1.0**2))**2, 1.0, T_univ),
    "Earth's field (B)":   (B_E**2 / (2 * mu0), R_E, T_earth),
}
rho_Pl = 5.2e96
for bname, wmax in wmax_of.items():
    print(f"\n-- omega_max from {bname}: {wmax:.3g}/s")
    print(f"{'field':24s} {'w [J/m^3]':>10s} {'entrained T [s]':>15s} {'rho needed':>11s} {'/Planck':>9s} | {'dwell L/v [s]':>13s} {'rho needed':>11s}")
    for fname, (wd, L, T) in fields.items():
        rho_ent = wd * (wmax * T)**2 / (2 * c**2)
        Tdw = L / v_wind
        rho_str = wd * (wmax * Tdw)**2 / (2 * c**2)
        print(f"{fname:24s} {wd:10.3g} {T:15.3g} {rho_ent:11.3g} {rho_ent/rho_Pl:9.2g} | {Tdw:13.3g} {rho_str:11.3g}")
# wind-up time at the floor density (ring, row e) for hydrogen's field
wmax_e = wmax_of["GRB 090510 row e (2.2e-20)"]
rho_floor = hbar * wmax_e / c**2 / (3.0e-27)**3
for rho_try, lab in ((rho_floor, "spin-floor density"), (rho_Pl, "Planck density")):
    wd = fields["hydrogen at a0 (E)"][0]
    th = np.sqrt(wd / (2 * rho_try * c**2))
    print(f"hydrogen's field at {lab} {rho_try:.3g} kg/m^3: twist theta = {th:.3g}; gimbal reaches 1 rad after {1/(wmax_e*th):.3g} s"
          f" = {1/(wmax_e*th)/3.156e7:.3g} yr")
print("\nA streaming medium (370 km/s) passes for every field at any density above ~1e44 kg/m^3; an entrained one needs")
print("more than the Planck density for the hydrogen atom's and the proton's fields; Earth's field needs 1e85, 1 m from an")
print("electron 1e60 (both below Planck, the latter below the spin floor). Gearing (G > 1) tightens every bound by G^2.")