Alphabeta Math
Pipeline-generated
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.

K-means, Gaussian mixtures, and soft assignments — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

Tie retention gives distinct Lloyd fixed points

Example

For the data x1=0,x2=1,x3=2,x4=3 in R and K=2, use nearest-center initialization with smallest-index initialization ties, retain the current label on later ties, replace each nonempty center by its assigned-data mean, and leave empty centers unchanged. For clusters C1,C2 and centers c1,c2, define the cost by J=∑k=12∑xi∈Ck(xi−ck)2. Initial centers (0,11/10) yield the fixed clusters {0} and {1,2,3} with centers (0,2) and cost 2. Initial centers (3,19/10) yield the fixed clusters {3} and {0,1,2} with centers (3,1) and cost 2. Initial centers (1/2,5/2) yield the fixed clusters {0,1} and {2,3} with centers (1/2,5/2) and cost 1. In the first two runs, the boundary observation is tied between the two updated centers and stays in its current cluster by the retention rule; each output is a fixed point, while the third has lower cost.

Example references

Lloyd's k-means algorithm with explicit tie handling — initialization, tie retention, empty-center handling, and the stop condition requiring unchanged labels and centers.

K-means objective — the squared Euclidean within-cluster objective used for the reported values.

Facts & Assumptions

Given: Data 0,1,2,3∈R, two clusters, and the Lloyd rules in the Example.

[F1]

K-means objective: for labels ci∈{1,2} and centers μ1,μ2, the objective is J=∑i=14(xi−μci)2.

[F2]

Lloyd's k-means algorithm with explicit tie handling: initialization selects a nearest center with smallest-index ties; later assignments retain the current label on a tie and otherwise select a nearest center; each nonempty center is replaced by its assigned-data mean; the algorithm stops when both labels and centers are unchanged.

Proof

1.1givenF2algebra

From initial centers (0,11/10), the nearest labels are (1,2,2,2): the respective comparisons are 0<121/100, 1>1/100, 4>81/100, and 9>361/100. The mean update gives centers 0 and (1+2+3)/3=2.

1.2F2algebra

From initial centers (3,19/10), nearest labels are (2,2,2,1): observations 0,1,2 are strictly nearer 19/10, while 3 equals the first center. Their means become 3 for cluster 1 and (0+1+2)/3=1 for cluster 2.

1.3F1F2algebra

From initial centers (1/2,5/2), nearest labels are (1,1,2,2). The means of these clusters are again 1/2 and 5/2, so labels and centers are unchanged and the procedure stops. The objective is 4(1/2)2=1.

2.1F1F2step 1.1algebra

With centers (0,2), observations 0,2,3 keep labels 1,2,2 by strict nearest comparisons; observation 1 is at distance 1 from each center and retains its current label 2. The labels remain (1,2,2,2), so their means remain (0,2) and the procedure stops. The objective is (0−0)2+(1−2)2+(2−2)2+(3−2)2=2.

2.2F1F2step 1.2algebra

With centers (3,1), observations 0,1,3 keep labels 2,2,1 by strict nearest comparisons; observation 2 is tied at distance 1 and retains label 2. The labels stay (2,2,2,1), their means remain (3,1), and the procedure stops. The objective is (0−1)2+(1−1)2+(2−1)2+(3−3)2=2.

3.1step 2.1step 2.2step 1.3algebra∎

The three explicitly computed terminal states have objective values 2,2,1, respectively, so they are distinct fixed points and the third has strictly lower objective than the first two. In the first and second runs, changing the tied boundary point to the other cluster would change the fixed partition; under the stated rule it remains with its current label.

Diagram

The horizontal coordinate is the observation value. Each row is one run; blue dots are assigned to cluster 1 and red dots to cluster 2. Dashed vertical ticks mark the updated centers, with labels above them. Vertical row placement has no numerical meaning. The diagram records the verified terminal assignments; the proof above establishes them without using the picture.

diagram failed to render:
\begin{tikzpicture}[x=1.15cm,y=0.95cm,every node/.style={font=\small}]
  \draw[->] (-0.35,0) -- (3.55,0) node[right] {$x$};
  \foreach \x in {0,1,2,3} {\draw (\x,0.06)--(\x,-0.06) node[below=3pt] {\x};}

\node[left] at (-0.4,3) {run 1}; \draw[blue,dashed] (0,2.68)--(0,3.32) node[above] {$c_1=0$}; \draw[red,dashed] (2,2.68)--(2,3.32) node[above] {$c_2=2$}; \foreach \x in {0} {\fill[blue] (\x,3) circle (2.5pt);} \foreach \x in {1,2,3} {\fill[red] (\x,3) circle (2.5pt);}

\node[left] at (-0.4,2) {run 2}; \draw[blue,dashed] (3,1.68)--(3,2.32) node[above] {$c_1=3$}; \draw[red,dashed] (1,1.68)--(1,2.32) node[above] {$c_2=1$}; \foreach \x in {3} {\fill[blue] (\x,2) circle (2.5pt);} \foreach \x in {0,1,2} {\fill[red] (\x,2) circle (2.5pt);}

  \node[left] at (-0.4,1) {run 3};
  \draw[blue,dashed] (0.5,0.68)--(0.5,1.32) node[above] {$c_1=1/2$};
  \draw[red,dashed] (2.5,0.68)--(2.5,1.32) node[above] {$c_2=5/2$};
  \foreach \x in {0,1} {\fill[blue] (\x,1) circle (2.5pt);}
  \foreach \x in {2,3} {\fill[red] (\x,1) circle (2.5pt);}
\end{tikzpicture}
ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A tied observation keeps fractional Gaussian responsibilities

Example

Assume AC. Take one observation x=0∈R, two Gaussian components with means μ1=−1 and μ2=1, common variance σ2>0, and mixture weights π1=1/3 and π2=2/3. Their component density is ϕ1(x;μ,σ2)=(2πσ2)−1/2exp⁡(−(x−μ)2/(2σ2)), and the responsibility of component k is γk=πkϕ1(0;μk,σ2)/∑j=12πjϕ1(0;μj,σ2). The two squared distances from the observation to the component means are both 1. For every σ>0, the responsibility vector is exactly (1/3,2/3); therefore as σ↓0 it remains fractional rather than converging to (1,0) or (0,1).

Example references

Finite Gaussian mixture with positive-definite component covariances — the positive-weight Gaussian component formula and responsibility definition.

Equal-spherical mixture assignments and objective converge to k-means — tied nearest centers receive limiting responsibilities proportional to their fixed mixture weights.

Positive-definite multivariate Gaussian density is normalized — each component formula is a normalized Gaussian density.

Facts & Assumptions

Given: Assume AC; take one observation at 0, means −1 and 1, common variance σ2>0, and positive weights 1/3,2/3.

[A1]

The Axiom of Choice: AC is the stated assumption of the finite-Gaussian definition and the local component-density normalization theorem.

[F1]

Finite Gaussian mixture with positive-definite component covariances: in one dimension, ϕ1(x;μ,σ2)=(2πσ2)−1/2exp⁡(−(x−μ)2/(2σ2)), and the responsibility is the weighted component density divided by their sum.

[F2]

Positive-definite multivariate Gaussian density is normalized: for positive variance, this component formula is finite and strictly positive and integrates to one.

[F3]

Equal-spherical mixture assignments and objective converge to k-means: at a tied nearest-center set, fixed positive weights yield limiting responsibilities equal to those weights renormalized over the tied set.

Proof

1.1A1F1F2algebra

Substitution in [F1] gives ϕ1(0;−1,σ2)=(2πσ2)−1/2e−1/(2σ2)=ϕ1(0;1,σ2)=:cσ. By [F2], cσ is finite and positive under [A1].

2.1F1step 1.1algebra

The responsibility denominator is cσ(1/3+2/3)=cσ. Dividing the two weighted component values by that denominator gives γ1=(1/3)cσ/cσ=1/3 and γ2=(2/3)cσ/cσ=2/3 for every σ>0.

3.1F3step 2.1algebra∎

Since the vector is constant for all positive σ, its limit as σ↓0 is (1/3,2/3), which is not one-hot. Both centers are nearest to 0, so [F3] gives the same tied-center limit, proportional to the fixed weights.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A two-point sample has unbounded Gaussian-mixture likelihood

Example

Assume AC. For the observations x1=0,x2=1∈R, use two Gaussian components of weights 1/2,1/2, both with mean 0, with variances ε2 and 1 for ε>0. Write ϕ1(x;0,s2)=(2πs2)−1/2exp⁡(−x2/(2s2)), fε(x)=12ϕ1(x;0,ε2)+12ϕ1(x;0,1), and Lε=fε(0)fε(1). Every parameter in this family has positive weights and positive-definite one-dimensional covariances. The likelihood Lε is unbounded above as ε↓0; hence its log likelihood is unbounded above as well.

Example references

Finite Gaussian mixture with positive-definite component covariances — the finite-mixture likelihood and Gaussian density formula.

Positive-definite multivariate Gaussian density is normalized — the component functions are normalized probability densities for every ε>0.

Facts & Assumptions

Given: Assume AC; take observations 0,1, two components with weights 1/2,1/2, common mean 0, and variances ε2 and 1 with ε>0.

[A1]

The Axiom of Choice: AC is the stated assumption of the finite-Gaussian definition and the local component-density normalization theorem.

[F1]

Finite Gaussian mixture with positive-definite component covariances: the one-dimensional component density is ϕ1(x;μ,s2)=(2πs2)−1/2e−(x−μ)2/(2s2) and the sample likelihood is the product of the mixture densities at the observations.

[F2]

Positive-definite multivariate Gaussian density is normalized: for each s2>0, the displayed component function is a normalized Gaussian density and is finite and positive at every real observation.

[F3]

Proof

1.1A1F1F2algebra

Let fε be the mixture density. From [F1], fε(0)=12ϕ1(0;0,ε2)+12ϕ1(0;0,1)≥122π ε. Also fε(1)=12ϕ1(1;0,ε2)+12ϕ1(1;0,1)≥e−1/222π>0. These bounds hold for every ε>0, for which both variances are positive; [F2] supplies the stated density interpretation under [A1].

2.1F1F3step 1.1algebra∎

The sample likelihood Lε=fε(0)fε(1) therefore satisfies Lε≥e−1/28πε. Given any real R, choose 0<ε<e−1/2/(8πeR); then step 1.1 gives Lε>eR. By [F3], log⁡Lε>log⁡(eR)=R. Thus both the likelihood and its log are unbounded above.

Sources