Does light charge the quons? › Files cited on the page › check_questions_fable/
check_graviton.py
"""check_graviton.py - eighth independent reviewer's own reproduction of trial 6 (sim/charge_wave/graviton_levels.py, lock
papers/Lock_graviton_levels_2026-11-13.md) and of the numbers in sections 9.3, 9.4 and 9.5 of Charging_quons draft 0.14.
Everything here is my own code (the particle list is read from sim/lepton_photon/ladder_scan.py by parsing its text, as the
trial did, so that the same 30 masses are compared). Where I use a different method from the trial it is said in the output
(polynomial roots for the factor N_g; a brute-force average over the q^3 offsets for the p/q mean hold; a different random
generator and several slide ranges for the chance test; the force on sample quons for "at rest").
Run: ~/aspden-review-venv/bin/python3 check_graviton.py > check_graviton_out.txt 2> check_graviton_err.txt
"""
import ast, itertools, math, time
import numpy as np
from scipy.integrate import quad
T0 = time.time()
# ---- inputs, each with its source ----
me_MeV = 0.51099895 # m_e c^2, CODATA 2018 [S]
rd = 0.75 * (8 / 1843) ** (1 / 6) # r/d, Aspden (PU 156, POC 7.24/7.26), Part 1 U03 [A]
m0_me = (4 / 9) * rd ** 2 # m0/m_e, Aspden's (7.25), U04 [A]
E1 = {"R": me_MeV, "M": m0_me * me_MeV} # MeV: rhythm energy hbar Omega = 511 keV; rest energy m0 c^2
g_me, tau_me = 5062.318, 3484.94 # graviton and taon in electron masses, working paper 7.1 [A]
g = g_me * me_MeV
a = 0.036135562 # b/d, Part 1 U05 [A]
NSTAR = (3 / (8 * math.pi)) ** (1 / 3) / a # y_f = 1/2 (f = 1/4) exactly
print("Eighth reviewer: trial 6 and sections 9.3 to 9.5 reproduced with code of my own")
print(f" r/d = {rd:.7f}; m0/m_e = {m0_me:.6f} (m0 c^2 = {E1['M']*1e3:.4f} keV); 511/20.84 = {E1['R']/E1['M']:.2f}")
print(f" graviton g = {g_me} m_e = {g:.4f} MeV = {g/1e3:.4f} GeV; taon = {tau_me*me_MeV:.2f} MeV; N* = {NSTAR:.4f}, 2N* = {2*NSTAR:.4f}")
# ---- 1. the G-frame population ----
print("\n1. Aspden's graviton population, with m_g = m0 per cell (POC ch. 6 as read in Light_in_the_aether_insights section 0)")
mean = (2 * tau_me + g_me) / 3
for label, cells in (("one heavy particle (2 taons : 1 graviton), mean %.1f m_e" % mean, mean / m0_me),
("gravitons proper, one in three", 3 * mean / m0_me),
("all the G-frame mass in gravitons, g/m0", g_me / m0_me)):
print(f" {label:60s} cells per particle {cells:10.0f} spacing {cells**(1/3):6.2f} cells")
# ---- 2. the sums (G1) ----
print("\n2. The sums T_n = E1 (1 + N + ... + N^(n-1)) and A_n = T_n - E1, MeV, and their distance from the graviton")
sums = {}
for key in ("R", "M"):
for N in (13, 14, 15):
for n in (2, 3, 4):
T = E1[key] * sum(N ** k for k in range(n))
sums[(key, N, n, "total")] = T
sums[(key, N, n, "additional")] = T - E1[key]
print(f" {key} N = {N} {n} levels: T = {T:11.4f} ({100*(T/g-1):+7.2f}% of g) A = {T-E1[key]:11.4f} ({100*((T-E1[key])/g-1):+7.2f}%)")
closest = min(sums.items(), key=lambda kv: abs(kv[1] / g - 1))
print(f" closest to g: {closest[0]} = {closest[1]:.2f} MeV, {100*(closest[1]/g-1):+.2f}%; within 3%: {sum(abs(v/g-1) < 0.03 for v in sums.values())}")
print(" the factor N_g with T_n = g, by the roots of N^n - 1 - (g/E1)(N - 1) = 0 (polynomial roots, a different method from the trial's brentq):")
for key in ("R", "M"):
for n in (2, 3, 4, 5):
coef = np.zeros(n + 1); coef[0] = 1; coef[-2] -= g / E1[key]; coef[-1] = g / E1[key] - 1
roots = np.roots(coef)
real = [r.real for r in roots if abs(r.imag) < 1e-9 and r.real > 1.000001]
Ng = min(real)
where = ("13 to 15" if 13 <= Ng <= 15 else "26 to 30" if 26 <= Ng <= 30 else "16 to 23 (edge/face, not cubic)" if 16 <= Ng <= 23
else "24 to 31 (cube centre)" if 24 <= Ng <= 31 else "outside every window")
print(f" {key}, {n} levels: N_g = {Ng:12.4f} {where}")
# ---- 3. spacing (G2): register, the cube centre, and p/q ----
print("\n3. Spacing: in register the levels share a point at every quon (one per cell): "
f"{mean/m0_me:.0f} to {3*mean/m0_me:.0f} times too many for one heavy particle per {mean/m0_me:.0f} to {3*mean/m0_me:.0f} cells")
print(" a graviton at the centre of a level-1 cube: a level-2 site is at (N/2, N/2, N/2) finer spacings: " +
", ".join(f"N = {N}: {'yes' if N % 2 == 0 else 'no'}" for N in (13, 14, 15)))
def count_in_ball(alpha):
"""Whole-number vectors with |m| < alpha (direct count; a second count by shells of |m|^2 as a check)."""
R = int(math.floor(alpha))
x = np.arange(-R, R + 1)
X, Y, Z = np.meshgrid(x, x, x, indexing="ij")
r2 = X * X + Y * Y + Z * Z
direct = int(np.sum(r2 < alpha * alpha))
# by shells: the number of representations of each r2 <= alpha^2 as a sum of three squares, summed
vals, counts = np.unique(r2.ravel(), return_counts=True)
shells = int(counts[vals < alpha * alpha].sum())
return direct, shells
print(" out of register, N = p/q in lowest terms (p nearest to N* q and coprime with q):")
print(" q p p/q alpha = a p y_f(p) n_in(p) mean hold (n_in/y_f - 1)/3 brute-force mean over the q^3 offsets at rest by symmetry max |hold| of one quon")
for q in (46, 50, 67):
base = round(NSTAR * q)
p = next(c for dd in range(0, 60) for c in (base + dd, base - dd) if math.gcd(c, q) == 1)
alpha_p = a * p
yf_p = 4 * math.pi / 3 * alpha_p ** 3
n1, n2 = count_in_ball(alpha_p)
assert n1 == n2
rule = (n1 / yf_p - 1) / 3
# brute force: the quon at integer R sits at offset v = (p/q) R mod 1 in finer units; its ball (radius a p/q < 1/2) holds the
# finer quon at the nearest site if the distance is below the radius. Average (n_in(v)/y_f - 1)/3 over the q^3 offsets.
j = np.arange(q)
off = (j * p % q) / q # the offsets along one axis, each once (gcd = 1)
dist1 = np.minimum(off, 1 - off) # distance to the nearest site along one axis
D2 = (dist1[:, None, None] ** 2 + dist1[None, :, None] ** 2 + dist1[None, None, :] ** 2)
alpha_q = a * p / q
yf_q = 4 * math.pi / 3 * alpha_q ** 3
nin = (D2 < alpha_q ** 2).astype(int)
holds = (nin / yf_q - 1) / 3
brute = holds.mean()
rest = int(np.sum(np.abs(2 * off - np.round(2 * off)) < 1e-9)) ** 3
print(f" {q:3d} {p:4d} {p/q:8.4f} {alpha_p:9.3f} {yf_p:10.1f} {n1:8d} {rule:+.6f} {brute:+.6f} (quons holding a finer quon: {int(nin.sum())} of {q**3})"
f" {rest} of {q**3} {np.abs(holds).max():.3f}")
print(" (the lock's expectation: a mean within 0.01 of zero; the trial found -0.000176, +0.000553, -0.000565)")
print(" note: the mean is near zero because a ball of radius 22 to 33 finer spacings holds, on average, as many finer quons as")
print(" its volume says (lattice-point counting); the individual quons' holds run from -1/3 (no finer quon inside) to the")
print(" bunch-of-one value, so no quon has a hold near the mean. The quons away from the symmetric offsets are not at rest.")
# the force on a sample of quons out of register, from the finer grid, by the Fourier gradient (points): zero only at symmetric offsets
MF = np.array([m for m in itertools.product(range(-25, 26), repeat=3) if any(m)], float)
MFN = np.sqrt((MF ** 2).sum(1))
def form_ball(x):
return np.where(x < 1e-6, 1.0, 3 * (np.sin(x) - x * np.cos(x)) / np.where(x < 1e-6, 1.0, x) ** 3)
def grad_e(v, alpha):
F1 = form_ball(2 * math.pi * MFN * alpha) / (math.pi * MFN ** 2)
ph = 2 * math.pi * (MF @ v)
return -2 * math.pi * ((F1 * np.sin(ph)) @ MF) # gradient of e(v) = sum F1 cos(2 pi m.v)/(pi m^2) (points)
q, p = 46, 627
alpha_q = a * p / q
rng = np.random.default_rng(20261113)
sample = [np.array([0, 0, 0]), np.array([0.5, 0.5, 0.5]), np.array([0, 0, 0.5])] + \
[np.array([(ri * p % q) / q for ri in rng.integers(0, q, 3)]) for _ in range(6)]
print(" the force on a quon from the finer grid at nine offsets of the 627/46 case (|gradient of e|, Fourier, |m| <= 25):")
for v in sample:
gval = np.linalg.norm(grad_e(v, alpha_q))
print(f" offset ({v[0]:.4f}, {v[1]:.4f}, {v[2]:.4f}): |grad e| = {gval:.2e} {'(a centre of symmetry: at rest)' if np.all(np.abs(2*v - np.round(2*v)) < 1e-9) else ''}")
# ---- 4. known particles (G3) ----
src = open("../../lepton_photon/ladder_scan.py", encoding="utf-8").read()
P = None
for node in ast.parse(src).body:
if isinstance(node, ast.Assign) and any(isinstance(t, ast.Name) and t.id == "P" for t in node.targets):
P = ast.literal_eval(node.value)
names = list(P)
PM = np.array([P[k] for k in names])
E36 = np.array(list(sums.values()))
keys = list(sums.keys())
rel = E36[:, None] / PM[None, :] - 1
imin = np.argmin(np.abs(rel), axis=1)
off = rel[np.arange(len(E36)), imin]
print(f"\n4. The 36 energies against U44's {len(names)} particles (ladder_scan.py's list, values from memory there)")
for i in np.argsort(np.abs(off)):
if abs(off[i]) < 0.03:
print(f" {keys[i]} = {E36[i]:9.3f} MeV nearest {names[imin[i]]:7s} {PM[imin[i]]:9.3f} {100*off[i]:+.2f}%")
n1, n3 = int(np.sum(np.abs(off) < 0.01)), int(np.sum(np.abs(off) < 0.03))
print(f" within 1%: {n1}; within 3%: {n3}")
def chance(E, umax, ndraw, seed, tol):
rng = np.random.default_rng(seed)
U = rng.uniform(-umax, umax, ndraw)
counts = np.empty(ndraw, int)
for c0 in range(0, ndraw, 5000):
Es = E[None, :] * np.exp(U[c0:c0 + 5000])[:, None]
r = np.abs(Es[:, :, None] / PM[None, None, :] - 1).min(axis=2)
counts[c0:c0 + 5000] = (r < tol).sum(1)
return counts
print(" chance (a common slide e^u of all the energies; my generator and seed; several ranges of u):")
for umax in (0.5, 1.0, 2.0, 3.0):
c1 = chance(E36, umax, 200000, 7, 0.01)
c3 = chance(E36, umax, 200000, 7, 0.03)
print(f" u in [-{umax}, {umax}]: within 1%: mean {c1.mean():.2f}, P(>= {n1}) = {100*np.mean(c1 >= n1):.1f}%; within 3%: mean {c3.mean():.2f}, P(>= {n3}) = {100*np.mean(c3 >= n3):.1f}%")
# the same with the near-duplicates removed (totals only, 18 energies) and for the R reading's totals only (9 energies)
Etot = np.array([v for k, v in sums.items() if k[3] == "total"])
ER = np.array([v for k, v in sums.items() if k[3] == "total" and k[0] == "R"])
for label, EE in (("totals only (18 energies)", Etot), ("R-reading totals only (9 energies)", ER)):
rr = np.abs(EE[:, None] / PM[None, :] - 1).min(axis=1)
o1, o3 = int(np.sum(rr < 0.01)), int(np.sum(rr < 0.03))
c1 = chance(EE, 1.0, 200000, 11, 0.01)
c3 = chance(EE, 1.0, 200000, 11, 0.03)
print(f" {label}: observed {o1} within 1% (P = {100*np.mean(c1 >= o1):.1f}%), {o3} within 3% (P = {100*np.mean(c3 >= o3):.1f}%)")
# a Poisson-style estimate: the chance that one energy in 100 to 2000 MeV lands within 1% of one of the particles there
inrange = PM[(PM > 90) & (PM < 2100)]
cover = min(1.0, len(inrange) * (math.log(1.01) - math.log(0.99)) / math.log(2100 / 90))
print(f" for comparison: a mass placed at random (log-uniform) between 90 MeV and 2.1 GeV lands within 1% of one of the {len(inrange)} "
f"particles there with probability {cover:.2f}; six distinct R-reading sums with n >= 3 lie in that range")
# ---- 5. the energy per cell (G4) ----
print("\n5. Energy at one shared point per cell against the G frame's m0 c^2 per cell, and against the level-1 quon's own energy")
for key in ("R", "M"):
for N in (13, 15):
T2 = sums[(key, N, 2, "total")]
print(f" {key}, N = {N}: T_2/m0c^2 = {T2/E1['M']:.0f}; T_2/E_1 = {T2/E1[key]:.1f}; level 1 alone is E_1/m0c^2 = {E1[key]/E1['M']:.1f} times the G-frame energy per cell")
# ---- 6. the interaction energies the lock leaves out ----
print("\n6. Interaction energies of coincident quons (left out of the sums). A point charge e at the centre of a uniform ball of charge e")
print(" and radius b has interaction energy (3/2) e^2/(4 pi eps0 b) = 4.5 m0 c^2 (Aspden's (7.4): m0 c^2 = e^2/(3b) in Gaussian units).")
U12 = 4.5 * E1["M"]
print(f" level 1 (ball, radius b) with level 2 at its centre: {U12*1e3:.1f} keV = {U12/E1['R']*100:.1f}% of E_1 (R) and {U12/E1['M']:.1f} times E_1 (M)")
print(" For a smaller copy at level k (radius b/N^(k-1)), every finer quon at its centre has interaction N^(k-1) x 4.5 m0 c^2 with it.")
print(" Sum over all pairs (magnitudes; the signs depend on the charges' signs, which U44's rule does not fix):")
for N in (13, 15):
for n in (2, 3, 4):
Uint = 4.5 * E1["M"] * sum((n - k) * N ** (k - 1) for k in range(1, n))
print(f" N = {N}, {n} levels: sum of pair interactions {Uint:9.3f} MeV = {100*Uint/sums[('M',N,n,'total')]:5.1f}% of T_n (M reading), "
f"{100*Uint/sums[('R',N,n,'total')]:5.2f}% of T_n (R reading)")
print(" So the lock's 'small beside the finer levels' energies' holds for the 511 keV reading (about 1%), not for the 20.84 keV reading (about a third).")
print(f" Trial 5's charges instead: a finer quon of charge e/N^3 and radius b/N has self-energy (e/N^3)^2/(b/N) = 1/N^5 of the quon's: "
f"N = 13: {13**-5:.1e}, N = 15: {15**-5:.1e}")
# ---- 7. the levels needed (L) and the GRB bounds (sections 9.3 and 9.4) ----
hbar = 1.054571817e-34; me = 9.1093837015e-31; c = 299792458.0; eV = 1.602176634e-19
hbarc = hbar * c / eV
mec2 = me * c ** 2 / eV
r = hbar / (2 * me * c)
d = r / rd
z = 0.903; H0 = 67.4e3 / 3.0856775814913673e22; Om = 0.3153
hz = lambda x: math.sqrt(Om * (1 + x) ** 3 + 1 - Om)
Tn = {n: quad(lambda x: (1 + x) ** n / hz(x), 0, z)[0] / H0 for n in (0, 2)}
yr = 365.25 * 86400
print(f"\n7. GRB 090510 (Abdo et al. 2009, Table 2; z = 0.903; Planck 2018 as the record uses) and the levels needed")
print(f" comoving path (1+z)^0 weighting: {Tn[0]:.4e} s = {Tn[0]/yr/1e9:.2f} billion light-years; quadratic (1+z)^2 weighting: {Tn[2]:.4e} s")
h_e = 2 * 0.010 / Tn[0]; h_f = 2 * 0.019 / Tn[0]
print(f" a level's share h, from light above its energy being faster by h/2: limit (e) |dt| < 10 ms: h < {h_e:.2e}; limit (f) 19 ms: h < {h_f:.2e}")
lim2 = 0.859 / Tn[2]
k28 = 28e9 / hbarc
dmax = math.sqrt(8 * lim2) / k28
Eres = 28e9 * math.sqrt(1.5 / lim2)
print(f" quadratic law, limit (a) 0.859 s: group deficit at 28 GeV below {lim2:.3e}; cube-axis spacing below {dmax:.3e} m; promptness E_res above {Eres:.3e} eV")
print(f" Aspden's d = {d:.4e} m; the ceiling 2 hbar c/d = {2*hbarc/d/1e6:.3f} MeV along a cube axis")
def first_level(s):
kd = next(k for k in range(500) if d / s ** k < dmax)
kE = next(k for k in range(500) if s ** k * mec2 > Eres)
return max(kd, kE), kd, kE
print(" first level fine and prompt enough (level 0 = Aspden's lattice; U44's energies N^k x 511 keV):")
for s in (2, 3, 4, 13, 14, 15, 26, 27, 28, 29, 30):
k, kd, kE = first_level(s)
inrange_e = [kk for kk in range(40) if 0.19e6 < s ** kk * mec2 < 28e9]
print(f" N = {s:2d}: level {k} (spacing {kd}, promptness {kE}); own energy {s**k*mec2:.2e} eV; levels with energies in 0.19 MeV to 28 GeV: {inrange_e}")
print(" (section 7.3 item 5: 46, 29, 23 for s = 2, 3, 4; section 9.4: level 13 for N = 13 or 14, 12 for N = 15, 10 for 26 to 30; levels 0 to 4 for N = 14)")
print(" U44 level energies for N = 14 (MeV): " + ", ".join(f"{14**k*me_MeV:.3g}" for k in range(6)))
# ---- 8. Filter_check section 8's 'light on the ladder' ----
lam_over_d = 4 * math.pi * rd
kd_ = 2 * math.pi / lam_over_d
print(f"\n8. A photon of a level's own energy hbar Omega_k (Omega = c/(2r)): wavelength 4 pi r_k = {lam_over_d:.3f} d_k, k d = {kd_:.3f};")
print(f" nearest-neighbour cubic relay along an axis, omega = (2c/d) sin(kd/2): group speed {math.cos(kd_/2):.3f} c ({100*(1-math.cos(kd_/2)):.0f}% slower), "
f"phase speed {math.sin(kd_/2)/(kd_/2):.3f} c ({100*(1-math.sin(kd_/2)/(kd_/2)):.0f}% slower)")
# ---- 9. the share formula of section 9.3 ----
print("\n9. Section 9.3's chain: with K = K_T n q^2/eps_b and light at c (eps_b + n q^2/K = eps0): f = K_T/(1 + K_T), quons 1/(1 + K_T)")
for KT in (1 / 3, 0.4343, 0.2813, 0.1664, 0.3521, 0.0927):
f = KT / (1 + KT)
print(f" K_T = {KT:.4f}: f = {f:.4f}, quons' share {1-f:.4f}; check eps_b + n q^2/K = f + f/K_T = {f + f/KT:.6f}")
print(" above a level's frequency: a level of share h dropping out makes light faster by 1/sqrt(1 - h) - 1 = " +
", ".join(f"{1/math.sqrt(1-h)-1:.3g} for h = {h}" for h in (1e-6, 0.1, 0.5, 0.78)) + " (about h/2 only for small h)")
print(f"\nrun time {time.time() - T0:.1f} s")