Standard Library (std/) Reference

Use plumb doc std.<module> to inspect the declarations and their sources. You can import the bundled modules directly in your own checks.

plumb doc std.astroparticle.solar_neutrinos
plumb doc std.particle.z_pole
plumb doc std.condensed.hall_fractional

Comparisons using published data

  • SNO salt-phase solar neutrinos. The module transcribes the shape-constrained charged-current, neutral-current and elastic-scattering fluxes and reconstructs their statistical covariance. A single pair of electron and muon-plus-tau fluxes meets the joint budget chi2 <= 25. The electron-only null conflicts over the declared flux range without a solar production normalization prior. Both results use the undistorted boron-8 shape, nominal calibration and statistical covariance only. A systematics-inclusive comparison, spectral distortions and oscillation-parameter fits require further evidence.
  • LEP-I Z line shape. The module contains the joint LEP-I summary for the Z mass, hadronic peak cross section and hadronic-to-leptonic width ratio. At chi2 <= 25, the width relation admits three light neutrinos and excludes four. The comparison lets the shared mass and hadronic-to-leptonic ratio vary over five published standard deviations on either side of their central values, with Γν/Γℓ\Gamma_\nu/\Gamma_\ell from 1.99042 to 1.99208. The exclusion applies to an extra light species with the Standard Model Z coupling under the published extraction. The updated invisible-width inference reuses the same LEP data.
  • Fractional quantum Hall resistance. Six Ahlers et al. bridge readings test applying the ideal 6:1 fractional-to-integer resistance ratio at finite current. With nominal statistical errors and the declared systematic bounds, 82 nA is compatible, 161.5 nA is systematics-limited, and the four readings from 326 to 1302.5 nA conflict at chi2 <= 25. The separate published 95% interval extrapolated to zero longitudinal resistance includes the ideal difference. The finite-current conflicts concern the current-independent prediction and are sensitive to the assumed noise scale.
  • Optical clock ratios. The BACON closing point meets chi2 <= 9. Shifting Al⁺/Sr alone by 4×10−184 \times 10^{-18} at the same point gives χ2≈18.78\chi^2 \approx 18.78 with the published correlations and χ2≈2.97\chi^2 \approx 2.97 with only the marginal variances. This tests closure at a fixed point of the published Gaussian summary.
  • MICROSCOPE free fall. Equal Ti/Pt free fall passes for every allowed systematic shift at chi2 <= 4 and is systematics-limited at chi2 <= 1. This uses the published Earth-signal fit and the adopted systematic envelope.

Run the SNO comparison

Save this as sno_salt.plumb and run plumb check sno_salt.plumb. The standard library supplies the data, assumptions and detector response rules.

import std.astroparticle.solar_neutrinos

theory sno_boron8_fluxes {
  electron_flux: cm^-2/s
  mu_tau_flux: cm^-2/s
  assume ontology.sno_weak_response, regime.sno_boron8_undistorted, calibration.sno_salt_signal_extraction
  predict solar_neutrino.boron8_e_flux = electron_flux
  predict solar_neutrino.boron8_mu_tau_flux = mu_tau_flux
}

compare active_appearance: sno_salt_fluxes_stat ~ sno_boron8_fluxes
  at electron_flux = 1.72e6 cm^-2/s, mu_tau_flux = 3.09e6 cm^-2/s
  accept chi2 <= 25
  expect compared
  by gaussian_ldlt

compare electron_only_null: sno_salt_fluxes_stat ~ sno_boron8_fluxes
  at electron_flux in [0 cm^-2/s, 10e6 cm^-2/s], mu_tau_flux = 0 cm^-2/s
  accept chi2 <= 25
  expect conflict certified_enclosure
  by consistency_graph

Module index

Constants, roles and mathematical tools

Module What it provides
std.core SI and IAU constants including c, h, hbar, k_B, e_charge: C, N_A: 1/mol, R_gas: J/mol/K, AU, pc, and GM_sun: m^3/s^2. Supplies adopted m_e and G and the uncertainty-bearing CODATA 2022 records m_e_codata2022 and G_codata2022.
std.math.correlated_estimates Two-input best linear unbiased estimation (BLUE), its covariance conditions and variance identities.
std.math.rational equal_half_weights, a Lean proof that two equal half-weights sum to one.
std.metrology.gravitational_constant The correlated CODATA 2022 adjustment of Newton’s constant and its common uncertainty expansion.
std.statistics The dimensionless common-mean role, the Birge ratio and chi-square under a common uncertainty scale.

Astronomy, cosmology and solar physics

Module What it provides
std.astronomy.galaxies.rotation Line-of-sight and in-plane speeds, disk projection, radius rescaling and baryonic force contributions.
std.astronomy.galaxies.sparc SPARC rotation curves for UGC 6930 and UGC 7577 and the published flat-speed selection.
std.astronomy.ladder.cepheids Near-infrared Wesenheit period–luminosity–metallicity relation and conditioned Magellanic Cloud period and iron-abundance slopes.
std.astronomy.ladder.h0dn H0DN V00 projected local distance scale.
std.astronomy.ladder.mw_parallax Milky Way Cepheid parallaxes and photometry, a residual Gaia zero-point model and shared fit lineage.
std.astronomy.ladder.overlap TRGB-based supernova calibrations from Anand et al., host-covariance sensitivity and shared SH0ES events.
std.astronomy.ladder.parallax NGC 4258 and LMC geometric anchors with shared systematic uncertainty scales, plus angular parallax and distance modulus functions.
std.astronomy.ladder.same_host Matched stellar-indicator host distances.
std.astronomy.ladder.trgb NGC 4258 outer-halo blue TRGB calibration and uncertainty propagation from the maser distance.
std.astronomy.photometry Rest-frame B-band peak magnitude, photon-counting flux conversions and ST, AB and Vega magnitudes.
std.astronomy.photometry.bolometry IAU bolometric magnitude zero points and conversions from luminosity and irradiance.
std.astronomy.photometry.differential Same-exposure magnitude differences and cancellation of an additive photometric zero point.
std.astronomy.photometry.ogle_q2237 Six OGLE Huchra’s Lens observations and the contrast between two image light curves.
std.astronomy.photometry.wfc3_f814w HST WFC3/UVIS F814W inverse sensitivities and transfer between detector chip calibrations.
std.astronomy.sirens.gw170817 GW170817 host velocities, fixed-sky distance and prior-conditioned Hubble constant and inclination summaries.
std.astronomy.stars.helioseismology BiSON p-mode spacing curvature from activity-corrected and solar-minimum frequency summaries.
std.astronomy.stars.solar_cno Borexino CNO rate profile and model-conditioned photospheric carbon-plus-nitrogen abundance.
std.astronomy.supernovae Type Ia magnitude, luminosity distance and intercept functions.
std.astronomy.supernovae.des_dovekie DES-Dovekie survey-separated magnitude compression.
std.astronomy.supernovae.pantheon_plus SH0ES-disjoint Pantheon+ magnitude compression.
std.astronomy.supernovae.shoes_2022 SH0ES 2022 calibrator magnitude, Hubble-flow intercept and local Hubble constant with shared fit lineage.
std.cosmology Eight expansion blocks plus DES Y6 shear, evaluated at one shared point.
std.cosmology.age Globular-cluster age constraints.
std.cosmology.bbn Cooke primordial deuterium and Aver helium.
std.cosmology.bbn.deuterium Primordial deuterium from metal-poor absorbers, CMB-calibrated BBN predictions and baryon-density comparisons.
std.cosmology.bbn.helium Local primordial helium response to neutron lifetime at fixed baryon density and nuclear rates.
std.cosmology.bbn.primordial Cooke deuterium and Aver helium, excess-radiation rules and central-rate abundance responses.
std.cosmology.chronometers Correlated cosmic chronometer rates.
std.cosmology.cmb.firas The 43-channel COBE/FIRAS monopole table and reproduction of its peak-normalized post-fit residual RMS.
std.cosmology.cmb.firas_fit_rank Local design-rank checks for the FIRAS temperature and Galactic foreground fit at zero distortion.
std.cosmology.cmb.firas_residual_metric The covariance-weighted quadratic of the 43 released FIRAS residuals at the published fit.
std.cosmology.cmb.early_lcdm Early-CMB compression using PR4 CamSpec spectra, PR4 lensing and the PR3 SimAll low-E likelihood.
std.cosmology.cmb.planck_2018 Planck 2018 marginals and shared likelihood lineage.
std.cosmology.cmb.temperature_scaling CMB temperature as a function of redshift under adiabatic expansion.
std.cosmology.cpl Time-varying equation-of-state background functions.
std.cosmology.duality Artola distance-duality tilt.
std.cosmology.expansion SH0ES, Pantheon+, BAO, early CMB, deuterium, helium, chronometers and cluster age.
std.cosmology.expansion.dovekie DES-Dovekie, DESI DR2 BAO and SH0ES magnitude.
std.cosmology.expansion.h0dn H0DN joint magnitude and Hubble scale, early CMB and DESI DR2 BAO.
std.cosmology.flrw Flat-background functions E_flat(z, Omega_m) and I_flat(z, Omega_m), with roles for the Hubble constant, drag horizon, matter density and BAO ratios.
std.cosmology.growth DESI DR1 LRG2 growth and DES Y6 shear.
std.cosmology.lcdm Reference theories flat_lcdm_background and flat_lcdm_growth.
std.cosmology.lss.desi_dr2_bao DESI DR2 compressed BAO, covariance and the free-ruler scaling claim.
std.cosmology.lss.growth The eBOSS DR16 LRG consensus on transverse distance, radial distance and the growth rate, with their joint covariance.
std.cosmology.lss.lensing ACT CMB lensing and DES cosmic shear amplitude summaries, with conditioning and BAO lineage.
std.cosmology.particle_cosmo Muon anomaly, helium, free radiation, ruler, deuterium and CCFR trident production.
std.cosmology.propagation Etherington distance duality and the measured tilt.
std.cosmology.recombination Baryon–photon ratio, plasma sound speed, and a certified integral for the drag horizon in scale factor.
std.cosmology.same_host Cepheid and TRGB differences in ten paired hosts.
std.plasma.qtn_density Parker Solar Probe electron densities from quasi-thermal noise and time-matched proton densities.
std.plasma.solar_wind Parker Solar Probe co-sampled field and proton window means and tests of the isotropic Walén relation.

Gravity, orbits and geophysics

Module What it provides
std.geophysics.clock_levelling Skytree height and gravity survey, terrestrial geopotential redshift and strontium clock comparisons.
std.geophysics.earth_energy_budget Earth-system heat uptake and matched CERES radiation and ocean heat-content trends.
std.geophysics.earth_inertia PREM density integrals for Earth’s mass and inertia, with geodetic and orbital reference summaries.
std.geophysics.geoneutrinos KamLAND prompt-energy data, KamLAND and Borexino fit summaries, and radiogenic heat under a mantle model.
std.geophysics.normal_gravity WGS 84 normal gravity on the rotating reference ellipsoid.
std.geophysics.seismic_elasticity PREM middle lower-mantle profiles and isotropic elastic wave-speed relations.
std.gravity Cassini and MESSENGER PPN inferences, Brans–Dicke rules, and scopes std.gravity.cassini and std.gravity.solar_and_cosmo.
std.gravity.antimatter BASE antiproton charge-to-mass and solar clock constraints, alongside the ALPHA-g antihydrogen acceleration summary.
std.gravity.horizon_scale Sagittarius A* emission ring and shadow summaries with VLTI and Keck orbital conditioning.
std.gravity.mass_sheet Single-plane lensing and the mass-sheet transformation of image shapes and magnifications.
std.gravity.microscope Final MICROSCOPE Ti/Pt Eötvös ratio with its statistical error and an explicit residual systematic envelope.
std.gravity.roles gravity.ppn_gamma_minus_one and gravity.yukawa_range_limit_unit_strength: um.
std.gravity.weak_field Weak-field clock redshift and the combined Galileo hydrogen-maser fit.
std.orbital Keplerian sidereal-year check, Mercury perihelion advance and PSR B1913+16 orbital decay with a bounded Galactic correction.
std.orbital.binary_motion Mass ratio from the two velocity semi-amplitudes of a double-lined spectroscopic binary.
std.orbital.pulsar_j0737_3039 Double Pulsar orbital decay, external acceleration corrections and intrinsic timing inference.
std.orbital.pulsar_timing Secular binary-pulsar timing, apparent proper-motion decay and Galactic acceleration corrections.
std.relativity grb.lag_high_minus_low: s, the high-minus-low photon arrival lag role, plus a photon–GW propagation rule and the GW170817 / GRB 170817A geocentric timing record.

Particle, nuclear and neutrino physics

Module What it provides
std.astroparticle.cosmic_electrons.calet_2018 CALET electron-plus-positron flux near 1.4 TeV in bins matched to DAMPE.
std.astroparticle.cosmic_electrons.dampe_2017 The 38-bin DAMPE electron-plus-positron spectrum with separate statistical and systematic uncertainties.
std.astroparticle.cosmic_electrons.dampe_shape Tests of unbroken power laws under pointwise DAMPE flux excursions.
std.astroparticle.dark_matter_recoil LZ and XENONnT spin-independent WIMP scattering upper limits with their halo and interaction assumptions.
std.astroparticle.heavy_ion_flow ALICE Xe–Xe and Pb–Pb elliptic-flow summaries and the sign of the four-particle cumulant.
std.astroparticle.heavy_ion_flow.ratio Published Xe–Xe/Pb–Pb four-particle elliptic-flow ratios by matched centrality.
std.astroparticle.high_energy_photons.hess_crab_2024 The H.E.S.S. CT5 mono Crab Nebula spectrum with its statistical errors.
std.astroparticle.neutron_star_matter J0740+6620 timing and X-ray radius summaries and mass–radius sequences for rotating dense matter.
std.astroparticle.sno_three_phase Statistical summary of the combined SNO survival and day–night fit, which reuses the salt-phase events.
std.astroparticle.solar_neutrinos SNO salt-phase CC, NC and ES fluxes with statistical covariance and boron-8 flavour response rules.
std.astroparticle.thermal_relics Thermal relic contribution to effective radiation density and the std.astroparticle.light_relics scope for LEP and Planck summaries.
std.astroparticle.ultrahigh_energy_neutrinos KM3NeT, IceCube and Auger selected counts and detector exposures for a diffuse spectrum.
std.gauge Standard Model Weyl charges, anomaly checks and the CDF, ATLAS and CMS W-mass comparison.
std.leptons Muon g-2 world average, WP20 and WP25 Standard Model predictions and residuals, pure vector one-loop function delta_a_mu_vector(g, m_med) and std.leptons.wp20.
std.neutrino.majorana_mass Effective Majorana mass, KamLAND-Zen and GERDA half-life limits, and paired nuclear matrix elements.
std.neutrino.mass_ordering NuFIT mass splittings and DESI mass-sum limits, with mass relations for oscillations, beta decay and cosmology.
std.nuclear.capture_combination Daya Bay neutron-capture combination using the shared covariance of the hydrogen and gadolinium results.
std.nuclear.coherent_limit CONUS Runs 1–2 coherent-scattering count limit and rate normalization.
std.nuclear.coherent_signal CONUS+ Run 1 detector exposures and the reported joint coherent-scattering yield and uncertainty.
std.nuclear.daya_bay First six-detector Daya Bay reactor sample and its far-to-near rate comparison.
std.nuclear.gamma_calibration Potassium-40 photon emission probability from the normalized decay branches.
std.nuclear.lifetime Radioactive survival and activity relations, with two fluorine-18 half-life determinations.
std.nuclear.reactor_off Double Chooz both-reactors-off candidate count and background summary.
std.nuclear.reno RENO 3800-day near and far candidate rates, backgrounds and rate-ratio summary.
std.particle.beta_endpoint Three-active-neutrino endpoint mass relation and the published KATRIN KNM1–5 confidence set.
std.particle.charm_cp Correlated direct CP asymmetry summaries for neutral charm decays to charged kaon and pion pairs.
std.particle.higgs_rates CMS Run 2 diphoton likelihood profile and signal strengths for effective Higgs loop couplings.
std.particle.hvp_running Correlated projections of the same BESIII two-pion spectrum into muon g-2 and the running electromagnetic coupling.
std.particle.invisible_width Updated LEP invisible-width inference with lineage shared by the original line-shape analysis.
std.particle.kaon_leptonic Charged-kaon leptonic width ratio and the NA62 inferences in the stated radiative convention.
std.particle.kloe_two_pion The matched energy window of the combined KLOE two-pion spectrum and covariance for both dispersion integrals.
std.particle.lepton_universality Tree-level W branching ratio into tau and muon flavours, with conditioned ATLAS and CMS summaries.
std.particle.muon_decay Michel spectrum shape, local vector-interaction predictions and TWIST results.
std.particle.neutral_b_phase CMS and LHCb BsB_s mixing–decay interference summaries with their published correlations.
std.particle.neutrino_trident CCFR muonic trident cross section and a heavy-mediator contact prediction.
std.particle.proton_weak_charge Qweak elastic asymmetry and proton weak charge, plus the cesium sensitivity region for common quark couplings.
std.particle.qcd_colour_factors Correlated OPAL colour-factor estimates and their SU(N) prediction.
std.particle.top_helicity Joint W helicity fractions from top-quark decays and the leading-order prediction.
std.particle.two_pion_spectrum BESIII bare two-pion spectrum, statistical covariance and projection to the leading-order hadronic vacuum-polarization term in muon g-2.
std.particle.z_pole Correlated LEP-I line-shape summary and light-neutrino invisible-width prediction.
std.weak.ckm_row First-row CKM unitarity using kaon decay summaries, lattice inputs and superallowed beta decay.
std.weak.neutron_beta PERKEO III asymmetry and axial-vector ratio, plus the proton-tagged neutron continuum lifetime.
std.weak.nuclear_form_factors PREX-II and CREX helicity asymmetries and weak form-factor summaries for lead-208 and calcium-48.
std.weak.semileptonic Superallowed Fermi normalization and the relation between neutron beta lifetime, axial coupling and the vector-current strength.

Atomic, molecular, optical and quantum physics

Module What it provides
std.atomic Hydrogen Lamb interval role; fine-structure constant records, their consistency checks and the std.atomic.alpha_variation scope.
std.atomic.electron_moment Measured electron anomaly, QED predictions from caesium and rubidium recoil, and shared lineage with the electron-anomaly inference of α\alpha.
std.atomic.hydrogen_radius_network Electronic hydrogen frequency and radius summaries, with a common radius and Rydberg-constant model.
std.atomic.muonic_hydrogen Muonic hydrogen singlet and triplet lines, Lamb and hyperfine intervals, and conditioned proton radii.
std.atomic.optical_clocks The 2025 BACON Al⁺, Yb and Sr frequency-ratio summary, joint covariance and ratio closure rule.
std.atomic.positronium Triplet positronium optical and microwave intervals and bound-state QED predictions.
std.atomic.proton_radius The 2010 muonic hydrogen transition and proton radius, plus the PRad electron-scattering radius.
std.atomic.spectroscopy Hydrogen 4P fine and hyperfine splitting, with a comparison to the resolved F=1 interval.
std.molecular.co_rotation Six carbon monoxide rotational frequencies, with rigid-rotor and centrifugal-distortion predictions.
std.molecular.electron_dipole ThO and HfF⁺ reversal channels and their electron dipole and scalar-coupling responses.
std.optics.fresnel S- and P-polarized first-surface reflectance at a lossless dielectric interface.
std.optics.fused_silica Bulk fused-silica phase and group indices and standard-air wavelength conversion.
std.quantum CHSH local and quantum bounds, chsh_within(S, B), and the Storz 2023 loophole-free record and checks.
std.quantum.bell_trials Finite-sample CHSH win probabilities for event-ready trials with bounded setting bias.
std.quantum.heralded_anticorrelation Herald-conditioned click statistics and bounds on coincidence deficits.
std.quantum.neutron_gravity Neutron transition frequencies and predictions for gravitational levels above a reflecting plane.

Detectors and radiation metrology

Module What it provides
std.detectors.germanium_ionization Germanium nuclear-recoil quenching, the calibrated Lindhard response and lineage shared with the CONUS+ fit.
std.detectors.silicon_ionization Mean energy per collected electron–hole pair and full-energy manganese X-ray charge yields in silicon.
std.nuclear.dosimetry BIPM comparison of the NPL and BIPM absorbed-dose-to-water standards for their 10 MV photon beams.
std.nuclear.gamma_energy HPGe reference peaks and channel-to-energy calibration.
std.nuclear.residential_radon Health Canada home radon survey counts and exceedance summaries.
std.radiation.detector_response Fermi GBM NaI pulse-height widths and energy-dependent response models from ground calibration.
std.radiation.environmental_activity IAEA radiocaesium comparisons on preserved Irish Sea water, with decay corrections and reported limits.

Condensed matter, materials and electrical metrology

Module What it provides
std.condensed.cubic_diffraction First-order Bragg angles and interplanar spacings for indexed cubic reflections.
std.condensed.elastic_sto Room-temperature SrTiO₃ echo times and cubic elastic predictions for two specimen directions.
std.condensed.flux_quantization Fluxoid winding step and the Deaver–Fairbank tin first trapped-flux plateau.
std.condensed.graphene_transport Graphene sheet transport from Johnson-noise thermometry and the elastic Wiedemann–Franz reference.
std.condensed.hall_fractional Six finite-current Hall bridge readings, leakage and rectification bounds, and the zero-dissipation fit interval.
std.condensed.little_parks Fluxoid field-period prediction and calorimetric period for aluminium rings.
std.condensed.low_dimensional_graphene Suspended monolayer graphene transmittance and its Dirac-sheet optical prediction.
std.condensed.magnetic_criticality Ultrathin Fe/W(110) susceptibility exponent and Ising and Curie–Weiss predictions.
std.condensed.neutron_bragg_edge Paired nickel diffraction spacings and transmission edges with a common cubic lattice parameter.
std.condensed.oxygen_host_shift Infrared oxygen line shift between two silicon isotope hosts and a volume-shift estimate.
std.condensed.semiconductor_bandgap Silicon absorption edges over 11 temperatures and a Varshni temperature-dependence model.
std.condensed.silicon_640g NIST SRM 640g silicon lattice-parameter table, Type A uncertainty and Bragg line positions.
std.condensed.silicon_640g_bottles One-way ANOVA reconstruction for the NIST silicon bottle preparations.
std.condensed.superfluid_helium Helium-4 heat capacity and second-sound summaries near the lambda transition, with Josephson hyperscaling checks.
std.condensed.thermal_conductance_quantum Single-mode ballistic heat current at finite bias and the differential thermal conductance quantum.
std.materials Exact R_K: Ohm and K_J: Hz/V, quantum Hall universality, superconducting gap ratios and diamond heat capacity.
std.materials.polymer_rheology NIST SRM 2490 steady-shear viscosity and coverage intervals across shear rates.
std.materials.thermal_response Free thermal expansion and the 62.5–350 K strain spline for the NIST SRM 736 copper reference.
std.materials.thermoelasticity Same-state relations among expansion, compressibility and heat capacities.
std.metrology.electrical Josephson voltage, integer quantum Hall resistance and current transfer using the SI defining constants.
std.metrology.planck_determinations Pre-2019 determinations of the Planck constant using silicon spheres and Kibble balances, with adjustment lineage.
std.radiation.steel_toughness Charpy impact energies from matched NIST reference lots and independent ATMS tests.
std.radiation.steel_toughness.ll198_production NIST reference lot LL-198 impact energies by production machine.

Thermodynamics, fluids and soft matter

Module What it provides
std.acoustics.gas_thermometry Acoustic gas constant from the zero-density, zero-frequency sound-speed intercept.
std.fluids.hfe7300 HFE-7300 density, calorimetry and compressibility relations for acoustic closure.
std.fluids.oscillatory_rheology NIST SRM 2490 complex viscosity and comparison with steady viscosity at matched rates.
std.fluids.superpipe Smooth-pipe friction observations, Darcy and Fanning conversions, and friction correlations.
std.fluids.wave_dispersion Deep-water capillary–gravity dispersion, surface-tension inputs and optical reductions.
std.nuclear.insulation_reference NIST SRM 1450e fibrous glass thermal conductivity from guarded-hot-plate data and the certificate fit.
std.nuclear.water_calorimetry Saturated-water enthalpy rise and midpoint heat capacity reconstructed from 31 calorimeter runs.
std.nuclear.water_density Hydrostatic-weighing density data for liquid water, with relative dilatation and a shared absolute density scale.
std.soft_matter.brownian_diffusion Stokes–Einstein diffusion and tracking corrections for exposure and localization variance.
std.soft_matter.capillarity Static Young–Laplace pressure, Jurin rise and the projected surface tension.
std.statphys.fluctuation_work Jarzynski weights and Crooks ratios for published forward and reverse work in a driven harmonic trap.
std.statphys.gas_compression Boyle’s air compression table and pressure–volume ratios.
std.statphys.magnet_3c90 Cycle-integrated magnetic loss for a published Princeton MagNet 3C90 recording.
std.statphys.magnetic_loss Signed work and power loss from a closed magnetic hysteresis loop.
std.statphys.unitary_fermi Spin-balanced lithium-6 equation-of-state and virial thermometry comparisons.
std.thermo Stefan–Boltzmann and radiation constants, Carnot and Curzon–Ahlborn claims, and the CMB temperature to photon-density rule.
std.thermo.absolute_thermometry Three historical FIRAS temperature determinations, shared calibrator lineage and the WMAP velocity-fit table.
std.thermo.firas_covariance FIRAS frequency noise covariance reconstructed from the published lag correlations and channel uncertainties.

The Astronomical & Cosmological Distance Ladder

The ladder brings geometric and early-universe evidence for H0H_0 into one comparison network using published summaries.

std.astronomy.ladder.parallax      NGC 4258 maser and LMC eclipsing binaries
std.astronomy.ladder.mw_parallax   Gaia parallaxes of Milky Way Cepheids
std.astronomy.ladder.cepheids      Cepheid period–luminosity–metallicity relation
  └── std.astronomy.supernovae.shoes_2022  SH0ES 2022 supernova distance-ladder summary

std.cosmology.recombination  Baryon–photon sound speed and drag-horizon integral
  ├── std.cosmology.cmb.planck_2018  Planck 2018 H0 and r_d
  └── std.cosmology.lss.desi_dr2_bao  DESI DR2 BAO

examples/cosmology/hubble_tension.plumb  Comparisons using the distance ladder and CMB/BAO summaries

std.astronomy.ladder.parallax

  • Gaia sensitivity scenario. gaia_edr3_zp supplies an assumed bound of 0.015 mas for sensitivity studies.
  • Functions:
    • parallax_from_mu(mu: mag): mas
    • distance_from_mu(mu: mag): Mpc
  • Roles: astro.distance_megamaser : Mpc, astro.modulus_lmc : mag.
  • Measurements (zero PhysicalOntology):
    • ngc4258_maser: astro.distance_megamaser gives 7.576±0.082 (stat)±0.076 (sys) Mpc7.576 \pm 0.082\text{ (stat)} \pm 0.076\text{ (sys) Mpc}.
    • lmc_deb: astro.modulus_lmc gives 18.477±0.004 (stat)±0.026 (sys) mag18.477 \pm 0.004\text{ (stat)} \pm 0.026\text{ (sys) mag}.
  • The disk-model and eclipsing-binary systematic scales are represented as separate Gaussian nuisances, each shared by uses of its anchor.

std.astronomy.ladder.mw_parallax

The 67 Riess et al. (2021) Table 1 entries with usable parallaxes support comparisons between Gaia EDR3 measurements and predictions from HST Wesenheit magnitudes. The row comparison assumes fixed slopes and weights and lets one residual Gaia offset vary across the sample. The separate Table 2 absolute-magnitude and residual-offset marginals share a fit, so a joint score requires their covariance.

std.astronomy.ladder.cepheids

wesenheit_plz(mu: mag, M_H_W: mag, b_W: mag, Z_W: mag, P: d, dOH): mag gives the near-infrared Wesenheit magnitude at a supplied distance modulus. The period term uses a 10-day pivot and the metallicity term uses the supplied abundance offset.

Breuval et al. (2024) report an SMC H-band Wesenheit period slope of −3.31±0.05-3.31 \pm 0.05 mag per dex of period. The fixed earlier LMC value of −3.26-3.26 gives χ2=1\chi^2=1 against that scalar summary, given the LMC-informed sample selection and the SMC depth correction. The H-band and optical iron-abundance slopes are −0.234±0.052-0.234 \pm 0.052 and −0.264±0.058-0.264 \pm 0.058 mag per dex of [Fe/H]. These two fits share Cepheids, passband data and geometric anchors. A joint score requires their cross-covariance.

std.astronomy.supernovae.shoes_2022

  • Assumptions: calibration.shoes_2022_baseline, calibration.sn_standardization, regime.low_z_cosmography, stat.gaussian_shoes (plus all std.astronomy.ladder.cepheids exports).
  • Function: h0_from_mb_ab(M_B: mag, a_B): km/s/Mpc.
  • Roles: astro.joint_fit_lineage, astro.hubble_intercept (both Dimensionless), astro.sn_ia_fiducial_mB : mag; shoes_2022_h0 records cosmo.hubble_constant from std.cosmology.flrw.
  • Lineage origin. shoes_2022_joint_fit traces the NGC 4258 and LMC geometric anchors, Riess et al. Milky Way Cepheid inputs, the separate HST spatial-scan constraint and eight supernovae also used by Anand et al.
  • Inferences (zero PhysicalOntology — calibration + low-zz cosmography only):
    • shoes_hubble_flow_aB: 0.714158±0.0017690.714158 \pm 0.001769 (derived from shoes_2022_joint_fit).
    • shoes_2022_mb0: −19.253±0.027 mag-19.253 \pm 0.027\text{ mag} (derived from shoes_2022_joint_fit).
    • shoes_2022_h0: 73.04±1.01 km/s/Mpc73.04 \pm 1.01\text{ km/s/Mpc} (derived from shoes_2022_mb0, shoes_hubble_flow_aB).
  • Because shoes_2022_mb0 and shoes_hubble_flow_aB share shoes_2022_joint_fit, Plumb refuses to treat them as independent Gaussians in a joint compare!

std.astronomy.ladder.trgb

The selected NGC 4258 outer-halo tip, its extinction correction and the maser distance reproduce the published blue F814W TRGB zero point of about −4.050 mag-4.050\text{ mag}. The locally linearized inference inherits the maser uncertainty. Combining this zero point with its input distance therefore requires their dependence to be accounted for.

std.astronomy.ladder.overlap reproduces the published Anand et al. calibrator means and tests the effect of covariance shared by supernovae in the same host. The SH0ES and Anand summaries reuse eight explosions. Their common event identities survive changes in the photometric reduction.

std.cosmology.recombination

  • Explicit PhysicalOntology & regime assumptions: ontology.cold_dark_matter, ontology.standard_neutrinos_neff3046, ontology.standard_bbn_recombination, regime.flat_lcdm_background.
  • Convention: H100: km/s/Mpc = 100 km/s/Mpc.
  • Functions:
    • baryon_photon_ratio(a, omega_b, omega_gamma)
    • sound_speed_over_c(a, omega_b, omega_gamma)
    • r_d_comoving(a_d, omega_b, omega_m, omega_r, omega_gamma, h): Mpc

std.cosmology.cmb.planck_2018 and std.cosmology.lss.desi_dr2_bao

  • Assumptions: regime.template_near_fiducial, calibration.supplied_ruler, stat.gaussian_compressed (plus all std.cosmology.recombination exports).
  • Pinned DESI DR2 13-row ALL_GCcomb artifacts: desi_dr2_axes, desi_dr2_values, desi_dr2_cov (std/data/desi_dr2_bao.*.json).
  • Inferences:
    • desi_dr2_bao: Vector[desi_dr2_axes, Dimensionless]: conditioned on fiducial_lcdm_template (ontology.cold_dark_matter, regime.template_near_fiducial).
    • planck_2018_base_lcdm_posterior: shared lineage origin for Planck 2018 VI base-Λ\LambdaCDM marginals, under general relativity with constant Newtonian GG.
    • planck_2018_rd: cosmo.drag_horizon: 147.09±0.26 Mpc147.09 \pm 0.26\text{ Mpc} (derived from planck_2018_base_lcdm_posterior).
    • planck_2018_h0: cosmo.hubble_constant: 67.36±0.54 km/s/Mpc67.36 \pm 0.54\text{ km/s/Mpc} (derived from planck_2018_base_lcdm_posterior).
  • Theory & prediction: flat_flrw_free_ruler with desi_dr2_free_ruler_bridge onto the three bao.* roles.
  • Scaling claim: desi_dr2_free_ruler_scaling proves BAO ratios alone constrain only the product H0⋅rdH_0 \cdot r_d.

Hubble tension example

  • Theory: flat_lcdm_hubble_network, which uses assume for ontology.cold_dark_matter and regime.flat_lcdm_background.
  • Predictions with their own assuming premises.
    • The cosmo.hubble_constant prediction serves both records. Its premises cover standard neutrinos and BBN, constant-GG general relativity, SH0ES calibration and low-redshift cosmography.
    • The cosmo.drag_horizon prediction uses standard neutrinos and BBN and constant-GG general relativity.
    • lcdm_bao predicts the three bao.* ratios under regime.template_near_fiducial.
  • planck_vs_shoes_h0 evaluates the Hubble constant prediction and records its premises.
  • Verified comparisons:
    • planck_vs_shoes_h0: certified conflict (certified_enclosure) (χ2=322624/13117≈24.60>16\chi^2 = 322624 / 13117 \approx 24.60 > 16).
    • desi_shoes_rd_honest: a certified shared witness meets the total χ2≤25\chi^2 \le 25 budget for DESI DR2 BAO, SH0ES H0H_0 and Planck rdr_d.

Testing a proposal against the expansion data

The scope std.cosmology.expansion combines the SH0ES R22 full-fit absolute-magnitude marginal, 20-bin Pantheon+ with SH0ES objects removed, DESI DR2 BAO, early CMB, Cooke deuterium, Aver helium, 15 correlated chronometers and the Valcin cluster age. The CMB and each abundance have separate budgets, so a model that changes recombination can still be tested against primordial abundances. Residual calibration covariance between R22 and the retained Pantheon+ sample is unverified. The reference model uses Fields et al. central-rate deuterium and helium responses and point-checked distance, age and acoustic-angle approximations.

Save the following as candidate.plumb to run the flat ΛCDM control.

import std.cosmology.expansion

theory baseline_lcdm extends flat_lcdm_background {
}
plumb audit candidate.plumb --theory baseline_lcdm --scope std.cosmology.expansion
plumb doc std.cosmology

Use std.cosmology to test expansion and DES Y6 shear at one shared point. DESI DR1 growth shares tracers with DR2 BAO, so the combined scope excludes it. Run the growth, duality, same-host and expansion-swap scopes separately when their data overlap. Inspect the joint finding to see whether a common parameter point clears all budgets.

Atoms, Heat and Materials

std.atomic

  • Records of 1/α1/\alpha (role atomic.fine_structure_alpha_inv):
    • parker_2018_alpha_inv (measurement, Cs recoil): 137.035999046(27)137.035999046(27).
    • morel_2020_alpha_inv (measurement, Rb recoil): 137.035999206(11)137.035999206(11).
    • fan_2023_alpha_inv (inference, electron g−2g-2): 137.035999166(15)137.035999166(15), conditioned on ontology.qed_electron_moment. It uses the same trapped-electron data as the anomaly measurement in std.atomic.electron_moment.
    • alpha_codata2022: atomic.fine_structure_alpha: 7.2973525643(11)×10−37.2973525643(11) \times 10^{-3}, derived from the three records above.
  • Theories: universal_alpha (one alpha_inv) and universal_alpha_qed, which extends it and declares the QED premise with assume.
  • Verified comparisons:
    • cs_vs_rb_recoil_alpha: certified conflict (certified_enclosure), χmin⁡2=512/17≈30.1\chi^2_{\min} = 512/17 \approx 30.1 (5.49σ5.49\sigma).
    • alpha_triad: all three records conflict, and the minimal conflict core is the recoil pair.
    • electron_moment_without_qed: blocked incompatible_conditioning.
  • Variation of α\alpha:
    • espresso_he0515_alpha: atomic.alpha_ratio_espresso gives Δα/α=1.31±1.29 (stat)±0.43 (sys) ppm\Delta\alpha/\alpha = 1.31 \pm 1.29\text{ (stat)} \pm 0.43\text{ (sys) ppm} at z=1.1508z=1.1508. The analysis assumes terrestrial isotope abundances and represents the systematic uncertainty with the Gaussian nuisance he0515_espresso_systematic under the published quadrature convention. Changes in isotope abundance require a separate analysis.
    • filzinger_2023_alpha_drift: atomic.alpha_drift: (1.8±2.5)×10−19 /yr(1.8 \pm 2.5) \times 10^{-19}\text{ /yr}.
    • Rule alpha_drift_from_log_slope: (atomic.alpha_log_slope, cosmo.hubble_constant) -> atomic.alpha_drift, α˙/α=−ζH0\dot\alpha/\alpha = -\zeta H_0, granting regime.alpha_log_slope_today.
  • Frozen scope std.atomic.alpha_variation: blocks espresso and clocks (each chi2 <= 9) and the open phenomenon oklo_natural_reactor. A theory that predicts atomic.alpha_log_slope and cosmo.hubble_constant reaches the clock block through the rule.

std.thermo

  • Present-day CMB temperature. cmb_temperature_fixsen2009 gives 2.72548±0.00057 K2.72548 \pm 0.00057\text{ K}, the published inverse-variance weighted mean of 16 literature measurements, including the three FIRAS methods. The weighting treats the inputs as independent. The thermometer, colour and velocity results share lineage through the FIRAS external calibrator. A joint score with the literature mean and any of those FIRAS inputs requires their cross-covariance.
  • Exact claims: stefan_boltzmann_lower / _upper (5.670374419×10−8<σSB<5.670374420×10−8 W/m2/K45.670374419 \times 10^{-8} < \sigma_{\text{SB}} < 5.670374420 \times 10^{-8}\text{ W/m}^2\text{/K}^4), radiation_constant_lower / _upper, molar_gas_constant_value.
  • Heat engines as functions of r=Tcold/Thotr = T_{\text{cold}} / T_{\text{hot}}: theories carnot_engine, curzon_ahlborn_engine, super_carnot_engine; condition within_carnot; curzon_ahlborn_within_carnot certifies ηCA≤ηC\eta_{\text{CA}} \le \eta_C and super_carnot_refuted is a conflict (exact_witness).
  • Function: omega_gamma_of(T: K): Dimensionless =aradT4/(c2ρc,100)= a_{\text{rad}} T^4 / (c^2 \rho_{c,100}), used by the rule omega_gamma_from_tcmb: (cosmo.cmb_temperature) -> cosmo.omega_gamma (grants regime.blackbody_photon_gas, calibration.codata_2022).

std.materials

  • Electrical standards: von_klitzing_lower / _upper (RK≈25812.80746 ΩR_K \approx 25812.80746\ \Omega), josephson_lower / _upper, and the exact quantum_metrology_triangle (KJRKe=2K_J R_K e = 2).
  • Circular calibration: mu_0_codata2022 is derived from alpha_codata2022, so alpha_from_mu_0_is_circular is blocked circular_calibration.
  • Quantum Hall universality: ribeiro_palau_2015_qhe ((−0.9±8.2)×10−11(-0.9 \pm 8.2) \times 10^{-11}, graphene against GaAs) passes universal_quantum_hall and excludes a host correction of 1 to 10 parts in 10910^9.
  • Superconducting gap ratio (materials.bcs_gap_ratio). The Giaever–Megerle Al inference uses the extrapolated zero-temperature ratio 4.2±0.64.2 \pm 0.6. The Sn and Pb comparisons use the near-1 K ratios 3.46±0.103.46 \pm 0.10 and 4.33±0.104.33 \pm 0.10 as zero-temperature estimates. The checks use bulk critical temperatures and take the quoted errors as Gaussian standard deviations. lead_vs_bcs_weak conflicts with the weak-coupling value 2πe−γ≈3.527752\pi e^{-\gamma} \approx 3.52775. Under the adopted Pb spectrum assumptions, lead_strong_coupling_table_residual bounds the interpolation’s excess over the fitted table value to 0.021–0.022. lead_gap_reuses_spectral_input refuses an independent comparison because the input spectrum and the calculated table gap share the same calibration.
  • Heat capacity (role materials.diamond_cp_298k): victor_1962_diamond_cp (6.117 J/(mol K)6.117\text{ J/(mol K)}). classical_dulong_petit (3R3R) conflicts; debye_solid extends it with theta_D and passes at 1860 K1860\text{ K} but conflicts at the low-temperature 2230 K2230\text{ K}.
  • Functions: debye_heat_capacity(T: K, theta: K): J/mol/K, valid for ΘD/T≥5\Theta_D / T \ge 5, with debye_integrand, debye_tail, debye_integral.

Stacking Your Own Check on std/

You can import any std/ module directly without copying numbers or data files:

import std.cosmology.cmb.planck_2018
import std.astronomy.supernovae.shoes_2022

theory common_h0 {
  H0: km/s/Mpc
  assume ontology.cold_dark_matter, regime.flat_lcdm_background, ontology.standard_neutrinos_neff3046, ontology.standard_bbn_recombination, ontology.planck_base_gravity
  predict cosmo.hubble_constant = H0
    assuming calibration.shoes_2022_baseline, calibration.sn_standardization, regime.low_z_cosmography
}

compare custom_h0_box_check: planck_2018_h0, shoes_2022_h0 ~ common_h0
  at H0 in [65 km/s/Mpc, 75 km/s/Mpc]
  accept chi2 <= 20
  expect conflict certified_enclosure
  by consistency_graph