Does light charge the quons? › Files cited on the page › the trials

questions_review8_check.py

In the investigation at sim/charge_wave/questions_review8_check.py · last changed in commit 5421b58, 13 November 2026 · 4,521 bytes · runnable copies in the scripts zip


"""questions_review8_check.py - this seat's check of the eighth reviewer's F1, F2 and F5 on charging quons draft 0.14
(section 9) and trial 6 (post hoc; not a trial; written after the review, 13 November 2026).

F1  Which whole-number ratios N = 2 to 80 pass section 9.1's five tests at Aspden's quon radius (point finer quons, the
    quon a uniform ball): the rest position and hold tensor by this seat's own real-space Ewald route, the functions of
    reflection_grid_review7_check.py taken unchanged (the route is described there). A pass: the quon's lowest place is
    on a finer quon or at the centre of a finer cell (a cube's symmetry, so one hold in every direction), and the hold
    there is at least 0.0927 (the simple cubic lattice stable); the ratio is whole by construction.
F5  The second, higher resting place on a finer quon (u = 0) in the second window: the hold tensor at u = 0 for N = 26 to 34.
F2  The interaction energy of quons of several levels sharing a point (trial 6's model, U44's charges e at every level):
    a point charge at the centre of a uniform ball of charge e and radius b_k has energy (3/2) e^2/b_k (Gaussian units),
    and Aspden's m0 c^2 = e^2/(3b) (his (7.4)), so each pair (j < l) of coincident levels adds 4.5 m0c^2 N^(j-1); against
    the sums T_n of trial 6 on both readings.
Run: ~/aspden-review-venv/bin/python3 questions_review8_check.py > questions_review8_check_out.txt
"""
import ast, math, time
import numpy as np

T0 = time.time()
src = open("reflection_grid_review7_check.py", encoding="utf-8").read()
WANT_F = {"e_val", "e_grad_hess", "n_inside", "rest", "name"}
WANT_A = {"ETA", "SQPI", "B_ASPDEN", "SC_MIN", "PBOX", "MREC", "M2", "CREC", "WEDGE"}
body = []
for node in ast.parse(src).body:
    if isinstance(node, (ast.Import, ast.ImportFrom)):
        body.append(node)
    elif isinstance(node, ast.FunctionDef) and node.name in WANT_F:
        body.append(node)
    elif isinstance(node, ast.Assign) and any(isinstance(t, ast.Name) and t.id in WANT_A for t in node.targets):
        body.append(node)
R7 = {}
exec(compile(ast.Module(body=body, type_ignores=[]), "reflection_grid_review7_check.py (functions only)", "exec"), R7)
rest, e_grad_hess, n_inside, name = R7["rest"], R7["e_grad_hess"], R7["n_inside"], R7["name"]
B, SC = R7["B_ASPDEN"], R7["SC_MIN"]
CUBIC = {(0.0, 0.0, 0.0), (0.5, 0.5, 0.5)}

print("Check of the eighth reviewer's F1, F2 and F5 (this seat; post hoc; not a trial)")
print("\nF1. The five tests of section 9.1 at Aspden's radius, N = 2 to 80 (point finer quons)")
print("      N    a*N     rest position          n in   eigenvalues of K            share 1/(1+K)   five tests")
passing = []
for N in range(2, 81):
    alpha = B * N
    v, _ = rest(alpha)
    _, H = e_grad_hess(v, alpha)
    lam = np.linalg.eigvalsh(-H / (4 * np.pi))
    cubic = tuple(float(x) for x in v) in CUBIC
    ok = cubic and lam[0] >= SC
    if ok:
        passing.append(N)
    if N >= 40 or ok:
        print(f"     {N:3d}  {alpha:.4f}   {name(v):22s} {n_inside(v, alpha):3d}   {lam[0]:+.4f} {lam[1]:+.4f} {lam[2]:+.4f}"
              f"     {1/(1+lam.mean()):.3f}         {'pass' if ok else 'fail'}", flush=True)
groups, start = [], passing[0]
for a_, b_ in zip(passing, passing[1:] + [None]):
    if b_ != a_ + 1:
        groups.append(f"{start}" if start == a_ else f"{start}-{a_}")
        start = b_
print("  passing whole numbers, 2 to 80: " + ", ".join(groups))

print("\nF5. The hold at u = 0 (on a finer quon) in the second window, point finer quons")
for N in range(26, 35):
    alpha = B * N
    _, H = e_grad_hess(np.zeros(3), alpha)
    lam = np.linalg.eigvalsh(-H / (4 * np.pi))
    print(f"     {N:3d}  n in {n_inside(np.zeros(3), alpha):3d}   eigenvalues {lam[0]:+.4f} {lam[1]:+.4f} {lam[2]:+.4f}"
          f"   a resting place: {lam[0] > 0}")

print("\nF2. Interaction energy of coincident quons (U44's charges), as a share of trial 6's sums T_n")
me_MeV = 0.51099895
rd = 0.75 * (8 / 1843) ** (1 / 6)
m0c2 = (4 / 9) * rd ** 2 * me_MeV
for N in (13, 14, 15):
    for n in (2, 3, 4):
        inter = sum(4.5 * m0c2 * N ** (j - 1) for j in range(1, n + 1) for l in range(j + 1, n + 1))
        TM = m0c2 * sum(N ** k for k in range(n))
        TR = me_MeV * sum(N ** k for k in range(n))
        print(f"     N = {N}, {n} levels: interaction {inter*1e3:10.2f} keV;  share of T_n on the 20.84 keV reading {100*inter/TM:5.1f}%,"
              f" on the 511 keV reading {100*inter/TR:4.2f}%")
print(f"\nrun time {time.time() - T0:.0f} s")