Does light charge the quons? › Files cited on the page › papers/

check_leuchs2021.py

In the investigation at sim/models_AB/check_leuchs2021/check_leuchs2021.py · last changed in commit 84140be, 22 November 2026 · 26,697 bytes


#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
check_leuchs2021.py -- settle at source the sentence of Leuchs, Hawton and Sanchez-Soto (2021),
"Physical mechanisms underpinning the vacuum permittivity", arXiv:2110.07223v1, p. 7 (after eq. 3.11):

    "For the standard model sum q_s^2/e^2 = 9 and with two additional charged Higgs particles of
     mc^2 ~= 5 x 10^11 eV, f ~= 1 and all of eps0 is vacuum polarization if ln(hbar Lambda_L/c) ~= 26."

for item 4 of section 11.4 of the charging-quons paper (open item: a reviewer got about 59, not 26).

Run on isla, from this folder:
    OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 check_leuchs2021.py > check_leuchs2021_out.txt 2> check_leuchs2021_err.txt

Sources read for this script (all in the investigation's tree):
  2021: sources/option1_vacuum_pairs_2026-11-18/leuchs_hawton_sanchezsoto_2021_2110.07223.pdf (pages 3-7 read as images)
  2017: sim/models_AB/check_leuchs2021/fetch_2017/leuchs_hawton_sanchezsoto_2017_1612.03394.pdf (fetched today; eq. 3.10 is cited to it)
  2010, 2013: sources/option1_vacuum_pairs_2026-11-15/ (for the "18%" and the count of 9)
  trial 9: sim/models_AB/model_A.py and model_A_out.txt

Labels: [S] standard physics; [S, paper] as printed in the paper named; [I] a measured input; [D] derived here;
[M] a modelling choice. "from memory" marks a number not read at source in this session.
"""
import datetime
import math
import os
import subprocess
import sys

import numpy as np
import scipy
import scipy.constants as K
from scipy.integrate import quad
from scipy.optimize import brentq

CHECKS = []


def say(s=""):
    print(s)


def check(name, ok, detail=""):
    CHECKS.append((name, bool(ok)))
    say(f"   CHECK {'pass' if ok else 'FAIL'}: {name} {detail}")


# ----------------------------------------------------------------------------------------------------
say("check_leuchs2021.py -- the '26' of Leuchs, Hawton and Sanchez-Soto (2021), arXiv:2110.07223, p. 7")
try:
    head = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, check=True).stdout.strip()
except Exception as ex:  # pragma: no cover
    head = f"(git rev-parse failed: {ex})"
say(f"git rev-parse HEAD: {head}")
say(f"run at: {datetime.datetime.now().astimezone().strftime('%Y-%m-%d %H:%M:%S %Z')}")
say(f"python {sys.version.split()[0]}, numpy {np.__version__}, scipy {scipy.__version__}; OMP_NUM_THREADS={os.environ.get('OMP_NUM_THREADS')}")

# ----------------------------------------------------------------------------------------------------
say("\n0. Constants")
c, hbar, e, eps0 = K.c, K.hbar, K.e, K.epsilon_0                      # [S] scipy's CODATA set
ME = K.physical_constants["electron mass energy equivalent in MeV"][0]  # [S] CODATA via scipy
MMU = K.physical_constants["muon mass energy equivalent in MeV"][0]
MTAU = K.physical_constants["tau mass energy equivalent in MeV"][0]
MPL = K.physical_constants["Planck mass energy equivalent in GeV"][0] * 1e3  # MeV
ALPHA_INV_PAPER = 137.035999084     # [S, paper] 2021 p. 4, below eq. (3.2)
ALPHA_INV_PDG = 137.035999178       # [I] PDG 2024 as used by trial 9 (model_A.py line 22)
alpha = 1 / ALPHA_INV_PAPER
# Quark, W, Z and top masses: PDG 2024 central values, from memory (MS-bar for u,d,s,c,b; pole-like for t).
MQ = {"u": 2.16, "d": 4.70, "s": 93.5, "c": 1273.0, "b": 4183.0, "t": 172570.0}   # MeV [S, from memory]
MW, MZ = 80369.0, 91188.0                                                           # MeV [S, from memory]
MH_PAPER = 5e5                                                                      # MeV: "mc^2 ~= 5 x 10^11 eV" [S, paper]
say(f"   c = {c}, hbar = {hbar:.9e}, e = {e:.9e}, eps0 = {eps0:.9e} (scipy {scipy.__version__})")
say(f"   alpha^-1 = {ALPHA_INV_PAPER} (the paper's value); PDG 2024: {ALPHA_INV_PDG} (difference irrelevant here)")
say(f"   m_e = {ME:.6f} MeV, m_mu = {MMU:.4f} MeV, m_tau = {MTAU:.2f} MeV (CODATA via scipy); Planck mass = {MPL/1e3:.4e} GeV")
say(f"   quarks (PDG 2024, from memory, MeV): {MQ}; M_W = {MW} MeV, M_Z = {MZ} MeV (from memory)")
say(f"   the paper's extra 'charged Higgs' mass: {MH_PAPER/1e3:.0f} GeV")

# the identity behind everything: e^2/(hbar c eps0) = 4 pi alpha
check("e^2/(hbar c eps0) = 4 pi alpha with the paper's alpha, to 1e-8",
      abs(e**2 / (hbar * c * eps0) / (4 * math.pi * alpha) - 1) < 1e-8, f"({e**2/(hbar*c*eps0):.9f} vs {4*math.pi*alpha:.9f})")

# Species lists: (name, q^2/e^2 with colour, mass MeV).  [S] three generations: leptons 3x1, up-type 3x3x(2/3)^2 = 4,
# down-type 3x3x(1/3)^2 = 1; total 8 (from memory, but it is only the charges).  The 2013 paper (its eq. 1 and the
# text after it) and the 2021 paper count 9 by adding the W boson as +1.
LEPTONS = [("e", 1.0, ME), ("mu", 1.0, MMU), ("tau", 1.0, MTAU)]
QUARKS = [("u", 3 * (2 / 3) ** 2, MQ["u"]), ("d", 3 * (1 / 3) ** 2, MQ["d"]), ("s", 3 * (1 / 3) ** 2, MQ["s"]),
          ("c", 3 * (2 / 3) ** 2, MQ["c"]), ("b", 3 * (1 / 3) ** 2, MQ["b"]), ("t", 3 * (2 / 3) ** 2, MQ["t"])]
SM8 = LEPTONS + QUARKS
SM9 = SM8 + [("W as +1 (the paper's count) [M]", 1.0, MW)]
SM11 = SM9 + [("extra charged 1", 1.0, MH_PAPER), ("extra charged 2", 1.0, MH_PAPER)]       # the sentence's reading
SM9_5 = SM9 + [("charged scalar 1 (1/4)", 0.25, MH_PAPER), ("charged scalar 2 (1/4)", 0.25, MH_PAPER)]  # scalars count 1/4 [S]
N8, N9, N11, N95 = (sum(q for _, q, _ in L) for L in (SM8, SM9, SM11, SM9_5))
say(f"   sum q^2/e^2: SM fermions with colour = {N8:.3f}; + W as +1 = {N9:.3f} (the paper's 9); + two unit-charge extras = {N11:.3f};"
    f" + two charged scalars at 1/4 each = {N95:.3f}")
say("   (a charged scalar's one-loop vacuum polarization is 1/4 of a Dirac fermion's of the same charge: the paper's own")
say("    (1 - 2x^2)/8 integrates to 1/24 against x(1-x)'s 1/6 [D, from the paper's p. 6]; standard b-coefficients 1/3 vs 4/3 [S, from memory])")
check("scalar/fermion loop ratio from the paper's x-factors is 1/4",
      abs(quad(lambda x: (1 - 2 * x**2) / 8, 0, 1)[0] / quad(lambda x: x * (1 - x), 0, 1)[0] - 0.25) < 1e-12)

# ----------------------------------------------------------------------------------------------------
say("\n1. Section 2 of the paper: the oscillator model, eqs. (2.2) to (2.4), and the '18%' (p. 4)")
# (2.2): reduced mass m/2, spring from hbar*omega = 2 m c^2, quasi-static: (m/2) omega^2 x = e E.
m = K.m_e
omega = 2 * m * c**2 / hbar
E = 1.0
x_disp = e * E / ((m / 2) * omega**2)
p_dip = e * x_disp
p_paper = e**2 * hbar**2 / (2 * m**3 * c**4) * E
check("(2.2) dipole moment e^2 hbar^2 E/(2 m^3 c^4) follows from mu = m/2, hbar omega = 2 m c^2", abs(p_dip / p_paper - 1) < 1e-12)
lamC = hbar / (m * c)
P0 = p_dip / lamC**3
check("(2.3) P0 = dipole/lambda_C^3 = e^2 E/(2 hbar c)", abs(P0 / (e**2 * E / (2 * hbar * c)) - 1) < 1e-12)
frac_e = (e**2 / (2 * hbar * c)) / eps0
say(f"   (2.4) with f = 1, electron pairs only: eps0_e / eps0 = e^2/(2 hbar c eps0) = 2 pi alpha = {frac_e:.5f} = {100*frac_e:.2f}%")
say(f"   the paper says 'about 18%' (p. 4). 8 pi alpha = {8*math.pi*alpha:.4f} = {800*math.pi*alpha:.1f}%: four times (2.4).")
say("   Source of the 18%: the 2010 paper's eq. (18), eps0_total = 4 pi alpha (hbar omega0/(m c^2)) sum (q_j/e)^2 eps0, with")
say("   hbar omega0 = 2 m c^2 (its note 7) gives 8 pi alpha per unit charge. The 2021 paper quotes the 2010 model's number,")
say("   not its own (2.4)'s [D]. The 2017 paper's eq. (2) has eps0 = f sum q^2/(hbar c): 4 pi alpha = 9.2% per unit charge.")
check("'18%' equals 8 pi alpha (the 2010 model) to 0.3%", abs(8 * math.pi * alpha / 0.18 - 1) < 0.02, f"({8*math.pi*alpha:.4f})")
N_for_all_24 = 1 / (2 * math.pi * alpha)
say(f"   (2.4) at f = 1 gives all of eps0 only if sum q_s^2/e^2 = 1/(2 pi alpha) = {N_for_all_24:.2f}; the 2017 eq. (2) needs 1/(4 pi alpha) = {1/(4*math.pi*alpha):.2f}")

# ----------------------------------------------------------------------------------------------------
say("\n2. Section 3 of the paper: eqs. (3.1) to (3.11) reproduced")
# (3.1) -> (3.3): the 3-momentum integral with cutoff Lambda (a wavenumber), M^2 = (mc/hbar)^2 + x(1-x) k^2.
def p_integral(L_over_M):
    return quad(lambda p: p**2 / (p**2 + 1) ** 1.5, 0, L_over_M)[0]

r = 1e3
I_num = p_integral(r)
I_asym = math.log(2 * r) - 1
check("(3.3) from (3.1): int_0^L p^2 dp/(p^2+M^2)^(3/2) -> ln(2L/M) - 1 (L/M = 1e3, to 1e-5)", abs(I_num - I_asym) < 1e-5,
      f"({I_num:.7f} vs {I_asym:.7f}); prefactor 8 pi alpha x 4 pi/(2 pi)^3 = 4 alpha/pi")
check("8 pi alpha x (4 pi)/(2 pi)^3 = 4 alpha/pi", abs(8 * math.pi * alpha * 4 * math.pi / (2 * math.pi) ** 3 - 4 * alpha / math.pi) < 1e-15)
say("   so chi_e(k^2, L) = (4 alpha/pi) int dx x(1-x) [ln(2 hbar L/(m c)) - 1 - (1/2) ln(1 + x(1-x) hbar^2 k^2/(m^2 c^2))]: eq. (3.3),")
say("   with hbar^2 k^2 where the print has hbar k^2 (the print's argument is not dimensionless) [D].")
say("   Lambda is a wavenumber (the upper limit of |p| in (3.1), where p^2 adds to (mc/hbar)^2), so hbar Lambda/c is a MASS;")
say("   'ln(hbar Lambda_L/c)' on p. 7 needs a mass under it to be dimensionless. The 2017 paper (p. 3) uses the same symbol:")
say("   'if one chooses hbar Lambda_L/c be the Planck mass'.")

# (3.4): chi(k^2,L) - chi(0,L) = -(2 alpha/pi) int x(1-x) ln(1 + x(1-x) K) dx, K = hbar^2 k^2/(m^2 c^2) (spacelike-positive).
def chi_sub(Kk):
    return -(2 * alpha / math.pi) * quad(lambda x: x * (1 - x) * math.log(1 + x * (1 - x) * Kk), 0, 1)[0]

Kbig = 1e10
chi34 = chi_sub(Kbig)
chi35 = -(alpha / (3 * math.pi)) * (math.log(Kbig) - 5 / 3)
check("(3.5) from (3.4): -(alpha/3pi)[ln K - 5/3] at K = 1e10, to 1e-6 relative", abs(chi34 / chi35 - 1) < 1e-6, f"({chi34:.9e} vs {chi35:.9e})")
check("A = exp(5/3): int x(1-x) ln(x(1-x)) dx = -5/18", abs(quad(lambda x: x * (1 - x) * math.log(x * (1 - x)), 0, 1)[0] + 5 / 18) < 1e-12)
say("   the printed (3.4) lacks the 'ln' (it reads [1 + x(1-x) hbar k^2/m^2c^2]); (3.5) only follows with the ln [D].")
say("   sign: (3.5) is the standard spacelike (Uehling) result if its k^2 means Q^2 = |k|^2 - omega^2/c^2 > 0, the opposite of the")
say("   p. 4 definition k^2 = omega^2/c^2 - |k|^2; a metric-sign slip, not a numerical one [D].")

# (3.9): eps0(k^2) = eps0 (1 + chi) = eps0 - (alpha eps0/(3 pi)) ln(K/A) = eps0 - (e^2/(12 pi^2 hbar c)) ln(K/A)
pref39 = e**2 / (12 * math.pi**2 * hbar * c)
check("(3.9) prefactor: alpha eps0/(3 pi) = e^2/(12 pi^2 hbar c), to 1e-9", abs(alpha * eps0 / (3 * math.pi) / pref39 - 1) < 1e-9)
# (3.10): eps0(Lambda_L) = 0  ->  sum (q^2/e^2) ln(hbar^2 L^2/(m^2 c^2)) = 12 pi^2 hbar c eps0/e^2 = 3 pi/alpha
RHS = 3 * math.pi / alpha
check("(3.10): all of eps0 <=> sum (q^2/e^2) ln(hbar^2 L_L^2/(m_s^2 c^2)) = 3 pi/alpha", abs(12 * math.pi**2 * hbar * c * eps0 / e**2 / RHS - 1) < 1e-9,
      f"(3 pi/alpha = {RHS:.2f})")
say(f"   (3.10) in one number: sum_s (q_s^2/e^2) ln(hbar^2 Lambda_L^2/(m_s^2 c^2)) = 3 pi/alpha = {RHS:.1f}; equivalently")
say(f"   sum_s (q_s^2/e^2) ln(hbar Lambda_L/(m_s c)) = 3 pi/(2 alpha) = {RHS/2:.1f}.  (The same as the 2017 paper's eq. (6).)")
# (3.11) consistency
say("   (3.11) as printed: f = (1/12 pi^2) <ln(hbar^2 L^2/(m^2 c^2))>, the charge-squared-weighted mean. Put into (2.4),")
say("   eps0 = (1/(2 hbar c)) sum q^2 f = (1/(24 pi^2 hbar c)) sum q^2 ln(...): HALF of (3.10). The 2017 paper's eq. (2) has")
say("   1/(hbar c), not 1/(2 hbar c), and its eq. (7) is the same f; there the pair is consistent. The 2021 paper halved (2.4)")
say("   (the reduced mass m/2 in (2.2)) and kept the 2017 f, so its (2.4), (3.10) and (3.11) disagree by a factor 2 [D].")
Lmean = 100.0  # any value: the ratio is independent of it
lhs = (1 / (2 * hbar * c)) * (1 / (12 * math.pi**2)) * Lmean     # (2.4) with printed (3.11), per unit sum q^2
rhs = (1 / (12 * math.pi**2 * hbar * c)) * Lmean                 # (3.10), per unit sum q^2
check("(2.4) with the printed (3.11) equals (3.10)/2", abs(lhs / rhs - 0.5) < 1e-12)
lhs17 = (1 / (hbar * c)) * (1 / (12 * math.pi**2)) * Lmean       # 2017 eq. (2) with eq. (7)
check("2017 eq. (2) with eq. (7) equals (3.10) exactly", abs(lhs17 / rhs - 1) < 1e-12)
say("   2017 eq. (4): alpha^-1 = 4 pi f sum (q/e)^2 [from its eq. (2)]; with 2021's (2.4) it would read alpha^-1 = 2 pi f sum (q/e)^2.")

# ----------------------------------------------------------------------------------------------------
say("\n3. The '26': every reading tried.  L := ln(hbar Lambda_L/(m c)) for a single (mean) mass m")
SIXPI2 = 6 * math.pi**2
rows = []


def row(label, value, note=""):
    rows.append((label, value, note))
    say(f"   {label:<88s} {value:9.2f}   {note}")


say(f"   {'reading':<88s} {'number':>9s}   note")
# R1: (3.10) with the log pulled out (as the paper says it does), for each count
for N, nm in ((N8, "N = 8 (SM fermions with colour)"), (N9, "N = 9 (the paper's standard model)"), (N95, "N = 9.5 (9 + two charged scalars at 1/4)"),
              (N11, "N = 11 (9 + two unit-charge extras, the sentence)")):
    row(f"R1 (3.10), log taken out of the sum, all of eps0: L = 3 pi/(2 alpha N), {nm}", RHS / (2 * N),
        "the twenty-second reviewer's reading" if N in (N9, N11) else "")
check("R1 reproduces the reviewer's 58.7 (N = 11) and 71.8 (N = 9) to 0.1",
      abs(RHS / (2 * N11) - 58.7) < 0.1 and abs(RHS / (2 * N9) - 71.8) < 0.1, f"({RHS/(2*N11):.2f}, {RHS/(2*N9):.2f})")
# R2: printed (3.11) with f = 1
row("R2 printed (3.11) [= 2017 eq. 7] with f = 1: <ln(L^2/m^2)> = 12 pi^2, so L = 6 pi^2 (any N)", SIXPI2,
    f"then all of eps0 needs N = 1/(4 pi alpha) = {1/(4*math.pi*alpha):.2f}: the origin of '9 + 2' [D]")
# R3: (3.11) made consistent with (2.4) and (3.10)
row("R3 (3.11) corrected to fit (2.4) and (3.10) (f doubled): f = 1 at L = 3 pi^2 (any N)", 3 * math.pi**2,
    f"then all of eps0 needs N = 1/(2 pi alpha) = {1/(2*math.pi*alpha):.2f}")
# R4: base-10
row("R4 base-10 logarithm of R1 (N = 11): log10(hbar Lambda_L/(m c))", RHS / (2 * N11) / math.log(10), "<- the only readings near 26")
row("R4 base-10 logarithm of R2 (f = 1, printed): 6 pi^2/ln 10", SIXPI2 / math.log(10), "<- the only readings near 26")
row("R4 base-10 logarithm of R1 (N = 9)", RHS / (2 * N9) / math.log(10))
row("R4 base-10 logarithm of R3", 3 * math.pi**2 / math.log(10))
# R5: the full log of Lambda^2/m^2
row("R5 (3.10) with the full ln(hbar^2 L^2/(m^2 c^2)) kept whole, N = 11: 3 pi/(alpha N)", RHS / N11)
row("R5 the same, N = 9", RHS / N9)
row("R5 the count N that would make the full ln(L^2/m^2) = 26", RHS / 26, "not any standard-model count")
row("R5 the count N that would make L = ln(L/m) = 26", RHS / 52, "not any standard-model count")
# R6: the 3-momentum-cutoff form (3.3) at k = 0, chi_e(0, L) = 1
row("R6 (3.3) at k = 0, chi_e(0,L) = 1, log taken out, N = 11: ln(2 hbar L/(m c)) = 3 pi/(2 alpha N) + 1, so L =", RHS / (2 * N11) + 1 - math.log(2))
# R7: keep A = exp(5/3)
row("R7 (3.5)'s A = exp(5/3) kept in (3.10), N = 11: L = 3 pi/(2 alpha N) + 5/6", RHS / (2 * N11) + 5 / 6)
# R8: 2017 paper's Planck-mass evaluation
l_e_pl = 2 * math.log(MPL / ME)
l_w_pl = 2 * math.log(MPL / MW)
MPL_RED = 2.435e18 * 1e3  # MeV, reduced Planck mass [S, from memory]
row("R8 2017 paper, Lambda_L at the Planck mass: ln(M_Pl^2/m_e^2) (they print 101)", l_e_pl)
row("R8 2017 paper, Lambda_L at the Planck mass: ln(M_Pl^2/M_W^2) (they print 78)", l_w_pl)
row("R8 the same two with the reduced Planck mass 2.435e18 GeV: electron", 2 * math.log(MPL_RED / ME))
row("R8 the same two with the reduced Planck mass 2.435e18 GeV: W", 2 * math.log(MPL_RED / MW))
check("2017's '101 to 78' reproduced within 3 (Planck mass, electron and W)", abs(l_e_pl - 101) < 3 and abs(l_w_pl - 78) < 3, f"({l_e_pl:.1f}, {l_w_pl:.1f})")


def mean_log(species, Lam):
    """charge-squared-weighted mean of ln(Lam^2/m_s^2) over species lighter than Lam (MeV)."""
    num = sum(q * math.log(Lam**2 / ms**2) for _, q, ms in species if ms < Lam)
    den = sum(q for _, q, ms in species if ms < Lam)
    return num / den


f17_pl = mean_log(SM9, MPL) / (12 * math.pi**2)
row("R8 2017 paper's f at the Planck mass, N = 9 (they print 'f ~= 0.7')", f17_pl, f"then 2017 eq. (4): alpha^-1 = 4 pi f x 9 = {4*math.pi*f17_pl*9:.1f}, not 137")
# R9: real masses: solve (3.10) for Lambda_L with each count


def sum_logs(species, Lam):
    return sum(q * math.log(Lam**2 / ms**2) for _, q, ms in species if ms < Lam)


def pole(species):
    return brentq(lambda lnL: sum_logs(species, math.exp(lnL)) - RHS, math.log(1e6), math.log(1e60))


say("\n   R9 (3.10) with the real masses (species-by-species logs), solved for Lambda_L [D]:")
say(f"   {'count':<48s} {'Lambda_L GeV':>13s} {'ln(L/GeV)':>10s} {'log10(L/GeV)':>12s} {'ln(L/m_e)':>10s} {'log10(L/m_e)':>13s} {'ln(L/M_Pl)':>11s} {'<ln(L/m_s)>':>12s} {'min..max ln(L/m_s)':>20s}")
poles = {}
for nm, sp in (("N = 8, SM fermions", SM8), ("N = 9, + W as +1 [M]", SM9), ("N = 9.5, + two scalars at 500 GeV", SM9_5), ("N = 11, + two unit extras at 500 GeV", SM11)):
    lnL = pole(sp)
    Lam = math.exp(lnL)
    poles[nm] = Lam
    logs = [math.log(Lam / ms) for _, q, ms in sp]
    mean_half = 0.5 * mean_log(sp, Lam)
    say(f"   {nm:<48s} {Lam/1e3:13.3e} {math.log(Lam/1e3):10.2f} {math.log10(Lam/1e3):12.2f} {math.log(Lam/ME):10.2f} {math.log10(Lam/ME):13.2f} {math.log(Lam/MPL):11.2f} {mean_half:12.2f} {min(logs):9.2f}..{max(logs):7.2f}")
    if nm.startswith("N = 11"):
        check("R9: the charge-weighted mean ln(Lambda_L/m_s) at the N = 11 pole equals R1's 3 pi/(2 alpha N), to 1e-9",
              abs(mean_half / (RHS / (2 * N11)) - 1) < 1e-9, f"({mean_half:.4f})")
say("   Two coincidences in this table, recorded so that no one mistakes them for the paper's meaning [D]:")
say(f"   - the N = 9 pole (no extras) sits at e^{math.log(poles['N = 9, + W as +1 [M]']/MPL):.1f} Planck masses; but the sentence includes the two extras (N = 11: e^{math.log(poles['N = 11, + two unit extras at 500 GeV']/MPL):.1f}),")
say("     and in the 2017 paper 'hbar Lambda_L/c be the Planck mass' means Lambda_L = M_Pl, where that logarithm would be 0;")
say(f"   - the N = 11 pole sits at 10^{math.log10(poles['N = 11, + two unit extras at 500 GeV']/1e3):.1f} GeV, so a base-10 logarithm of the pole in GeV also reads about 26.")
say("   The paper's 'logarithmic term is almost constant': at the N = 11 pole the per-species ln(L/m_s) runs from the")
say(f"   extras' {min(math.log(poles['N = 11, + two unit extras at 500 GeV']/ms) for _,q,ms in SM11):.1f} to the electron's {math.log(poles['N = 11, + two unit extras at 500 GeV']/ME):.1f}, a spread of about 13% either side of the mean [D].")

# R10: dimensionful readings of 'ln(hbar Lambda_L/c) = 26'
say("\n   R10 'ln(hbar Lambda_L/c) = 26' read with a unit for the mass hbar Lambda_L/c [D]:")
say(f"   {'unit':<22s} {'hbar Lambda_L c':>16s}   share of eps0 by (3.10) at that cutoff, N = 11 (species below the cutoff only)")
for unit, mev in (("eV/c^2", 1e-6), ("m_e", ME), ("GeV/c^2", 1e3), ("Planck mass", MPL)):
    Lam = math.exp(26) * mev
    share = (alpha / (3 * math.pi)) * sum_logs(SM11, Lam)
    say(f"   {unit:<22s} {Lam/1e3:16.3e} GeV   {100*share:6.1f}%")
Lam_kg = math.exp(26) * K.kilogram_to_MeV if hasattr(K, 'kilogram_to_MeV') else math.exp(26) * (K.c**2 / K.e) * 1e-6
say(f"   {'kg':<22s} {Lam_kg/1e3:16.3e} GeV   (2e11 kg: not a particle-physics scale)")
row("R10 coincidence: ln(5 x 10^11), the extras' mass in eV", math.log(5e11), "a log of a number in eV; not physics")
row("R10 coincidence: ln(M_Pl/m_e)/2", 0.5 * math.log(MPL / ME))
row("R10 coincidence: ln(10^14 GeV / 500 GeV)", math.log(1e17 / MH_PAPER))

# Verdict on the readings
nat = [v for lab, v, _ in rows if lab.startswith(("R1 ", "R2 ", "R3 ", "R5 (3.10)", "R5 the same", "R6", "R7")) and ("N that" not in lab)]
near26_nat = [v for v in nat if abs(v - 26) <= 2]
b10 = [v for lab, v, _ in rows if lab.startswith("R4") and ("N = 11" in lab or "R2" in lab)]
check("no natural-log reading of the log-taken-out conditions (R1-R3, R5-R7) with N between 8 and 11 lands within 2 of 26", len(near26_nat) == 0,
      f"(natural-log readings: {', '.join(f'{v:.1f}' for v in nat)})")
check("the base-10 readings of the paper's own condition land within 1 of 26", all(abs(v - 26) <= 1 for v in b10), f"({', '.join(f'{v:.2f}' for v in b10)})")

# ----------------------------------------------------------------------------------------------------
say("\n4. Standard one-loop QED running (fermion loops) and trial 9's pole")
# Reproduce trial 9 (model_A.py): on-shell 1/alpha(M_Z) from the leptons' one-loop integrals at timelike s = M_Z^2,
# Delta alpha_had^(5)(M_Z) = 0.02783 [I, PDG 2024 via trial 9], the top at one loop; then run above M_Z with 20/3 + 4/3.
DA_HAD5 = 0.02783
alpha_t9 = 1 / ALPHA_INV_PDG


def dalpha_timelike(s, mf, ncq2, a=alpha_t9):
    # real part of the one-loop on-shell-subtracted vacuum polarization at timelike s (trial 9's convention)
    return (2 * a / math.pi) * ncq2 * quad(lambda x: x * (1 - x) * math.log(abs(1 - x * (1 - x) * s / mf**2)), 0, 1, limit=200)[0]


s = MZ**2
da_lep = sum(dalpha_timelike(s, mf, 1.0) for _, _, mf in LEPTONS)
da_top = dalpha_timelike(s, MQ["t"], 4 / 3)
da_tot = da_lep + DA_HAD5 + da_top
inv_aMZ = ALPHA_INV_PDG * (1 - da_tot)
say(f"   leptons' Delta alpha(M_Z^2), one loop, timelike: {da_lep:.6f} (trial 9: 0.031419); top: {da_top:.6f} (trial 9: -0.000059)")
say(f"   1/alpha(M_Z) on-shell = {inv_aMZ:.3f} (trial 9: 128.925)")
check("trial 9's 1/alpha(M_Z) = 128.925 reproduced to 0.02", abs(inv_aMZ - 128.925) < 0.02, f"({inv_aMZ:.3f})")
LN_T = math.log(MQ["t"] / MZ)
L1 = (inv_aMZ * 3 * math.pi / 2 + (4 / 3) * LN_T) / 8
Lam_t9 = MZ * math.exp(L1)
say(f"   pole, running above M_Z with 20/3 (five quarks, three leptons) then 4/3 (top): Lambda_L = {Lam_t9/1e3:.3e} GeV (trial 9: 9.721e+34 GeV)")
say(f"   ln(Lambda_L/m_e) = {math.log(Lam_t9/ME):.1f} (section 11.4 says about 88); ln(Lambda_L/GeV) = {math.log(Lam_t9/1e3):.1f}; log10(Lambda_L/m_e) = {math.log10(Lam_t9/ME):.1f}")
check("trial 9's pole 9.721e34 GeV reproduced to 2%", abs(Lam_t9 / 1e3 / 9.721e34 - 1) < 0.02, f"({Lam_t9/1e3:.3e})")
say(f"   the naive mass-log version (R9, N = 8): {poles['N = 8, SM fermions']/1e3:.2e} GeV, ln(L/GeV) = {math.log(poles['N = 8, SM fermions']/1e3):.1f}"
    f" (the twenty-second reviewer: 79, about 2e34 GeV); the data-driven hadronic part moves it to trial 9's 9.7e34 GeV.")
say("   Both are 'QED only, fermion loops', which is what (3.10) sums. Caveat [S, from memory]: in the full standard model the W")
say("   loop adds -7 to the photon's one-loop coefficient against +4/3 per unit-charge Dirac fermion (-21/4 fermion units),")
say("   so counting the W as '+1' in sum q^2/e^2 = 9 has the wrong sign; above the weak scale the running of alpha is slower,")
say("   and the question becomes the hypercharge coupling's pole (far higher still). This only widens the gap from '26'.")

# ----------------------------------------------------------------------------------------------------
say("\n5. What the paper's argument needs: share of eps0 that (3.10) supplies at a given cutoff, and the extra species for all of it")
say("   share = (alpha/3pi) sum_s (q_s^2/e^2) ln(Lambda^2/m_s^2) over species lighter than Lambda [D]; extras = unit-charge Dirac")
say("   fermions at 1 TeV [M], the count that brings the share to 1.")
say(f"   {'cutoff':<34s} {'Lambda GeV':>11s} {'ln(L/m_e)':>10s} {'share, N = 8':>13s} {'share, N = 11':>14s} {'extras needed (N = 8)':>22s} {'(N = 11)':>9s}")
MEXTRA = 1e6  # MeV


def extras_needed(species, Lam):
    have = sum_logs(species, Lam)
    per = math.log(Lam**2 / MEXTRA**2) if Lam > MEXTRA else float("nan")
    return (RHS - have) / per if per == per and per > 0 else float("nan")


cutoffs = [("1 TeV", 1e6), ("10^8 GeV (ln(L/m_e) = 26)", 1e11), ("10^12 GeV", 1e15), ("10^16 GeV", 1e19), ("Planck mass", MPL),
           ("N = 11 pole (R9)", poles["N = 11, + two unit extras at 500 GeV"]), ("10^30 GeV", 1e33), ("trial 9's pole", Lam_t9)]
for nm, Lam in cutoffs:
    s8 = (alpha / (3 * math.pi)) * sum_logs(SM8, Lam)
    s11 = (alpha / (3 * math.pi)) * sum_logs(SM11, Lam)
    say(f"   {nm:<34s} {Lam/1e3:11.2e} {math.log(Lam/ME):10.1f} {100*s8:12.1f}% {100*s11:13.1f}% {extras_needed(SM8, Lam):22.1f} {extras_needed(SM11, Lam):9.1f}")
ex_pl = extras_needed(SM8, MPL)
say(f"   at the Planck mass the known fermions need {ex_pl:.1f} extra unit-charge species at 1 TeV (trial 9, with the data-driven hadronic part: 7.9).")
check("extra species at the Planck mass agrees with trial 9's 7.9 within 1", abs(ex_pl - 7.9) < 1.0, f"({ex_pl:.1f})")
Lam26 = math.exp(26) * ME
say(f"   at the 'modest' cutoff where ln(hbar Lambda/(m_e c)) = 26 (Lambda = {Lam26/1e3:.1e} GeV), (3.10) with the paper's 11 species supplies"
    f" {100*(alpha/(3*math.pi))*sum_logs(SM11, Lam26):.0f}% of eps0 and all of it would need {extras_needed(SM11, Lam26):.0f} more unit-charge species.")
say("   The 'f' of (2.4) once all of eps0 is polarization: f = 1/(2 pi alpha N) by the 2021 (2.4), or 1/(4 pi alpha N) by the 2017 eq. (2):")
for N, nm in ((N9, "N = 9"), (N11, "N = 11"), (1 / (4 * math.pi * alpha), "N = 1/(4 pi alpha)"), (1 / (2 * math.pi * alpha), "N = 1/(2 pi alpha)")):
    say(f"      {nm:<20s} f(2021) = {1/(2*math.pi*alpha*N):.3f}   f(2017) = {1/(4*math.pi*alpha*N):.3f}")
say("   So 'f ~= 1 with 9 + 2' is the 2017 framework's N = 1/(4 pi alpha) = 10.9; under the 2021 paper's own (2.4) it is f ~= 2.")

# ----------------------------------------------------------------------------------------------------
say("\n6. Verdict")
say("   The '26' is not reproducible from eqs. (3.10)-(3.11) with a natural logarithm. The paper's own condition for f = 1 is")
say(f"   <ln(hbar Lambda_L/(m_s c))> = 6 pi^2 = {SIXPI2:.1f} (printed (3.11)), and for all of eps0 with its 11 species 3 pi/(2 alpha x 11) = {RHS/(2*N11):.1f};")
say(f"   both are {SIXPI2/math.log(10):.1f} and {RHS/(2*N11)/math.log(10):.1f} as base-10 logarithms. With the real masses the pole sits at"
    f" {poles['N = 11, + two unit extras at 500 GeV']/1e3:.1e} GeV (N = 11),")
say(f"   {poles['N = 9, + W as +1 [M]']/1e3:.1e} GeV (N = 9) or {Lam_t9/1e3:.1e} GeV (trial 9, known fermions), never at e^26 times any mass unit the")
say("   paper uses (eV, m_e, GeV: shares of 9%, 31%, 44%). Two coincidences exist (the N = 9 pole at e^26.9 Planck masses; the N = 11 pole at")
say("   10^25.7 GeV) but neither is the sentence's own reading. The simplest account: a base-10 logarithm printed as ln. What the sentence")
say("   needs, read literally, is a cutoff of about 5 x 10^25 GeV with 11 species, or about 10^35 GeV with the known fermions alone.")
npass = sum(1 for _, ok in CHECKS if ok)
say(f"\nCode checks: {npass} of {len(CHECKS)} pass.")
for nm, ok in CHECKS:
    if not ok:
        say(f"   FAILED: {nm}")