Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Lloyd's k-means algorithm with explicit tie handling

Definition

Input. Let n,p be positive integers, let 1≤K≤n, let x1,…,xn∈Rp, and supply initial centers μ1(0),…,μK(0)∈Rp.

Initialization. Assign each xi to a nearest initial center, choosing the smallest center index in a tie. Denote these labels by zi(0).

Iteration. For t=0,1,2,…:

  1. With the current centers fixed, assign each xi to a nearest center. If its current label zi(t) is among the nearest-center indices, retain zi(t); otherwise choose the smallest nearest-center index. Call the resulting labels zi(t+1).
  2. For each nonempty cluster Ck(t+1):={i:zi(t+1)=k}, set μk(t+1):=1∣Ck(t+1)∣∑i∈Ck(t+1)xi. If Ck(t+1) is empty, set μk(t+1):=μk(t).
  3. If both z(t+1)=z(t) and μ(t+1)=μ(t), return these labels and centers. Otherwise continue with the updated labels and centers.

The procedure makes no global-minimization claim. Its termination under these tie rules is proved separately.

Depends on

Used by

Dependency tree · one level

1 result within one dependency step of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources