Does light charge the quons? › Files cited on the page › the trials
ladder_scan.py
"""Nested-lattice ladder E_k = s^k x 511 keV (level 0 = the electron, by construction) for every whole factor s = 2..16,
compared with 30 well-known particle masses.
Chance is judged two ways:
expected - a mass placed at random (evenly in log-mass) lands within +-x% of some level with probability
(ln(1+x) - ln(1-x)) / ln(s); times 30 particles.
p (shift) - keep the real particle list (with its near-twins such as p/n, D0/D+), slide the whole ladder by a random
amount, and count how often it does at least as well as the electron-anchored ladder. This handles the
twins honestly.
global - the same random slide applied to all 15 factors at once: how often the BEST factor looks as good as
the best real one (the look-elsewhere correction for having tried 15 factors).
Masses in MeV, Particle Data Group values quoted from memory; editions differ by under 0.1%, which changes nothing here."""
import numpy as np
me = 0.51099895
P = {"muon":105.658,"pion0":134.977,"pion+":139.570,"kaon+":493.677,"kaon0":497.611,"eta":547.862,"rho":775.26,"omega":782.66,
"proton":938.272,"neutron":939.565,"eta'":957.78,"phi":1019.461,"Lambda":1115.683,"Sigma+":1189.37,"Xi0":1314.86,
"Omega-":1672.45,"tau":1776.86,"D0":1864.84,"D+":1869.66,"Ds":1968.35,"Lambda_c":2286.46,"J/psi":3096.90,"B+":5279.34,
"Bs":5366.88,"Bc":6274.5,"Upsilon":9460.30,"W":80377.0,"Z":91187.6,"Higgs":125250.0,"top":172690.0}
names = list(P); L = np.log(np.array([P[n] for n in names]) / me) # log(mass / electron mass)
S = list(range(2, 17)); TOL = (1, 3, 7)
mu = 105.658
def offsets(s, shift=0.0):
"""fractional distance (in log units) of each particle from the nearest level; returns % off"""
x = (L - shift) / np.log(s)
k = np.round(x)
return (np.exp((x - k) * np.log(s)) - 1) * 100, k
def hits(s, tol, shift=0.0):
o, _ = offsets(s, shift)
return int(np.sum(np.abs(o) < tol))
rng = np.random.default_rng(1)
NT = 40000
shifts = rng.uniform(0, 1, NT) # as a fraction of ln(s) for the per-factor test
gshift = rng.uniform(0, 50, NT) # common shift (natural-log units) for the global test
print(f"{'s':>3} {'levels e..mu':>12} {'levels to top':>13} | " + " | ".join(f"within {t}%: seen (expect) p" for t in TOL))
rows = {}
for s in S:
n_between = int(np.floor(np.log(mu / me) / np.log(s))) # levels k>=1 below the muon: all empty
n_total = int(np.floor(np.log(P["top"] * 1.07 / me) / np.log(s))) # levels k = 1 .. up to the top quark
cells = []
for t in TOL:
w = np.log(1 + t / 100) - np.log(1 - t / 100)
exp = len(names) * min(1.0, w / np.log(s))
obs = hits(s, t)
sim = np.array([hits(s, t, u * np.log(s)) for u in shifts[:4000]])
p = np.mean(sim >= obs)
cells.append(f"{obs:>4d} ({exp:4.1f}) {p:5.2f}")
rows[(s, t)] = (obs, exp, p)
print(f"{s:>3} {n_between:>12d} {n_total:>13d} | " + " | ".join(cells))
print("\nParticles within 1% of a level, per factor (level k, % off):")
for s in S:
o, k = offsets(s)
h = [f"{names[i]} (k={int(k[i])}, {o[i]:+.2f}%)" for i in np.argsort(np.abs(o)) if abs(o[i]) < 1]
print(f" s={s:2d}: " + (", ".join(h) if h else "none"))
print("\nFirst levels above the electron (all fall below the muon, where no particle exists):")
for s in S:
lv = [me * s**k for k in range(1, 12) if me * s**k < mu]
print(f" s={s:2d}: " + ", ".join(f"{E:.3g}" for E in lv) + " MeV")
# global look-elsewhere: for each random common shift, the smallest per-factor p over all 15 factors, compared with the real one
for t in (1, 7):
# survival functions per factor from the per-factor simulations
sf = {}
for s in S:
sim = np.array([hits(s, t, u * np.log(s)) for u in shifts[:4000]])
sf[s] = lambda n, sim=sim: np.mean(sim >= n)
real_min = min(rows[(s, t)][2] for s in S)
best = [s for s in S if rows[(s, t)][2] == real_min]
gm = []
for g in gshift[:3000]:
gm.append(min(sf[s](hits(s, t, g)) for s in S))
gm = np.array(gm)
print(f"\nGlobal test, within {t}%: best real factor(s) {best} with p = {real_min:.3f}; "
f"a randomly slid set of 15 ladders does at least that well {np.mean(gm <= real_min)*100:.0f}% of the time")