Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma A.13, p. 73 — the Hellinger distance D_H = √D²_H satisfies the triangle inequality

Proved
StatComplexityDM.HellingerChain.hellinger_triangle

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

hellinger-distanceinformation-theoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let PPP, QQQ, RRR be probability distributions on a finite set Y\mathcal YY, and let DH(P,Q)=DH2(P,Q)D_{\mathrm H}(P, Q) = \sqrt{D^2_{\mathrm H}(P, Q)}DH​(P,Q)=DH2​(P,Q)​ be the Hellinger distance, where DH2(P,Q)=∑y(P(y)−Q(y))2D^2_{\mathrm H}(P, Q) = \sum_{y} (\sqrt{P(y)} - \sqrt{Q(y)})^2DH2​(P,Q)=∑y​(P(y)​−Q(y)​)2. Then

DH(P,R)≤DH(P,Q)+DH(Q,R).D_{\mathrm H}(P, R) \le D_{\mathrm H}(P, Q) + D_{\mathrm H}(Q, R).DH​(P,R)≤DH​(P,Q)+DH​(Q,R).

The proof of Lemma A.13 uses this fact to split DH(P,Q)D_{\mathrm H}(\mathbb P, \mathbb Q)DH​(P,Q) through an intermediate mixture law Pλ\mathbb P_\lambdaPλ​.

Formalization Note Finite alphabets: distributions are probability vectors (nonnegative entries summing to one). The paper states the fact for general probability measures, without a number.

Preamble
import Mathlib
import Definitions.Def_FoundationsRL_GeneralDM_Divergences
Formal statement
namespace StatComplexityDM.HellingerChain

open FoundationsRL.GeneralDM

/-- The triangle inequality for the Hellinger distance `D_H = √(D²_H)` (arXiv:2112.13487v3,
App. A.2, proof of Lemma A.13, p. 73), for probability vectors on a finite type:
`D_H(P, R) ≤ D_H(P, Q) + D_H(Q, R)`. -/
theorem hellinger_triangle {Y : Type*} [Fintype Y] (P Q R : Y → ℝ)
    (hP : (∀ y, 0 ≤ P y) ∧ ∑ y, P y = 1) (hQ : (∀ y, 0 ≤ Q y) ∧ ∑ y, Q y = 1)
    (hR : (∀ y, 0 ≤ R y) ∧ ∑ y, R y = 1) :
    Real.sqrt (hellingerSq P R) ≤
      Real.sqrt (hellingerSq P Q) + Real.sqrt (hellingerSq Q R) := by sorry

end StatComplexityDM.HellingerChain
Source
arXiv:2112.13487v3, App. A.2, proof of Lemma A.13, p. 73 ("Since Hellinger distance satisfies the triangle inequality")
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