# Distance geometry

Distance geometry is the characterization and study of sets of points based only on given values of the distances between member pairs.[1][2][3] More abstractly, it is the study of semimetric spaces and the isometric transformations between them. In this view, it can be considered as a subject within general topology.[4]

Historically, the first result in distance geometry is Heron's formula in 1st century AD. The modern theory began in 19th century with work by Arthur Cayley, followed by more extensive developments in the 20th century by Karl Menger and others.

Distance geometry problems arise whenever one needs to infer the shape of a configuration of points (relative positions) from the distances between them, such as in biology,[4] sensor network,[5] surveying, navigation, cartography, and physics.

## Introduction and definitions

The concepts of distance geometry will first be explained by describing two particular problems.

Consider three ground radio stations A, B, C, whose locations are known. A radio receiver is at an unknown location. The times it takes for a radio signal to travel from the stations to the receiver, ${\displaystyle {\displaystyle t_{A},t_{B},t_{C}}}$ , are unknown, but the time differences, ${\displaystyle {\displaystyle t_{A}-t_{B}}}$  and ${\displaystyle {\displaystyle t_{A}-t_{C}}}$ , are known. From them, one knows the distance differences ${\displaystyle c({\displaystyle t_{A}-t_{B}})}$  and ${\displaystyle c({\displaystyle t_{A}-t_{C}})}$ , from which the position of the receiver can be found.

### Second problem: dimension reduction

In data analysis, one is often given a list of data represented as vectors ${\displaystyle \mathbf {v} =(x_{1},\cdots ,x_{n})\in \mathbb {R} ^{n}}$ , and one needs to find out whether they lie within a low-dimensional affine subspace. A low-dimensional representation of data has many advantages, such as saving storage space, computation time, and giving better insight into data.

### Definitions

Now we formalize some definitions that naturally arise from considering our problems.

#### Semimetric space

Given a list of points on ${\displaystyle R=\{P_{0},\cdots ,P_{n}\}}$ , ${\displaystyle n\geq 0}$ , we can arbitrarily specify the distances between pairs of points by a list of ${\displaystyle d_{ij}>0}$ , ${\displaystyle 0\leq i . This defines a semimetric space: a metric space without triangle inequality.

Explicitly, we define a semimetric space as a nonempty set ${\displaystyle R}$  equipped with a semimetric ${\displaystyle d:R\times R\to [0,\infty )}$  such that, for all ${\displaystyle x,y\in R}$ ,

1. Positivity: ${\displaystyle d(x,y)=0}$    if and only if  ${\displaystyle x=y}$ .
2. Symmetry: ${\displaystyle d(x,y)=d(y,x)}$ .

Any metric space is a fortiori a semimetric space. In particular, ${\displaystyle \mathbb {R} ^{k}}$ , the ${\displaystyle k}$ -dimensional Euclidean space, is the canonical metric space in distance geometry.

The triangle inequality is omitted in the definition, because we do not want to enforce more constraints on the distances ${\displaystyle d_{ij}}$  than the mere requirement that they be positive.

In practice, semimetric spaces naturally arises from inaccurate measurements. For example, given three points ${\displaystyle A,B,C}$  on a line, with ${\displaystyle d_{AB}=1,d_{BC}=1,d_{AC}=2}$ , an inaccurate measurement could give ${\displaystyle d_{AB}=0.99,d_{BC}=0.98,d_{AC}=2.00}$ , violating the triangle inequality.

#### Isometric embedding

Given two semimetric spaces, ${\displaystyle (R,d),(R',d')}$ , an isometric embedding from ${\displaystyle R}$  to ${\displaystyle R'}$  is a map ${\displaystyle f:R\to R'}$  that preserves the semimetric, that is, for all ${\displaystyle x,y\in R}$ , ${\displaystyle d(x,y)=d'(f(x),f(y))}$ .

For example, given the finite semimetric space ${\displaystyle (R,d)}$  defined above, an isometric embedding into is defined by points ${\textstyle A_{0},A_{1},\ldots ,A_{n}\in {\displaystyle \mathbb {R} ^{k}}}$ , such that ${\displaystyle d(A_{i},A_{j})=d_{ij}}$  for all ${\displaystyle 0\leq i .

#### Affine independence

Given the points ${\textstyle A_{0},A_{1},\ldots ,A_{n}\in {\displaystyle \mathbb {R} ^{k}}}$ , they are defined to be affinely independent, iff they cannot fit inside a single ${\displaystyle l}$ -dimensional affine subspace of ${\displaystyle \mathbb {R} ^{k}}$ , for any ${\displaystyle l , iff the ${\displaystyle n}$ -simplex they span, ${\displaystyle v_{n}}$ , has positive ${\displaystyle n}$ -volume, that is, ${\displaystyle Vol_{n}(v_{n})>0}$ .

In general, when ${\displaystyle k\geq n}$ , they are affinely independent, since a generic n-simplex is nondegenerate. For example, 3 points in the plane, in general, are not collinear, because the triangle they span does not degenerate into a line segment. Similarly, 4 points in space, in general, are not coplanar, because the tetrahedron they span does not degenerate into a flat triangle.

When ${\displaystyle n>k}$ , they must be affinely dependent. This can be seen by noting that any ${\displaystyle n}$ -simplex that can fit inside ${\displaystyle \mathbb {R} ^{k}}$  must be "flat".

## Cayley–Menger determinants

Cayley–Menger determinants, named after Arthur Cayley and Karl Menger, are determinants of matrices of distances between sets of points.

Let ${\textstyle A_{0},A_{1},\ldots ,A_{n}}$  be n + 1 points in a semimetric space, their Cayley–Menger determinant is defined by

${\displaystyle CM(A_{0},\cdots ,A_{n})={\begin{vmatrix}0&d_{01}^{2}&d_{02}^{2}&\cdots &d_{0n}^{2}&1\\d_{01}^{2}&0&d_{12}^{2}&\cdots &d_{1n}^{2}&1\\d_{02}^{2}&d_{12}^{2}&0&\cdots &d_{2n}^{2}&1\\\vdots &\vdots &\vdots &\ddots &\vdots &\vdots \\d_{0n}^{2}&d_{1n}^{2}&d_{2n}^{2}&\cdots &0&1\\1&1&1&\cdots &1&0\end{vmatrix}}}$

If ${\textstyle A_{0},A_{1},\ldots ,A_{n}\in {\displaystyle \mathbb {R} ^{k}}}$ , then they make up the vertices of an (possibly degenerate) n-simplex ${\displaystyle {\displaystyle v_{n}}}$  in ${\displaystyle \mathbb {R} ^{k}}$ . It can be shown that[6] the n-dimensional volume of the simplex ${\displaystyle {\displaystyle v_{n}}}$  satisfies

${\displaystyle Vol_{n}(v_{n})^{2}={\frac {(-1)^{n+1}}{(n!)^{2}2^{n}}}CM(A_{0},\cdots ,A_{n})}$ .

Note that, for the case of ${\displaystyle n=0}$ , we have ${\displaystyle Vol_{0}(v_{0})=1}$ , meaning the "0-dimensional volume" of a 0-simplex is 1, that is, there is 1 point in a 0-simplex.

${\textstyle A_{0},A_{1},\ldots ,A_{n}}$  are affinely independent iff ${\displaystyle Vol_{n}(v_{n})>0}$ , that is, ${\displaystyle (-1)^{n+1}CM(A_{0},\cdots ,A_{n})>0}$ . Thus Cayley–Menger determinants give a computational way to prove affine independence.

If ${\displaystyle k , then the points must be affinely dependent, thus ${\displaystyle CM(A_{0},\cdots ,A_{n})=0}$ . Cayley's 1841 paper studied the special case of ${\displaystyle k=3,n=4}$ , that is, any 5 points ${\displaystyle A_{0},\cdots ,A_{5}}$  in 3-dimensional space must have ${\displaystyle CM(A_{0},\cdots ,A_{4})=0}$ .

## History

The first result in distance geometry is Heron's formula, from 1st century AD, which gives the area of a triangle from the distances between its 3 vertices. Brahmagupta's formula, from 7th century AD, generalizes it to cyclic quadrilaterals. Tartaglia, from 16th century AD, generalized it to give the volume of tetrahedron from the distances between its 4 vertices.

The modern theory of distance geometry began with Authur Cayley and Karl Menger.[7] Cayley published the Cayley determinant in 1841[8], which is a special case of the general Cayley–Menger determinant. Menger proved in 1928 a characterization theorem of all semimetric spaces that are isometrically embeddable in the n-dimensional Euclidean space ${\displaystyle \mathbb {R} ^{n}}$ .[9][10] In 1931, Menger used distance relations to give an axiomatic treatment of Euclidean geometry.[11]

Leonard Blumenthal's book[12] gives a general overview for distance geometry at the graduate level, a large part of which is treated in English for the first time when it was published.

## Menger characterization theorem

Menger proved the following characterization theorem of semimetric spaces:[2]

A semimetric space ${\displaystyle (R,d)}$  is isometrically embeddable in the ${\displaystyle n}$ -dimensional Euclidean space ${\displaystyle \mathbb {R} ^{n}}$ , but not in ${\displaystyle \mathbb {R} ^{m}}$  for any ${\displaystyle 0\leq m , if and only if:

1. ${\displaystyle R}$  contains an ${\displaystyle (n+1)}$ -point subset ${\displaystyle S}$  that is isometric with an affinely independent ${\displaystyle (n+1)}$ -point subset of ${\displaystyle \mathbb {R} ^{n}}$ ;
2. any ${\displaystyle (n+3)}$ -point subset ${\displaystyle S'}$ , obtained by adding any two additional points of ${\displaystyle R}$  to ${\displaystyle S}$ , is congruent to an ${\displaystyle (n+3)}$ -point subset of ${\displaystyle \mathbb {R} ^{n}}$ .

A proof of this theorem in a slightly weakened form (for metric spaces instead of semimetric spaces) is in [13].

## Characterization via Cayley–Menger determinants

The following results are proved in Blumethal's book[12].

### Embedding ${\displaystyle n+1}$  points in ${\displaystyle \mathbb {R} ^{n}}$

Given a semimetric space ${\displaystyle (S,d)}$  , with ${\displaystyle S=\{P_{0},\cdots ,P_{n}\}}$ , and ${\displaystyle d(P_{i},P_{j})=d_{ij}\geq 0}$ , ${\displaystyle 0\leq i , an isometric embedding of ${\displaystyle (S,d)}$  into ${\displaystyle \mathbb {R} ^{n}}$  is defined by ${\textstyle A_{0},A_{1},\ldots ,A_{n}\in {\displaystyle \mathbb {R} ^{n}}}$ , such that ${\displaystyle d(A_{i},A_{j})=d_{ij}}$  for all ${\displaystyle 0\leq i .

Again, one asks whether such an isometric embedding exists for ${\displaystyle (S,d)}$ .

A necessary condition is easy to see: for all ${\displaystyle k=1,\cdots ,n}$ , let ${\displaystyle v_{k}}$  be the k-simplex formed by ${\textstyle A_{0},A_{1},\ldots ,A_{k}}$ , then

${\displaystyle (-1)^{k+1}CM(P_{0},\cdots ,P_{k})=(-1)^{k+1}CM(A_{0},\cdots ,A_{k})=2^{k}(k!)^{k}Vol_{k}(v_{k})^{2}\geq 0}$

The converse also holds. That is, if for all ${\displaystyle k=1,\cdots ,n}$ ,

${\displaystyle (-1)^{k+1}CM(P_{0},\cdots ,P_{k})\geq 0}$ ,

then such an embedding exists.

Further, such embedding is unique up to isometry in ${\displaystyle \mathbb {R} ^{n}}$ . That is, given any two isometric embeddings defined by ${\textstyle A_{0},A_{1},\ldots ,A_{n}}$ , and ${\textstyle A'_{0},A'_{1},\ldots ,A'_{n}}$ , there exists a (not necessarily unique) isometry ${\displaystyle T:\mathbb {R} ^{n}\to \mathbb {R} ^{n}}$ , such that ${\displaystyle T(A_{k})=A'_{k}}$  for all ${\displaystyle k=0,\cdots ,n}$ . Such ${\displaystyle T}$  is unique if and only if ${\displaystyle CM(P_{0},\cdots ,P_{n})\neq 0}$ , that is, ${\textstyle A_{0},A_{1},\ldots ,A_{n}}$  are affinely independent.

### Embedding ${\displaystyle n+2}$  and ${\displaystyle n+3}$  points

If ${\displaystyle n+2}$  points ${\displaystyle P_{0},\cdots ,P_{n+1}}$  can be embedded in ${\displaystyle \mathbb {R} ^{n}}$  as ${\displaystyle A_{0},\cdots ,A_{n+1}}$ , then other than the conditions above, an additional necessary condition is that the ${\displaystyle (n+1)}$ -simplex formed by ${\textstyle A_{0},A_{1},\ldots ,A_{n+1}}$ , must have no ${\displaystyle (n+1)}$ -dimensional volume. That is, ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+1})=0}$ .

The converse also holds. That is, if for all ${\displaystyle k=1,\cdots ,n}$ ,

${\displaystyle (-1)^{k+1}CM(P_{0},\cdots ,P_{k})\geq 0}$ ,

and

${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+1})=0}$ ,

then such an embedding exists.

For embedding ${\displaystyle n+3}$  points in ${\displaystyle \mathbb {R} ^{n}}$ , the necessary and sufficient conditions are similar:

1. For all ${\displaystyle k=1,\cdots ,n}$ , ${\displaystyle (-1)^{k+1}CM(P_{0},\cdots ,P_{k})\geq 0}$ ;
2. ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+1})=0}$ ;
3. ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+2})=0}$ ;
4. ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+1},P_{n+2})=0}$ .

### Embedding arbitrarily many points

The ${\displaystyle n+3}$  case turns out to be sufficient in general.

In general, given a semimetric space ${\displaystyle (R,d)}$ , it can be isometrically embedded in ${\displaystyle \mathbb {R} ^{n}}$  if and only if there exists ${\displaystyle P_{0},\cdots ,P_{n}\in R}$ , such that, for all ${\displaystyle k=1,\cdots ,n}$ , ${\displaystyle (-1)^{k+1}CM(P_{0},\cdots ,P_{k})\geq 0}$ , and for any ${\displaystyle P_{n+1},P_{n+2}\in R}$ ,

1. ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+1})=0}$ ;
2. ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+2})=0}$ ;
3. ${\displaystyle CM(P_{0},\cdots ,P_{n},P_{n+1},P_{n+2})=0}$ .

And such embedding is unique up to isometry in ${\displaystyle \mathbb {R} ^{n}}$ .

Further, if ${\displaystyle CM(P_{0},\cdots ,P_{n})\neq 0}$ , then it cannot be isometrically embedded in any ${\displaystyle \mathbb {R} ^{m},m . And such embedding is unique up to unique isometry in ${\displaystyle \mathbb {R} ^{n}}$ .

Thus, Cayley–Menger determinants give a concrete way to calculate whether a semimetric space can be embedded in ${\displaystyle \mathbb {R} ^{n}}$ , for some finite ${\displaystyle n}$ , and if so, what is the minimal ${\displaystyle n}$ .

## Applications

There are many applications of distance geometry.[3]

In telecommunication networks such as GPS, the positions of some sensors are known (which are called anchors) and some of the distances between sensors are also known: the problem is to identify the positions for all sensors.[5] Hyperbolic navigation is one pre-GPS technology that uses distance geometry for locating ships based on the time it takes for signals to reach anchors.

There are many applications in chemistry.[4][12] Techniques such as NMR can measure distances between pairs of atoms of a given molecule, and the problem is to infer the 3-dimensional shape of the molecule from those distances.

Some software packages for applications are:

## References

1. ^ Yemini, Y. (1978). "The positioning problem — a draft of an intermediate summary". Conference on Distributed Sensor Networks, Pittsburgh.
2. ^ a b Liberti, Leo; Lavor, Carlile; MacUlan, Nelson; Mucherino, Antonio (2014). "Euclidean Distance Geometry and Applications". SIAM Review. 56: 3–69. arXiv:1205.0349. doi:10.1137/120875909.
3. ^ a b Mucherino, A.; Lavor, C.; Liberti, L.; Maculan, N. (2013). Distance Geometry: Theory, Methods and Applications.
4. ^ a b c Crippen, G.M.; Havel, T.F. (1988). Distance Geometry and Molecular Conformation. John Wiley & Sons.
5. ^ a b Biswas, P.; Lian, T.; Wang, T.; Ye, Y. (2006). "Semidefinite programming based algorithms for sensor network localization". ACM Transactions on Sensor Networks. 2 (2): 188–220. doi:10.1145/1149283.1149286.
6. ^ "Simplex Volumes and the Cayley-Menger Determinant". www.mathpages.com. Archived from the original on 16 May 2019. Retrieved 2019-06-08.
7. ^ Liberti, Leo; Lavor, Carlile (2016). "Six mathematical gems from the history of distance geometry". International Transactions in Operational Research. 23 (5): 897–920. arXiv:1502.02816. doi:10.1111/itor.12170. ISSN 1475-3995.
8. ^ Cayley, Arthur (1841). "On a theorem in the geometry of position". Cambridge Mathematical Journal. 2: 267–271.
9. ^ Menger, Karl (1928-12-01). "Untersuchungen über allgemeine Metrik". Mathematische Annalen (in German). 100 (1): 75–163. doi:10.1007/BF01448840. ISSN 1432-1807.
10. ^ Blumenthal, L. M.; Gillam, B. E. (1943). "Distribution of Points in n-Space". The American Mathematical Monthly. 50 (3): 181. doi:10.2307/2302400. JSTOR 2302400.
11. ^ Menger, Karl (1931). "New Foundation of Euclidean Geometry". American Journal of Mathematics. 53 (4): 721–745. doi:10.2307/2371222. ISSN 0002-9327. JSTOR 2371222.
12. ^ a b c Blumenthal, L.M. (1970). Theory and applications of distance geometry (2nd ed.). Bronx, New York: Chelsea Publishing Company. pp. 90–161. ISBN 978-0-8284-0242-2. LCCN 79113117.
13. ^ Bowers, John C.; Bowers, Philip L. (2017-12-13). "A Menger Redux: Embedding Metric Spaces Isometrically in Euclidean Space". The American Mathematical Monthly. 124 (7): 621. doi:10.4169/amer.math.monthly.124.7.621. S2CID 50040864.