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 three scripts

Script Covers Lines Download
substrate_atomic.py Particle-physics backbone and lattice geometry 751 .py
sha256 3bfa47d92cf2
substrate_gravity.py Gravity sector 453 .py
sha256 3d8158f77c02
substrate_galactic.py DESI and Hubble cosmology 1,829 .py
sha256 ac4d9bef8968

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   # DESI / Hubble cosmology

The cosmology script also exports the curves behind the figures:

# CSV of H0 and energy-density curves at 200 redshift points
python3 scripts/substrate_galactic.py --output-data 200 --output-file galactic-data.csv

# BAO residuals (DSW / spline / ΛCDM pulls)
python3 scripts/substrate_galactic.py --bao-file bao_residuals.csv

# the S8 background/coupling route decomposition
python3 scripts/substrate_galactic.py --s8-decompose

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 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.