The line fit of against recovers from noise-free data
ProvedMethanolMuDrift.wls_recovers_exact_driftLet points carry sensitivity coefficients and nonzero uncertainties , and assume the are not all equal. Suppose the line positions obey the paper's velocity relation exactly, up to a common velocity offset :
where plays the role of . Then the weighted least-squares straight-line fit of against (weights ) returns exactly these parameters: the derived estimate equals and the fitted intercept equals ,
This is the consistency property behind Fig. 3: fitting a line to the observed positions plotted against and reading off its slope measures .
Formalization Note The uncertainties only need to be nonzero (weights ); the non-constancy of guarantees that the normal equations are nondegenerate. Velocities and are in km/s.
import Mathlib import Definitions.Def_Bagdonaite2013_MethanolMuDrift
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
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 , all families and of reals indexed by , and all reals , assume
- for every ;
- there exist indices with (so in particular ).
Define . Then both of the following hold:
- , where is the weighted least-squares slope
wlsSlopewith weights (definition file); - the weighted least-squares intercept
wlsInterceptequals .
No positivity of is assumed, only ; the weights depend on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.