A problem on distance matrices of subsets of the Hamming cube
By Ian Doust and Reinhard Wolf
Abstract
Let $D$ denote the distance matrix for an $n+1$ point metric space $(X,d)$. In the case that $X$ is an unweighted metric tree, the sum of the entries in $D^{-1}$ is always equal to $2/n$. Such trees can be considered as affinely independent subsets of the Hamming cube $H_n$, and it was conjectured that the value $2/n$ was minimal among all such subsets. In this paper we confirm this conjecture and give a geometric interpretation of our result which applies to any subset of $H_n$.
1. Introduction
There is a long study of the interaction between properties of finite metric spaces and properties of their distance matrices. The most classical questions in this area concern whether the metric space can be isometrically embedded in a Euclidean space, a problem solved by Schoenberg Reference 14, or else in some other standard normed space. Properties of the metric space are often reflected in linear algebraic properties of the distance matrix involving say the determinant or inverse of the matrix.
To fix some notation, let $(X,d)$ denote a finite metric space with elements $\{x_1,\dots ,x_m\}$ (with $m \ge 2$) and let $D = D_X$ denote its distance matrix $(d(x_i,x_j))_{i,j=1}^m$. Let $\mathbf{1}$ denote the vector $(1,\dots ,1)^T \in \mathbb{R}^m$ so that for any $m \times m$ matrix $A$,$\langle A \mathbf{1}, \mathbf{1} \rangle$ gives the sum of the entries in $A$.
One particular class of spaces for which this relationship has been much studied are those which are (isometric to) subsets of Hamming cubes $H_n = \{0,1\}^n$ with the Hamming metric $d_1$ (which is the $\ell ^1$ metric on $\mathbb{R}^n$, restricted to these spaces). (See, for example, Reference 2Reference 3Reference 4Reference 5Reference 6.) This class includes, for example, all unweighted metric trees. Much of Reference 2 concerns extending Graham and Pollak’s Reference 4 formula, $\det (D) = (-1)^n n 2^{n-1}$, for the distance matrix of an $n+1$ point unweighted metric tree.
If $X$ is an $n+1$ point unweighted metric tree in $H_n$, then $D$ is invertible. In Reference 2 it was shown that the subsets of $H_n$ for which the distance matrix $D$ is invertible are precisely the ones for which the points form an affinely independent subset of $\mathbb{R}^n$. They showed that for an $n+1$ point unweighted metric tree the sum of the entries in $D^{-1}$, that is $\langle D^{-1} \mathbf{1}, \mathbf{1} \rangle$, is always equal to $2/n$ and conjectured, based on empirical evidence, that this value was minimal among all affinely independent subsets of $H_n$. The aim of this note is to prove this conjecture and to provide geometric interpretations for the value of this quantity.
A consequence of Theorem 5.1 will be the following two results.
Vital to the proof of Equation 1 are the facts that the Hamming cube is of $1$-negative type, and that the natural embedding of $H_n$ into $\mathbb{R}^n$ is a so-called S-embedding. The definitions of these concepts are given in Section 2. Equation Equation 1 is essentially a special case of a formula involving the $M$-constant$M(X)$ of the space $(X,d)$. The link between the $M$-constant and the radius of a particular sphere containing $X$ is due to Nickolas and Wolf Reference 11, Section 3 (following earlier work of Alexander and Stolarsky Reference 1), and it is this which provides the geometric meaning for many of the quantities considered. Working with $M(X)$ is advantageous as it is defined even when the matrix $D$ is not invertible, and this will allow us to consider arbitrary subsets of $H_n$. The relationship between $M(X)$ and $\langle D^{-1} \mathbf{1}, \mathbf{1} \rangle$ is developed in Section 3, and this provides sufficient information to prove the conjecture in Reference 2. In the final sections we use the properties of S-embeddings to prove Theorem 1.1 and to give a geometric interpretation of the value of $\langle D^{-1} \mathbf{1}, \mathbf{1} \rangle$.
To simplify the statements of the results, we shall assume throughout that all metric spaces considered have at least two elements. (Without this restriction the statements are usually either false or meaningless.)
2. Negative type and $S$-embeddings
In certain settings, spaces of $1$-negative type are also called quasihypermetric spaces (see for example Reference 12) or spaces of generalized roundness $1$ (see Reference 7).
A space is of strict $p$-negative type if Equation 2 holds, with equality only in the trivial case where each $\xi _i$ is zero. (It is worth noting that a distinct but related concept, that of a strictly quasihypermetric space, appears in Reference 10. For finite spaces, such as the ones considered in this paper, a space is of strict $1$-negative type if and only if it is strictly quasihypermetric.) It follows from the results of Wolf Reference 16 and Sánchez Reference 13 that a finite metric space of $1$-negative type is of strict $1$-negative type if and only if $D$ is non-singular and $\langle D^{-1}\mathbf{1}, \mathbf{1} \rangle \ne 0$.
By Reference 15, Theorem 4.10 any subset of $\mathbb{R}^n$ with the $\ell ^1$ metric, and hence any subset of $H_n$, has $1$-negative type. Combining the results of Muragan Reference 8, and Doust, Robertson, Stoneham and Weston Reference 2 (see also Nickolas and Wolf Reference 12) gives the following equivalences.
Clearly then, $H_n$ is of $1$-negative type, but not of strict $1$-negative type.
A celebrated theorem of Schoenberg Reference 14 says that a metric space $(X,d)$ can be isometrically embedded in a Euclidean space if and only if it is of $2$-negative type. This gives the following.
An embedding $\iota : X \to \mathbb{R}^n$ which maps $(X,d^{1/2})$ isometrically into $(\mathbb{R}^n,\Vert \cdot \Vert _2)$ is called an S-embedding. It is easy to check that the natural inclusion of $H_n$ in $\mathbb{R}^n$ is such an embedding, and hence so is the restriction to any subset of $H_n$.
3. The $M$-constant and maximal measures
The quantity $\langle D^{-1} \mathbf{1}, \mathbf{1} \rangle$ is closely related to the $M$-constant of the metric space, which we shall now introduce. Working with the $M$-constant is in fact usually preferable since it is defined even when the distance matrix $D$ is not invertible. For further background on the $M$-constant we refer the reader to Reference 1 or Reference 9.
Let $(X,d)$ be a compact metric space. For a signed Borel measure $\mu$ on $X$, let
If $I(\mu ) = M(X)$, then we say that $\mu$ is a maximal measure. It is clear that if $X$ is a metric subspace of $Y$ then $M(X) \le M(Y)$.
Suppose now that $X = \{x_1,\dots ,x_m\}$ is a finite metric space. In this case we shall write $\mu = (\alpha _1,\dots ,\alpha _m)$ to denote that $\mu (\{x_i\}) = \alpha _i$,$i=1,\dots ,m$. Then
although in most cases we shall retain the integral notation. We shall identify the measures of total mass one with the hyperplane of vectors whose elements sum to $1$. That is, $F_1 = \{v \in \mathbb{R}^m \; : \;\langle v, \mathbf{1} \rangle = 1\}$, and so $M(X) = \sup _{\mu \in F_1} \langle D \mu , \mu \rangle$. By considering $\mu = \frac{1}{m}\mathbf{1}$, we have $M(X) \ge \frac{1}{m^2} \langle D\mathbf{1}, \mathbf{1} \rangle \ge \frac{m-1}{m} d_0$, where $d_0$ is the smallest non-zero distance in $X$. In particular $M(X)$ is always strictly positive.
It is less clear that for a general compact metric space $M(X)$ should always be finite, and indeed this need not be the case (see Reference 9, Theorem 3.1). Even if $M(X)$ is finite it may be that there are no maximal measures. Fortunately for subsets of the Hamming cube, these complications do not arise. Nickolas and Wolf Reference 12, Theorem 4.7 showed that if $X$ is any $m$-point subset of $\mathbb{R}^n$ with the $\ell ^1$ metric then $M(X) \le \frac{m}{4} \operatorname {diam}(X)$.
We recall some important properties of these quantities.
Theorem 3.1 is closely related to the following result.
Combining the above results gives a positive answer to the conjecture in Reference 2.
The remainder of the paper is devoted to investigating the geometric interpretation of $M(X)$ in the context of subsets of the Hamming cube.
4. S-embeddings and spheres
There is a close connection between S-embeddings onto spheres and maximal measures. We begin with two lemmas.
The content of the following result can be found in Theorem 3.2 of Reference 11. We include a short proof for completeness.
Suppose that $B = \{v_1,\dots ,v_k\}$ is a basis for a subspace $Z \subseteq \mathbb{R}^n$. Then there is a unique point $c \in Z$ which is equidistant from all the elements of $B$ and the origin. Indeed a small calculation shows that if $A$ is the $n \times k$ matrix whose $i$th column is $v_i$, then
5. The $M$-constant for subsets of the Hamming cube
Suppose that $X = \{x_1,\dots ,x_m\} \subseteq H_n$. Let $Z_X$ denote the smallest affine subspace of $\mathbb{R}^n$ containing the points $\{x_1,\dots ,x_m\}$. We shall use $d_2(x,Z_X)$ to denote the Euclidean distance from a point $x \in \mathbb{R}^n$ to an affine subspace $Z_X$. Let $h = \bigl (\frac{1}{2},\dots ,\frac{1}{2}\bigr ) \in \mathbb{R}^n$.
Equation Equation 4 immediately gives the following characterization of when the maximum value of $M(X)$ is achieved.
Combining Theorem 5.1 and Theorem 3.5 gives Theorem 1.1 stated in Section 1.
Following the proof of Reference 11, Theorem 3.2, an alternative but less geometrically illuminating verification of Theorem 5.1 can be given by noting that for $\mu = (\alpha _1,\dots ,\alpha _m) \in F_1$, and $\{x_i\}_{i=1}^m \subseteq H_n$,
One consequence of Theorem 5.1 is that the value of $M(X)$ for $X \subseteq H_n$ is determined by the $M$-constant of any maximal affinely independent subset $Y$ of $X$. (Since, by Theorem 2.2, a maximal affinely independent subset of $X$ is also a maximal subset of strict $1$-negative type, this can also be deduced from Theorem 2.7 of Reference 12.) Such a set $Y$ may be much smaller than $X$, and furthermore the value of $M(Y)$ may be calculated algorithmically rather than by an optimization process. Finding a suitable affinely independent subset can be easily done using Gaussian elimination. The distance matrix for $Y$ is then invertible, and Theorem 3.5 implies that $M(X) = M(Y) = (\langle D_Y^{-1}\mathbf{1}, \mathbf{1} \rangle )^{-1}$.
Alternatively, if $Y = \{y_0,\dots ,y_m\}$ and $v_i = y_i - y_0$,$i=1,\dots , m$, then one may use Equation 3 to compute the centre $c$ of the sphere in $\operatorname {span}(v_1,\dots ,v_m)$ containing the points $\mathbf{0},v_1,\dots ,v_m$. Then $M(X) = M(Y) = 2 \Vert c \Vert _2^2$. In the case that $X$ is affinely independent, one may therefore use Theorem 1.1, the proof of Theorem 5.1, and Pythagoras to see that $\langle D^{-1}\mathbf{1}, \mathbf{1} \rangle$ is equal to $(2r^2)^{-1}$ where $r$ is the radius of the smallest sphere containing all the points in $X$.
We finish with two small examples which illustrate Remark 1.3 concerning the lack of an obvious relationship between the distance matrix $D$ and the subspace $Z_X$ which appear on the two sides of Equation Equation 1.
Ralph Alexander and Kenneth B. Stolarsky, Extremal problems of distance geometry related to energy integrals, Trans. Amer. Math. Soc. 193 (1974), 1–31, DOI 10.2307/1996898. MR350629, Show rawAMSref\bib{AS}{article}{
author={Alexander, Ralph},
author={Stolarsky, Kenneth B.},
title={Extremal problems of distance geometry related to energy integrals},
journal={Trans. Amer. Math. Soc.},
volume={193},
date={1974},
pages={1--31},
issn={0002-9947},
review={\MR {350629}},
doi={10.2307/1996898},
}
Reference [2]
Ian Doust, Gavin Robertson, Alan Stoneham, and Anthony Weston, Distance matrices of subsets of the Hamming cube, Indag. Math. (N.S.) 32 (2021), no. 3, 646–657, DOI 10.1016/j.indag.2021.01.004. MR4246131, Show rawAMSref\bib{DRSW}{article}{
author={Doust, Ian},
author={Robertson, Gavin},
author={Stoneham, Alan},
author={Weston, Anthony},
title={Distance matrices of subsets of the Hamming cube},
journal={Indag. Math. (N.S.)},
volume={32},
date={2021},
number={3},
pages={646--657},
issn={0019-3577},
review={\MR {4246131}},
doi={10.1016/j.indag.2021.01.004},
}
Reference [3]
R. L. Graham and L. Lovász, Distance matrix polynomials of trees, Adv. in Math. 29 (1978), no. 1, 60–88, DOI 10.1016/0001-8708(78)90005-1. MR480119, Show rawAMSref\bib{GL}{article}{
author={Graham, R. L.},
author={Lov\'{a}sz, L.},
title={Distance matrix polynomials of trees},
journal={Adv. in Math.},
volume={29},
date={1978},
number={1},
pages={60--88},
issn={0001-8708},
review={\MR {480119}},
doi={10.1016/0001-8708(78)90005-1},
}
Reference [4]
R. L. Graham and H. O. Pollak, On the addressing problem for loop switching, Bell System Tech. J. 50 (1971), 2495–2519, DOI 10.1002/j.1538-7305.1971.tb02618.x. MR289210, Show rawAMSref\bib{GP}{article}{
author={Graham, R. L.},
author={Pollak, H. O.},
title={On the addressing problem for loop switching},
journal={Bell System Tech. J.},
volume={50},
date={1971},
pages={2495--2519},
issn={0005-8580},
review={\MR {289210}},
doi={10.1002/j.1538-7305.1971.tb02618.x},
}
Reference [5]
R. L. Graham and P. M. Winkler, On isometric embeddings of graphs, Trans. Amer. Math. Soc. 288 (1985), no. 2, 527–536, DOI 10.2307/1999951. MR776391, Show rawAMSref\bib{GW1}{article}{
author={Graham, R. L.},
author={Winkler, P. M.},
title={On isometric embeddings of graphs},
journal={Trans. Amer. Math. Soc.},
volume={288},
date={1985},
number={2},
pages={527--536},
issn={0002-9947},
review={\MR {776391}},
doi={10.2307/1999951},
}
Reference [6]
R. L. Graham and P. M. Winkler, Corrigendum to: “On isometric embeddings of graphs” [Trans. Amer. Math. Soc. 288 (1985), no. 2, 527–536; MR0776391 (86f:05055b)], Trans. Amer. Math. Soc. 294 (1986), no. 1, 379, DOI 10.2307/2000138. MR819955, Show rawAMSref\bib{GW2}{article}{
author={Graham, R. L.},
author={Winkler, P. M.},
title={Corrigendum to: ``On isometric embeddings of graphs'' [Trans. Amer. Math. Soc. \textbf {288} (1985), no. 2, 527--536; MR0776391 (86f:05055b)]},
journal={Trans. Amer. Math. Soc.},
volume={294},
date={1986},
number={1},
pages={379},
issn={0002-9947},
review={\MR {819955}},
doi={10.2307/2000138},
}
Reference [7]
C. J. Lennard, A. M. Tonge, and A. Weston, Generalized roundness and negative type, Michigan Math. J. 44 (1997), no. 1, 37–45, DOI 10.1307/mmj/1029005619. MR1439667, Show rawAMSref\bib{LTW}{article}{
author={Lennard, C. J.},
author={Tonge, A. M.},
author={Weston, A.},
title={Generalized roundness and negative type},
journal={Michigan Math. J.},
volume={44},
date={1997},
number={1},
pages={37--45},
issn={0026-2285},
review={\MR {1439667}},
doi={10.1307/mmj/1029005619},
}
Reference [8]
Mathav Kishore Murugan, Supremal $p$-negative type of vertex transitive graphs, J. Math. Anal. Appl. 391 (2012), no. 2, 376–381, DOI 10.1016/j.jmaa.2012.02.042. MR2903138, Show rawAMSref\bib{Mu}{article}{
author={Murugan, Mathav Kishore},
title={Supremal $p$-negative type of vertex transitive graphs},
journal={J. Math. Anal. Appl.},
volume={391},
date={2012},
number={2},
pages={376--381},
issn={0022-247X},
review={\MR {2903138}},
doi={10.1016/j.jmaa.2012.02.042},
}
Reference [9]
Peter Nickolas and Reinhard Wolf, Distance geometry in quasihypermetric spaces. I, Bull. Aust. Math. Soc. 80 (2009), no. 1, 1–25, DOI 10.1017/S0004972708000932. MR2520521, Show rawAMSref\bib{NWQM1}{article}{
author={Nickolas, Peter},
author={Wolf, Reinhard},
title={Distance geometry in quasihypermetric spaces. I},
journal={Bull. Aust. Math. Soc.},
volume={80},
date={2009},
number={1},
pages={1--25},
issn={0004-9727},
review={\MR {2520521}},
doi={10.1017/S0004972708000932},
}
Reference [10]
Peter Nickolas and Reinhard Wolf, Distance geometry in quasihypermetric spaces. II, Math. Nachr. 284 (2011), no. 2-3, 332–341, DOI 10.1002/mana.200710206. MR2790892, Show rawAMSref\bib{NWQM2}{article}{
author={Nickolas, Peter},
author={Wolf, Reinhard},
title={Distance geometry in quasihypermetric spaces. II},
journal={Math. Nachr.},
volume={284},
date={2011},
number={2-3},
pages={332--341},
issn={0025-584X},
review={\MR {2790892}},
doi={10.1002/mana.200710206},
}
Reference [11]
Peter Nickolas and Reinhard Wolf, Distance geometry in quasihypermetric spaces. III, Math. Nachr. 284 (2011), no. 5-6, 747–760, DOI 10.1002/mana.200810216. MR2663766, Show rawAMSref\bib{NWQM3}{article}{
author={Nickolas, Peter},
author={Wolf, Reinhard},
title={Distance geometry in quasihypermetric spaces. III},
journal={Math. Nachr.},
volume={284},
date={2011},
number={5-6},
pages={747--760},
issn={0025-584X},
review={\MR {2663766}},
doi={10.1002/mana.200810216},
}
Reference [12]
P. Nickolas and R. Wolf, Finite quasihypermetric spaces, Acta Math. Hungar. 124 (2009), no. 3, 243–262, DOI 10.1007/s10474-009-8182-2. MR2525563, Show rawAMSref\bib{NWF}{article}{
author={Nickolas, P.},
author={Wolf, R.},
title={Finite quasihypermetric spaces},
journal={Acta Math. Hungar.},
volume={124},
date={2009},
number={3},
pages={243--262},
issn={0236-5294},
review={\MR {2525563}},
doi={10.1007/s10474-009-8182-2},
}
Reference [13]
Stephen Sánchez, On the supremal $p$-negative type of finite metric spaces, J. Math. Anal. Appl. 389 (2012), no. 1, 98–107, DOI 10.1016/j.jmaa.2011.11.043. MR2876484, Show rawAMSref\bib{Sa}{article}{
author={S\'{a}nchez, Stephen},
title={On the supremal $p$-negative type of finite metric spaces},
journal={J. Math. Anal. Appl.},
volume={389},
date={2012},
number={1},
pages={98--107},
issn={0022-247X},
review={\MR {2876484}},
doi={10.1016/j.jmaa.2011.11.043},
}
Reference [14]
I. J. Schoenberg, Metric spaces and positive definite functions, Trans. Amer. Math. Soc. 44 (1938), no. 3, 522–536, DOI 10.2307/1989894. MR1501980, Show rawAMSref\bib{Sch}{article}{
author={Schoenberg, I. J.},
title={Metric spaces and positive definite functions},
journal={Trans. Amer. Math. Soc.},
volume={44},
date={1938},
number={3},
pages={522--536},
issn={0002-9947},
review={\MR {1501980}},
doi={10.2307/1989894},
}
Reference [15]
J. H. Wells and L. R. Williams, Embeddings and extensions in analysis, Ergebnisse der Mathematik und ihrer Grenzgebiete, Band 84, Springer-Verlag, New York-Heidelberg, 1975. MR0461107, Show rawAMSref\bib{WW}{book}{
author={Wells, J. H.},
author={Williams, L. R.},
title={Embeddings and extensions in analysis},
series={Ergebnisse der Mathematik und ihrer Grenzgebiete, Band 84},
publisher={Springer-Verlag, New York-Heidelberg},
date={1975},
pages={vii+108},
review={\MR {0461107}},
}
Reference [16]
Reinhard Wolf, On the gap of finite metric spaces of $p$-negative type, Linear Algebra Appl. 436 (2012), no. 5, 1246–1257, DOI 10.1016/j.laa.2011.08.031. MR2890917, Show rawAMSref\bib{WGap}{article}{
author={Wolf, Reinhard},
title={On the gap of finite metric spaces of $p$-negative type},
journal={Linear Algebra Appl.},
volume={436},
date={2012},
number={5},
pages={1246--1257},
issn={0024-3795},
review={\MR {2890917}},
doi={10.1016/j.laa.2011.08.031},
}
Reference [17]
Reinhard Wolf, Estimating the gap of finite metric spaces of strict $p$-negative type, Linear Algebra Appl. 556 (2018), 171–199, DOI 10.1016/j.laa.2018.07.005. MR3842579, Show rawAMSref\bib{WEst}{article}{
author={Wolf, Reinhard},
title={Estimating the gap of finite metric spaces of strict $p$-negative type},
journal={Linear Algebra Appl.},
volume={556},
date={2018},
pages={171--199},
issn={0024-3795},
review={\MR {3842579}},
doi={10.1016/j.laa.2018.07.005},
}
Show rawAMSref\bib{4405507}{article}{
author={Doust, Ian},
author={Wolf, Reinhard},
title={A problem on distance matrices of subsets of the Hamming cube},
journal={Proc. Amer. Math. Soc. Ser. B},
volume={9},
number={13},
date={2022},
pages={125-134},
issn={2330-1511},
review={4405507},
doi={10.1090/bproc/122},
}
Settings
Change font size
Resize article panel
Enable equation enrichment
(Not available in this browser)
Note. To explore an equation, focus it (e.g., by clicking on it) and use the arrow keys to navigate its structure. Screenreader users should be advised that enabling speech synthesis will lead to duplicate aural rendering.