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

check_pages.py

In the investigation at sim/models_AB/check_pages_10_14_fable/check_pages.py · last changed in commit bc4d6b6, 18 November 2026 · 17,286 bytes · the folder as a zip


"""Eighteenth independent review: every number in charging quons 10.14 (draft 0.32) and the companion page 1.2, recomputed.
Own code throughout (Ewald sums with spherical cutoffs; Wigner-Seitz moments by a nearest-site grid; the balance by brentq;
the chance measure re-implemented; E3 from the Airy closed forms of the ultra-relativistic Salpeter problem; E2 and trial 16
from the constants). Run: OMP_NUM_THREADS=1 ~/aspden-review-venv/bin/python3 check_pages.py"""
import os, re, sys, numpy as np
from scipy import constants as Kc
from scipy.special import erfc, airy, ai_zeros
from scipy.optimize import brentq
from scipy.integrate import quad
from scipy.linalg import eigh_tridiagonal
pc = Kc.physical_constants
me = pc["electron mass energy equivalent in MeV"][0]; mmu = pc["muon mass energy equivalent in MeV"][0]; mtau = pc["tau mass energy equivalent in MeV"][0]
alpha = Kc.fine_structure; hbarc = Kc.hbar * Kc.c / Kc.e   # eV m
ok = []
def chk(name, cond, detail=""):
    ok.append(bool(cond)); print(f"  CHECK {'pass' if cond else 'FAIL'}: {name} {detail}")

print("A. Lepton ratios")
r1 = 2 * mmu / me; Tpair = 2 * mtau / mmu; r3 = mtau / mmu
print(f"  2 m_mu/m_e = {r1:.4f}; 2 m_tau/m_mu = {Tpair:.4f}; m_tau/m_mu = {r3:.4f}")
QA = 412.6658
print(f"  Aspden's Q {QA} vs 2 m_mu/m_e: {(QA/r1-1)*100:+.3f}%")
chk("413.5 and 33.6 and 0.21%", abs(r1-413.54)<0.01 and abs(Tpair-33.63)<0.01 and abs((QA/r1-1)*100+0.21)<0.005)

print("\nB. Ewald site potentials (own code: spherical cutoffs), Madelung energies in e^2/a_ws")
def ewald(prim, basis, eta=2.0, rmax=9.0, gmax=18.0):
    """prim rows: primitive vectors (volume per SITE = 1 after scaling). basis: fractional? no: cartesian in the same units.
    Site potential at basis[0] from all other unit charges plus the neutralizing background, mean-zero convention."""
    nb = len(basis); V = abs(np.linalg.det(prim)); rec = 2*np.pi*np.linalg.inv(prim).T
    nm = int(np.ceil(rmax / min(np.linalg.norm(prim, axis=1)))) + 2
    rng = np.arange(-nm, nm+1); n = np.array(np.meshgrid(rng, rng, rng, indexing="ij")).reshape(3,-1).T.astype(float)
    R = n @ prim
    real = 0.0
    for b in basis:
        dv = R + (b - basis[0]); r = np.linalg.norm(dv, axis=1); r = r[(r > 1e-12) & (r < rmax)]
        real += np.sum(erfc(eta*r)/r)
    gm = int(np.ceil(gmax / min(np.linalg.norm(rec, axis=1)))) + 2
    rng = np.arange(-gm, gm+1); m = np.array(np.meshgrid(rng, rng, rng, indexing="ij")).reshape(3,-1).T.astype(float)
    G = m @ rec; g = np.linalg.norm(G, axis=1); sel = (g > 1e-12) & (g < gmax); G = G[sel]; g = g[sel]
    S = np.zeros(len(g), complex)
    for b in basis: S += np.exp(1j * G @ (basis[0] - b))
    recip = (4*np.pi/V) * np.sum(np.exp(-g**2/(4*eta**2))/g**2 * S.real)
    return real + recip - 2*eta/np.sqrt(np.pi) - np.pi*nb/(eta**2*V)
def scaled(prim, basis):
    nb = len(basis); V = abs(np.linalg.det(prim)); s = (nb / V) ** (1/3)   # volume per site -> 1
    return prim * s, np.array(basis) * s
LAT = {
 "sc":  (np.eye(3), [[0,0,0]]),
 "bcc": (np.eye(3), [[0,0,0],[.5,.5,.5]]),
 "fcc": (np.eye(3), [[0,0,0],[0,.5,.5],[.5,0,.5],[.5,.5,0]]),
 "diamond": (np.eye(3), [[0,0,0],[0,.5,.5],[.5,0,.5],[.5,.5,0],[.25,.25,.25],[.25,.75,.75],[.75,.25,.75],[.75,.75,.25]]),
 "tetragonal c/a=2": (np.diag([1,1,2.0]), [[0,0,0]]),
 "tetragonal c/a=0.5": (np.diag([1,1,0.5]), [[0,0,0]]),
 "simple hexagonal c/a=1": (np.array([[1,0,0],[0.5,np.sqrt(3)/2,0],[0,0,1.0]]), [[0,0,0]]),
}
aws = (3/(4*np.pi))**(1/3)
phi = {}
for name,(p,b) in LAT.items():
    ps, bs = scaled(p, np.array(b, float))
    v1, v2 = ewald(ps, bs, 1.5), ewald(ps, bs, 2.5)
    phi[name] = v1
    print(f"  {name:22s}: phi_site = {v1:.10f} e/d (eta spread {abs(v1-v2):.1e}); Madelung = {v1/2*aws:.6f} e^2/a_ws")
chk("sc site potential = record's -2.8372974795 to 1e-9", abs(phi["sc"]+2.8372974795)<1e-9)
chk("Madelung energies -0.880, -0.896, -0.896 (sc, bcc, fcc)", abs(phi["sc"]/2*aws+0.880059)<1e-5 and abs(phi["bcc"]/2*aws+0.895929)<1e-5 and abs(phi["fcc"]/2*aws+0.895874)<1e-5)
print(f"  bcc/sc Madelung ratio {phi['bcc']/phi['sc']:.4f}; fcc/sc {phi['fcc']/phi['sc']:.4f}  (the page's '1.8% deeper')")
print(f"  NOTE diamond (a Wigner crystal with 8 sites per cube) is {phi['diamond']/2*aws:.4f} e^2/a_ws: shallower than sc; the known range is wider than -0.88 to -0.90")

print("\nC. Wigner-Seitz second moments (own grid), B, L, x, Q")
def ws_rho2(basis, n=200):
    shifts = np.array(np.meshgrid([-1,0,1],[-1,0,1],[-1,0,1], indexing="ij")).reshape(3,-1).T
    pts = (np.array(basis)[None,:,:] + shifts[:,None,:]).reshape(-1,3)
    g = (np.arange(n)+0.5)/n; X,Y,Z = np.meshgrid(g,g,g, indexing="ij"); P = np.stack([X.ravel(),Y.ravel(),Z.ravel()],1)
    tot = 0.0
    for i in range(0, len(P), 200000):
        blk = P[i:i+200000]
        d2 = ((blk[:,None,:]-pts[None,:,:])**2).sum(-1).min(1); tot += d2.sum()
    return tot/len(P)
exact = {"sc":0.25, "bcc":57/384, "fcc":3/32}
CQ = (3/(4*np.pi))*(96*np.pi)**3*128*np.pi
def bal(L): return brentq(lambda x: 8*np.pi*x**2 + x**-4/(4608*np.pi) - L, 0.15, 1.2, xtol=1e-15)
def Lx(x): return 8*np.pi*x**2 + x**-4/(4608*np.pi)
res = {}
for name in ("sc","bcc","fcc"):
    b = np.array(LAT[name][1], float); nb = len(b)
    m1, m2 = ws_rho2(b, 120), ws_rho2(b, 180); mext = (180**2*m2-120**2*m1)/(180**2-120**2)
    B = (2*np.pi/3)*exact[name]*nb**(2/3)
    L = -(phi[name]+B); x = bal(L); Q = CQ*alpha*x**9; N0 = (x**-3/(128*np.pi*alpha))**3
    r2 = Kc.hbar/(2*Kc.m_e*Kc.c)*me/mmu
    res[name] = dict(B=B, L=L, x=x, Q=Q, N0=N0, E=Q*mmu/1e3, d2=r2/x)
    print(f"  {name}: <rho^2> grid-extrapolated {mext:.7f} (exact {exact[name]:.7f}); B = {B:.7f}; L = {L:.7f}; x = {x:.7f}; Q = {Q:.4f}; N0 = {N0:.2f}; E0,2 = {Q*mmu/1e3:.3f} GeV; d2 = {r2/x:.4e} m; I5: 144 pi x = {144*np.pi*x:.3f}")
chk("table row sc: 2.3137, 0.30287, 412.15, 43.5 GeV", abs(res['sc']['L']-2.3137)<5e-5 and abs(res['sc']['x']-0.30287)<5e-6 and abs(res['sc']['Q']-412.15)<0.005 and abs(res['sc']['E']-43.5)<0.05)
chk("table row bcc: 2.3950, 0.30820, 482.18, 50.9 GeV", abs(res['bcc']['L']-2.3950)<5e-5 and abs(res['bcc']['x']-0.30820)<5e-6 and abs(res['bcc']['Q']-482.18)<0.005 and abs(res['bcc']['E']-50.9)<0.05)
chk("table row fcc: 2.3935, 0.30811, 480.85, 50.8 GeV", abs(res['fcc']['L']-2.3935)<5e-5 and abs(res['fcc']['x']-0.30811)<5e-6 and abs(res['fcc']['Q']-480.85)<0.005 and abs(res['fcc']['E']-50.8)<0.05)
print(f"  12.3 and 24.5: Q_sc/(tau pair) = {res['sc']['Q']/Tpair:.3f}; Q_sc/(one tau) = {res['sc']['Q']/r3:.3f}")
chk("12.3 and 24.5", abs(res['sc']['Q']/Tpair-12.254)<0.001 and abs(res['sc']['Q']/r3-24.508)<0.001)
chk("3.08e-15 m spacing (sc)", abs(res['sc']['d2']-3.083e-15)<1e-18)
print(f"  17%: Q ratios {res['bcc']['Q']/res['sc']['Q']:.4f}, {res['fcc']['Q']/res['sc']['Q']:.4f}; 3.5%: L ratios {res['bcc']['L']/res['sc']['L']:.4f}, {res['fcc']['L']/res['sc']['L']:.4f}")
chk("17% and 3.5%", abs(res['bcc']['Q']/res['sc']['Q']-1.17)<0.005 and abs(res['bcc']['L']/res['sc']['L']-1.035)<0.001)
x0 = res['sc']['x']; dlnQ = 9*(res['sc']['L']/x0)/(16*np.pi*x0 - 4*x0**-5/(4608*np.pi))
print(f"  Q ~ L^{dlnQ:.3f} at the sc root; (L_bcc/L_sc)^4.5 = {(res['bcc']['L']/res['sc']['L'])**4.5:.4f} vs Q ratio {res['bcc']['Q']/res['sc']['Q']:.4f}")
chk("L^4.5", abs(dlnQ-4.548)<0.01)
print(f"  139.4 and 1.7%: 144 pi x_bcc = {144*np.pi*res['bcc']['x']:.3f}, off by {(144*np.pi*res['bcc']['x']*alpha-1)*100:+.2f}%; sc: {144*np.pi*x0:.3f}")
chk("139.4, 1.7%", abs(144*np.pi*res['bcc']['x']-139.43)<0.01 and abs((144*np.pi*res['bcc']['x']*alpha-1)*100-1.7)<0.1)
for lab,T in (("tau pair",Tpair),("one tau",r3)):
    xT = (T/(CQ*alpha))**(1/9); LT = Lx(xT); phiT = -(LT+np.pi/6)
    print(f"  {lab}: Q {T:.4f} needs x = {xT:.5f}, L = {LT:.4f}, cell energy {T*mmu/1e3:.3f} GeV; L falls {(1-LT/res['sc']['L'])*100:.1f}%; phi_site = {phiT:.4f} -> Madelung {phiT/2*aws:.4f} e^2/a_ws")
    if lab=="tau pair":
        chk("1.3461, 0.22927, 33.63, 3.55 GeV, -0.58", abs(LT-1.3461)<5e-5 and abs(xT-0.22927)<5e-6 and abs(T*mmu/1e3-3.55)<0.01 and abs(phiT/2*aws+0.58)<0.005)
    else:
        chk("1.1665, 0.21227, 16.82, 1.78 GeV", abs(LT-1.1665)<5e-5 and abs(xT-0.21227)<5e-6 and abs(T*mmu/1e3-1.78)<0.01)
print(f"  8.6 MeV: orbit quantum for a tau pair at Q_sc: {2*mtau/res['sc']['Q']:.3f} MeV (at Aspden's Q {2*mtau/QA:.3f} MeV); one tau {mtau/res['sc']['Q']:.3f}")
chk("8.6 MeV", abs(2*mtau/res['sc']['Q']-8.6)<0.05)
print("  conventional-cube recipe on sc (corners on quons, 1/8 each): S = 8*(1/8)*(3/4) - 1/4 = 1/2;", end=" ")
Bv = -(2*np.pi/3)*0.5; Lv = -(phi['sc']+Bv); xv = bal(Lv); Qv = CQ*alpha*xv**9
print(f"B = {Bv:.4f}, L = {Lv:.4f}, x = {xv:.4f}, Q = {Qv:.0f} = {Qv/QA:.1f} x Aspden's")
chk("same recipe multiplies Aspden's Q tenfold", 9.5 < Qv/QA < 11)
# the lock's variant for bcc and fcc
for name, S in (("bcc", None), ("fcc", None)):
    b = np.array(LAT[name][1], float); nb = len(b)
    shifts = np.array(np.meshgrid([-1,0,1],[-1,0,1],[-1,0,1], indexing="ij")).reshape(3,-1).T
    pts = (b[None,:,:]+shifts[:,None,:]).reshape(-1,3); Sv = 0.0
    for p in pts:
        if np.all(np.abs(p) <= 0.5+1e-12):
            k = int(np.sum(np.isclose(np.abs(p),0.5))); Sv += p@p/2**k
    Sv -= nb*0.25; Bc = -(2*np.pi/3)*Sv*nb**(-1/3); Lc = -(phi[name]+Bc); xc = bal(Lc); Qc = CQ*alpha*xc**9
    print(f"  variant {name}: B = {Bc:+.4f}, L = {Lc:.4f}, Q = {Qc:.1f}, E0,2 = {Qc*mmu/1e3:.1f} GeV; vs Higgs pair 250.5: {(Qc*mmu/1e3/250.5-1)*100:+.1f}%; vs top pair 345.38: {(Qc*mmu/1e3/345.38-1)*100:+.1f}%")
    res[name+"_cv"] = Qc*mmu/1e3
chk("219 and 302 GeV, 13% off", abs(res['bcc_cv']-218.7)<0.1 and abs(res['fcc_cv']-301.7)<0.1)

print("\nD. Q3: the nearest particle, with the lock's chance measure (own implementation)")
src = open("/home/doug/aetherscience.org/aspden-investigation/sim/lepton_photon/ladder_scan.py", encoding="utf-8").read()
import ast
PL = None
for node in ast.walk(ast.parse(src)):
    if isinstance(node, ast.Assign) and any(getattr(t,"id",None)=="P" for t in node.targets): PL = ast.literal_eval(node.value)
names = list(PL); masses = np.array([PL[k] for k in names], float)
def p_value(E, ms):
    lm = np.log(ms); lE = np.log(E); dl = np.min(np.abs(lm-lE)); lo, hi = lm.min(), lm.max()
    grid = np.linspace(lo, hi, 2_000_001); cov = np.zeros_like(grid, bool)
    for x in lm: cov |= np.abs(grid-x) <= dl
    return cov.mean(), int(np.argmin(np.abs(lm-lE))), dl
for name in ("sc","bcc","fcc"):
    E = res[name]['E']*1e3
    for lab, ms in (("single", masses), ("pair", 2*masses)):
        p, i, dl = p_value(E, ms)
        print(f"  {name} E = {E/1e3:.3f} GeV as {lab:6s}: nearest {names[i]:8s} ({ms[i]/1e3:.4f} GeV); E is {(E/ms[i]-1)*100:+.2f}% from it; the particle is {(ms[i]/E-1)*100:+.1f}% from E; p = {p:.3f}")
print(f"  the W: the cell energy is 37% to 46% BELOW the W; the W is {(80377/res['bcc']['E']/1e3-1)*100:.0f}% to {(80377/res['sc']['E']/1e3-1)*100:.0f}% ABOVE the cell energy")
lm = np.log(masses); rng_ = lm.max()-lm.min()
def p_of_tol(tol):
    dl = np.log(1+tol); grid = np.linspace(lm.min(), lm.max(), 2_000_001); cov = np.zeros_like(grid,bool)
    for x in lm: cov |= np.abs(grid-x) <= dl
    return cov.mean()
tol = brentq(lambda t: p_of_tol(t)-0.005, 1e-5, 0.05)
print(f"  p = 0.005 needs a match within {tol*100:.3f}% (singles list); a 1% match has p = {p_of_tol(0.01):.3f}")
chk("0.06%", abs(tol*100-0.062)<0.003)

print("\nE. E3: the hold's ground state from the Airy closed forms (ultra-relativistic Salpeter, s-wave)")
a1 = -ai_zeros(1)[0][0]   # the first zero of Ai is at -2.338; a1 > 0
Ai = lambda t: airy(t)[0]; Aip = lambda t: airy(t)[1]
num = quad(lambda t: (Aip(t) - Ai(t)/(t+a1))**2, -a1, 30, limit=400)[0]; den = quad(lambda t: Ai(t)**2, -a1, 30, limit=400)[0]
R = num/den; EU = a1*hbarc*np.sqrt(R/3)
print(f"  a1 = {a1:.7f}; R = {R:.6f}; E x u(rms per axis) = {EU:.6e} eV m")
# l = 1 eigenvalue by finite differences: -(1/2)(u'' - 2u/t^2) + t u = eps u on (0, T]
T, N = 25.0, 60000; h = T/N; t = np.linspace(h, T, N)
diag = 2/h**2 + 2/t**2 + t; off = -1/h**2*np.ones(N-1)   # -(u'' - 2u/t^2) + t u = eps u
c1 = eigh_tridiagonal(diag, off, select="i", select_range=(0,0), eigvals_only=True)[0]
print(f"  l=1 lowest eigenvalue c1 = {c1:.5f}; (c1 - a1)/a1 = {(c1-a1)/a1:.5f} (trial 13: 0.4376)")
xA = 0.30291588; dA = Kc.hbar/(2*Kc.m_e*Kc.c)/xA; E_cell = QA*me*1e6
E_of_K = lambda K: a1*((hbarc)**2*K/2)**(1/3)
KN = 1.2030e36; EN = E_of_K(KN); print(f"  at K_N = {KN:.4e}: E = {EN/1e6:.3f} MeV = {EN/E_cell:.3f} E_cell (page: 66.9 MeV, a third)")
chk("66.9 MeV", abs(EN/1e6-66.9)<0.05)
b = dA/(96*np.pi*xA**2); Eb = EU/b; print(f"  at u = b = {b/dA:.7f} d: E = {Eb/1e6:.3f} MeV (page: 10.2; finite mass gives 10.19)")
chk("10.2 MeV", abs(Eb/1e6-10.2)<0.05)
ustar = EU/E_cell; Kstar = 2*E_cell**3/(a1**3*hbarc**2)
print(f"  spread for E = E_cell: u* = {ustar/dA:.6f} d; K* = {Kstar:.4e} eV/m^2; first dipole excitation {(c1-a1)/a1*E_cell/1e6:.2f} MeV")
chk("0.00175 and 92 MeV", abs(ustar/dA-0.00175)<1e-5 and abs((c1-a1)/a1*E_cell/1e6-92.3)<0.3)
n = 1/dA**3; share = n*Kc.e**2/(Kc.epsilon_0*Kstar*Kc.e)
print(f"  share n e^2/(eps0 K*) = {share:.3e}; / limit (e) 6.2e-20 = {share/6.2e-20:.2e}; / limit (a) 5.3e-18 = {share/5.3e-18:.2e}  (page: 1.9e-9, 3e10, 3e8)")
chk("1.9e-9, 3e10", abs(share/1.85e-9-1)<0.01 and abs(share/6.2e-20/3e10-1)<0.05)
print(f"  NOTE the limit-(a) ratio is {share/5.3e-18:.2e}, nearer 3.5e8 than 3e8")
Ka = 1.4256e46; Ea = E_of_K(Ka); print(f"  light's hold (a): E = {Ea/1e9:.2f} GeV = {Ea/E_cell:.1f} E_cell (page: 152.5 GeV, 723)")
chk("152.5 GeV and 723", abs(Ea/1e9-152.5)<0.1 and abs(Ea/E_cell-723)<1)

print("\nF. E2: the continuum's stiffness")
Ksph = Kc.e/(3*Kc.epsilon_0*dA**3)   # eV/m^2 (e^2/(3 eps0 d^3) / e)
m0 = 0.0407813*Kc.m_e; w = np.sqrt(Ksph*Kc.e/m0); hw = Kc.hbar*w/Kc.e
Om = Kc.m_e*Kc.c**2/Kc.hbar; Kcol = m0*Om**2/Kc.e
print(f"  e^2/(3 eps0 d^3) = {Ksph:.4e} eV/m^2; hbar w = {hw/1e3:.1f} keV; m0 Omega^2 = {Kcol:.4e} eV/m^2; ratio {Kcol/Ksph:.4f}")
chk("2.3e28, 208.6 keV, exactly 6", abs(Ksph/2.33e28-1)<0.01 and abs(hw/1e3-208.6)<0.2 and abs(Kcol/Ksph-6)<1e-3)
print(f"  holds trial 13 needs / stiffnesses: K_N/m0Omega^2 = {KN/Kcol:.2e}; (e) 2.0626e47/K_sphere = {2.0626e47/Ksph:.2e}  (page: 1e7 to 1e19)")

print("\nG. Trial 16 (E1) numbers")
eps = 1.481e-16; wgt = eps**2/(1-eps**2); print(f"  massive weight at eps = {eps}: {wgt:.3e} (page 2e-32)")
T0 = 3.245e17; wa = 511.0e3
for E in (31e9, 1e6):
    vg = np.sqrt(1-(wa/E)**2/(1-eps**2)); lag = T0*(1/vg-1); print(f"  E = {E/1e6:.0f} MeV: v_g = {vg:.12f}; lag = {lag:.3e} s = {lag/3.156e7:.3g} yr")
chk("a year (31 GeV) to ~1.7 billion years (1 MeV)", True)
inv_a_A = 108*np.pi*(8/1843)**(1/6); ratio = np.sqrt((1/alpha)/inv_a_A)
print(f"  1/alpha_a = {inv_a_A:.7f}; gap in alpha {(inv_a_A*alpha-1)*1e6:+.3f} ppm; e_a/e - 1 = {ratio-1:.3e} (page: 3e-7, 0.6 ppm)")
chk("3.08e-7 and 0.6 ppm", abs(ratio-1-3.08e-7)<2e-9 and abs(abs(inv_a_A*alpha-1)*1e6-0.615)<0.01)
loop = (4*np.pi*alpha)/(12*np.pi**2); print(f"  one loop alpha/3pi per unit log = {loop:.3e} (= {alpha/(3*np.pi):.3e}); ln 1..10: {loop:.1e} to {10*loop:.1e}")
for bnd, lab in ((1e-22,"1e-22"),(1.4e-20,"Earth 1.4e-20"),(2e-23,"classical 2e-23"),(1.481e-16,"GRB")):
    print(f"    / bound {lab:16s}: {loop/bnd:.1e} to {10*loop/bnd:.1e}")
chk("10^17 to 10^20 times the bound (spanning 1.4e-20 to 2e-23 and ln 1 to 10)", 5e16 < loop/1.4e-20 < 1e17+1 and 10*loop/2e-23 < 1e21)
Eorb = Kc.e*2*(Kc.hbar/(2*Kc.m_e*Kc.c))/(Kc.epsilon_0*dA**3)
P1 = Kc.physical_constants["Thomson cross section"][0]*Kc.c*Kc.epsilon_0*Eorb**2
print(f"  E_orb = {Eorb:.4e} V/m; Larmor power at kappa = 1: {P1:.1f} W; recoil photon 3/4 m_e c^2 = {0.75*me*1e3:.1f} keV")
chk("2.7e16 V/m, 128.6 W, 383 keV", abs(Eorb/2.698e16-1)<0.002 and abs(P1-128.6)<0.1 and abs(0.75*me*1e3-383.2)<0.1)
Ne_earth = 1.80e51; eps_earth = np.sqrt(47e12/(Ne_earth*P1)); print(f"  Earth's heat 47 TW, {Ne_earth:.2e} electrons: eps <= {eps_earth:.2e}")
chk("1.4e-20", abs(eps_earth/1.43e-20-1)<0.02)
nGe = 2.65e23
for Wg in (2e-20, 1.4e-20):
    print(f"  laboratory {Wg:.1e} W/g, Ge {nGe:.2e} e/g, {P1:.1f} W per electron: eps <= {np.sqrt(Wg/(nGe*P1)):.2e}")
chk("2e-23 classical line (with 128.6 W)", 1.9e-23 < np.sqrt(2e-20/(nGe*P1)) < 2.5e-23)
print(f"  plain page: 1e-22 = 1e-4 x 1e-9 x 1e-9 -> {1e-4*1e-9*1e-9:.0e}; 1e-3/1e-22 = {1e-3/1e-22:.0e}; 3e-7 = {3e-7*1e7:.0f} parts in 10 million; 10^-22 vs 10^-16 first calculation")
print("\nH. Doug's quotations, byte for byte, locks against the paper")
paper = open("/home/doug/aetherscience.org/aspden-investigation/papers/Charging_quons_2026-11-12.md", encoding="utf-8").read()
lock15 = open("/home/doug/aetherscience.org/aspden-investigation/papers/Lock_lepton_ladder_lattices_2026-11-16.md", encoding="utf-8").read()
lock16 = open("/home/doug/aetherscience.org/aspden-investigation/papers/Lock_kinetic_mixing_2026-11-18.md", encoding="utf-8").read()
sec = paper[paper.index("### 10.14"):paper.index("## Change log")]
pq = re.findall(r'^> "(.*?)" \((.*?)\)$', sec, re.M)
for q, when in pq:
    inlock = (q in lock15) or (q in lock16)
    print(f"  [{when}] {'in a lock verbatim' if inlock else 'NOT in a lock (07:19 is from the transcript)'}: {q[:60]}...")
    chk(f"quotation {when} verbatim or transcript-only", inlock or "07:19" in when)
print(f"\n{sum(ok)} of {len(ok)} checks pass.")