---
title: Spherical Two-Distance Sets
url: https://www.emergentmind.com/topics/spherical-two-distance-sets
type: topic
---

# Spherical Two-Distance Sets

A spherical two-distance set is a finite set \(S=\{x_1,\dots,x_N\}\subset \mathbb R^n\) of unit vectors such that the inner products of distinct vectors take only two values. Equivalently, for \(S\subset S^{d-1}\), the Euclidean distances between distinct points take only two values because \(\|x-y\|^2=2-2\langle x,y\rangle\). The subject lies at the intersection of extremal geometry, algebraic combinatorics, harmonic analysis, and frame theory. Its central problems concern maximal cardinality, structural classification, and graph-theoretic realization; modern treatments connect spherical two-distance sets to strongly regular graphs, spherical designs, equiangular lines, semidefinite programming, and Seidel-matrix spectral methods [1402.3521][1611.09479][2509.00858].

## 1. Definition, basic notation, and equivalent formulations

A standard formulation takes \(X=\{v_1,\dots,v_n\}\subset \mathbb S^{d-1}\) with
\[
\langle v_i,v_j\rangle\in\{a,b\},\qquad -1\le a<b<1,\quad i\neq j.
\]
The parameters \(a\) and \(b\) are the two possible inner products between distinct unit vectors. In geometric terms, the larger inner product corresponds to the smaller angle, and the smaller inner product to the larger angle [2509.00858].

The Gram-matrix viewpoint is fundamental. If \(G=(\langle x_i,x_j\rangle)_{ij}\), then for a two-distance set one may write
\[
G=I+a\Phi_1+b\Phi_2,
\]
where \(\Phi_1,\Phi_2\) are the adjacency matrices of two complementary graphs on the same vertex set. Thus the geometry is encoded by a graph recording which pairs realize one inner product and which realize the other [1402.3521].

The special case \(a=-b\) is the equiangular case. In that regime the two-distance problem collapses to the theory of equiangular lines, and several arguments used in the general setting become exceptional. The non-equiangular regime \(a\neq -b\) is therefore structurally distinct [1402.3521].

Several notational conventions occur in the literature. The maximum size of a spherical two-distance set in \(\mathbb R^n\) is denoted by \(g(n)\) in work on exact cardinalities [1609.01036][1204.5268]. For fixed angles \(\alpha,\beta\), the maximum size of a spherical \(\{\alpha,\beta\}\)-code in \(\mathbb R^d\) is denoted by
\[
N_{\alpha,\beta}(d),
\]
which is the natural fixed-angle asymptotic variant [2006.06633].

## 2. Absolute bounds, parameter-dependent bounds, and exact cardinalities

The classical absolute upper bound for spherical \(s\)-distance sets, due to Delsarte–Goethals–Seidel, is
\[
|A|\le \binom{n+s-1}{s}+\binom{n+s-2}{s-1}.
\]
Specialized to \(s=2\), this gives
\[
|A|\le \frac{n(n+3)}{2},
\]
which is the standard absolute bound for spherical two-distance sets [2007.00429]. A Gerzon-type polynomial argument recovers the same value when the two distinct inner products sum to zero; for \(s=2\) this again yields \(|F|\le n(n+3)/2\) [2110.00227].

Sharper estimates appear once additional structure is imposed. If a spherical \(2\)-distance set has strength \(2\), then the classical absolute bound improves to
\[
|X|\le \frac{m(m+1)}{2}.
\]
This is the familiar Neumaier-type improvement for spherical \(2\)-designs and is closely tied to strongly regular graphs and Krein-parameter conditions [1008.5383].

A different refinement depends explicitly on the two inner products. Using a Seidel matrix
\[
S=\frac{2G-(a+b)J+(a+b-2)I}{b-a},
\]
one obtains upper bounds that split according to the sign of \(a+b\):
\[
n \le \frac{d\left(\left(\frac{a+b-2}{b-a}\right)^2-1\right)}{\left(\frac{a+b-2}{b-a}\right)^2-d}, \qquad a+b\ge 0,
\]
and
\[
n \le \frac{(d+1)\left(\left(\frac{a+b-2}{b-a}\right)^2-1\right)}{\left(\frac{a+b-2}{b-a}\right)^2-(d+1)}, \qquad a+b<0.
\]
The second bound coincides with the relative bound for equiangular lines in one higher dimension, reflecting a bijective correspondence between spherical two-distance sets with \(a+b<0\) and equiangular line systems in \(\mathbb R^{d+1}\) with common angle
\[
\alpha=\frac{a-b}{a+b-2}.
\]
When equality holds, the Seidel matrix has exactly two distinct eigenvalues, corresponding to an equiangular tight frame [2509.00858].

For large configurations there is also a rigidity theorem of Larman–Rogers–Seidel type: if \(|\mathcal C|\ge 2n+3\), then the inner products satisfy
\[
b=b_k(a)=\frac{ka-1}{k-1}
\]
for some integer
\[
k\in\left\{2,\dots,\left\lfloor \frac{1+\sqrt{2n}}{2}\right\rfloor\right\},
\]
with
\[
a\in I_k=\left[0,\frac{1}{2k-1}\right).
\]
This reduction is a key ingredient in semidefinite programming approaches [1204.5268].

Lower bounds come from explicit constructions. The standard example is given by the midpoints of edges of a regular simplex, yielding
\[
g(n)\ge \frac{n(n+1)}{2},\qquad n\ge 2.
\]
A substantial body of work shows that this lower bound is often exact. Semidefinite programming proves
\[
g(23)=276
\]
and
\[
g(n)=\frac{n(n+1)}{2}\qquad \text{for }40\le n\le 93,\ n\neq 46,78,
\]
while also recording the special values \(g(2)=5\), \(g(3)=6\), \(g(4)=10\), \(g(5)=16\), \(g(6)=27\), and \(g(22)=275\) [1204.5268]. A later reduction to equiangular lines extends the exact formula to
\[
g(n)=\frac{n(n+1)}{2}
\]
for
\[
7\le n\le 417,
\]
except for
\[
n=22,46,78,118,166,222,286,358,
\]
which are exactly the values
\[
n=(2k+1)^2-3,\qquad k=2,\dots,9.
\]
In a complementary formulation, the maximum size is proved to be \(n(n+1)/2\) for all \(n\ge 7\), except possibly when \(n=(2k+1)^2-3\); these are precisely the dimensions tied to the open problem of tight spherical \(4\)-designs [1609.01036][1611.09479].

## 3. Tight frames, spherical designs, and strongly regular graphs

A central structural theorem concerns two-distance sets that are also tight frames. A finite unit-norm set \(S=\{x_i\}_{i=1}^N\subset \mathbb R^n\) is a tight frame if
\[
A\|x\|^2=\sum_{i=1}^N |\langle x,x_i\rangle|^2 \qquad \text{for all }x\in \mathbb R^n,
\]
and for a unit-norm tight frame one has
\[
A=\frac{N}{n},\qquad XX^\top=\frac{N}{n}I_n.
\]
Equivalently, the Gram matrix has spectrum
\[
\left\{\frac{N}{n}\text{ (mult. }n),\,0\text{ (mult. }N-n)\right\}.
\]
A two-distance tight frame is precisely a spherical two-distance set that is also a finite unit-norm tight frame [1402.3521].

The main theorem in this setting states that if \(S\) is a non-equiangular two-distance finite unit-norm tight frame in \(\mathbb R^n\) and \(a\neq -b\), then \(S\) is either a spherical two-distance \(2\)-design or a shifted \(2\)-design, and in either case arises as a spherical embedding of a strongly regular graph. Conversely, every strongly regular graph gives rise, through the standard Delsarte–Goethals–Seidel spherical embedding, to two-distance tight frames. Together with Waldron’s earlier result on the equiangular case, this completely characterizes finite two-distance tight frames [1402.3521].

A strongly regular graph has parameters
\[
\operatorname{SRG}(v,k,\lambda,\mu),
\]
meaning \(k\)-regularity on \(v\) vertices, \(\lambda\) common neighbors for adjacent vertices, and \(\mu\) common neighbors for nonadjacent vertices. If \(\Phi\) is its adjacency matrix, then its spectrum consists of the trivial eigenvalue \(k\) and two nontrivial eigenvalues
\[
r_{1,2}=\frac{1}{2}\left((\lambda-\mu)\pm\sqrt{(\lambda-\mu)^2+4(k-\mu)}\right),
\]
with multiplicities
\[
n_{1,2}=\frac{1}{2}\left(v-1\mp \frac{2k+(v-1)(\lambda-\mu)}{\sqrt{(\lambda-\mu)^2+4(k-\mu)}}\right).
\]
Projecting the standard basis of \(\mathbb R^v\) onto one of the nontrivial eigenspaces and normalizing yields the spherical embeddings \(S_1(\Gamma)\) and \(S_2(\Gamma)\), each a spherical two-distance set [1402.3521].

The intermediate classification of spherical two-distance \(2\)-designs is especially sharp:
> Any spherical two-distance \(2\)-design is either \(S_1(\Gamma)\), \(S_2(\Gamma)\), or a regular simplex.

Here a spherical \(2\)-design is equivalently a unit-norm tight frame with centroid at the origin, characterized by
\[
\sum_i x_i=0,\qquad \sum_{i,j}\langle x_i,x_j\rangle^2=\frac{N^2}{n}.
\]
If the centroid does not vanish, the configuration must be similar to an \((n-1)\)-dimensional two-distance \(2\)-design lying in a subsphere of radius
\[
\sqrt{1-\frac{1}{n}},
\]
the “shifted \(2\)-design” case [1402.3521].

## 4. Graph encodings and spectral representation theory

The graph-theoretic encoding of spherical two-distance sets extends well beyond the tight-frame case. One direction starts from geometry: given a two-distance set, declare two vertices adjacent when the corresponding pair realizes one of the two distances or inner products. The other direction starts from a graph and asks for a two-distance realization of its vertices. This bridge underlies several spectral characterizations [1402.3521][2211.12582].

A general result states that every graph \(G\) can be embedded in a Euclidean space as a two-distance set. One may then define the Euclidean representation number \(\dim_2(G)\), the spherical representation number \(\dim_2^S(G)\), and the J-spherical representation number \(\dim_2^J(G)\) [1608.03392]. In the Cayley–Menger framework, if \(p(G)\) is the multiplicity of a distinguished root \(T_1(G)\) of the discriminating polynomial, then
\[
\dim_2(G)=n-p(G)-1.
\]
Sphericality is controlled by the circumradius invariant \(R(G)\):
\[
\dim_2^S(G)=
\begin{cases}
\dim_2(G), & R(G)<\infty,\\
n-1, & R(G)=\infty.
\end{cases}
\]
For J-spherical representations, one has
\[
\dim_2^J(G)=
\begin{cases}
\dim_2(G), & R(G)=\frac{1}{\sqrt 2},\\
n-1, & R(G)>\frac{1}{\sqrt 2}.
\end{cases}
\]
Every graph except a complete graph admits a J-spherical representation, and it is unique up to isometry [1608.03392].

An eigenvalue-based reformulation uses the projected Gram matrix. If \(A\) is the adjacency matrix of \(G\) and \(V\) has orthonormal columns spanning the orthogonal complement of the all-ones vector, then for a normalized two-distance representation one obtains
\[
2X=BI_{n-1}+(B-1)V^TAV.
\]
This leads to exact formulas for \(\dim_E(G)\) and \(\dim_S(G)\) in terms of extremal eigenvalues of \(V^TAV\), and to the clean J-spherical formula
\[
\dim_J(G)=n-m(\lambda_1(\bar A)),
\]
where \(\lambda_1(\bar A)\) is the largest eigenvalue of the complement graph [1808.05915].

For graphs on \(d+2\) vertices, spherical representability in \(\mathbb R^d\) admits an especially precise spectral criterion. Let \(A_G\) have eigenvalues \(\lambda_1\ge \lambda_2\ge\cdots\), and let
\[
P=I-\frac{1}{d+2}J
\]
be the orthogonal projection onto \(1^\perp\). Then \(G\) has a spherical representation in \(\mathbb R^d\) if and only if the maximum eigenvalue of \(PA_GP\) equals \(\lambda_2\), and the multiplicity of \(\lambda_2\) in \(A_G\) equals its multiplicity in \(PA_GP\), excluding \(\lambda_1\) if \(\lambda_1=\lambda_2\). In this formulation the distance ratio is determined by
\[
k=\sqrt{\frac{1}{\lambda_2}+1}.
\]
The same framework also determines the lowest-dimensional spherical realization in terms of the multiplicity of \(\lambda_2\) [2211.12582].

These results make precise a common theme in the subject: the existence of a spherical two-distance realization is often equivalent to the positive semidefiniteness and rank behavior of a small collection of graph-derived matrices, while extremal or highly symmetric configurations correspond to rigid spectral multiplicity patterns.

## 5. Extremal constructions and Borsuk-type counterexamples

Strongly regular graphs provide concrete high-dimensional examples with striking extremal behavior. A general Euclidean representation starts from a strongly regular graph \(T\) with parameters \((v,k,\lambda,\mu)\), chooses one eigenspace, and produces vectors \(x_i\) satisfying
\[
(x_i,x_j)=
\begin{cases}
1, & i=j,\\
p, & i\sim j,\\
q, & i\not\sim j.
\end{cases}
\]
Thus adjacency and nonadjacency translate directly into the two inner products [1305.2584].

The graph \(G_2(4)\) with parameters
\[
(416,100,36,20)
\]
yields a two-distance set of \(416\) points on the unit sphere \(S^{64}\subset\mathbb R^{65}\). In this case the positive eigenspace has dimension \(65\), and the two inner products are
\[
p=\frac15,\qquad q=-\frac1{15}.
\]
Because the diameter is realized by nonadjacent vertices, any partition into smaller-diameter parts corresponds to a partition of the graph into cliques. The paper proves that \(G_2(4)\) has no \(6\)-clique, hence
\[
\omega(G_2(4))\le 5,
\]
so any such partition needs at least
\[
\left\lceil \frac{416}{5}\right\rceil=84
\]
parts. Equivalently, the configuration cannot be partitioned into \(83\) parts of smaller diameter, proving
\[
b(65)\ge b_2(65)\ge 84.
\]
This answers Larman’s question negatively for two-distance sets and reduces the smallest dimension in which Borsuk’s conjecture is known to be false in the two-distance spherical setting [1305.2584].

A second example comes from the strongly regular \(Fi_{23}\) graph with parameters
\[
(31671,3510,693,351).
\]
Its Euclidean representation lies in \(\mathbb R^{782}\), hence on \(S^{781}\), and has inner products
\[
\frac1{10},\qquad -\frac1{80}.
\]
Again diameter corresponds to nonadjacency, so the clique number controls Borsuk partitions. The paper shows that a clique cannot have more than \(23\) vertices, giving
\[
\left\lceil \frac{31671}{23}\right\rceil=1377
\]
and therefore
\[
b_2(782)\ge 1377.
\]
It also derives the nearby bounds
\[
b_2(781)\ge 1225,\qquad b_2(780)\ge 1102,\qquad b_2(779)\ge 1002
\]
by a standard stacking construction [1305.2584].

These examples show that spherical two-distance sets are not merely highly symmetric packings; they can also force extremal partition behavior. A plausible implication is that the graph-theoretic rigidity responsible for exact cardinality results also underlies the failure of naive diameter-partition heuristics in high dimensions.

## 6. Fixed-angle asymptotics, signed graphs, and broader extensions

A modern asymptotic version fixes the two inner products and studies
\[
N_{\alpha,\beta}(d),
\]
the largest size of a spherical \(\{\alpha,\beta\}\)-code in \(\mathbb R^d\), for fixed
\[
-1\le \beta<0\le \alpha<1.
\]
The key parameters are
\[
\lambda=\frac{1-\alpha}{\alpha-\beta},\qquad p=\left\lfloor -\frac{\alpha}{\beta}\right\rfloor+1.
\]
The conjectural limit is expressed through a signed-graph invariant \(k_p(\lambda)\):
\[
\lim_{d\to\infty}\frac{N_{\alpha,\beta}(d)}{d}=
\begin{cases}
\frac{k_p(\lambda)}{k_p(\lambda)-1}, & k_p(\lambda)<\infty,\\
1, & \text{otherwise.}
\end{cases}
\]
This conjecture is proved when \(\alpha+2\beta<0\), or when \((1-\alpha)/(\alpha-\beta)\in\{1,\sqrt2,\sqrt3\}\) under the stated \(p\)-conditions. In particular, if \(\lambda=1\) and \(p\ge 2\), then
\[
N_{\alpha,\beta}(d)=pd+O_{\alpha,\beta}(1),
\]
if \(\lambda=\sqrt3\) and \(p=3\), then
\[
N_{\alpha,\beta}(d)=\frac74\,d+O_{\alpha,\beta}(1),
\]
and if \(\lambda\in\{\sqrt2,\sqrt3\}\) with \(p\ge \lambda+1\), then
\[
N_{\alpha,\beta}(d)=2d+O_{\alpha,\beta}(1).
\]
This is the first determination of \(\lim_{d\to\infty}N_{\alpha,\beta}(d)/d\) for nontrivial fixed values of \(\alpha\) and \(\beta\) outside the equiangular setting [2006.06633].

Two broader methodological extensions place spherical two-distance sets inside the general theory of few-distance spherical sets. First, the Petrov–Pohoata method, combined with Sylvester’s law of inertia and Gröbner bases, yields a short algebraic proof of the Delsarte–Goethals–Seidel bound for spherical \(s\)-distance sets, and hence recovers \(|A|\le n(n+3)/2\) for the two-distance case [2007.00429]. Second, the polynomial method for spherical \(s\)-distance sets with
\[
t_1+\cdots+t_s=0
\]
gives
\[
|F|\le \binom{n+s-1}{s}+\binom{n+s-2}{s-1},
\]
which for \(s=2\) again becomes the Gerzon bound \(n(n+3)/2\) [2110.00227].

Related work on strength and antipodality shows how the two-distance problem interacts with association schemes, real ETFs, and Levenstein-equality packings. For spherical \(2\)-distance sets of strength \(2\), the improved upper bound \(|X|\le m(m+1)/2\) can be read both as a geometric estimate and as a restriction on strongly regular graphs with suitable Krein-parameter behavior [1008.5383]. In antipodal few-angle settings, the corresponding half-sets are equiangular or two-distance spherical embeddings of strongly regular graphs, which indicates that the structural role of two-distance geometry persists well beyond the literal \(s=2\) case [2007.13999].

Taken together, these developments show that spherical two-distance sets occupy a distinguished position among spherical codes. They are simultaneously constrained enough to admit exact classification results in several regimes, yet flexible enough to encode strongly regular graphs, tight frames, asymptotic signed-graph phenomena, and high-dimensional counterexamples in extremal geometry.

Source: https://www.emergentmind.com/topics/spherical-two-distance-sets