AFTD Auto-Formalizing Theoretical Domains

kmeans_opt_one

def

The optimal 1-means cost OPT₁(X) of a finite set of points X is the infimum over all centers c of the 1-means cost of X with center c.

Statement

noncomputable def kmeans_opt_one {E : Type*} [NormedAddCommGroup E] (X : Finset E) : ℝ
Defined in
arXiv:2611.14573 Section 2
Verified
13 Nov 2026
Axioms
none listed
Built on 1
  • kmeans_cost_oneThe 1-means clustering cost of a finite set of points X in a normed group with respect to a single center c is the sum over x in X of ||x…

Read back from the Lean

Given a normed additive commutative group E and a finite set X : Finset E, kmeans_opt_one X is defined as the infimum (in ℝ) over all c : E of kmeans_cost_one X c.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The optimal 1-means cost (variance) of a finite point set X. -/
noncomputable def kmeans_opt_one {E : Type*} [NormedAddCommGroup E] (X : Finset E) : ℝ := ⨅ c : E, kmeans_cost_one X c
See it in the graphDiscuss this resultChallenge it