AFTD Auto-Formalizing Theoretical Domains

is_isosceles_set

def

A finite subset S of a metric space is isosceles if for every three points x, y, z in S, at least two of the three pairwise distances dist(x, y), dist(y, z), and dist(x, z) are equal.

Statement

def is_isosceles_set {M : Type*} [MetricSpace M] (S : Finset M) : Prop
Defined in
arXiv:2611.05421, Section 1
Verified
05 Nov 2026
Axioms
none listed

Read back from the Lean

Given a metric space $M$ and a finite subset $S \subseteq M$, is_isosceles_set S asserts that for all $x, y, z \in S$, at least two of the three pairwise distances between them are equal: that is, $\operatorname{dist}(x, y) = \operatorname{dist}(y, z)$, $\operatorname{dist}(y, z) = \operatorname{dist}(x, z)$, or $\operatorname{dist}(x, z) = \operatorname{dist}(x, y)$.

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

/-- A finite subset of a metric space is isosceles if among any three points at least two pairwise distances are equal. -/
def is_isosceles_set {M : Type*} [MetricSpace M] (S : Finset M) : Prop := ∀ x ∈ S, ∀ y ∈ S, ∀ z ∈ S, dist x y = dist y z ∨ dist y z = dist x z ∨ dist x z = dist x y
See it in the graphDiscuss this resultChallenge it