Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 22.4 (Kleinberg): no clustering function on a domain with at least two points satisfies Scale Invariance, Richness and Consistency

Proved
UnderstandingML.kleinberg_impossibility

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

clusteringimpossibilitykleinberg-axioms

Theorem 22.4. There exists no function, FFF, that satisfies all the three properties: Scale Invariance, Richness, and Consistency.

Formally: for a fixed finite domain XXX with at least two points, no function from dissimilarities over XXX to partitions of XXX satisfies the three axioms. (The book's proof picks a domain with at least three points and uses only two of its partitions; dissimilarities are positive on distinct points, as in Kleinberg (2003), which the scaling step of the proof needs.)

Preamble
import Definitions.Def_UnderstandingML_Clustering

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Theorem 22.4 (Kleinberg 2003)** (p. 319). There exists no function `F` that satisfies all
the three properties: Scale Invariance, Richness, and Consistency.
Stated for clustering functions on a fixed finite domain with at least two points (the
proof picks a domain with at least three points and uses two of its partitions). -/
theorem kleinberg_impossibility {X : Type*} [Fintype X] (hX : 2 ≤ Fintype.card X) :
    ¬ ∃ F : Dissimilarity X → Setoid X, ScaleInvariant F ∧ Rich F ∧ Consistent F := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §22.5 p. 319, Theorem 22.4 with its proof (Kleinberg 2003)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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