Does light charge the quons? › Files cited on the page › check_trials25-27_fable/
a5_gauge.py
"""A5 (blind): every wheel turning at one rate in the pattern that stretches no band, alternating cell by cell.
Can light see it? Can light change it? Thirty-fifth reviewer, 25 November 2026.
By hand [D]. A cell's gauge turn turns its six wheels by one angle seen from inside. Each wheel sits between two cells; with
cells turned alternately (+theta, -theta on a checkerboard) every wheel turns by 2 theta, its sense alternating with (-1)^(x+y+z):
H[a](r) = h0 (-1)^(x+y+z) for all three a: the k = (pi, pi, pi) mode.
curl_f2e of it is zero on every band (the four wheels round an edge come in two opposite pairs), so it stretches nothing: dE/dt = 0.
Light cannot see it: the equations are linear, the wave's band stretches depend on curl_f2e(H_light + H_g) = curl_f2e(H_light).
Light cannot change it: dH/dt = -curl_e2f(E) lies in the range of S^T, orthogonal to the null space of S that holds H_g, so the
projection <H, H_g> is conserved at every step (also with held charges, whose force is wp2 E and whose current enters only dE/dt).
Its energy, (1/2) sum H_g^2 = (3/2) N^3 h0^2, is locked. A v x B force on the charges is not in the engine; even so the four faces
round a band carry H_g in two opposite pairs, so the field at a band averages to zero.
"""
import subprocess, sys, time
import numpy as np
sys.path.insert(0, "/home/doug/aetherscience.org/aspden-investigation/sim/m8_engine")
import engine as eng
print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True,
cwd="/home/doug/aetherscience.org/aspden-investigation").stdout.strip())
print("clock:", time.strftime("%Y-%m-%d %H:%M:%S %Z"))
N, dt = 16, 0.1
shape = (N, N, N)
x, y, z = np.meshgrid(*[np.arange(N) for _ in range(3)], indexing="ij")
sigma = (-1.0) ** (x + y + z)
h0 = 1.0
Hg = np.stack([h0 * sigma] * 3)
print(f"max |curl_f2e(H_g)| = {np.abs(eng.curl_f2e(Hg)).max():.3e} (no band stretched); energy of the pattern = {0.5 * np.sum(Hg**2):.1f} = (3/2) N^3 h0^2 = {1.5 * N**3 * h0**2:.1f}")
k = (2 * np.pi / N, 0, 0)
rng = np.random.default_rng(1)
occ = (rng.random((3, *shape)) < 0.3).astype(float)
for label, kw in (("empty lattice", {}), ("30% of bands hold a charge, wb2 = 0.3, wp2 = 0.4", dict(wb2=0.3, wp2=0.4, occ=occ))):
La = eng.Lattice(shape, dt, **kw); Lb = eng.Lattice(shape, dt, **kw)
La.E = 1e-3 * eng.plane_wave_E(shape, k, (0, 0, 1)); Lb.E = La.E.copy()
Lb.H = Hg.copy()
proj0 = np.sum(Lb.H * Hg) / np.sum(Hg * Hg)
dE, dH, dproj = 0.0, 0.0, 0.0
xa, xb = [], []
for _ in range(600):
La.step(); Lb.step()
dE = max(dE, np.abs(La.E - Lb.E).max())
dH = max(dH, np.abs(La.H - (Lb.H - Hg)).max())
dproj = max(dproj, abs(np.sum(Lb.H * Hg) / np.sum(Hg * Hg) - proj0))
xa.append(La.E[2, 0, 5, 7]); xb.append(Lb.E[2, 0, 5, 7])
wa, _ = eng.prony_frequencies(np.array(xa), dt, 1); wb, _ = eng.prony_frequencies(np.array(xb), dt, 1)
print(f"\n{label}: wave amplitude 1e-3, background h0 = {h0} (a thousand times the wave), 600 steps")
print(f" max |E with - E without| = {dE:.2e}; max |(H with - H_g) - H without| = {dH:.2e} (both at rounding: light does not see it)")
print(f" projection of H on the pattern: {proj0:.6f} at the start, largest change {dproj:.2e} (light does not change it)")
print(f" wave frequency with/without: {wb[0]:.10f} / {wa[0]:.10f}")
print("clock:", time.strftime("%Y-%m-%d %H:%M:%S %Z"))