Lemma
Let be a finite subset of the unit sphere in .
We say that is a spherical two-distance set if there are two constants such that for any two distinct points ,Equivalently, the squared distances take exactly two possible values for .
Then .
\begin{proof}
Let .
Assume that for any , the squared distance takes one of two values, say or .
For each point , define a polynomial function on by
Note that
Therefore, the functions are linearly independent: if , then evaluating at gives , so for every .
Thus , where is the vector space spanned by all polynomial functions of the form .
Each is a polynomial in the coordinates of of degree at most after restricting to the sphere containing the two-distance set. Hence lies inside the space of polynomials of degree at most in variables, with the constant term accounted for by the spherical relation.
The dimension of this space is
Therefore, .
\end{proof}