Lemma 5, p.7 — the triangle inequality for set distances
ProvedUltrametricFit.lemma_5approximation-algorithmshierarchical-clusteringlp-roundingp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1ultrametric-fitting
Let be a pseudometric on and non-empty sets of species. Then
The average distance between sets therefore inherits the triangle inequality, which the proof of the approximate inverse Jensen inequality uses for .
Differences from the source:
- generalization: a metric → a pseudometric (zero distances between distinct species are allowed); reason: every metric is a pseudometric, and the paper applies the result to the LP layers , which it calls technically a pseudometric (p.2)
- encoding: sets → non-empty finite sets; reason: the page defines only for non-empty sets; this excludes only undefined cases
Preamble
import Mathlib import Definitions.Def_UltrametricFit_avgDist
Formal statement
namespace UltrametricFit
/-- **Lemma 5**, Charikar, Gao, *Fitting Ultrametrics under any ℓ_p Objective*, STOC 2027 submission
(manuscript sha256 87af12a2…), p.7: `d(A, C) ≤ d(A, B) + d(B, C)`.
**Formalization Note.** Non-emptiness is the page's domain of `d(·, ·)`; `B = ∅` would make the
statement false through `1/0 = 0`. -/
theorem lemma_5 {n : ℕ} (d : Fin n → Fin n → ℝ) (hd : IsPseudometric d) (A B C : Finset (Fin n))
(hA : A.Nonempty) (hB : B.Nonempty) (hC : C.Nonempty) :
avgDist d A C ≤ avgDist d A B + avgDist d B C := by sorry
end UltrametricFit
Source
Charikar, Gao, Fitting Ultrametrics under any ℓ_p Objective, STOC 2027 submission (manuscript sha256 87af12a2…), Lemma 5, p.7
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.