Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Expansion of uncertainties preserves correlations

Proved
CODATA.expansion_rules

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

correlationcovarianceexpansionfactormetrology

Let V be a covariance matrix with positive diagonal entries and fs a family of positive factors. The expansion of V by the constant factor 3.9 multiplies every entry by 3.9 squared. Every correlation coefficient of V is unchanged by that expansion, and more generally the correlation coefficient of a pair of entries is unchanged whenever the two members carry equal factors. This is the algebra underlying the statement of the 2022 CODATA report that the expansion factors are applied to the uncertainties of all the data of a group so as to maintain their original relative weights and correlations; the constant factor 3.9 is the expansion factor of the separate adjustment of the sixteen values of the Newtonian constant of gravitation.

Preamble
import Mathlib
import Definitions.Def_CODATA_lsa
import Definitions.Def_CODATA_uncert
import Definitions.Def_CODATA_values
Formal statement
/-!
# Expansion of uncertainties preserves correlations

Section XII of the 2022 CODATA report applies expansion factors to the
uncertainties of groups of input data (1.7 and 2.5 in the main
adjustment; 3.9 for the sixteen values of the Newtonian constant of
gravitation) in order to reduce all normalized residuals to two or
less, and it states that the factors are applied to all the data of a
group so as to maintain their original relative weights and
correlations. This milestone formalizes the underlying algebra of the
covariance matrix under such an expansion: the expanded covariance is
the entrywise product by the pairwise products of the factors; a common
factor leaves every correlation coefficient unchanged; and more
generally the correlation coefficient of a pair is unchanged whenever
the two members carry equal factors. The constant factor 39/10 is the
expansion factor 3.9 of the separate adjustment of the Newtonian
constant of gravitation. This milestone is proved on the way to the
goal theorem `CODATA.codata_self_consistent`.
-/

namespace CODATA

/-- Let V be a covariance matrix with positive diagonal entries and fs
a family of positive factors. The expansion of V by the constant
factor 39/10 multiplies every entry by (39/10)^2; every correlation
coefficient of V is unchanged by that expansion; and more generally,
whenever two entries carry equal factors, their correlation
coefficient is unchanged by the expansion. -/
theorem expansion_rules {N : ℕ} (V : Matrix (Fin N) (Fin N) ℝ)
    (fs : Fin N → ℝ) (hfs : ∀ k, 0 < fs k) (hV : ∀ k, 0 < V k k) :
    (∀ k l, expandD (fun _ => 39/10) V k l = (39/10) * (39/10) * V k l) ∧
      (∀ i j, corr (expandD (fun _ => 39/10) V) i j = corr V i j) ∧
      (∀ i j, fs i = fs j → corr (expandD fs V) i j = corr V i j) := by
  sorry

end CODATA
Source
P. J. Mohr, D. B. Newell, B. N. Taylor and E. Tiesinga, CODATA recommended values of the fundamental physical constants: 2022, J. Phys. Chem. Ref. Data 54, 033105 (2025), doi 10.1063/5.0279860; Rev. Mod. Phys. 97, 025002 (2025), doi 10.1103/RevModPhys.97.025002, section XII: the expansion factors are applied to all the data of a group to maintain their original relative weights and correlations; the factor 3.9 reduces all normalized residuals of the sixteen values of G to two or less.
Read-back

What the Lean code literally says, in plain math · glm-5-latest-short

The formal statement fixes a covariance matrix V with positive diagonal entries and a family fs of positive factors. The conclusion has three parts, all quantified over entries. First, the expansion of V by the constant function 39/10 equals, in every entry, 39/10 times 39/10 times the corresponding entry of V. Second, the correlation coefficient of any pair of entries is the same for the expanded matrix and for V, where the correlation coefficient is the entry divided by the square roots of the two diagonal entries. Third, for the expansion by the family fs, whenever two entries carry equal factors, their correlation coefficient is likewise unchanged. The statement renders the intended milestone faithfully: the covariance expansion law with the expansion factor 3.9 of the separate adjustment of the Newtonian constant of gravitation as the instance, and the preservation of correlations that the report asserts.

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

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 21, 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