Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.7 — dcov(θ) = 4‖β_{ϕ⊗ψ}(θ − µ × ν)‖²

Proved
DistCov.Indep.proposition_3_7

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

barycenterdistance-covariancehilbert-spacenegative-typep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1tensor-product

Let X\mathcal XX and Y\mathcal YY be separable metric spaces with their Borel σ\sigmaσ-fields, of negative type as witnessed by embeddings ϕ:X→H\phi:\mathcal X\to Hϕ:X→H and ψ:Y→K\psi:\mathcal Y\to Kψ:Y→K into real Hilbert spaces. Let θ\thetaθ be a probability measure on X×Y\mathcal X\times\mathcal YX×Y whose marginals μ\muμ and ν\nuν have finite first moments. Then θ∘(ϕ⊗ψ)−1\theta\circ(\phi\otimes\psi)^{-1}θ∘(ϕ⊗ψ)−1 has finite first moment, i.e. the tensor embedding (x,y)↦ϕ(x)⊗ψ(y)∈H⊗K(x,y)\mapsto\phi(x)\otimes\psi(y)\in H\otimes K(x,y)↦ϕ(x)⊗ψ(y)∈H⊗K is θ\thetaθ-integrable, so that βϕ⊗ψ(θ)\beta_{\phi\otimes\psi}(\theta)βϕ⊗ψ​(θ) is defined, and

dcov⁡(θ)=4 ∥βϕ⊗ψ(θ−μ×ν)∥2.\operatorname{dcov}(\theta)=4\,\big\|\beta_{\phi\otimes\psi}(\theta-\mu\times\nu)\big\|^2 .dcov(θ)=4​βϕ⊗ψ​(θ−μ×ν)​2.

The proposition identifies distance covariance with the squared distance, in the Hilbert tensor product, between the barycenters of θ\thetaθ and of the product of its marginals. In particular dcov⁡(θ)≥0\operatorname{dcov}(\theta)\ge0dcov(θ)≥0 on spaces of negative type, and dcov⁡(θ)=0\operatorname{dcov}(\theta)=0dcov(θ)=0 exactly when these two barycenters coincide.

Formalization Note H⊗KH\otimes KH⊗K is the completion of the algebraic tensor product with the inner product ⟨h1⊗k1,h2⊗k2⟩=⟨h1,h2⟩⟨k1,k2⟩\langle h_1\otimes k_1,h_2\otimes k_2\rangle=\langle h_1,h_2\rangle\langle k_1,k_2\rangle⟨h1​⊗k1​,h2​⊗k2​⟩=⟨h1​,h2​⟩⟨k1​,k2​⟩. The paper uses one space HHH for both factors; allowing two spaces is a harmless generalization of a universally quantified statement. βϕ⊗ψ(θ−μ×ν)\beta_{\phi\otimes\psi}(\theta-\mu\times\nu)βϕ⊗ψ​(θ−μ×ν) is written βϕ⊗ψ(θ)−βϕ⊗ψ(μ×ν)\beta_{\phi\otimes\psi}(\theta)-\beta_{\phi\otimes\psi}(\mu\times\nu)βϕ⊗ψ​(θ)−βϕ⊗ψ​(μ×ν) by linearity. "Finite first moment of θ∘(ϕ⊗ψ)−1\theta\circ(\phi\otimes\psi)^{-1}θ∘(ϕ⊗ψ)−1" is stated as Bochner integrability of ϕ⊗ψ\phi\otimes\psiϕ⊗ψ with respect to θ\thetaθ. Separability is the standing assumption of Errata (i), p. 24.

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

open MeasureTheory

theorem proposition_3_7 {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SecondCountableTopology X] {Y : Type*} [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] [SecondCountableTopology Y] {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] {K : Type*} [NormedAddCommGroup K] [InnerProductSpace ℝ K] [CompleteSpace K]
    (ϕ : X → H) (ψ : Y → K) (hϕ : IsNegTypeEmbedding ϕ) (hψ : IsNegTypeEmbedding ψ)
    (θ : Measure (X × Y)) [IsProbabilityMeasure θ]
    (hμ : FiniteFirstMoment (θ.map Prod.fst)) (hν : FiniteFirstMoment (θ.map Prod.snd)) :
    Integrable (tensorEmb ϕ ψ) θ ∧
    dcov θ = 4 * ‖bary (tensorEmb ϕ ψ) θ
      - bary (tensorEmb ϕ ψ) ((θ.map Prod.fst).prod (θ.map Prod.snd))‖ ^ 2 := by sorry

end DistCov.Indep
Source
Lyons, Distance covariance in metric spaces, arXiv:1106.5758 (version of 19 Dec. 2020), p. 14, Proposition 3.7 (tensor embedding defined on p. 13); 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