Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The line fit of VVV against KμK_\muKμ​ recovers Δμ/μ\Delta\mu/\muΔμ/μ from noise-free data

Proved
MethanolMuDrift.wls_recovers_exact_drift

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

fundamental-constantsmathematical-physicsstatistics

Let nnn points carry sensitivity coefficients K1,…,KnK_1,\dots,K_nK1​,…,Kn​ and nonzero uncertainties σ1,…,σn\sigma_1,\dots,\sigma_nσ1​,…,σn​, and assume the KiK_iKi​ are not all equal. Suppose the line positions obey the paper's velocity relation V/c=−Kμ Δμ/μV/c=-K_\mu\,\Delta\mu/\muV/c=−Kμ​Δμ/μ exactly, up to a common velocity offset aaa:

Vi=a−c δ Ki(i=1,…,n),V_i = a - c\,\delta\,K_i\qquad(i=1,\dots,n),Vi​=a−cδKi​(i=1,…,n),

where δ\deltaδ plays the role of Δμ/μ\Delta\mu/\muΔμ/μ. Then the weighted least-squares straight-line fit of VVV against KμK_\muKμ​ (weights 1/σi21/\sigma_i^21/σi2​) returns exactly these parameters: the derived estimate −b/c-b/c−b/c equals δ\deltaδ and the fitted intercept equals aaa,

−bc=δ,afit=a.-\frac{b}{c}=\delta,\qquad a_{\mathrm{fit}}=a .−cb​=δ,afit​=a.

This is the consistency property behind Fig. 3: fitting a line to the observed positions plotted against KμK_\muKμ​ and reading off its slope measures Δμ/μ\Delta\mu/\muΔμ/μ.

Formalization Note The uncertainties only need to be nonzero (weights 1/σi2>01/\sigma_i^2>01/σi2​>0); the non-constancy of KKK guarantees that the normal equations are nondegenerate. Velocities and ccc are in km/s.

Preamble
import Mathlib
import Definitions.Def_Bagdonaite2013_MethanolMuDrift
Formal statement
namespace MethanolMuDrift

theorem wls_recovers_exact_drift {n : ℕ} (K σ : Fin n → ℝ) (hσ : ∀ i, σ i ≠ 0)
    (hK : ∃ i j, K i ≠ K j) (a δ : ℝ) :
    muDriftEstimate K (fun i => a - speedOfLight * δ * K i) σ = δ ∧
      wlsIntercept K (fun i => a - speedOfLight * δ * K i) σ = a := by sorry

end MethanolMuDrift
Source
J. Bagdonaite, P. Jansen, C. Henkel, H. L. Bethlem, K. M. Menten, W. Ubachs, "A Stringent Limit on a Drifting Proton-to-Electron Mass Ratio from Alcohol in the Early Universe", Science (First Release, 13 December 2012), doi:10.1126/science.1224898, https://doi.org/10.1126/science.1224898, p. 2 (left column): "The velocities between different transitions are interrelated via V/c = -KμΔμ/μ ... to determine the fractional change in μ, the peak positions of the four transitions are plotted (in V/c) versus Kμ, and a (dashed) line is fitted to the data (Fig. 3)."
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, at the explicit request of the account owner. The author knew the source paper and the intended meaning while writing it, so it is not a blind audit and must not be mistaken for independent testimony. Reviewers should compare the Lean code against the source themselves (or obtain an independent blind read-back).

For every natural number nnn, all families K=(Ki)K=(K_i)K=(Ki​) and σ=(σi)\sigma=(\sigma_i)σ=(σi​) of reals indexed by i∈{0,…,n−1}i\in\{0,\dots,n-1\}i∈{0,…,n−1}, and all reals a,δa,\deltaa,δ, assume

  • σi≠0\sigma_i\neq 0σi​=0 for every iii;
  • there exist indices i,ji,ji,j with Ki≠KjK_i\neq K_jKi​=Kj​ (so in particular n≥2n\ge 2n≥2).

Define Vi=a−299792.458⋅δ⋅KiV_i = a - 299792.458\cdot\delta\cdot K_iVi​=a−299792.458⋅δ⋅Ki​. Then both of the following hold:

  1. − b/299792.458=δ-\,b/299792.458=\delta−b/299792.458=δ, where bbb is the weighted least-squares slope wlsSlope(K,V,σ)=(SSKV−SKSV)/(SSKK−SK2)(K,V,\sigma)=(S S_{KV}-S_KS_V)/(S S_{KK}-S_K^2)(K,V,σ)=(SSKV​−SK​SV​)/(SSKK​−SK2​) with weights 1/σi21/\sigma_i^21/σi2​ (definition file);
  2. the weighted least-squares intercept wlsIntercept(K,V,σ)=(SKKSV−SKSKV)/(SSKK−SK2)(K,V,\sigma)=(S_{KK}S_V-S_KS_{KV})/(S S_{KK}-S_K^2)(K,V,σ)=(SKK​SV​−SK​SKV​)/(SSKK​−SK2​) equals aaa.

No positivity of σi\sigma_iσi​ is assumed, only σi≠0\sigma_i\neq0σi​=0; the weights depend on σi2\sigma_i^2σi2​.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me