Does light charge the quons? › Files cited on the page › papers/
review_full.py
#!/usr/bin/env python3
"""The author seat's fuller review of Fable's outline (the wheel-and-band ether): what review_checks.py left out.
Claude Opus 5.5, 23 November 2026, at Doug Westmoreland's word ("ok do your more complete review"). Own code. Not a trial; post hoc.
Run 1 (review_full_run1.py.txt, review_full_out_run1_5fails.txt): 24 of 29. The five failures were mine: the packets of section 5 started half a box from
where they were measured (three); section 4's displacement was too large for its tolerance; section 2's gimbals started with a mean tilt large enough to
leave the small-angle law. Run 2 corrects them and adds the general free spin to section 7.
Sections: 1 the gyrostat; 2 its costs; 3 every bound on d I could find; 4 the magnetic force along a smooth path; 5 packets in three
dimensions; 6 the lattice made quantum; 7 a charge hopping through the free spin; 8 the outline's by-hand list; 9 other layouts."""
import itertools
import math
import subprocess
import numpy as np
from scipy import integrate, optimize
print("The author seat's fuller review of the wheel-and-band outline. Own code; post hoc.")
print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip())
hbar, c, e, eps0, G_N = 1.054571818e-34, 299792458.0, 1.602176634e-19, 8.8541878188e-12, 6.6743e-11
hbarc, me, mpr, mpi0 = hbar * c / e, 510998.95, 938.27209e6, 134.9768e6
alpha = e * e / (4 * math.pi * eps0 * hbar * c)
npass = ntot = 0
rng = np.random.default_rng(2026112302)
def check(ok, text, detail=""):
global npass, ntot
ntot += 1
npass += bool(ok)
print(f" CHECK {'pass' if ok else 'FAIL'}: {text} {detail}")
def head(t):
print("\n" + "=" * 100 + "\n" + t + "\n" + "=" * 100)
def rk4(f, y, t0, t1, n):
h = (t1 - t0) / n
t = t0
out = [np.array(y, float)]
for _ in range(n):
y = out[-1]
k1 = f(t, y); k2 = f(t + h / 2, y + h / 2 * k1); k3 = f(t + h / 2, y + h / 2 * k2); k4 = f(t + h, y + h * k3)
out.append(y + h / 6 * (k1 + 2 * k2 + 2 * k3 + k4))
t += h
return np.array(out)
# -------------------------------------------------------------------------------------------------------------------
head("1. Kelvin's gyrostat from the Routhian, by my own derivation and stepping")
print(" R = A/2 [(b' + W.x)^2 + (W.(x x n))^2] + h W.n, n the spin's axis in the plane square to the gimbal's axis x [S]. For a twist about z and")
print(" n at angle b from y: A b'' = h th' cos b - A th'^2 sin b cos b; couple = d/dt[A th' cos^2 b + h sin b] + If th''.")
A, h, If, a, w = 1.0, 2.0, 0.5, 1e-4, 0.8
f = lambda t, y: np.array([y[1], (h * (-a * w * math.sin(w * t)) * math.cos(y[0]) - A * (a * w * math.sin(w * t)) ** 2 * math.sin(y[0]) * math.cos(y[0])) / A])
per = 2 * math.pi / w
n = 8 * 2000
y = rk4(f, [0.0, h * a / A], 0, 8 * per, n)
t = np.linspace(0, 8 * per, n + 1)
thd, thdd = -a * w * np.sin(w * t), -a * w * w * np.cos(w * t)
couple = A * np.cos(y[:, 0]) ** 2 * thdd - 2 * A * thd * y[:, 1] * np.sin(y[:, 0]) * np.cos(y[:, 0]) + h * y[:, 1] * np.cos(y[:, 0]) + If * thdd
inph = 2 * np.mean((couple * np.cos(w * t))[:-1]) / a
check(abs(inph - (h * h / A - w * w * (A + If))) < 1e-5, "couple = [h^2/A - w^2 (A + If)] theta", f"({inph:.6f} against {h*h/A-w*w*(A+If):.6f})")
b0 = 0.5
y = rk4(f, [b0, h * a * math.cos(b0) / A], 0, 8 * per, n)
pred = 0.5 * a * a * (h * h / A**2 - w * w) * math.sin(b0) * math.cos(b0) * (8 * per) ** 2 / 2
check(abs((y[-1, 0] - b0) / pred - 1) < 1e-3, "the slow push: A B'' = (1/4)(h^2/A - A w^2) a^2 sin 2B", f"(drift {y[-1,0]-b0:.6e} against {pred:.6e})")
print(" Averaging by hand gives the same: h<th' (-sin B) b> = h^2<th^2> sin B cos B/A, less A<th'^2> sin B cos B. Below w = h/A the served axis is unstable.")
print(" w_n is at most 2 spin rates for ANY wheel with an axis (C <= 2A), not only a disc or a hoop.")
# -------------------------------------------------------------------------------------------------------------------
head("2. Variant G's costs, put right")
print(" (i) In Variant G the gyrostat stands in for a BAND. A band has one strain, so its gyrostat is twisted about one axis only: its own.")
print(" Light even in direction and unpolarized still twists every band about its own axis, and nothing twists it about the spin's axis. So the")
print(" outline's balance ('pushes equally both ways', true of Kelvin's element, which turns bodily) is absent, and the WHOLE light field drives the drift.")
# a demonstration: 3 gyrostats on 3 bands, isotropic random light: each band's own component only. growth of small tilt = cosh(g t), g = (h/A) sqrt(<th^2>)
a_rms = 0.01 / math.sqrt(2)
wn_ = h / A
amps = 0.01 * np.ones(3)
seps = []
for s_ in (+1e-3, -1e-3):
ws, phs, ams = np.array([0.5, 0.8, 1.1, 0.65]), np.zeros(4), np.full(4, 0.005)
def g_(t, y):
td = float(-(ams * ws * np.sin(ws * t + phs)).sum())
return np.array([y[1], (h * td * math.cos(y[0]) - A * td * td * math.sin(y[0]) * math.cos(y[0])) / A])
th0 = float((ams * np.cos(phs)).sum())
seps.append(rk4(g_, [s_, h * th0 / A], 0, 400.0, 80000)[:, 0])
sep = (seps[0] - seps[1]) / 2e-3
g2 = sum((h * h / A**2 - w_ * w_) * am**2 / 2 for w_, am in zip(ws, ams))
gT = math.sqrt(g2) * 400
check(abs(math.log(sep[-1]) / math.log(math.cosh(gT)) - 1) < 0.05, "many colours at once, one axis: two tilts separate as cosh(g t), g^2 = sum (h^2/A^2 - w^2) a^2/2",
f"(separation {sep[-1]:.2f}, cosh {math.cosh(gT):.2f})")
u_cmb = 4 * 5.670374e-8 / c * 2.7255**4
E_axis = math.sqrt(u_cmb / eps0) / math.sqrt(3) # rms field along one band: E^2 eps0/2 is half the energy, so <E^2> = u/eps0, a third per axis
F_iso = E_axis * 4.35e17
print(f" The microwave background along one axis: {E_axis:.4f} V/m rms; over the age of the universe F = {F_iso:.2e} V s/m (the outline: 9.4e13 for its uneven part).")
EPl = c**4 / G_N / math.sqrt(4 * math.pi * eps0 * hbar * c)
BLg, Frest = 5e-10 * 1e3 * 3.0857e16, e / (4 * math.pi * eps0 * (5.29177e-11) ** 2) * 4.35e17
print(f" (ii) A hydrogen atom at rest in the frame: field at the Bohr radius {Frest/4.35e17:.2e} V/m held for the age of the universe: {Frest:.2e} V s/m,")
print(f" {Frest/BLg:.1e} times the Galaxy's field crossed over 1 kpc ({BLg:.2e}), the outline's figure.")
print(" row E_n (eV) E_rad above: Galaxy all the CMB atom at rest (Planck field %.2e V/m)" % EPl)
for lab, En in (("(a)", 3.018e19), ("(e)", 2.797e20), ("LHAASO 6.9e11 GeV", 6.9e20), ("reading 2, Crab", 2 * 3.0 / (2 * 3.0) * math.sqrt(12) * hbarc / 3.10e-32)):
wn = En * e / hbar
print(f" {lab:22s} {En:.3e} {wn*BLg:.1e} {wn*F_iso:.1e} {wn*Frest:.1e}")
print(" An atom at rest needs a field for one radian beyond Planck's in every row. The variant survives only if the frame streams past every atom (trial 21 found the same).")
# -------------------------------------------------------------------------------------------------------------------
head("3. Every bound on d I could find, both readings (cube axis; times sqrt 3 for 'excluded whatever the orientation')")
E112 = 1.12e15
rows = []
rows.append(("timing, GRB 090510 (a)", 2.265e-26, "both", "0.859 s, a delay"))
rows.append(("timing, GRB 090510 (e)", 2.444e-27, "both", "one photon tied to one spike"))
rows.append(("timing, GRB 221009A (LHAASO, 95%)", math.sqrt(12) * hbarc / 6.9e20, "both", "read at source; no source lag"))
lang = math.sqrt(12) * hbarc / 2.38e21
rows.append(("gamma rays absorbed on starlight (Lang et al., 2 sigma)", lang, "1", "read at source (Table 1: 2.38e21 eV); 111 spectra; EBL model"))
rows.append(("the same, electrons sharing the law", lang * math.sqrt(4 / 3), "2", "my factor 3/4, below"))
rows.append(("no Cherenkov light, 40 TeV electrons (detected)", 9 * hbarc * me / 4e13**2, "1", "detected"))
rows.append(("no Cherenkov light, 2.3 PeV electrons (Crab)", 9 * hbarc * me / 2.3e15**2, "1", "LHAASO: the 1.1 PeV photon's parent electron, inferred"))
rows.append(("no Cherenkov light, cosmic rays as iron", 9 * hbarc * mpr / (3.2e20 / 56) ** 2, "1", "nucleon by nucleon; order of magnitude"))
rows.append(("no Cherenkov light, cosmic rays as protons", 9 * hbarc * mpr / 3.2e20**2, "1", "order of magnitude"))
Bc = 4.41400e9
rows.append(("Crab synchrotron light to 100 MeV, B = 0.6 mG", 2 / math.sqrt(3) * (0.6e-7 / Bc) * hbarc / 1e8, "2", "Jacobson et al.; weakest B"))
rows.append(("Crab synchrotron light, B = 0.11 mG (LHAASO's)", 2 / math.sqrt(3) * (0.11e-7 / Bc) * hbarc / 1e8, "2", "LHAASO 2021 field"))
for eps, lab in ((10 * 2.348e-4, "CMB, 10 kT"), (2.7 * 2.348e-4, "CMB, mean")):
rows.append((f"the Crab's 1.12 PeV photon by inverse Compton on the {lab}", 4 * eps * hbarc / (E112 * me), "2", "if electrons made it"))
rows.append(("the 1.42 PeV photon from a pi0 (two equal photons)", math.sqrt(16 * mpi0**2 * hbarc**2 / (2 * 1.42e15) ** 4), "2", "only if a pi0 is one quantum; with two parts, none"))
rows.append(("light's band must reach 1.42 PeV", 2 * hbarc / 1.42e15, "both", ""))
rows.append(("a body's band must reach 3.2e20 eV", 2 * hbarc / 3.2e20, "2", "if one quantum; weaker by the number of parts"))
rows.append(("laboratory isotropy (Herrmann)", 3.21e-15, "both", ""))
rows.append(("direction pattern, 25 active galaxies (Kislat and Krawczynski)", math.sqrt(8e-14) * hbarc / 1e9, "both", "their j = 4 limits, about 1e-14 GeV^-2; order"))
for r in sorted(rows, key=lambda r: -r[1]):
print(f" {r[0]:72s} d < {r[1]:.2e} m reading {r[2]:5s} {r[3]}")
# derivations checked numerically
W = lambda q: 2 * np.sin(q / 2)
k = np.linspace(1e-3, 0.03, 30)
ratio = (W(k / 2) * 2 - W(k)) / (k - W(k))
check(np.abs(ratio - 0.75).max() < 1e-3, "pair making: the grain's extra energy with electrons on the lattice is 3/4 of that with ordinary electrons", f"({ratio.mean():.5f})")
p, q = 0.02, np.linspace(0.001, 0.019, 50)
check(np.abs((W(q) + W(p - q) - W(p)) / (p * q * (p - q) / 8) - 1).max() < 1e-3, "splitting costs p q (p - q) d^2/8: photons, electrons, anything sharing the law")
kk, m = 0.01, 1e-6
Y = np.exp(np.linspace(-40, 0, 4001))
need = m * m * kk / (2 * Y) + kk * Y / 8
check(abs(need.min() / (kk * m / 2) - 1) < 1e-3, "inverse Compton: the least cost over all electron energies is k m d/(2 hbar c), so 2 eps must exceed it")
print(" So in reading 2 the timing bounds are beaten by absorption (3 to 3.5 times), by inverse Compton (10^2 to 10^3) and by synchrotron light (about 3e4).")
# -------------------------------------------------------------------------------------------------------------------
head("4. The magnetic force along a smooth path, from the action (finding F5 made general)")
print(" A charge moves straight through one step, depositing slip on the edges with the cell's own linear weights (Whitney forms [S]). The end points are")
print(" held and one middle point of its path is moved by a small delta. The change of the wheels-and-bands action, with the wheels re-turned so that the")
print(" strains agree afterwards, must be q (E + v x B).delta dt for the linear interpolations of E (edges) and B (faces).")
N = 6
def whitney_edges(x0, x1):
"""Line integral of the edge weights along a straight segment inside one cell (3-point Gauss: exact for these quadratics)."""
s = np.zeros((3, N, N, N))
cell = np.floor((x0 + x1) / 2).astype(int)
for gp, gw in ((0.5 - math.sqrt(0.15), 5 / 18), (0.5, 8 / 18), (0.5 + math.sqrt(0.15), 5 / 18)):
u = x0 + gp * (x1 - x0) - cell
dl = (x1 - x0) * gw
for ax in range(3):
b_, c_ = (ax + 1) % 3, (ax + 2) % 3
for ib, ic in itertools.product((0, 1), (0, 1)):
idx = [0, 0, 0]
idx[b_], idx[c_] = ib, ic
wgt = (u[b_] if ib else 1 - u[b_]) * (u[c_] if ic else 1 - u[c_])
s[(ax, *((cell + idx) % N))] += dl[ax] * wgt
return s
def curlB(u):
bb = lambda a_, ax: a_ - np.roll(a_, 1, axis=ax)
return np.stack([bb(u[2], 1) - bb(u[1], 2), bb(u[0], 2) - bb(u[2], 0), bb(u[1], 0) - bb(u[0], 1)])
# index layout: edge (r, a) from r to r + e_a; wheel (r, a) on the face whose corner r is lowest. curl of edges onto faces uses forward differences; its transpose maps faces to edges.
def curlE2F(s):
ff = lambda a_, ax: np.roll(a_, -1, axis=ax) - a_
return np.stack([ff(s[2], 1) - ff(s[1], 2), ff(s[0], 2) - ff(s[2], 0), ff(s[1], 0) - ff(s[0], 1)])
curlF2E = curlB # bands' strain from wheels: backward differences, as in the outline's S
def whitney_faces(x, cell):
u = x - cell
out = []
for ax in range(3):
for i in (0, 1):
idx = [0, 0, 0]
idx[ax] = i
out.append(((ax, *((cell + idx) % N)), u[ax] if i else 1 - u[ax], ax))
return out
phi_t = [rng.normal(size=(3, N, N, N)) * 0.3 for _ in range(2)]
dt, s0 = 0.05, 1.0
x0, xm, x1 = np.array([2.2, 2.3, 2.4]), np.array([2.55, 2.45, 2.6]), np.array([2.8, 2.75, 2.65])
delta = 1e-5 * np.array([0.7, -0.4, 0.55])
worst = 0
for trial in range(20):
x0 = 2 + rng.uniform(0.1, 0.9, 3); xm = 2 + rng.uniform(0.1, 0.9, 3); x1 = 2 + rng.uniform(0.1, 0.9, 3); delta = 1e-6 * rng.normal(size=3)
pre = rng.normal(size=(3, N, N, N)) * 0.2 # slip already there
phi = np.array([rng.normal(size=(3, N, N, N)) * 0.1 for _ in range(4)]) # wheel angles at four instants (any history)
D1, D2 = whitney_edges(x0, xm), whitney_edges(xm, x1)
D1p, D2p = whitney_edges(x0, xm + delta), whitney_edges(xm + delta, x1)
# closed triangle: difference of the two deposits is a curl of face weights: solve for the wheels' turn
tri = (D1p + D2p) - (D1 + D2)
cell = np.array([2, 2, 2])
area = 0.5 * np.cross(xm + delta - x0, x1 - x0) - 0.5 * np.cross(xm - x0, x1 - x0) # area swept, as a vector
turn = np.zeros((3, N, N, N))
M = []
faces = [f_ for f_, _, _ in whitney_faces(xm, cell)]
for f_ in faces:
uu = np.zeros((3, N, N, N)); uu[f_] = 1.0
M.append(curlF2E(uu).ravel())
sol, res, rk, sv = np.linalg.lstsq(np.array(M).T, tri.ravel(), rcond=None)
for f_, v_ in zip(faces, sol):
turn[f_] += v_
closed = np.abs(curlF2E(turn) - tri).max()
# action: instants 0,1 | (step x0->xm between 0 and 1... ) strains at instants 1 and 2 see D1 and D1+D2; kinetic between instants
def act(ph, d1, d12):
kin = sum(0.5 * np.sum((ph[i + 1] - ph[i]) ** 2) / dt for i in range(3))
pot = dt * 0.5 * (np.sum((curlF2E(ph[1]) + pre + s0 * d1) ** 2) + np.sum((curlF2E(ph[2]) + pre + s0 * d12) ** 2) + np.sum((curlF2E(ph[3]) + pre + s0 * d12) ** 2))
return kin - pot
S0 = act(phi, D1, D1 + D2)
ph2 = phi.copy()
ph2[2] -= s0 * turn; ph2[3] -= s0 * turn
S1 = act(ph2, D1p, D1p + D2p)
# prediction: q(E + v x B).delta dt, with E the interpolated tension at the middle instant and B the wheels' momentum between instants 1 and 2
T1 = curlF2E(phi[1]) + pre + s0 * D1
Epart = -s0 * dt * np.sum(T1 * (D1p - D1)) # bands' tension pulling along the moved path (tension x deposited length)
Bpart = -s0 * np.sum((phi[2] - phi[1]) / dt * turn)
worst = max(worst, abs((S1 - S0) - (Epart + Bpart)) / (abs(Epart) + abs(Bpart)), closed)
check(worst < 2e-4, "the action's change is the electric work plus (the wheels' momentum) x (the flux swept), 20 random paths and fields", f"(worst {worst:.1e}; first order in a displacement of 1e-6)")
# and the swept flux is the face weights' integral over the triangle = (v x B).delta for a uniform B
Bz = np.zeros((3, N, N, N)); Bz[2] = 1.0
val = float(np.sum(Bz * turn)); exact = float(area[2])
check(abs(val - exact) < 1e-9 * max(1, abs(exact)) + 1e-12, "in a uniform field the swept flux is the true area swept", f"({val:.6e} against {exact:.6e})")
print(" A path moved by delta between points dt apart sweeps the area delta x v dt: the action changes by q B.(delta x v) dt = q (v x B).delta dt [S]. So the Lorentz force is")
print(" the wheels-and-bands' own, for a charge moving smoothly, with nothing added. What is still put in: the charge's own mass and tune.")
# -------------------------------------------------------------------------------------------------------------------
head("5. Packets in three dimensions, stepped in time, from a start not built from the law")
def run3d(direction, N, mcar, sig, T, dt=0.05):
if direction == "axis":
shape, nhat = (N, 2, 2), np.array([1.0, 0, 0])
elif direction == "face":
shape, nhat = (N, N, 2), np.array([1.0, 1, 0]) / math.sqrt(2)
else:
shape, nhat = (N, N, N), np.array([1.0, 1, 1]) / math.sqrt(3)
grid = np.meshgrid(*[np.arange(m_) for m_ in shape], indexing="ij")
ncomp = {"axis": 1, "face": 2, "cube": 3}[direction]
sc = sum(grid[i] for i in range(ncomp)) * 1.0
kap = 2 * math.pi * mcar / N
k_abs = kap * math.sqrt(ncomp)
pol = {"axis": np.array([0, 1.0, 0]), "face": np.array([0, 0, 1.0]), "cube": np.array([1.0, -1, 0]) / math.sqrt(2)}[direction]
mag = np.cross(nhat, pol)
def wave(off): # off = offset of the component's place, projected: sum of offsets in the running coordinates
u_ = (sc + off + N / 2) % N - N / 2
return np.exp(-0.5 * (u_ / sig) ** 2) * np.cos(kap * u_)
E = np.zeros((3, *shape)); H = np.zeros((3, *shape))
for a_ in range(3):
offE = 0.5 if a_ < ncomp else 0.0 # an edge along a sits half a cell on along a
offH = sum(0.5 for j in range(ncomp) if j != a_)
E[a_] = pol[a_] * wave(offE)
H[a_] = mag[a_] * wave(offH + 0.5 * dt * math.sqrt(ncomp) * 0) # long-wave relation H = n x E, not the lattice's own
for _ in range(int(round(T / dt))):
H -= dt * curlE2F(E)
E += dt * curlB(H)
prof = np.zeros(N)
np.add.at(prof, sc.astype(int) % N, (E**2).sum(0))
H2 = np.zeros(N)
u_ = (np.arange(N) + N / 2) % N - N / 2
vpred = math.cos(kap / 2)
centre = vpred * T * math.sqrt(ncomp) # in the running coordinate
win = np.abs(((np.arange(N) - centre + N / 2) % N) - N / 2) < 4.5 * sig
uu = (np.arange(N) - centre + N / 2) % N - N / 2
got = (prof[win] * uu[win]).sum() / prof[win].sum() + centre
# off-set of E's place: energy of transverse edges sits at offE mean
meanoff = sum(pol[a_] ** 2 * (0.5 if a_ < ncomp else 0.0) for a_ in range(3))
# expected spectrum-weighted speed
qs = kap + np.linspace(-5 / sig, 5 / sig, 2001)
wt = np.exp(-((qs - kap) * sig) ** 2)
vbar = (wt * np.cos(qs / 2)).sum() / wt.sum()
return k_abs, (got + meanoff) / math.sqrt(ncomp) / T, vbar, math.cos(kap / 2)
print(" direction kd run v/c law's mean over the packet cos(k_j d/2) 1 - v")
res = {}
for dname, N_, mc, sg, T_ in (("axis", 1024, 163, 40.0, 300.0), ("face", 512, 58, 30.0, 110.0), ("cube", 144, 13, 11.0, 24.0)):
kd_, v_, vb_, vc_ = run3d(dname, N_, mc, sg, T_)
res[dname] = (kd_, v_, vb_)
print(f" {dname:12s} {kd_:8.4f} {v_:10.6f} {vb_:10.6f} {vc_:10.6f} {1-v_:.5f}")
check(abs(v_ - vb_) < 4e-3, f"{dname}: the run's speed is the law's to 0.4% of c")
print(f" slowing over (kd)^2/8 S4: axis {(1-res['axis'][1])/(res['axis'][0]**2/8):.3f}, face {(1-res['face'][1])/(res['face'][0]**2/16):.3f}, cube {(1-res['cube'][1])/(res['cube'][0]**2/24):.3f}")
# -------------------------------------------------------------------------------------------------------------------
head("6. The lattice made quantum: how far are the bands stretched?")
g = (np.arange(80) + 0.5) / 80 * math.pi
sx = np.sin(g / 2) ** 2
zp = np.mean(2 * np.sqrt(sx[:, None, None] + sx[None, :, None] + sx[None, None, :]))
per_band = zp / 2 / 3 # half the zero-point energy is strain; three bands a cell; units hbar c/d
notch = 2 * math.pi * alpha
rms = math.sqrt(per_band / notch)
print(f" Zero-point strain energy per band {per_band:.4f} hbar c/d; a whole notch's {notch:.4f} (the outline's 2 pi alpha). So every band is stretched by {rms:.2f} notches (rms),")
print(" for ANY d: the ratio holds only alpha. So assumption 6 ('far below one notch') is a classical statement. Made quantum, a band that slipped when stretched by a notch would")
print(f" slip everywhere, always. The notch must be guarded by a barrier, not by the stretch. A pair costs e^2/(6 eps0 d) = {4*math.pi*alpha/6:.4f} hbar c/d, far below the zero-point energy a cell.")
check(abs(rms - 2.95) < 0.02, "zero-point stretch in notches")
# independent: rms from sum over modes of a 12^3 lattice
Nq = 12
kv = 2 * math.pi * np.arange(Nq) / Nq
K2 = 4 * (np.sin(kv / 2)[:, None, None] ** 2 + np.sin(kv / 2)[None, :, None] ** 2 + np.sin(kv / 2)[None, None, :] ** 2)
s2 = np.sqrt(K2).sum() * 2 * 0.5 / Nq**3 / 3 # <s^2> kappa /(hbar c/d): two polarizations, hbar omega/(2) each = kappa s^2 summed
check(abs(math.sqrt(s2 / (2 * notch)) / rms - 1) < 0.01, "the same from the modes of a 12^3 lattice", f"({math.sqrt(s2/(2*notch)):.3f})")
print(f" 'Free photons only if alpha is below about 0.08': the Wilson action's critical beta is 1.0111331(21) (hep-lat/0210010, read at source), alpha_c = 1/(4 pi beta) = {1/(4*math.pi*1.0111331):.4f}. So the remembered number is right for that action.")
print(" But it is not this model: there the light's poles move and can condense; here every cell's pole number is kept exactly (no band pulls on a gauge turn).")
# -------------------------------------------------------------------------------------------------------------------
head("7. A charge hopping from corner to corner through the free alternating spin")
print(" Phase round a face = s0 L/hbar = theta, out of one cell and into the next; 6 theta = 2 pi n (Dirac). One hop amplitude t; units t = d = 1.")
def link_phases(n, L=4):
"""Link phases with flux theta = n pi/3 out of every even cell through each of its six faces (mod 2 pi): one string of 2 pi n for each pair of cells
(2m, 2m+1) along x takes the net flux back, so that the flux has no source and no mean; then curl A = flux is solved by Fourier sums."""
th = n * math.pi / 3
F = np.zeros((3, L, L, L))
for r in itertools.product(range(L), repeat=3):
for a_ in range(3):
rm = list(r); rm[a_] -= 1
F[(a_, *r)] = th * (1 if sum(rm) % 2 == 0 else -1)
for r in itertools.product(range(L), repeat=3): # the x-face between cells 2m and 2m + 1
if r[0] % 2 == 1:
F[(0, *r)] -= 2 * math.pi * n * (1 if (r[0] - 1 + r[1] + r[2]) % 2 == 0 else -1)
# face (a, r) is the lower face of cell r along a; as faces of corners' edges: edge (r, b) to faces by forward differences on the shifted grid
div = sum(np.roll(F[a_], -1, axis=a_) - F[a_] for a_ in range(3))
kv_ = 2 * math.pi * np.arange(L) / L
Kf = np.stack(np.meshgrid(*[np.exp(1j * kv_) - 1] * 3, indexing="ij"))
Fh = np.fft.fftn(F, axes=(1, 2, 3))
K2_ = np.sum(np.abs(Kf) ** 2, 0); K2_[0, 0, 0] = 1
Kb = -np.conj(Kf) # symbol of backward differences
# A = curl_b F/K2 with backward differences, so that curl_f A = F - grad div F/K2 = F
Ah = np.stack([Kb[1] * Fh[2] - Kb[2] * Fh[1], Kb[2] * Fh[0] - Kb[0] * Fh[2], Kb[0] * Fh[1] - Kb[1] * Fh[0]]) / K2_
A_ = np.real(np.fft.ifftn(Ah, axes=(1, 2, 3)))
err = min(np.abs(curlE2F(A_) - F).max(), np.abs(curlE2F(-A_) - F).max())
if np.abs(curlE2F(-A_) - F).max() < np.abs(curlE2F(A_) - F).max():
A_ = -A_
return A_, np.abs(div).max(), np.abs(F.mean(axis=(1, 2, 3))).max(), err
def bloch(A_, kvec):
L = A_.shape[1]
id2 = lambda r: ((r[0] % L) * L + r[1] % L) * L + r[2] % L
H_ = np.zeros((L**3, L**3), complex)
for r in itertools.product(range(L), repeat=3):
for a_ in range(3):
r2 = list(r); r2[a_] += 1
ph = np.exp(1j * (A_[(a_, *r)] + kvec[a_]))
H_[id2(r), id2(r2)] += ph
H_[id2(r2), id2(r)] += np.conj(ph)
return np.linalg.eigvalsh(H_)
N_save = N
for n_ in (0, 1, 2, 3):
A_, dv, mn, er = link_phases(n_)
tops, gaps = [], []
for kx in np.linspace(0, math.pi / 4, 5):
for ky in np.linspace(0, math.pi / 4, 5):
for kz in np.linspace(0, math.pi / 4, 5):
ev_ = bloch(A_, (kx, ky, kz))
tops.append(np.abs(ev_).max()); gaps.append(np.abs(ev_).min())
if n_ == 0:
check(abs(max(tops) - 6) < 1e-9, "no spin: the plain hopping band, top 6 t")
if n_ == 3:
check(abs(max(tops) - 2 * math.sqrt(3)) < 1e-9 and min(gaps) < 1e-9, "n = 3 by the general construction: top 2 sqrt 3 t, and it touches zero", f"({max(tops):.6f})")
print(f" n = {n_}: flux {60*n_} degrees a face; construction error {er:.1e} (source {dv:.1e}, mean {mn:.1e}); band from -{max(tops):.4f} to +{max(tops):.4f} t; least |E| on the grid {min(gaps):.4f} t")
# half flux: use the known signs (Kawamoto-Smit eta); the general case n = 1, 2 is left open here
L = 8
idm = lambda r: ((r[0] % L) * L + r[1] % L) * L + r[2] % L
Hm = np.zeros((L**3, L**3))
for r in itertools.product(range(L), repeat=3):
eta = (1, (-1) ** r[0], (-1) ** (r[0] + r[1]))
for a_ in range(3):
r2 = list(r); r2[a_] += 1
Hm[idm(r), idm(r2)] += eta[a_]; Hm[idm(r2), idm(r)] += eta[a_]
# every face's product of signs is -1: half a flux quantum
ok = True
for r in itertools.product(range(L), repeat=3):
et = lambda r_, a_: (1, (-1) ** (r_[0] % L), (-1) ** ((r_[0] + r_[1]) % 2))[a_]
for a_, b_ in ((0, 1), (1, 2), (0, 2)):
ra, rb = list(r), list(r)
ra[a_] += 1; rb[b_] += 1
ok &= et(r, a_) * et(ra, b_) * et(rb, a_) * et(r, b_) == -1
check(ok, "signs (1, (-1)^x, (-1)^(x+y)) put half a flux quantum through every face: the free spin with s0 L = pi hbar (n = 3)")
ev = np.sort(np.linalg.eigvalsh(Hm))
kv = 2 * math.pi * np.arange(L) / L
lawv = np.sqrt(4 * (np.cos(kv)[:, None, None] ** 2 + np.cos(kv)[None, :, None] ** 2 + np.cos(kv)[None, None, :] ** 2)).ravel()
check(np.abs(np.sort(np.abs(ev)) - np.sort(lawv)).max() < 1e-9, "its energies are exactly E^2 = 4 t^2 sum cos^2(p_j): a law with a limiting speed 2 t d/hbar near E = 0 (shift p by pi/2: sum sin^2)")
mst = 0.3
Hst = Hm + mst * np.diag([(-1.0) ** sum(r) for r in itertools.product(range(L), repeat=3)])
check(np.abs(np.sort(np.abs(np.linalg.eigvalsh(Hst))) - np.sort(np.sqrt(mst**2 + lawv**2))).max() < 1e-9, "with an energy m alternating from corner to corner: E^2 = m^2 + 4 t^2 sum sin^2: reading 2's law on a cell of 2d")
print(" So at one value of the free spin (half a flux quantum a face, s0 L = pi hbar; L = hbar/2 if a notch is one whole turn) a hopping charge gets a limiting speed and a rest energy:")
print(" the structure finding F3 says the outline lacks. [S: Susskind 1977, staggered fermions; from memory. D: the match to Home 2.]")
print(" What it does not give: the speed is 2 t d/hbar, so t must be hbar c/(2d) to 1 part in 10^19 (put in); the energies come in pairs, plus and minus, so a filled sea is needed; two kinds of particle at")
print(" the corners of the zone; and reading 2's bounds apply with 2d in place of d. A pointer, not a result. For n = 1 and 2 see the lines above.")
print(f" If L = hbar/2 AND the rim moves at c/2 (one notch a turn): r/d = alpha/pi = {alpha/math.pi:.5f}.")
# -------------------------------------------------------------------------------------------------------------------
head("8. The outline's by-hand list, done again")
T0_, T2_ = 3.2368e17, 6.6541e17
items = [("19 TeV threshold at d = 2.444e-27 m", math.sqrt(9 * hbarc * me / 2.444e-27) / 1e12, 19, 0.02), ("top of a body's energy: d for 3.2e20 eV, axis (1.2e-27)", 2 * hbarc / 3.2e20, 1.23e-27, 0.01),
("the same, corner (2.1e-27)", 2 * math.sqrt(3) * hbarc / 3.2e20, 2.14e-27, 0.01), ("expanding cells: T0/T2", T0_ / T2_, 0.486, 0.002), ("their bound weaker by", math.sqrt(T2_ / T0_), 1.43, 0.005),
("A below hbar^2/(2 E_n), (a), kg m^2", hbar**2 / (2 * 3.018e19 * e), 1.15e-69, 0.01), ("cell-sized spinners: 3/8 + 1/8", 1.5 * 0.25 + 0.125, 0.5, 1e-12), ("band inertia equal to the grain at m_b/I", 0.125 / 1.5, 1 / 12, 1e-12),
("Lorentz gamma of a 1.1 PeV electron", 1.1e15 / me, 2.15e9, 0.01), ("cells in an atom at d = 2.444e-27", 1e-10 / 2.444e-27, 4.1e16, 0.01)]
for lab, v_, want, tol in items:
check(abs(v_ / want - 1) <= tol, lab, f"({v_:.4g})")
lam = rng.uniform(0.1, 11, 50); mb = rng.uniform(0.01, 2, 50)
check(np.abs(lam / (1 + mb * lam) - 1 / (1 / lam + mb)).max() < 1e-12, "bands with inertia: omega^2 = lam/(1 + m_b lam), from (1 + m_b S^T S) phi'' = -S^T S phi")
x_ = np.linspace(0.1, 3.0, 40)
axis_v = np.arcsin(np.sin(x_ / 2) / math.sqrt(3)) * 2 * math.sqrt(3)
check(np.abs(np.arcsin(np.sin(x_ / (2 * math.sqrt(3)))) * 2 * math.sqrt(3) - x_).max() < 1e-12 and (axis_v / x_).min() < 0.9, "at c dt = d/sqrt 3 the stepped lattice is exact along a cube diagonal and not along an axis")
kg_, L_ = 1.42e15 / hbarc, 1.4e3 * 3.0857e16
for lab, d in (("outline, (e) diagonal", 4.232e-27), ("reading 2, Crab, any orientation", 5.4e-32), ("reading 1, iron, any orientation", 8.8e-35)):
print(f" evenness needed ({lab}, d = {d:.1e} m): a fraction {math.sqrt(6*math.pi/(kg_**4*d**3*L_)):.1e}")
print(" So the corrected bounds EASE the evenness demand, from parts in 10^14 to parts in 10^6 (reading 2) or parts in 100 (reading 1): in the model's favour. Uneven wheels scatter as uneven bands do.")
# -------------------------------------------------------------------------------------------------------------------
head("9. How much rests on the layout (assumption 8)")
print(" Bands that also join next-nearest wheels can cancel the (kd)^2 grain: omega^2 = 4 sum s^2 (1 + s^2/3), s = sin(k_j d/2) [S, a standard improvement]. Then n_g - 1 = (kd)^4/36 on an axis.")
x_ = 0.05
wv = lambda k_: 2 * math.sin(k_ / 2) * math.sqrt(1 + math.sin(k_ / 2) ** 2 / 3)
vg = (wv(x_ + 1e-4) - wv(x_ - 1e-4)) / 2e-4
check(abs((1 - vg) / (x_**4 / 36) - 1) < 0.01, "the improved lattice's packet slowing is (kd)^4/36", f"({(1-vg)/(x_**4/36):.4f})")
def wc4(E, B, d):
gam = 1 / math.sqrt((me / E) ** 2 + (E * d / hbarc) ** 4 / 18)
return 1.5 * (B / Bc) * me * me * gam**3 / E
f4 = lambda ld: math.log(max(wc4(10**z, 0.6e-7, 10**ld) for z in np.linspace(13, 18, 2001)) / 1e8)
d4 = 10 ** optimize.brentq(f4, -34, -20)
print(f" Reading 2, Crab synchrotron light, improved layout: d below {d4:.1e} m (nearest-neighbour layout: 3.1e-32).")
print(" So the bounds of this review are bounds on the outline's layout, not on every lattice. The improved layout has no physical motive here, and its delay is smaller still.")
print(f"\nChecks: {npass} of {ntot} pass.")