Source code

The three scripts that reproduce the numbers

Most of the numerical claims on this site are not hand-carried from a spreadsheet. They come out of three Python scripts, and those scripts are printed here in full so you can read them without downloading anything, check a constant against its cited source, and rerun them yourself.

The rule the scripts follow is the same rule the framework follows: no fitted knobs. Every constant is either a measured input with its source labelled in the comment beside it (CODATA 2018, PDG, Planck 2018, DESI DR2) or a number derived from the two structural constants — the Larichev–Reznik constant K = j_{11}^2 + 1 and the mutual-friction coupling \alpha_\mathrm{mf} = \tan^2\theta_W. If you change an input, the outputs move together; there is nowhere to tune one prediction without disturbing the rest. That is the point of publishing them. The one exception is labelled as such: the cosmology script’s structure-growth table runs on the best-fit expansion histories from the WIP-38 likelihood fit, quoted as inputs, because that fit needs the full supernova covariance and lives in a separate numpy/scipy script.

The three scripts

Script Covers Lines Download
substrate_atomic.py Particle-physics backbone and lattice geometry 968 .py
sha256 ba57069e354c
substrate_gravity.py Gravity sector 461 .py
sha256 edc0060a663b
substrate_galactic.py Dark energy and cosmology 637 .py
sha256 17bb7dacaaec

Click a script name for the full listing with syntax highlighting, or the .py link to download the file directly. The sha256 prefix is of the exact file served here, so a listing can be matched to a run.

Running them

They need Python 3 and nothing else — no numpy, no scipy, no install step. Each one prints a table of predicted-vs-observed values with the discrepancy in the last column.

python3 scripts/substrate_atomic.py     # particle-physics backbone + lattice
python3 scripts/substrate_gravity.py    # gravity sector
python3 scripts/substrate_galactic.py   # dark energy and cosmology

The cosmology script also exports the dark-energy histories f(z) and w(z), the expansion rate, and the angular-diameter distance:

# CSV of the curves at 201 redshift points, 0 ≤ z ≤ 3
python3 scripts/substrate_galactic.py --output-data 200 --output-file galactic-data.csv

It reproduces the numbers in Dark Energy as a Disequilibrium Residual that need no likelihood fit. The fit itself (DESI DR2 BAO, Pantheon+ and Planck distance priors) is scripts/wip38_ntr_clock_fit.py. The moraine-crust code this script used to carry was removed with the retraction and remains in the repository history.

Where the numbers land

The outputs feed the tables in Reproducing the numbers and the scorecard. If you want the accounting for whether the matches could be luck, that is Could this be chance?; if you want the ledger of what is an input versus an output, that is the constraint summary.

These three are the backbone, not the whole shelf. The scripts/ directory in the repository also holds the Bogoliubov–de Gennes vortex solvers, the WIP-38 dark-energy likelihood fit, the (retired) crust-texture S_8 chain, the Koide phase-lock studies, and the figure generators — heavier programs, some with third-party dependencies, that back individual pages rather than the paper’s main tables.