Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Eq. (B.2) — the GLS estimate minimizes the weighted quadratic form QQQ

Proved
LocalDistanceNetwork.gls_minimizes_objective

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

least-squareslinear-algebrastatistics

Let A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n have full column rank (the map X↦AXX\mapsto AXX↦AX is injective), let W∈Rm×mW\in\mathbb R^{m\times m}W∈Rm×m be symmetric positive definite, and let Y∈RmY\in\mathbb R^{m}Y∈Rm. Then the generalized least-squares estimate

X^W=(ATWA)−1ATW Y\hat X_W=(A^{\mathsf T}WA)^{-1}A^{\mathsf T}W\,YX^W​=(ATWA)−1ATWY

minimizes the quadratic form Q(X)=(Y−AX)TW(Y−AX)Q(X)=(Y-AX)^{\mathsf T}W(Y-AX)Q(X)=(Y−AX)TW(Y−AX) of Eq. (B.2): for every X∈RnX\in\mathbb R^{n}X∈Rn,

Q(X^W)≤Q(X).Q(\hat X_W)\le Q(X).Q(X^W​)≤Q(X).

This identifies the closed-form estimator with the solution of the minimization problem that the Distance Network solves, both for a general weight matrix and for W=C−1W=C^{-1}W=C−1, where QQQ is the χ2\chi^2χ2 of Eq. (B.1).

Preamble
import Mathlib
import Definitions.Def_LocalDistanceNetwork_GLS

open Matrix
Formal statement
namespace LocalDistanceNetwork
theorem gls_minimizes_objective {m n : Type*} [Fintype m] [Fintype n] [DecidableEq n]
    (A : Matrix m n ℝ) (hA : Function.Injective A.mulVec)
    (W : Matrix m m ℝ) (hW : W.PosDef) (Y : m → ℝ) (X : n → ℝ) :
    glsObjective A W Y (glsEstimate A W Y) ≤ glsObjective A W Y X := by sorry
end LocalDistanceNetwork
Source
H0DN Collaboration (S. Casertano et al.), The Local Distance Network: A community consensus report on the measurement of the Hubble constant at ~1% precision, A&A 708, A166 (2026), https://doi.org/10.1051/0004-6361/202557993, Appendix B (p. 34) and Appendix B.2 (pp. 34-35), Eqs. (B.1)-(B.2)
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