Fundamental Station and Cosmic Observatory
A framework in which shaders are the instruments. The GPU does not render someone else's measurement; it performs the measurement. This repository holds the mathematical framework, its reference implementations, two papers that state the framework's claims, and a browser-native web app that lets a visitor's GPU execute the instruments without ever contacting a server.
Every SI unit reduces to a count of states, a ratio, or the circle
constant
Every persistent physical system occupies a bounded region of phase space with finite Liouville measure. Finiteness implies Poincaré recurrence, which implies oscillatory dynamics, which implies discrete mode structure. State counting is well-defined, and the count is finite.
A bounded system with
| Description | Interpretation | Count |
|---|---|---|
| Oscillatory | Phases per cycle | |
| Categorical | Distinguishable states | |
| Partition | Hierarchical cells |
All three collapse to
In a three-dimensional bounded space the partition coordinates are a
4-tuple
Thermodynamic state maps bijectively onto a dimensionless triple
Integer compositions of
Observation, computing, and processing are mathematically identical operations — each is categorical address resolution in partition space. The distinction between them is the mechanism of refinement, not the result. Photon-mediated refinement (observation), equation-mediated refinement (computing), and constraint-mediated refinement (processing) all converge to the same address.
If every SI unit reduces to counts +
.
├── README.md (this file)
├── Cargo.toml workspace manifest for the Rust crates
├── Makefile common entry points
├── LICENSE MIT
├── docs/sources/ the theoretical corpus (.tex sources)
├── publication/ two standalone papers + Python + Rust + figures
│ ├── shader-based-astronomy/
│ └── universal-partition-depth-observatory/
└── web/ browser-native Next.js app (the observatory site)
Two publishable, self-contained papers live under publication/:
-
Shader-Based Astronomy — establishes that a GPU fragment shader pipeline computes astronomical observables (Rayleigh and Mie scattering, refractive delay, orbital mechanics, positioning) to the numerical precision of the underlying quadrature. 10/10 benchmarks pass, median relative error 6.9 × 10⁻⁵.
-
Dimensionless Reduction of the Gravitational Constant — derives
$G$ via three independent routes from bounded-phase-space partition structure, establishes the$(d+1)^{-n}$ precision scaling, proposes experimental tests, and derives cosmological corollaries (MOND's$a_0 \approx c H_0 / 2\pi$ , dark-energy$w_{\text{eff}} = -0.75$ ,$\dot G/G$ of order$10^{-11}$ yr$^{-1}$). 43/43 benchmarks pass. -
Harmonic-Scattering Loop Coupling — builds a transfer-matrix framework for resolving multiple independent sources through a single looped optical path in a polyatomic molecular resonator. Proves the transfer-matrix rank equals the cycle rank
$C$ of the molecular harmonic graph plus one; derives the dephasing-bounded capacity$N_{\max} = (C+1),T_{\mathrm{deph}}/T_L$ . Machine-precision reconstruction through a benzene-like resonator, within-class Spearman$\rho_s = +0.96$ for the$\mu$ --$n_r$ relation across seven H-bonding liquids, sub-quadratic scaling$\kappa \propto C^{1.25}$ up to$C=10$ . 18/18 benchmarks pass.
Each paper ships with:
- a CPU Python reference in
python/for prototyping and validation, - a Rust crate in
rust/for the production implementation, - JSON and CSV validation outputs in
output/, - publication-quality figure panels in
figures/.
These are the scientific ground truth. They are intentionally plain and slow — every formula in the papers appears unadorned in the source, as close to the prose as NumPy / mpmath allow. Both packages expose a CLI that runs the paper's validation suite and writes JSON + CSV outputs:
cd publication/shader-based-astronomy/python
PYTHONPATH=src python -m shader_astronomy.cli --output-dir ../output
cd publication/universal-partition-depth-observatory/python
PYTHONPATH=src python -m gthree.cli --output-dir ../outputNon-zero exit if any benchmark fails. These runs are the scientific acceptance criterion for every subsequent implementation.
GPU implementations live in publication/*/rust/. They share WGSL
shader source (currently shader-based-astronomy/rust/src/shaders/,
with the G observatory's crate to follow). The Rust path compiles both
to native (desktop / server) and, with the wgpu backend, to WebGPU
in the browser. One shader codebase, two delivery surfaces.
web/ is a Next.js 13 + Tailwind + Framer Motion app configured for
full static export. There is no backend. The out/ bundle after
npm run build is pure HTML + JavaScript + WGSL + binary assets,
hostable on any CDN. Every observable displayed on the site is
computed in the visitor's GPU from shaders the visitor's browser
fetched once.
Pages:
/— landing, with a rotating Jupiter model/instruments/— instrument hub (atmosphere live; G routes, spectrometer, mass spec pending)/instruments/atmosphere/— the five-pass atmospheric pipeline in WebGPU/documentation/— paper cards linking to PDFs/about/— framework posture, attribution
make validateor directly:
cd publication/shader-based-astronomy/python
PYTHONPATH=src python -m shader_astronomy.cli
cd ../../universal-partition-depth-observatory/python
PYTHONPATH=src python -m gthree.cliExpected outcome: 10/10 pass and 43/43 pass respectively, with
JSON + CSV written to each paper's output/ directory.
make figuresWrites PNG panels into each paper's figures/ directory. Each panel
is a 1 × 4 layout with at least one 3D chart; all data is generated
from the actual validation modules.
cargo build --release
cargo test --releaseThe workspace Cargo.toml at the root links to the crates under
publication/. Individual crates are buildable from their own
directories too.
cd web
npm install
npm run dev # http://localhost:3000cd web
npm run build # writes web/out/ — deployable static bundleNo server component. Drop web/out/ on any CDN (Cloudflare Pages,
Netlify, Vercel, S3 + CloudFront, GitHub Pages, anywhere that serves
static files).
Every numerical claim in either paper is reproduced by an automated benchmark in the Python reference. The benchmarks write JSON and CSV so that claims can be checked without re-running the code. Any deviation — a route that drifts from CODATA, a benchmark that slips outside tolerance, a shader whose output disagrees with the CPU reference — is a regression and shows up as a failing test.
Snapshot at time of writing:
| Paper | Benchmarks | Pass rate | Max rel. error |
|---|---|---|---|
| Shader-Based Astronomy | 10 | 10 / 10 | 4.3 × 10⁻³ |
| Dimensionless |
43 | 43 / 43 | within bound |
| Harmonic-Scattering Loop Coupling | 18 | 18 / 18 | within |
- Both papers are complete and buildable (
pdflatex+bibtex). - Both Python references run end-to-end and emit archival JSON + CSV.
- Both papers' figure panels regenerate from actual data.
- The web app builds as a static site (7 routes, 119 KB shared JS).
- The atmosphere instrument page initialises WebGPU, fetches the five WGSL shaders, compiles shader modules, surfaces precise errors.
- The full per-frame dispatch loop for the atmosphere instrument (texture allocation, bind groups, encode/submit per pass).
- The pre-computed bootstrap textures (terrain partition, material S-entropy) the atmosphere instrument reads.
- A shader-sync pre-build step so
web/public/shaders/always mirrors the canonical source inpublication/shader-based-astronomy/rust/src/shaders/. - The Rust crate for the G observatory (parallel to
publication/shader-based-astronomy/rust/).
- G-routes instrument (live three-route G computation in the browser)
- Spectrometer instrument (hardware-oscillator spectroscopy demo)
- Mass-spec instrument (force-free partition-depth minimisation demo)
- Python bindings for the Rust crates via PyO3, so lab software can call the framework without leaving Python
Framework, software, and papers: Kundai Farai Sachikonye
(kundai.sachikonye@bitspark.com).
The theoretical corpus under docs/sources/ is also authored by
Kundai; the published papers under publication/ are deliberately
self-contained and do not cite the corpus, so each paper stands on
its own derivations.
The Jupiter GLB on the landing page is under its own licence (placed
by Kundai). The Next.js chassis under web/ started from a
CodeBucks-licensed portfolio template; all portfolio content has
been replaced with observatory content.
MIT. See LICENSE.
