Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.1 — if µ has finite first moment then d_µ ∈ L²(µ × µ)

Proved
DistCov.Indep.lemma_2_1

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

distance-covarianceintegrabilitymetric-spacep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let (X,d)(\mathcal X,d)(X,d) be a separable metric space with its Borel σ\sigmaσ-field, and let μ\muμ be a probability measure on X\mathcal XX with a finite first moment, i.e. d(x,x′)∈L1(μ×μ)d(x,x')\in L^1(\mu\times\mu)d(x,x′)∈L1(μ×μ). Let dμ(x,x′)=d(x,x′)−aμ(x)−aμ(x′)+D(μ)d_\mu(x,x')=d(x,x')-a_\mu(x)-a_\mu(x')+D(\mu)dμ​(x,x′)=d(x,x′)−aμ​(x)−aμ​(x′)+D(μ) be the centred distance, where aμ(x)=∫d(x,x′) dμ(x′)a_\mu(x)=\int d(x,x')\,d\mu(x')aμ​(x)=∫d(x,x′)dμ(x′) and D(μ)=∫d dμ2D(\mu)=\int d\,d\mu^2D(μ)=∫ddμ2. Then

dμ(x,x′)∈L2(μ×μ).d_\mu(x,x')\in L^2(\mu\times\mu).dμ​(x,x′)∈L2(μ×μ).

The lemma says that centring the distance improves its integrability from L1L^1L1 to L2L^2L2. Together with the Cauchy–Schwarz inequality it is what makes the distance covariance dcov⁡(θ)\operatorname{dcov}(\theta)dcov(θ) a well-defined finite number under first-moment assumptions alone.

Formalization Note The page says "Let X\mathcal XX be any metric space"; separability (SecondCountableTopology) and the Borel σ\sigmaσ-field are the standing assumption added by the author in Errata (i), p. 24, which makes (x,x′)↦d(x,x′)(x,x')\mapsto d(x,x')(x,x′)↦d(x,x′) measurable for the product σ\sigmaσ-field. Membership in L2L^2L2 is Mathlib's MemLp … 2, which includes a.e. strong measurability.

Preamble
import Mathlib
import Definitions.Def_DistCov_Indep_Setting
Formal statement
namespace DistCov.Indep

open MeasureTheory

theorem lemma_2_1 {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SecondCountableTopology X]
    (μ : Measure X) [IsProbabilityMeasure μ] (h : FiniteFirstMoment μ) :
    MemLp (fun p : X × X => dcent μ p.1 p.2) 2 (μ.prod μ) := by sorry

end DistCov.Indep
Source
Lyons, Distance covariance in metric spaces, arXiv:1106.5758 (version of 19 Dec. 2020), p. 4, Lemma 2.1 (proof display corrected by Errata (ii), p. 24); Errata (i), p. 24
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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