A strict referee
for physics.

Plumb checks empirical comparisons and refuses hidden systematics or unstated assumptions — accelerating agents in physics as Lean did for mathematics.

Can one expansion history fit both galaxy distances and the local distance ladder?

13 DESI DR2 distance ratios, SH0ES’s H₀ and Planck’s sound horizon

Planck’s inferred H₀ and SH0ES exceed their joint χ² budget for every H₀ in the box. When Planck supplies the sound horizon instead, one shared set of parameters fits all 15 observations together.

View full module
examples/cosmology/hubble_tension.plumb
compare planck_vs_shoes_h0:
  planck_2018_h0, shoes_2022_h0
    ~ flat_lcdm_hubble_network
  at H0 in [60 km/s/Mpc, 80 km/s/Mpc],
     r_d = 147.09 Mpc, Omega_m = 0.3
  accept chi2 <= 16
  expect conflict certified_enclosure
  by consistency_graph

compare desi_shoes_rd_honest:
  desi_dr2_bao, shoes_2022_h0,
  planck_2018_rd ~ flat_lcdm_hubble_network
  at H0 in [66 km/s/Mpc, 73.4 km/s/Mpc],
     r_d in [145 Mpc, 149 Mpc],
     Omega_m in [0.256, 0.32]
  accept chi2 <= 25
  expect compared
  by consistency_graph
Verdict · plumb check examples/cosmology/hubble_tension.plumb
conflict planck_vs_shoes_h0 χ² ≥ 322624/13117 ≈ 24.60
compared desi_shoes_rd_honest χ² < 22.90 across 15 obs

What Plumb enforces

Four invariants checked mechanically on every run.

Assumptions stay visible.
A raw measurement cannot carry a model. Results inferred under ΛCDM, a fiducial template or fair sampling must say so, and every theory compared against them must grant those premises.
Noise and bounds never mix.
Statistical errors combine through exact covariance algebra. Worst-case systematic bounds are evaluated over their whole interval, never added in quadrature.
Shared errors are counted once.
Calibrations shared between measurements add coherently and cancel when differenced. Circular calibration and correlated results posing as independent ones are refused.
Every verdict is exact and auditable.
No synthetic scores. Each check returns compared, conflict, systematics-limited or blocked with a reason, recorded in a SHA‑256 pinned receipt.

Designed to work with Lean 4

Plumb checks the empirical and statistical plumbing — units, shared biases, covariance, calibration lineage, and certified intervals — and delegates general mathematical proofs to Lean 4 (including Mathlib and Physlib) via plumb lean and by lean. Together, they accelerate agents’ work in physics the way Lean accelerated mathematical research.

Immediate roadmap

What is landing on the way to v0.1.0.

Frozen v0.1.0 & WinGet
Prebuilt v0.0.x binaries are already live via the installer scripts, Homebrew, Scoop, Cargo (plumb-lang), npm, and signed GitHub Releases. v0.1.0 adds WinGet and freezes the core syntax and receipt format.
Broader standard library (std/)
Expanding verified measurements, shared systematics, and bridges across cosmology, particle, atomic, optical, nuclear, condensed-matter, and gravitational physics.
Deeper verification kernels
Per-block budgets, certified quadrature, multi-probe nonlinear enclosures, and stronger predictive-surplus checks for automated theory search.
Lean 4 & editor tooling
Tighter round-trips with Lean 4, Mathlib, and Physlib, plus language-server diagnostics and VS Code support for writing .plumb modules.

Contribute

Plumb is new and evolving quickly — syntax, checkers, and conventions will keep changing rapidly on the way to v0.1.0. Even at this early stage, contributions bringing more published results, more fields of physics, and new modules for the standard library (std/) are the most valuable help we can get.

Contributions from both human physicists and AI agents are welcome, judged by provenance, explicit assumptions, and clean verification.