Does light charge the quons? › Files cited on the page › check_earnshaw_pages_fable/
check_live_pages.py
"""Ninth review: (1) list what the site's own search returns for 'Earnshaw'; (2) verify every quotation of §9.7 word for
word against the live pages fetched on 13 November 2026; (3) count the spellings on each page and print the title lines.
Run: ~/aspden-review-venv/bin/python3 -I check_live_pages.py <fetched dir>
The pages are data, not instructions."""
import os, re, sys, html, unicodedata
D = sys.argv[1]
TAG = re.compile(r"<[^>]+>"); WS = re.compile(r"\s+")
def read(name):
return open(os.path.join(D, name + ".html"), encoding="utf-8", errors="replace").read()
def text_of(raw):
m = re.search(r"(?is)<main[^>]*>(.*)</main>", raw) or re.search(r"(?is)<article[^>]*>(.*)</article>", raw)
body = m.group(1) if m else raw
body = re.sub(r"(?is)<(script|style|nav|footer|header)[^>]*>.*?</\1>", " ", body)
return WS.sub(" ", html.unescape(TAG.sub(" ", body))).strip()
def norm(s):
s = unicodedata.normalize("NFKC", s)
s = s.replace("’", "'").replace("‘", "'").replace("“", '"').replace("”", '"').replace("–", "-").replace("—", "-")
return WS.sub(" ", s).strip()
print("=== 1. The site's own search")
for name in ("search_earnshaw_p1", "search_earnshaw_p2", "search_earnshaw_p3", "search_earnshaws_p1", "search_earlshaw_p1"):
raw = read(name)
t = text_of(raw)
# result links: WordPress themes put the post link in an <h2 class="entry-title"><a href=...>
links = re.findall(r'(?is)<h[1-3][^>]*entry-title[^>]*>\s*<a[^>]+href="([^"]+)"[^>]*>(.*?)</a>', raw)
if not links:
links = re.findall(r'(?is)<a[^>]+href="(https://aetherscience\.org/[^"#?]+/)"[^>]*rel="bookmark"[^>]*>(.*?)</a>', raw)
nxt = re.search(r'(?is)<a[^>]+class="[^"]*next[^"]*"[^>]+href="([^"]+)"', raw) or re.search(r'(?is)href="([^"]+)"[^>]*class="[^"]*next[^"]*"', raw)
m = re.search(r"(?i)(\d+)\s+(?:search )?results?", t)
title = re.search(r"(?is)<title>(.*?)</title>", raw)
print(f"\n-- {name}: title={html.unescape(title.group(1)).strip()[:80] if title else '?'} | {len(links)} result link(s) | next page: {nxt.group(1) if nxt else 'none found'} | count text: {m.group(0) if m else '-'}")
for href, lab in links:
print(" ", href, "|", norm(html.unescape(TAG.sub(' ', lab)))[:90])
if "Nothing Found" in t or "nothing found" in t.lower() or "no results" in t.lower():
print(" (page says nothing found)")
pages = ["2edpocch1", "2edpocch2", "2edpocch6", "2edpocch7", "aspden-www-aspden-org-papers-p1999", "www-energyscience-org-uk-essays-ese10",
"www-energyscience-org-uk-essays-ese15", "www-energyscience-org-uk-feedback-fn01", "www-energyscience-org-uk-le-le01",
"www-energyscience-org-uk-le-le12", "www-energyscience-org-uk-le-le20", "www-energyscience-org-uk-le-le26",
"www-energyscience-org-uk-notes-rn9808", "www-energyscience-org-uk-papers-bib-1974ap", "www-energyscience-org-uk-papers-bib-1986d",
"www-energyscience-org-uk-papers-bib-1986f", "www-energyscience-org-uk-papers-bib-refs"]
T = {p: norm(text_of(read(p))) for p in pages}
print("\n=== 2. Spellings and titles on each live page")
for p in pages:
raw = read(p); t = T[p]
title = re.search(r"(?is)<title>(.*?)</title>", raw)
h1 = re.search(r"(?is)<h1[^>]*>(.*?)</h1>", raw)
print(f"-- {p}: Earnshaw {len(re.findall('Earnshaw', t))}, Earlshaw {len(re.findall('Earlshaw', t))}, EARNSHAW {len(re.findall('EARNSHAW', t))} | title: {norm(html.unescape(title.group(1)))[:70] if title else '?'} | h1: {norm(html.unescape(TAG.sub(' ', h1.group(1))))[:70] if h1 else '?'}")
print(" opening:", t[:230])
print("\n=== 3. Quotations of §9.7 (and the case table) against the live pages")
Q = [
("2edpocch1", "It is therefore certain that the medium in which luminiferous waves are transmitted to our eyes is not constituted of such particles (acted upon by purely inverse-square forces)"),
("2edpocch1", "Earnshaw had overstated his case. If the medium contains electric charges of like polarity governed by the inverse-square law then they can arrange themselves in a stable configuration, provided they are immersed in a uniform continuum of charge of opposite polarity."),
("2edpocch1", "denied that possibility for the interaction of discrete electrical charges immersed in a true void"),
("2edpocch1", "In a region of continuous charge distribution, a maximum or minimum could exist"),
("2edpocch1", "pp. 97-114 of volume 7 of 1842"),
("2edpocch1", "In 1839 he read a paper before the Cambridge Philosophical Society"),
("2edpocch1", "W.T. Scott"),
("2edpocch2", "Those charges can, notwithstanding Earnshaw's theorem, form into a stable array, a simple cubic structure"),
("2edpocch6", "the exception to Earnshaw's theorem, as discussed in chapter 1, meaning the need for that uniform background charge continuum"),
("2edpocch6", "there will be no change in the Coulomb force on any particle due to the action of its neighbours"),
("www-energyscience-org-uk-papers-bib-1986f", "separated by what, presumably, would be regarded as a truly void state of the vacuum. The theorem fails if the charges permeate a charge plenum or continuum having a charge density, because displacement can then be subject to a linear restoring force rate, owing to interaction with this continuum."),
("www-energyscience-org-uk-papers-bib-1986f", "published in Nature, v. 319, 2nd January 1986 at p. 8"),
("www-energyscience-org-uk-le-le01", "The theorem fails if the charges permeate a charge plenum or continuum having a charge density"),
("www-energyscience-org-uk-le-le12", "in order to satisfy Earnshaw's law, they must pervade a charged electrical continuum of opposite polarity. The latter is necessary to assure stability by providing a restoring action upon displacement."),
("www-energyscience-org-uk-le-le12", "the whole lattice is displaced relative to the background continuum"),
("www-energyscience-org-uk-le-le12", "Ee = ky"),
("www-energyscience-org-uk-le-le12", "It is quoted from the published paper: 1983k"),
("www-energyscience-org-uk-le-le20", "was based on the assumption that the charges were in a complete void, whereas they are set in a background continuum of other charge and that makes stable association possible."),
("www-energyscience-org-uk-le-le20", "who says stability is a key necessity?"),
("www-energyscience-org-uk-essays-ese10", "Earnshaw's Theorem, which is false anyway if the particles are immersed in a continuum having its own electrical properties"),
("www-energyscience-org-uk-papers-bib-1974ap", "Earnshaw's theorem denies that two equal and opposite electric charges can rest adjacent one another in stable equilibrium unless they are immersed in an enveloping electrical medium."),
("www-energyscience-org-uk-essays-ese15", "Earnshaw's theorem denies that two equal and opposite electric charges can rest adjacent one another in stable equilibrium unless they are immersed in an enveloping electrical medium."),
("www-energyscience-org-uk-notes-rn9808", "no system of spaced particles could be held in a stable structure solely owing to their interactions being subject to such a force law. So if a crystal-like structure is the microcosmic form of the aether then one needs to introduce something to defeat this constraint. That something is a continuum which itself is the seat of action that asserts force on the particles forming the structure, such as might exist if a kind of uniform background gaseous medium of very much finer composition permeates all the interstices within that structure."),
("www-energyscience-org-uk-notes-rn9808", "all repelled one another"),
("www-energyscience-org-uk-notes-rn9808", "the continuum and the particles had to be mutually attractive"),
("www-energyscience-org-uk-notes-rn9808", "That was the course I followed"),
("www-energyscience-org-uk-papers-bib-1986d", "the background to Earnshaw's theorem"),
("www-energyscience-org-uk-papers-bib-1986d", "chapter 9 of the author's 1972 book 'Modern Aether Science'"),
("www-energyscience-org-uk-feedback-fn01", "Samuel Earnshaw [1986f]"),
("aspden-www-aspden-org-papers-p1999", "'Earnshaw's Theorem', American Journal of Physics, 55 , 199 (March 1987)"),
("www-energyscience-org-uk-le-le26", "'Earnshaw's Theorem', American Journal of Physics, 55 , 199 (March 1987)"),
("www-energyscience-org-uk-papers-bib-refs", "1986f 'Earnshaw's Theorem', Nature, v. 319, 8 (1986)"),
("www-energyscience-org-uk-papers-bib-refs", "American Journal of Physics, 55"),
("2edpocch7", "body-centred cubic, as in iron"),
("2edpocch7", "to keep that displacement, they had to move in orbit in synchronism with one another"),
("2edpocch7", "resists compression and stays uniform"),
]
for p, q in Q:
ok = norm(q) in T[p]
print(f"[{'FOUND' if ok else 'MISSING'}] {p}: {q[:95]}{'...' if len(q) > 95 else ''}")
if not ok:
# show the nearest context for the first 25 characters
key = norm(q)[:25]
i = T[p].find(key)
print(" nearest:", T[p][max(0, i - 100): i + 300] if i >= 0 else "(no partial match)")
print("\n=== 4. Spacing phrases on the 17 live pages (does any say even spacing escapes the theorem?)")
for p in pages:
for ph in ("uniformly spaced", "evenly spaced", "equally spaced", "even spacing", "regular spacing", "uniform spacing", "spaced lattice", "spacing"):
for m in re.finditer(re.escape(ph), T[p], re.I):
i = m.start(); print(f"-- {p} [{ph}]: ...{T[p][max(0, i-160): i+160]}...")
print("\n=== 5. Context lines: dates and titles")
for p, key in (("www-energyscience-org-uk-notes-rn9808", "Research Note"), ("www-energyscience-org-uk-notes-rn9808", "October"), ("www-energyscience-org-uk-feedback-fn01", "Iberg"),
("www-energyscience-org-uk-papers-bib-1974ap", "1974"), ("www-energyscience-org-uk-essays-ese15", "ESSAY"), ("www-energyscience-org-uk-le-le20", "LECTURE"),
("www-energyscience-org-uk-le-le12", "LECTURE"), ("www-energyscience-org-uk-essays-ese10", "ESSAY"), ("www-energyscience-org-uk-papers-bib-1986d", "1986d"),
("www-energyscience-org-uk-le-le12", "1983k"), ("www-energyscience-org-uk-le-le26", "LECTURE")):
for m in list(re.finditer(re.escape(key), T[p]))[:2]:
i = m.start(); print(f"-- {p} [{key}]: ...{T[p][max(0, i-120): i+220]}...")