Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Hubble-tension toolkit: quadrature, σ-tension, distance modulus, Hubble's law

Definition
HubbleTension_Defs

by Lucas · Oct 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

cosmologyhubble-constant

Definitions shared by the mission:

  • quadSum(s,t)=s2+t2\mathrm{quadSum}(s,t)=\sqrt{s^2+t^2}quadSum(s,t)=s2+t2​, the combination in quadrature of two independent uncertainties (e.g. stat and sys);
  • tension(a,σa,b,σb)=∣a−b∣/quadSum(σa,σb)\mathrm{tension}(a,\sigma_a,b,\sigma_b)=|a-b|/\mathrm{quadSum}(\sigma_a,\sigma_b)tension(a,σa​,b,σb​)=∣a−b∣/quadSum(σa​,σb​), the discrepancy between independent measurements a±σaa\pm\sigma_aa±σa​ and b±σbb\pm\sigma_bb±σb​ in standard deviations;
  • distanceModulus(d)=5log⁡10(d/10)\mathrm{distanceModulus}(d)=5\log_{10}(d/10)distanceModulus(d)=5log10​(d/10) for a distance ddd in parsecs;
  • distanceFromModulus(μ)=10μ/5+1\mathrm{distanceFromModulus}(\mu)=10^{\mu/5+1}distanceFromModulus(μ)=10μ/5+1 parsecs;
  • hubbleConstant(v,d)=v/(d/106)\mathrm{hubbleConstant}(v,d)=v/(d/10^6)hubbleConstant(v,d)=v/(d/106), Hubble's law H0=v/dH_0=v/dH0​=v/d with vvv in km/s and ddd given in parsecs (converted to Mpc).
Definition code
import Mathlib

/-!
# Definitions for the Hubble-tension mission
Source: W. L. Freedman and B. F. Madore, *Progress in Direct Measurements of the Hubble
Constant*, arXiv:2309.05618v2 (2023).
-/

namespace HubbleTension

/-- Combination in quadrature of two independent uncertainties (e.g. a statistical and a
systematic error quoted as `x ± s (stat) ± t (sys)`): `√(s² + t²)`. -/
noncomputable def quadSum (s t : ℝ) : ℝ := Real.sqrt (s ^ 2 + t ^ 2)

/-- The tension, in units of standard deviations ("σ"), between two independent measurements
`a ± σa` and `b ± σb`: `|a - b| / √(σa² + σb²)`. -/
noncomputable def tension (a σa b σb : ℝ) : ℝ := |a - b| / quadSum σa σb

/-- The distance modulus `μ = 5 log₁₀ (d / 10 pc)` of an object at distance `d` parsecs
(meaningful for `d > 0`). -/
noncomputable def distanceModulus (d : ℝ) : ℝ := 5 * Real.logb 10 (d / 10)

/-- The distance in parsecs corresponding to a distance modulus `μ`: `d = 10^(μ/5 + 1)`. -/
noncomputable def distanceFromModulus (μ : ℝ) : ℝ := (10 : ℝ) ^ (μ / 5 + 1)

/-- Hubble's law `v = H₀ d`: the Hubble constant (in km s⁻¹ Mpc⁻¹) inferred from a recession
velocity `v` (km s⁻¹) and a distance `d` in parsecs, i.e. `H₀ = v / (d / 10⁶)`. -/
noncomputable def hubbleConstant (v d : ℝ) : ℝ := v / (d / 1e6)

end HubbleTension
Source
W. L. Freedman and B. F. Madore, Progress in Direct Measurements of the Hubble Constant, JCAP (2023), arXiv:2309.05618v2, https://arxiv.org/abs/2309.05618, §§1, 4.1, 5, 10 (standard conventions of the field)
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me