Does light charge the quons? › Files cited on the page › check_trial23_fable/
blind_trial23.py
"""Blind part of task T1 (trial 23), 29th reviewer, Fable at maximum effort, 22 November 2026.
Written from the review brief's models M2 and M4 and the lock's sections 1 to 4 only
(papers/Lock_thin_limit_two_level_2026-11-22.md, lines 1 to 77). Not opened when this was written:
the lock's sections 5 to 7, the trial's script, its output, the two post hoc checks, the results paper,
section 12 of the charging-quons page, and review_2026-11-22/2_CONCLUSIONS_AND_KNOWN_ERRORS.md.
Abdo et al. 2009 Table 2 was read at source (sources/grb090510.txt, lines 445 to 468).
Nothing is imported from the trial's scripts. n - 1, n^2 - 1 and 1 - 1/n^2 are always formed directly,
never as a difference of numbers near 1.
Run: ~/aspden-review-venv/bin/python3 blind_trial23.py > blind_trial23_out.txt 2> blind_trial23_err.txt
"""
import math
import subprocess
import numpy as np
from scipy import constants as C
from scipy.integrate import quad
from scipy.optimize import brentq
c = C.c
e = C.e
eps0 = C.epsilon_0
hbar = C.hbar
kB = C.k
alpha_fs = C.fine_structure
a0 = C.physical_constants["Bohr radius"][0]
me = C.m_e
G = C.G
eV = C.eV
hbarc_eVm = hbar * c / eV # eV m
ME_eV = me * c**2 / eV # electron rest energy, eV
MP_eV = C.m_p * c**2 / eV
MMU_eV = C.physical_constants["muon mass energy equivalent in MeV"][0] * 1e6
pc = C.parsec
AU = C.au
lP = math.sqrt(hbar * G / c**3)
mP = math.sqrt(hbar * c / G)
rhoP = c**5 / (hbar * G**2) # Planck mass density, kg/m^3
H0 = 67.4e3 / (1e6 * pc) # 1/s
Om = 0.3153
rho_crit = 3 * H0**2 / (8 * math.pi * G) # kg/m^3
u_crit = rho_crit * c**2 # J/m^3
n_nuc = 0.16e45 # nucleons per m^3 [S, from memory, as the lock]
def head(s):
print()
print("=" * 100)
print(s)
print("=" * 100)
try:
commit = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip()
except Exception as ex: # pragma: no cover
commit = "unknown (%s)" % ex
print("blind_trial23.py (29th reviewer, blind part of T1)")
print("git rev-parse HEAD:", commit)
print("scipy constants: c=%r e=%r eps0=%r hbar=%r alpha=%r" % (c, e, eps0, hbar, alpha_fs))
print("hbar c = %.6e eV m ; m_e c^2 = %.6e eV ; l_Planck = %.4e m ; m_Planck = %.4e kg ; rho_Planck = %.4e kg/m^3"
% (hbarc_eVm, ME_eV, lP, mP, rhoP))
print("H0 = %.4e 1/s ; critical density = %.4e kg/m^3 = %.4e J/m^3" % (H0, rho_crit, u_crit))
# ----------------------------------------------------------------------------------------------------
head("PART A. The molecular model at very small density")
# ----------------------------------------------------------------------------------------------------
lam = 589.3e-9
k_opt = 2 * math.pi / lam
sig = 1.0 / (lam * 1e6) # 1/um
# Ciddor 1996, standard dry air 15 C, 101325 Pa, 450 ppm CO2 [I; constants from memory]
nm1_std_ciddor = (5792105.0 / (238.0185 - sig**2) + 167917.0 / (57.362 - sig**2)) * 1e-8
# Edlen 1966 for comparison [I; constants from memory]
nm1_std_edlen = (8342.13 + 2406030.0 / (130.0 - sig**2) + 15997.0 / (38.9 - sig**2)) * 1e-8
N_std = 101325.0 / (kB * 288.15)
print("standard air (15 C, 101325 Pa) at 589.3 nm: n-1 = %.6e (Ciddor, from memory) %.6e (Edlen, from memory)"
% (nm1_std_ciddor, nm1_std_edlen))
print("N_std = %.5e /m^3 ; n-1 per molecule = %.5e m^3 ; polarizability volume alpha/(4 pi eps0) = %.4e m^3"
% (N_std, nm1_std_ciddor / N_std, nm1_std_ciddor / N_std / (2 * math.pi)))
alpha_air = 2 * eps0 * nm1_std_ciddor / N_std # SI polarizability per 'air molecule', C m^2/V
alpha_H = 4.5 * a0**3 * 4 * math.pi * eps0 # hydrogen atom, static [S]
def sigma_rayleigh(alpha_pol, k):
"""Rayleigh cross-section of one point dipole (no King factor)."""
return k**4 * alpha_pol**2 / (6 * math.pi * eps0**2)
gases = []
for P in (101325.0, 1.0, 1e-4, 1e-7, 1e-10):
N = P / (kB * 293.15)
gases.append(("air %.0e Pa, 20 C" % P if P != 101325.0 else "air 1 atm, 20 C", N, alpha_air))
for N in (1e6, 1e5, 0.25):
gases.append(("H atoms %.3g /m^3" % N, N, alpha_H))
paths = [("1 m", 1.0), ("4 km", 4e3), ("1 AU", AU), ("1 pc", pc), ("1 kpc", 1e3 * pc), ("1 Gpc", 1e9 * pc)]
print()
print("Q1. n - 1 = N alpha/(2 eps0) [thin]; molecules per cubic wavelength; Rayleigh mean free path")
print("%-22s %12s %12s %12s %14s" % ("gas", "N (/m^3)", "n-1", "N lam^3", "1/(N sig_R) (m)"))
for name, N, al in gases:
d = N * al / (2 * eps0)
print("%-22s %12.4e %12.4e %12.4e %14.4e" % (name, N, d, N * lam**3, 1 / (N * sigma_rayleigh(al, k_opt))))
print()
print("Q1 (continued). For each gas and path L:")
print(" N_F = N pi lam L^2/6 the lock's count in the first Fresnel spheroid")
print(" phase = k (n-1) L mean phase lag (exact in the mean, single scattering)")
print(" s_beam = sqrt(pi/(2 N lam L^2)) relative rms scatter of the phase, matched confocal beam [D, mine]")
print(" s_point = sqrt(pi^3/(2 N lam^2 L)) relative rms scatter, instantaneous field, point source to point detector [D, mine]")
print(" tau_R = N sigma_R L Rayleigh optical depth (the coherent beam is gone when tau_R >> 1)")
print("%-22s %-6s %11s %11s %11s %11s %11s" % ("gas", "L", "N_F", "phase(rad)", "s_beam", "s_point", "tau_R"))
low_NF, low_pt = [], []
for name, N, al in gases:
d = N * al / (2 * eps0)
for pname, L in paths:
NF = N * math.pi * lam * L**2 / 6
phase = k_opt * d * L
s_beam = math.sqrt(math.pi / (2 * N * lam * L**2))
s_point = math.sqrt(math.pi**3 / (2 * N * lam**2 * L))
tau = N * sigma_rayleigh(al, k_opt) * L
print("%-22s %-6s %11.3e %11.3e %11.3e %11.3e %11.3e" % (name, pname, NF, phase, s_beam, s_point, tau))
if NF < 100:
low_NF.append((name, pname, NF))
if s_point > 0.1:
low_pt.append((name, pname, s_point))
print()
print("cases with N_F < 100:", "; ".join("%s over %s (N_F = %.3g)" % t for t in low_NF) or "none")
print("cases where the instantaneous point-to-point scatter exceeds 10%% of the mean phase: %d of %d"
% (len(low_pt), len(gases) * len(paths)))
for t in low_pt:
print(" %s over %s: s_point = %.3g" % t)
# check of the integral used for s_point: int d^3r / (r1^2 r2^2) = pi^3 / L (two points a distance L apart)
def _inner(z, L=1.0):
# integral over rho of 2 pi rho / ((z^2+rho^2)((L-z)^2+rho^2))
A, B = z * z, (L - z) ** 2
if abs(A - B) < 1e-14:
return math.pi / A
return math.pi * math.log(B / A) / (B - A)
val = quad(_inner, -np.inf, 0)[0] + quad(_inner, 0, 0.5)[0] + quad(_inner, 0.5, 1)[0] + quad(_inner, 1, np.inf)[0]
print("check: int d^3r/(r1^2 r2^2) for L = 1: numeric %.8f, pi^3 = %.8f -> %s"
% (val, math.pi**3, "CHECK pass" if abs(val / math.pi**3 - 1) < 1e-6 else "CHECK FAIL"))
# interstellar plasma at 1.4 GHz
ne_ism = 0.03e6 # /m^3, mean Galactic electron density [I, from memory]
lam_r = c / 1.4e9
wp2 = ne_ism * e**2 / (eps0 * me)
w_r = 2 * math.pi * 1.4e9
print()
print("interstellar plasma, n_e = %.2e /m^3 [from memory], 1.4 GHz (lam = %.4f m): n - 1 = -wp^2/(2 w^2) = %.4e"
% (ne_ism, lam_r, -wp2 / (2 * w_r**2)))
for pname, L in paths[2:]:
print(" L = %-6s N_F = %.3e phase = %.3e rad" % (pname, ne_ism * math.pi * lam_r * L**2 / 6,
2 * math.pi / lam_r * (-wp2 / (2 * w_r**2)) * L))
w_o = 2 * math.pi * c / lam
x_crit = (alpha_H / (2 * eps0)) * 2 * w_o**2 / (e**2 / (eps0 * me))
print("at 589.3 nm one free electron gives n-1 = %.4e m^3 x n_e ; one H atom gives +%.4e m^3 x n_H ;"
% (-(e**2 / (eps0 * me)) / (2 * w_o**2), alpha_H / (2 * eps0)))
print(" so hydrogen ionized beyond %.2f%% has n < 1 at 589.3 nm (no Cherenkov light at all there)" % (100 * x_crit))
print()
print("Q2. Cherenkov light at beta = 1 in the band 300 to 600 nm (index at 589.3 nm, dispersion in the band ignored)")
lam1, lam2 = 300e-9, 600e-9
print(" L_f = lam/(n-1); width = lam sqrt(2/(n-1)) (how far the cone moves sideways in one L_f);")
print(" N_form = N x cone volume 2 pi lam^3/(3 (n-1)^2) (molecules that build one formation length; grows as 1/N)")
print("%-22s %11s %11s %11s %11s %11s %11s %11s %11s" % ("gas", "L_f (m)", "width (m)", "gamma_th", "E_th e (eV)",
"E_th p (eV)", "photons/m", "per L_f", "N_form"))
per_Lf = []
for name, N, al in gases:
d = N * al / (2 * eps0)
Lf = lam / d
width = lam * math.sqrt(2 / d)
n2m1 = d * (2 + d)
gth = (1 + d) / math.sqrt(n2m1)
one_minus_inv_n2 = n2m1 / (1 + d) ** 2
per_m = 2 * math.pi * alpha_fs * (1 / lam1 - 1 / lam2) * one_minus_inv_n2
per_Lf.append(per_m * Lf)
print("%-22s %11.4e %11.4e %11.4e %11.4e %11.4e %11.4e %11.6f %11.3e"
% (name, Lf, width, gth, gth * ME_eV, gth * MP_eV, per_m, per_m * Lf, N * 2 * math.pi * lam**3 / (3 * d**2)))
thin_value = 4 * math.pi * alpha_fs * lam * (1 / lam1 - 1 / lam2)
print("thin-gas value 4 pi alpha lam (1/lam1 - 1/lam2) = %.6f ; spread of the gas rows about it: %.2e (relative)"
% (thin_value, max(abs(x / thin_value - 1) for x in per_Lf[1:])))
print(" (the 1 atm row differs by about 3(n-1)/2 = %.1e, the thin approximation's own error)" % (1.5 * gases[0][1] * alpha_air / (2 * eps0)))
# incoherent emission by single molecules, relative to the Cherenkov yield (order of magnitude)
ratio_incoh = k_opt**3 * (alpha_air / eps0) / (3 * math.pi**2)
print("incoherent light from single molecules (the charge's own field scattered by each), relative to Cherenkov's:")
print(" about k^3 (alpha/eps0) ln(..)/(3 pi^2) = %.2e x ln(b_max/b_min), independent of density [D, mine; order of magnitude]"
% ratio_incoh)
# ----------------------------------------------------------------------------------------------------
head("PART B. The two-level relay n^2 = f + h1/(1-(E/E1)^2) + h2/(1-(E/E2)^2), f + h1 + h2 = 1")
# ----------------------------------------------------------------------------------------------------
E1 = 511e3 # eV [A]
def Hz(z):
return H0 * math.sqrt(Om * (1 + z) ** 3 + 1 - Om)
def D0(z): # int dz/H
return quad(lambda t: 1 / Hz(t), 0, z)[0]
def K2(z): # int (1+z)^2 dz/H
return quad(lambda t: (1 + t) ** 2 / Hz(t), 0, z)[0]
for z in (0.903, 0.900):
print("z = %.3f: int dz/H = %.5e s ; int (1+z)^2 dz/H = %.5e s ; lookback = %.5e s"
% (z, D0(z), K2(z), quad(lambda t: 1 / ((1 + t) * Hz(t)), 0, z)[0]))
zG = 0.903
def G1(x):
"""(n_g - 1)/(h/2) for one level of small share h, x = E/E_hold; valid away from x = 1 by more than h."""
return x * x * (3 - x * x) / (1 - x * x) ** 2
def dt_per_h1(Ehi, Elo, z=zG):
f = lambda t: 0.5 * (G1(Ehi * (1 + t) / E1) - G1(Elo * (1 + t) / E1)) / Hz(t)
return quad(f, 0, z)[0]
print()
print("Q4. Level 1 (Aspden's lattice, E1 = 511 keV). Above E1 its share drops out: n_g -> 1 - h1/2, an ADVANCE of every")
print(" photon far above 511 keV, the same at every energy. Below E1 it delays: n_g - 1 = (h1/2) x^2 (3 - x^2)/(1 - x^2)^2.")
for x in (0.1 / 0.511, 0.1 * 1.903 / 0.511):
print(" at x = %.4f: (n_g - 1)/(h1/2) = %.4f" % (x, G1(x)))
print(" delay per unit share, GRB 090510 (z = %.3f), 0.1 MeV reference:" % zG)
rows = [("(e) 31 GeV, |dt| < 10 ms, either sign", 31e9, 0.1e6, 0.010),
("(e) 28.0 GeV (Abdo's own energy) ", 28e9, 0.1e6, 0.010),
("(f) 0.75 GeV, |dt| < 19 ms, s_n = -1 ", 0.75e9, 0.1e6, 0.019),
("(f) 0.694 GeV (Abdo's own energy) ", 0.694e9, 0.1e6, 0.019),
("(a) 28 GeV, dt < 859 ms, s_n = +1 only", 28e9, 0.1e6, 0.859)]
h1max = {}
for lab, Ehi, Elo, lim in rows:
s = dt_per_h1(Ehi, Elo)
h1max[lab[:3]] = lim / abs(s)
print(" %s dt/h1 = %+.5e s h1 < %.4e" % (lab, s, lim / abs(s)))
print(" (a) is valid for a positive delay only (Abdo's Table 2, column 'valid for s_n'); level 1 gives an advance,")
print(" so (a) does not bound h1. (e) and (f) do. The (a) row is printed only for comparison.")
h1e = 0.010 / abs(dt_per_h1(31e9, 0.1e6))
h1f = 0.019 / abs(dt_per_h1(0.75e9, 0.1e6))
for Ep in (511e3 / math.sqrt(2), 511e3):
hfull = (Ep / E1) ** 2
print(" full-charge share (E_p/E1)^2 = %.4f (E_p = %.1f keV): kappa < %.4e by (e), %.4e by (f); trial 11's is 1.5e-16"
% (hfull, Ep / 1e3, math.sqrt(h1e / hfull), math.sqrt(h1f / hfull)))
print(" reflected band of level 1: n^2 < 0 for E1 < E < E1/sqrt(1 - h1): width = E1 h1/2 = %.3e eV at h1 = %.3e"
% (E1 * h1e / 2, h1e))
print(" at full share h1 = 0.5 to 1 the band would reach E1/sqrt(1-h1) = %.0f keV (h1 = 0.5) and all higher energies (h1 = 1)"
% (E1 / math.sqrt(0.5) / 1e3))
print()
print("Q5. Level 2. Below its hold n^2 - 1 = h2 x^2/(1 - x^2), x = E/E2; n_g - 1 = (3/2) h2 x^2 to leading order.")
def ng_minus_1_level2(x, h2):
n2m1 = h2 * x * x / (1 - x * x)
n = math.sqrt(1 + n2m1)
return n2m1 / (n + 1) + h2 * x * x / ((1 - x * x) ** 2 * n)
def E2_min(Ehi, lim, h2, z=zG):
lead = math.sqrt(1.5 * h2 * Ehi**2 * K2(z) / lim)
f = lambda E2: quad(lambda t: ng_minus_1_level2(Ehi * (1 + t) / E2, h2) / Hz(t), 0, z)[0] - lim
exact = brentq(f, lead * 0.5, lead * 2)
return lead, exact
E2_bounds = {}
for flab, f in (("f = 0.25 ", 0.25), ("f = 0.085", 0.085)):
h2 = 1 - f
for lab, Ehi, lim in (("(a) 28 GeV, 859 ms", 28e9, 0.859), ("(e) 31 GeV, 10 ms ", 31e9, 0.010),
("(e) 28 GeV, 10 ms ", 28e9, 0.010)):
lead, exact = E2_min(Ehi, lim, h2)
E2_bounds[(f, lab[:3] + lab[4:6])] = exact
print(" %s %s : E2 > %.4e eV (leading order), %.4e eV (exact group index)" % (flab, lab, lead, exact))
print()
print(" vacuum Cherenkov under reading R-iii (matter's limit speed = light's low-energy speed, E^2 = p^2 + M^2):")
print(" e -> e + photon(eps) allowed iff n(eps) - 1 > M^2/(2 E_e (E_e - eps)); with n - 1 = (h2/2)(eps/E2)^2 the best")
print(" photon is eps = 2 E_e/3, so electrons of energy E_e survive iff E2 > sqrt(4/27) sqrt(h2) E_e^2/M [D, re-derived]")
for flab, f in (("f = 0.25 ", 0.25), ("f = 0.085", 0.085)):
h2 = 1 - f
for lab, Ee in (("40 TeV electrons (H.E.S.S.)", 40e12), ("1.12 PeV electrons (inferred, Crab)", 1.12e15),
("1.1 PeV electrons", 1.1e15)):
E2c = math.sqrt(4 / 27) * math.sqrt(h2) * Ee**2 / ME_eV
# numeric check: largest E2 for which some eps in (0, Ee) satisfies the threshold
best = max(((h2 * (u * Ee) ** 2 * Ee * (Ee - u * Ee)) / ME_eV**2) ** 0.5 for u in np.linspace(1e-4, 1 - 1e-4, 200001))
print(" %s %-36s E2 > %.4e eV (numeric maximum over eps: %.4e)" % (flab, lab, E2c, best))
print()
print("Q5 (continued). What the share h2 = N q^2/(eps0 m w2^2) demands, with N = a^-3:")
print(" m = q^2/(eps0 h2 w2^2 a^3). With xi = E2 a/(hbar c) (the spacing in units of the hold's reduced wavelength):")
print(" m c^2/E2 = 4 pi alpha_q/(h2 xi^3), (x_zp/a)^2 = h2 xi/(8 pi alpha_q), alpha_q = (q/e)^2 alpha")
print(" rest-energy density = 4 pi alpha_q E2^4/(h2 xi^6 (hbar c)^3); zero-point energy density = (3/2) E2^4/(xi^3 (hbar c)^3)")
def level2(E2, a, h2=0.75, q_over_e=1.0):
aq = alpha_fs * q_over_e**2
xi = E2 * a / hbarc_eVm
N = a**-3
mc2 = E2 * 4 * math.pi * aq / (h2 * xi**3) # eV
m = mc2 * eV / c**2 # kg
xzp_over_a = math.sqrt(h2 * xi / (8 * math.pi * aq))
rho_m = N * m
u_zp = 1.5 * E2 * eV * N # J/m^3
return dict(xi=xi, N=N, mc2=mc2, m=m, xzp=xzp_over_a, rho_m=rho_m, u_zp=u_zp,
rs_over_a=2 * G * m / c**2 / a)
def xi_for_ratio(eta, h2=0.75, q_over_e=1.0):
"""xi at which m c^2 = eta * E2."""
return (4 * math.pi * alpha_fs * q_over_e**2 / (h2 * eta)) ** (1 / 3)
# ordinary matter as a check of the formulas: glass-like, hold 12 eV, spacing 0.3 nm, share n^2 - 1 = 1.1
chk = level2(12.0, 0.3e-9, h2=1.1)
print(" check on ordinary matter (hold 12 eV, spacing 0.3 nm, share 1.1): xi = %.4f, m c^2 = %.3e eV (electron: %.3e), x_zp/a = %.3f"
% (chk["xi"], chk["mc2"], ME_eV, chk["xzp"]))
holds = [("limit (a), f=0.25", E2_bounds[(0.25, "(a)28")]), ("limit (e), f=0.25", E2_bounds[(0.25, "(e)31")]),
("R-iii 40 TeV, f=0.085", math.sqrt(4 / 27) * math.sqrt(0.915) * (40e12) ** 2 / ME_eV),
("R-iii 1.12 PeV, f=0.085", math.sqrt(4 / 27) * math.sqrt(0.915) * (1.12e15) ** 2 / ME_eV)]
print()
print(" where the oscillators stop being relativistic (charge e, h2 = 0.75): m c^2 = eta x hold at xi = (4 pi alpha/(h2 eta))^(1/3)")
print(" eta = 1: xi = %.4f ; eta = 10: xi = %.4f ; eta = 100: xi = %.4f ; hydrogen-like (eta = sqrt(4.5)/alpha^2 = %.3e): xi = %.5f"
% (xi_for_ratio(1), xi_for_ratio(10), xi_for_ratio(100), math.sqrt(4.5) / alpha_fs**2,
xi_for_ratio(math.sqrt(4.5) / alpha_fs**2)))
print(" %-24s %12s %14s %14s %14s %14s" % ("hold", "E2 (eV)", "a(eta=1) m", "a(eta=10) m", "a(eta=100) m", "a(H-like) m"))
for lab, E2 in holds:
print(" %-24s %12.4e %14.4e %14.4e %14.4e %14.4e"
% (lab, E2, *(xi_for_ratio(eta) * hbarc_eVm / E2 for eta in (1, 10, 100, math.sqrt(4.5) / alpha_fs**2))))
print()
print(" SWEEP OF THE SPACING (charge e, h2 = 0.75). a_max are upper bounds; every smaller spacing is allowed by them.")
for lab, E2 in holds:
print()
print(" hold %s: E2 = %.4e eV, reduced wavelength hbar c/E2 = %.4e m" % (lab, E2, hbarc_eVm / E2))
print(" %10s %9s %10s %10s %10s %10s %9s %11s %11s %11s %11s %10s"
% ("a (m)", "xi", "N (/m^3)", "N/nuclear", "N l_P^3", "m (kg)", "mc2/E2", "x_zp/a", "rho/rho_P", "rho/crit", "u_zp/crit", "r_s/a"))
a_list = [2.3e-26, 3.0e-27, 1e-27, 3e-28, 1.7e-28, 1e-28, 3e-29, 1e-29, 1e-30, 1e-31, 1e-32, 1e-33, 1e-34, lP]
for a in a_list:
r = level2(E2, a)
print(" %10.3e %9.3e %10.3e %10.3e %10.3e %10.3e %9.3e %11.3e %11.3e %11.3e %11.3e %10.3e"
% (a, r["xi"], r["N"], r["N"] / n_nuc, r["N"] * lP**3, r["m"], r["mc2"] / E2, r["xzp"],
r["rho_m"] / rhoP, r["rho_m"] / rho_crit, r["u_zp"] / u_crit, r["rs_over_a"]))
print()
print(" SWEEP OF THE CHARGE at the hold of limit (e), f = 0.25 (m scales as q^2; alpha_q = (q/e)^2 alpha):")
E2e = E2_bounds[(0.25, "(e)31")]
print(" %8s %10s | %-37s | %-37s | %-37s" % ("q/e", "alpha_q", "a = 3.0e-27 m: m (kg), mc2/E2, x_zp/a",
"a = 1.7e-28 m: m (kg), mc2/E2, x_zp/a", "a = 1.0e-29 m: m (kg), mc2/E2, x_zp/a"))
for qe in (1e-3, 1e-2, 0.1, 1.0, 3.0, 1 / math.sqrt(alpha_fs), 30.0):
cells = []
for a in (3.0e-27, 1.7e-28, 1.0e-29):
r = level2(E2e, a, q_over_e=qe)
cells.append("%10.3e %10.3e %10.3e " % (r["m"], r["mc2"] / E2e, r["xzp"]))
print(" %8.3g %10.3e | %s | %s | %s" % (qe, alpha_fs * qe**2, cells[0], cells[1], cells[2]))
print(" charge that makes m c^2 = 10 x hold at a given spacing: (q/e)^2 = 10 h2 xi^3/(4 pi alpha)")
for a in (2.3e-26, 3.0e-27, 1.0e-27, 1.7e-28):
xi = E2e * a / hbarc_eVm
q2 = 10 * 0.75 * xi**3 / (4 * math.pi * alpha_fs)
print(" a = %.2e m (xi = %.3f): q = %.3f e, coupling (q/e)^2 alpha = %.3f" % (a, xi, math.sqrt(q2), q2 * alpha_fs))
print()
print(" The graininess of a lattice against its resonance: cubic chain w = (2c/a) sin(ka/2) gives n_g - 1 = (ka)^2/8;")
print(" the resonance gives (3/2) h2 (k/k2)^2. Ratio = xi^2/(12 h2): %.3f at xi = 4.1, %.2e at xi = 0.23, %.2e at xi = 0.0145"
% (4.1**2 / 9, 0.23**2 / 9, 0.0145**2 / 9))
for lab, Ehi, lim in (("(a) 28 GeV, 859 ms", 28e9, 0.859), ("(e) 31 GeV, 10 ms", 31e9, 0.010), ("(e) 28 GeV, 10 ms", 28e9, 0.010)):
amax = math.sqrt(8 * lim / K2(zG)) / (Ehi / hbarc_eVm)
amax_D0 = math.sqrt(8 * lim / D0(zG)) / (Ehi / hbarc_eVm)
print(" spacing bound from %s with (ka)^2/8: a < %.3e m (wavelength stretched with redshift), %.3e m (not stretched)"
% (lab, amax, amax_D0))
print()
print(" Evenness (my addition). A level that scatters like a gas (S = 1) has attenuation k^4 h2^2/(6 pi N):")
k31 = 31e9 / hbarc_eVm
kPeV = 1.42e15 / hbarc_eVm
LGRB = c * D0(zG)
LPeV = 1.4e3 * pc
print(" %10s %14s %14s %14s" % ("a (m)", "mfp optical", "mfp 31 GeV", "mfp 1.42 PeV"))
for a in (3.0e-27, 1.7e-28, 1e-29, 1e-31, 1e-33, lP):
N = a**-3
print(" %10.3e %14.3e %14.3e %14.3e" % (a, *(6 * math.pi * N / (kk**4 * 0.75**2) for kk in (k_opt, k31, kPeV))))
print(" paths: GRB 090510 %.3e m; LHAASO J2032+4102 %.3e m. So S must be far below 1 (an ordered level)." % (LGRB, LPeV))
print(" If the sites are themselves a quantum crystal (cell mass M, sound speed c_s <= c), zero-point sound gives")
print(" S = 0.657 hbar k/(M c_s) averaged over the dipole pattern, and the 1.42 PeV photon crossing 1.4 kpc needs")
print(" M > 0.657 hbar k^5 h2^2 L a^3/(6 pi c):")
print(" %10s %14s %14s %14s %14s" % ("a (m)", "M needed (kg)", "m of share(kg)", "M/m_Planck", "2GM/c^2 / a"))
for a in (3.0e-27, 1.7e-28, 1e-29, 1e-30, 1e-31, 1e-32, 1e-33):
Mneed = 0.657 * hbar * kPeV**5 * 0.75**2 * LPeV * a**3 / (6 * math.pi * c)
print(" %10.3e %14.3e %14.3e %14.3e %14.3e" % (a, Mneed, level2(E2e, a)["m"], Mneed / mP, 2 * G * Mneed / c**2 / a))
print(" (For oscillators tied to sites fixed in space there is no sound and no such scattering; then nothing physical holds the sites.)")
print()
print("Q6. The limiting pair (h1 and E2 each at its (e) bound, f = 0.25) and the highest gamma rays:")
h2 = 0.75
for lab, Eg, D in (("LHAASO 1.42 PeV, 1.4 kpc", 1.42e15, 1.4e3 * pc), ("Crab 1.1 PeV, 1887 pc", 1.1e15, 1887 * pc)):
x = Eg / E2e
d2 = ng_minus_1_level2(x, h2) * D / c
d1 = -0.5 * h1e * D / c
print(" %-26s x = E/E2 = %.3e ; level 2 delay %+.4e s ; level 1 advance %+.4e s ; n^2 - 1 = %+.3e (real index: it is carried)"
% (lab, x, d2, d1, h2 * x * x / (1 - x * x) - h1e))
dt2 = quad(lambda t: ng_minus_1_level2(31e9 * (1 + t) / E2e, h2) / Hz(t), 0, zG)[0]
dt1 = h1e * dt_per_h1(31e9, 0.1e6)
print(" GRB 090510, 31 GeV: level 2 %+.5e s, level 1 %+.5e s, sum %+.3e s: the two bounds cancel at this one photon by construction."
% (dt2, dt1, dt2 + dt1))
print(" So the two bounds are not independent: |A h1 - B/E2^2| < 10 ms is a band in the (h1, 1/E2^2) plane, not a box.")
A = abs(dt_per_h1(31e9, 0.1e6))
A_f = abs(dt_per_h1(0.75e9, 0.1e6))
B31 = 1.5 * h2 * (31e9) ** 2 * K2(zG)
B075 = 1.5 * h2 * (0.75e9) ** 2 * K2(zG)
print(" Limit (f) (0.75 GeV, advance below 19 ms) closes the band: there level 2's delay is %.2e of its 31 GeV value," % (B075 / B31))
h1_joint = 0.019 / A_f
E2_joint = math.sqrt(B31 / (0.010 + A * h1_joint))
print(" so h1 < %.3e whatever E2 is, and then E2 > %.3e eV (instead of %.3e) when h1 sits at that bound." % (h1_joint, E2_joint, E2e))
print()
print("Thresholds for a faster-than-c photon between the levels (n^2 = 1 - h1 there), under R-iii [D, mine]:")
print(" photon -> e+ e- needs E > 2 M/sqrt(h1) = %.3e eV at h1 = %.3e; a 1.42 PeV photon then bounds h1 < (2M/E)^2 = %.3e"
% (2 * ME_eV / math.sqrt(h1e), h1e, (2 * ME_eV / 1.42e15) ** 2))
print(" unless level 2 has already made the photon slower than c: h2 (E/E2)^2 > h1 above E = E2 sqrt(h1/h2) = %.3e eV at the (e) bounds."
% (E2e * math.sqrt(h1e / h2)))
print()
print("Energy cost against a known yardstick [D, mine]: the zero-point energy of the ordinary electromagnetic field counted up to a")
print("photon energy E_c is E_c^4/(8 pi^2 (hbar c)^3).")
for E2 in (E2e, holds[2][1], holds[3][1]):
u_qft = E2**4 / (8 * math.pi**2 * hbarc_eVm**3) * eV
print(" E_c = %.3e eV: %.3e J/m^3 = %.3e x critical; level 2 at xi = 1: zero-point %.3e, rest energy %.3e x critical"
% (E2, u_qft, u_qft / u_crit, 1.5 * E2**4 / hbarc_eVm**3 * eV / u_crit,
4 * math.pi * alpha_fs * E2**4 / (0.75 * hbarc_eVm**3) * eV / u_crit))
print()
print("end of blind_trial23.py")