Eight Papers That Run: Case Studies of Index-Checked Scientific Documents
We wrote eight scientific papers as documents that run: softmax regression on the iris data, magnetic field lines of tori by Biot–Savart and an eighth-order Runge–Kutta method, a free-boundary Grad–Shafranov equilibrium, light around a rotating black hole, the Ricci tensor of the Kerr metric, Boozer coordinates from field lines, the covariant divergence of the stress tensor as a check of the equilibrium, and a three-dimensional equilibrium by energy minimisation. Each document holds its data files and its method section in named-tensor notation; every one of its 279 display equations is index-checked by the C++ compiler, and the document is run as written. Because nothing of the method is outside the document, each paper is checked by checking its result: against the same algorithm written separately, an exact solution, or an exactly conserved quantity, with a deliberately wrong control where a check could pass for the wrong reason. All eight agree with their references, for example the Ricci tensor vanishes in vacuum to 6.4 × 10 − 9 while its four terms are each up to 5 × 10 − 2, and the stress divergence of the equilibrium cancels to 1.2% while a 50% error in the pressure leaves 10.7%. The cases also show what the index check misses: a position update placed in the wrong iteration passed it three times and was found only by a conserved quantity. This is one of three papers that split the preprint The Equation Is the Type, version 3 (10.5281/zenodo.24762562): The Equation Is the Type: Compile-Time Checking of Named-Tensor Equations Written in LaTeX (10.5281/zenodo.24786239), Documents as Programs (10.5281/zenodo.24786242) and Eight Papers That Run (10.5281/zenodo.24786244). Source, data and scripts: github.com/uyuutosa/tensor, tag paper-split-preprint; the manuscripts are in paper/split/.
Authors
- Yu Sato (ORCID: https://orcid.org/0009-0009-4453-3507)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24786243
- Citations
- 2
- Primary Topic
- Mathematics, Computing, and Information Processing
- Type
- preprint