Does light charge the quons? › Files cited on the page › the trials
thin_limit_two_level_posthoc_check.py
"""Trial 23, post hoc check by the author seat (22 November 2026, after the run at 71e83ef). NOT part of the trial; labelled post hoc.
K6 failed because the trial's photons_per_m computed 1 - 1/n^2 by subtraction, the cancellation it was written to avoid
(trial 22's post hoc lesson, repeated): at n - 1 = 2.7e-16 it lost the digits. Here sin^2 theta = 1 - 1/n^2 = n1 (2 + n1)/(1 + n1)^2
is computed directly. It recomputes K6 and the Q2 rows the cancellation spoiled, and the Q6 statement about GRB 090510: with both
levels at their own limits (e) the two delays have opposite signs and cancel; the trial printed that as if it passed the limit.
Writes nothing but stdout.
"""
import os, subprocess
import numpy as np
from scipy import constants as K
here = os.path.dirname(os.path.abspath(__file__))
print("Trial 23 post hoc check (not part of the trial). git HEAD:",
subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, cwd=here).stdout.strip())
alpha = K.fine_structure
c, kB = K.c, K.k
LAM, BAND = 589.3e-9, (300e-9, 600e-9)
PC, AU = 3.0856775814913673e16, 1.495978707e11
a0 = K.physical_constants["Bohr radius"][0]
def sin2(n1): # 1 - 1/n^2, n = 1 + n1, without cancellation
return n1 * (2 + n1) / (1 + n1) ** 2
def photons_per_m(n1):
return 2 * np.pi * alpha * (1 / BAND[0] - 1 / BAND[1]) * sin2(n1)
want = 4 * np.pi * alpha * LAM * (1 / BAND[0] - 1 / BAND[1])
print(f"\nK6 recomputed: photons per formation length at n - 1 = 2.7e-4, 2.7e-9, 2.7e-16:"
f" {', '.join(f'{photons_per_m(x)*LAM/x:.6f}' for x in (2.7e-4, 2.7e-9, 2.7e-16))} against 4 pi alpha lam (1/l1 - 1/l2) = {want:.6f}"
f" -> {'pass' if all(abs(photons_per_m(x)*LAM/x/want - 1) < 1e-3 for x in (2.7e-4, 2.7e-9, 2.7e-16)) else 'FAIL'}"
" (the trial's 0.07407 at 2.7e-16 was the cancellation).")
N_STD = 101325.0 / (kB * 288.15)
s2 = (1 / 0.5893) ** 2
n1_air = (5792105.0 / (238.0185 - s2) + 167917.0 / (57.362 - s2)) * 1e-8 / N_STD
n1_H = 2 * np.pi * 4.5 * a0 ** 3
rows = [("air, 1e-7 Pa", 1e-7 / (kB * 293.15), n1_air, "3.39e-11, 0.0744"), ("air, 1e-10 Pa", 1e-10 / (kB * 293.15), n1_air, "0, 0"),
("interplanetary H", 1e5, n1_H, "0, 0"), ("interstellar H", 1e6, n1_H, "0, 0"), ("intergalactic baryons as H", 0.25, n1_H, "0, 0")]
print("\nQ2 rows the cancellation spoiled, recomputed:")
for label, N, per, printed in rows:
n1 = N * per
Lf = LAM / n1
Lfs = f"{Lf:.2e} m" if Lf < AU else (f"{Lf/AU:.2e} AU" if Lf < PC else f"{Lf/PC:.2e} pc")
print(f" {label:28s} n - 1 {n1:.2e} L_f {Lfs:12s} photons/m {photons_per_m(n1):.2e} photons per L_f {photons_per_m(n1)*Lf:.4f} (run printed {printed})")
print("\nQ6: with h1 at its limit (e) and E2 at its least for limit (e), both tuned to the same 31 GeV photon, the 28-31 GeV photon's delay"
" from level 2 (slower at high energy) and its advance from level 1 (faster at high energy) cancel; the trial's '+9.83e-12 s' is"
" that cancellation, not a pass. Each bound is taken alone, as in the record; a cancellation tuned at one energy fails at the"
" burst's photons near 1 GeV, whose timing the record also uses (trial 8, section 9.11).")