Theory#
Guarantees, not heuristics.
The results below are proved in the Thetan Berserker paper (see Citing Thetan). The proofs use uniform samples in d-dimensional balls under the ℓ₂ norm, with extensions to Gaussians in the appendix. Each step of TB rests on one of them.
Separation is preserved#
Lemma 1. If every pair of points from different clusters is at least θ apart, TS never merges two clusters, whatever the order.
One-to-one recovery#
Theorem 1. When θ exceeds every cluster diameter \(D_k\) and stays below every gap ω, a single TS pass returns exactly K clusters: no merges, no splits.
This is the rule behind Choosing θ.
Short edges vanish with dimension#
Propositions 1 and 2. For two balls of radius θ/2 whose centres are 3θ/2 apart, the chance that a cross-ball pair lies within θ decays exponentially in the dimension d. Order mistakes become rarer as the dimension grows.
Self-correction in two passes#
Lemma 2 and Theorem 2. A centroid born from a spurious cross-cluster merge lies within θ of a true centre, so the second pass absorbs it.
Order independence#
Theorems 3 and 4. For balls of radius r whose centres are more than 4r apart, the cleanup and the prepended second pass give the same result for every order.
Explicit cost bounds#
Theorems 5 and 6. Time is linear when there is one cluster and quadratic only when every point is its own cluster. Memory stays linear, with in-place permutations.