Realizing prespecified minimum and maximum distances in metric spaces

Žarko Randelović1
1Mathematical Institute of the Serbian Academy of Sciences and Arts, Kneza Mihaila 36, Belgrade 11000, Serbia

Abstract

Given functions \(f,g: [n] \rightarrow [n]\), do there exist \(n\) points \(A_1,A_2,\ldots,A_n\) in some metric space such that \(A_{f(i)},A_{g(i)}\) are the points closest and farthest from point \(A_i\)? In this paper we characterize precisely which pairs of functions have this property. Define \(m(k)\) to be the maximum integer such that any pair of functions \(f,g:[m(k)]\rightarrow [m(k)]\) realizable in some metric space is also realizable in \(\mathbb{R}^k\). We show that \(m(k)\) grows exponentially in \(k\). This answers a question of Croft. We also discuss what happens when looking at minimum and maximum distances separately.

Keywords: metric space, minimum distance, maximum distance hypersphere

1. Introduction

Many problems in metric geometry and combinatorics investigate how much information about a configuration of points is determined solely by the relative order of distances, rather than their exact numerical values. Such questions arise naturally in areas such as distance geometry; see, for example, [4].

Combinatorial questions involving distances and their induced structures have been studied extensively in discrete and combinatorial geometry; see, e.g., [5]. In particular, one may ask which patterns of nearest and farthest neighbors can arise from metric configurations.

In this paper, we study a discrete model for such distance comparisons. Let \(n \ge 3\) be a positive integer and let \(f,g : [n] \to [n]\) be two functions without fixed points, where as usual \([n]\) denotes the set \(\{1,2,\ldots,n\}\). We interpret \(f(i)\) and \(g(i)\) as prescribing the nearest and farthest neighbor of a point \(A_i\), respectively. Nearest neighbor relations themselves give rise to well-studied graph structures; see, for example, [6].

We will call a pair of such functions \((f,g)\) realizable in \((X,d)\) (where \((X,d)\) is a metric space) if there are \(n\) points \(A_1,\ldots,A_n \in X\) such that:

  • \(d(A_i,A_j)\) are all distinct for different pairs \(\{i,j\}\) with \(i \ne j\),
  • for each \(i\), we have \(d(A_i,A_{f(i)}) < d(A_i,A_j)\) for all \(j \ne i,f(i)\),
  • for each \(i\), we have \(d(A_i,A_{g(i)}) > d(A_i,A_j)\) for all \(j \ne i,g(i)\).

We say that \((f,g)\) is realizable if it is realizable in some metric space \((X,d)\). For example if \(n = 5\) the pair of functions \((f,g)\) defined by \(f(i)=5\) for \(i \in [4]\), \(f(5)=1\), \(g(1)=g(5)=2\), \(g(2)=g(3)=1\) and \(g(4)=3\) is realizable in \(\mathbb{R}^2\) as shown in the figure below.

Figure 1. An example of a configuration realizing \((f,g)\) in \(\mathbb{R}^2\)

This formulation of realizable pairs naturally leads to the problem of characterizing which combinatorial patterns of nearest and farthest neighbors can arise from metric spaces. Clearly, for any realizable pair \((f,g)\), we must have \(f(i) \ne g(i)\) for each \(i\). For convenience, we may view \(f\) and \(g\) as directed graphs on the vertex set \([n]\). With this in mind, for any function \(f : [n] \to [n]\), we define \(G_f\) to be the directed graph on vertex set \([n]\) where there is an edge from \(i\) to \(j\) (denoted \(i \to j\) or \(ij\)) if and only if \(f(i)=j\).

We now recall some standard terminology for directed graphs. In a directed graph define the out-degree of vertex \(v\) to be the number of vertices \(w\) such that there is an edge \(v \to w\). Similarly, define the in-degree of a vertex \(v\) to be the number of vertices \(w\) such that \(w \to v\) is an edge. We also define a source in a directed graph to be a vertex of in-degree zero. The first result of this paper will describe precisely which pairs \((f,g)\) are realizable.

Theorem 1.1. Suppose that \(n \ge 3\) is an integer and let \(f,g : [n] \to [n]\) be two functions without fixed points such that for all \(1 \le i \le n\), we have \(f(i) \ne g(i)\). Then the pair \((f,g)\) is realizable if and only if all of the following conditions hold:

  • \(G_f\) and \(G_g\) do not have any cycles that are not of length two.
  • \(f \circ g\) has at most one fixed point.
  • If \(f(g(i))=i\), then \(i\) is a source in \(G_g\) and \(g(i)\) is a source in \(G_f\).

Although this result appears to be folklore, we were unable to find a precise reference in the literature.

A natural next question is how the geometry of the ambient space restricts realizability. In particular, one may ask in which Euclidean dimension a given realizable pair can be embedded. This places our problem in the broader context of embedding finite metric structures into low-dimensional Euclidean spaces.

Given a positive integer \(n\), what is the minimum \(k\) such that any realizable pair \((f,g)\) with \(|\operatorname{dom} f|=n\) is realizable in \(\mathbb{R}^k\)? This question was posed by Croft [2].

Observe that in our setting the only relevant information about the distances is their ordering. Let \((f,g)\) be a realizable pair with \(n = |\operatorname{dom}(f)|\) and suppose that \((f,g)\) is realized in \((X,d)\) with points \(A_1,\ldots,A_n\). Then we may totally order the 2-element subsets of \([n]\) by declaring

\[ \{i,j\} < \{s,t\} \text{ if } d(A_i,A_j) < d(A_s,A_t). \]

Choosing real numbers \(a_{\{i,j\}}\) that respect this order and are sufficiently close to 1, one can construct points \(B_1,\ldots,B_n \in \mathbb{R}^{n-1}\) such that \(\|B_i-B_j\|=a_{\{i,j\}}\) for all \(i,j\). It follows that every realizable pair is realizable in \(\mathbb{R}^{n-1}\); geometrically, the points \(B_1,\ldots,B_n\) may be viewed as a perturbation of the vertices of a regular \((n-1)\)-simplex.

This raises the question of whether one can realize all such pairs in significantly lower dimension. For a positive integer \(k\), let \(m(k)\) denote the largest \(n\) such that every realizable pair \((f,g)\) with \(|\operatorname{dom} f|=n\) is realizable in \(\mathbb{R}^k\). The argument above shows that \(m(k) \ge k+1\). Our main result shows that \(m(k)\) in fact grows exponentially.

Theorem 1.2. There exist constants \(A,B > 0\) and \(c,C > 1\) such that for every positive integer \(k\),

\[ Ac^k < m(k) < BC^k. \]

In the final section, we also consider related questions in which nearest and farthest neighbor conditions are studied separately.

We now introduce some notation. Let \(K_n\) denote the complete graph on the vertex set \([n]\). If \(f : [n] \to [n]\) is a function without fixed points, let \(H_f\) be the undirected graph on the vertex set \([n]\) in which \(ij\) is an edge if and only if \(f(i)=j\) or \(f(j)=i\). Throughout the paper, we assume that \(\mathbb{R}^k\) is equipped with the Euclidean metric, and for points \(A,B \in \mathbb{R}^k\), we write \(\|A-B\|\) for their Euclidean distance. We use standard graph-theoretic notation; see Bollobás [1] for background.

2. Proof of Theorem 1.1

In order to prove Theorem 1.1, we will first prove a few lemmas that will give us that the three conditions are indeed necessary. Then, for any pair \((f,g)\) satisfying those conditions, we will give an example that will show that \((f,g)\) is realizable. The following lemma shows that the first condition in Theorem 1.1 is necessary.

Lemma 2.1. Suppose that \((f,g)\) is a realizable pair. Then \(G_f\) and \(G_g\) do not have any cycles that are not of length two.

Proof. Let \(n = |\operatorname{dom} f|\). Since \((f,g)\) is realizable, there is a metric space \((X,d)\) with \(n\) points \(A_1,\ldots A_n\) such that \(d(A_i,A_j)\) are all distinct for different pairs \(\{i,j\}\) with \(i \ne j\), and for any distinct \(1 \le i,j \le n\), we have that \(d(A_i,A_{f(i)}) \le d(A_i,A_j)\) and \(d(A_i,A_{g(i)}) \ge d(A_i,A_j)\). Suppose that \(G_f\) has a cycle \(i_1 \to i_2 \to i_3 \to \cdots \to i_k \to i_1\) where \(k \ge 3\). Take \(1 \le l \le k\) to be such that

\[ d(A_{i_l},A_{i_{l+1}}) = \min_{1 \le j \le k} d(A_{i_j},A_{i_{j+1}}), \]

where \(i_{k+1}=i_1\). Without loss of generality assume that \(l=1\). Then \(d(A_{i_1},A_{i_2}) < d(A_{i_2},A_{i_3})\). But since \(i_2 \to i_3\) is an edge in \(G_f\), we have that \(f(i_2)=i_3\). This gives a contradiction. We similarly prove that \(G_g\) does not have any cycles that are not of length two. This completes the proof. \(\square\)

In the next lemma we show that the remaining two conditions in Theorem 1.1 are also necessary.

Lemma 2.2. Suppose that \((f,g)\) is a realizable pair. Then we must have that \(f \circ g\) has at most one fixed point. Moreover, if \(i\) is that fixed point, then \(i\) is a source in \(G_g\) and \(g(i)\) is a source in \(G_f\).

Proof. Let \(n = |\operatorname{dom} f|\). Since \((f,g)\) is realizable, there is a metric space \((X,d)\) with \(n\) points \(A_1,\ldots,A_n\) such that \(d(A_i,A_j)\) are all distinct for different pairs \(i \ne j\), and for any distinct \(1 \le i,j \le n\), we have that

\[ d(A_i,A_{f(i)}) \le d(A_i,A_j) \text{ and } d(A_i,A_{g(i)}) \ge d(A_i,A_j). \tag{1} \]

First suppose that \(i\) is a fixed point of \(f \circ g\) and suppose that \(i\) is not a source of \(G_g\). That means that there is some \(j\) such that \(g(j)=i\). We first observe that \(j \ne g(i)\). Indeed, if \(j = g(i)\), then \(f(j)=g(j)=i\) which is impossible. But now from (1) we have that

\[ d(A_j,A_i) = d(A_j,A_{g(j)}) > d(A_j,A_{g(i)}) > d(A_{f(g(i))},A_{g(i)}) = d(A_i,A_{g(i)}) > d(A_i,A_j), \]

which gives a contradiction. This means that \(i\) is a source in \(G_g\). Similarly, we can prove that \(g(i)\) is a source in \(G_f\).

It remains to show that \(f \circ g\) has at most one fixed point. We will also prove this by contradiction. Suppose that \(i,j\) are two distinct fixed points of \(f \circ g\). If \(j=g(i)\), then \(j\) is not a source of \(G_g\) which is impossible, hence \(j \ne g(i)\). Similarly, \(i \ne g(j)\). We also cannot have \(g(i)=g(j)\) since if we did then \(i=f(g(i))=f(g(j))=j\). Therefore, \(i,g(i),j,g(j)\) are all distinct. But then using (1) we have

\[ \begin{aligned} d(A_j,A_{g(i)}) &> d(A_{f(g(i))},A_{g(i)}) = d(A_i,A_{g(i)}) > d(A_i,A_{g(j)}) \\ &> d(A_{f(g(j))},A_{g(j)}) = d(A_j,A_{g(j)}) > d(A_j,A_{g(i)}) \end{aligned} \]

which is a contradiction. This completes the proof. \(\square\)

We now prove the following lemma that shows us a bit about the structure of \(G_f\).

Lemma 2.3. Suppose that \(f : [n] \to [n]\) is a function without fixed points such that \(G_f\) has no cycles of length more than two. Then there is some \(m \ge 0\) and a partition \([n]=F_0 \cup F_1 \cup \cdots \cup F_m\) where \(F_0\) contains precisely the points that are part of some 2-cycle in \(G_f\) and for every edge \(i \to j\) of \(G_f\), there is either some \(1 \le l \le m\) such that \(i \in F_l\), \(j \in F_{l-1}\) or \(i,j \in F_0\).

Proof. Let \(F_0 = \{i \mid f(f(i))=i\}\). Since \(f\) has no fixed points, we see that \(F_0\) is precisely the set of points that belong to a 2-cycle in \(G_f\). Define \(F_1 = \{i \mid i \notin F_0, f(i) \in F_0\}\). We now iteratively define \(F_k\) for integers \(k \ge 2\). Let

\[ F_k = \{i \mid f(i) \in F_{k-1}\}. \]

We first show that the \(F_k\) are disjoint. Trivially \(F_0,F_1\) are disjoint. If \(F_0,\ldots,F_{k-1}\) are disjoint for some \(k \ge 2\), then if \(i \in F_k\), we must have that \(f(i) \in F_{k-1}\). But then we cannot have that \(i \in F_l\) for some \(l < k\), because if \(l > 0\) then \(f(i) \in F_{l-1}\) and if \(l=0\) then \(f(i) \in F_0\). Thus, \(F_0,F_1,\ldots\) are disjoint sets by induction. Since \(F_k \subset [n]\) for any \(k\), there must be a largest \(m\) such that \(F_m \ne \emptyset\).

We will now show that

\[ \bigcup_{j=0}^{m} F_j = [n]. \tag{2} \]

Since for all \(j\), we have that \(F_j \subset [n]\), it follows that \(\bigcup_{j=0}^{m} F_j \subset [n]\).

Let \(i \in [n]\). We will show that \(i \in \bigcup_{j=0}^{m} F_j\). For any \(k \in \mathbb{Z}_{\ge 0}\), define \(f^{(k)}(i)=f(f(\ldots f(i)\ldots))\) where \(f\) is applied \(k\) times (\(f^{(0)}(i)=i\)). Now we consider the sequence \(i,f(i),f^{(2)}(i),\ldots\). Since all of these numbers are in \([n]\), eventually some number in this sequence must repeat.

Suppose that \(k\) is the largest integer such that \(i,f(i),f^{(2)}(i),\ldots,f^{(k-1)}(i)\) are all distinct. Then there is a unique \(j < k\) such that \(f^{(j)}(i)=f^{(k)}(i)\). Since \(f\) has no fixed points, we must have that \(j < k-1\). But now \(f^{(j)}(i) \to f^{(j+1)}(i) \to \cdots \to f^{(k-1)}(i) \to f^{(j)}(i)\) is a cycle in \(G_f\) and therefore has length two. This means that \(j = k-2\). If \(k=2\), then we have that \(f(f(i))=i\) so \(i \in F_0\) and we are done. If \(k > 2\), then since \(f(f(f^{(k-3)}(i))) \ne f^{(k-3)}(i)\), we have that \(f^{(k-3)}(i) \notin F_0\). But since \(f(f^{(k-3)}(i))=f^{(k-2)}(i) \in F_0\) we have that \(f^{(k-3)}(i) \in F_1\).

Now we can show that \(f^{(k-2-l)}(i) \in F_l\) by induction. We have just shown that it is true for \(l=1\). Suppose that it is true for some \(1 \le l \le k-3\). Since \(f^{(k-2-l)}(i) \in F_l\), by definition of \(F_{l+1}\) we have that \(f^{(k-2-(l+1))}(i) \in F_{l+1}\). Thus, by induction, \(f^{(k-2-l)}(i) \in F_l\) for any \(1 \le l \le k-2\). This means that \(i \in F_{k-2}\) and hence \(i \in \bigcup_{j=0}^{m} F_j\). This shows that \([n] \subset \bigcup_{j=0}^{m} F_j\) which then gives (2).

Notice that if \(i \in F_0\) then \(f(i) \in F_0\). But also, if \(i \in F_l\) for some \(l > 0\), then \(f(i) \in F_{l-1}\) so the partition satisfies the desired property which completes the proof. \(\square\)

For convenience, we say that a pair \((f,g)\) of functions from \([n]\) to \([n]\) is nice if all of the following conditions hold:

  • For any \(1 \le i \le n\), we have that \(i,f(i),g(i)\) are distinct.
  • \(G_f\) and \(G_g\) do not have any cycles that are not of length two.
  • \(f \circ g\) has at most one fixed point.
  • If \(f(g(i))=i\), then \(i\) is a source in \(G_g\) and \(g(i)\) is a source in \(G_f\).

For any pair \((f,g)\) of functions from the set \([n]\) to itself without fixed points, define \(T_{f,g}=H_f \cap H_g\) and define \(T_f,T_g\) to be the graphs with \(V(T_f)=V(T_g)=[n]\) and \(E(T_f)=E(H_f)\backslash E(T_{f,g})\), \(E(T_g)=E(H_g)\backslash E(T_{f,g})\).

Lemma 2.4. For any nice pair \((f,g)\), the graph \(T_{f,g}\) has at most one edge and if it does have an edge, then that edge is precisely \(ig(i)\), where \(i\) is the unique fixed point of \(f \circ g\).

Proof. Since \(G_f\) and \(G_g\) do not have any common edges, the only way \(H_f\) and \(H_g\) could have a common edge is that there are \(u,v \in [n]\) such that \(f(u)=v\) and \(g(v)=u\). We have that \(f \circ g(v)=v\). Since \((f,g)\) is a nice pair, \(v\) must be the unique fixed point of \(f \circ g\) and the common edge of \(H_f\) and \(H_g\) is \(vg(v)\). \(\square\)

Proof of Theorem 1.1. We can see that Lemmas 2.1 and 2.2 give that the three conditions in Theorem 1.1 must hold for any realizable pair \((f,g)\). Now suppose that \(f,g : [n] \to [n]\) are two functions without fixed points such that for all \(i\), we have \(f(i) \ne g(i)\) and the three conditions of Theorem 1.1 are all satisfied. In other words, \((f,g)\) is a nice pair. We will show that the pair \((f,g)\) is realizable.

We will label the edges of \(K_n\) in a way so that the order of the labels will correspond to the order of the distances in the required example.

Let \(F_0,F_1,\ldots,F_m\) be the partition of \([n]\) given by Lemma 2.3 for \(G_f\) where \(m \in \mathbb{Z}_{\ge 0}\). Similarly, let \(G_0,\ldots,G_k\) be the partition of \([n]\) given by Lemma 2.3 for \(G_g\) where \(k \in \mathbb{Z}_{\ge 0}\). For each edge \(e\) of \(T_f\), define the edge \(e\) to be type 0 if both endpoints of \(e\) are in \(F_0\) and type \(i\) if one endpoint is in \(F_i\) and the other is in \(F_{i-1}\). We will order the edges \(T_f\) in order \(e_1,\ldots,e_{e(T_f)}\) from lowest to highest type (edges of the same type can be ordered arbitrarily). Likewise, we can define types of edges of \(T_g\) and also order them in order \(f_1,\ldots,f_{e(T_g)}\) in a similar fashion.

We will now label the edges of \(K_n\) as mentioned above. To do this we will construct a bijective map \(c : E(K_n) \to \left[\binom{n}{2}\right]\) step by step. At any point we refer to edge \(e\) as labeled if \(c(e)\) has been defined up to that point and unlabeled otherwise. We first label the edges of \(T_f\) and \(T_g\). Define \(c(e_i)=i\) for each \(1 \le i \le e(T_f)\) and define \(c(f_i)=\binom{n}{2}-i+1\) for each \(1 \le i \le e(T_g)\).

If \(T_{f,g}\) has an edge, then by the proof of Lemma 2.4 there is a unique \(q\) such that \(f \circ g(q)=q\) and the only edge of \(T_{f,g}\) is \(qg(q)\). Notice that \(qg(q)\) is unlabeled. Now suppose that there are \(l\) so far unlabeled edges \(x_1,\ldots,x_l\) incident to \(q\) but not \(g(q)\) where \(l \in \mathbb{Z}_{\ge 0}\). Similarly, let \(y_1,\ldots,y_s\) be the so far unlabeled edges incident to \(g(q)\) but not \(q\), where \(s \in \mathbb{Z}_{\ge 0}\). Define \(c(x_j)=e(T_f)+j\) for all \(1 \le j \le l\) and define \(c(y_j)=\binom{n}{2}+1-e(T_g)-j\) for all \(1 \le j \le s\).

We now define \(c\) arbitrarily on the remaining unlabeled edges of \(K_n\). Consider now any \(j \in [n]\). We will now show that

\[ c(jf(j)) < c(jr) \text{ for any } r \ne j,f(j). \tag{3} \]

First suppose that \(j\) is not a fixed point of \(g \circ f\). This means that \(jf(j) \notin E(H_g)\) and hence \(jf(j) \in E(T_f)\). If \(j \in F_0\), then by definition of \(F_0\) in Lemma 2.3 and by definition of \(G_f\), we have that \(jf(j)\) is the only edge incident to \(j\) of type 0. By definition of \(c\) we have that (3) holds in this case. If \(j \in F_p\) for some \(p \ge 1\), then by definition of \(F_p\) from Lemma 2.3 the only edge incident to \(j\) of type at most \(p\) is \(jf(j)\). Thus, (3) holds in this case as well. Finally, if \(j\) is a fixed point of \(g \circ f\), then \(f(j)\) is the unique fixed point of \(f \circ g\) and the unique edge of \(T_{f,g}\) is \(jf(j)\). We also have that \(j\) is a source in \(G_f\) and hence no edge in \(T_f\) is incident to \(j\). By definition of \(c\) the edges incident to \(j\) that are not edges of \(T_f\) or \(T_g\) have been labeled with values larger than \(jf(j)\). Thus, (3) holds in this case and hence (3) always holds.

Similarly, we can show that for any \(j \in [n]\),

\[ c(jg(j)) > c(jr) \text{ for any } r \ne j,g(j). \tag{4} \]

Now we are ready to construct our metric space. Let \(1 < a_1 < a_2 < \ldots a_{\binom{n}{2}} < 2\) be arbitrary real numbers. Let \(X=[n]\) and for any \(i,j \in [n]\), define the distance

\[ d(i,j)=\begin{cases} a_{c(ij)}, & \text{if } i \ne j;\\ 0, & \text{if } i=j. \end{cases} \]

If \(i,j,r \in [n]\), then \(d(i,j)+d(j,r) \ge d(i,r)\) is clearly satisfied (if \(i=j\) or \(j=r\), we have equality and otherwise we have strict inequality). Thus, \((X,d)\) is indeed a metric space and the distances between all pairs of points are distinct. By (3) and (4), for each \(i \ne j\), we have that \(d(i,f(i)) \le d(i,j) \le d(i,g(i))\). We also have that all distances \(d(i,j)\) are distinct for different pairs \(\{i,j\}\) with \(i \ne j\). Thus, we have shown that the pair \((f,g)\) is realizable. \(\square\)

3. Proof of Theorem 1.2

To prove Theorem 1.2 we will first prove the upper bound for \(m(k)\) which is easier. To do this we will need an estimate of the volume of a cap on a unit \((k-1)\)-sphere. We then construct an example of a realizable pair, with the required number of points, that is not realizable in \(\mathbb{R}^k\). We then move on to the lower bound where for any realizable pair \((f,g)\) with sufficiently low \(|\operatorname{dom} f|\) (that is still exponential in \(k\)), we need to construct an example in \(\mathbb{R}^k\) that realizes the pair \((f,g)\). To do this we will use the unit \((k-1)\)-sphere in \(\mathbb{R}^k\) and we will have that all the points in our example lie on that sphere. For any \(k\), let \(S^k\) be the unit \(k\)-sphere defined as \(S^k = \{x \in \mathbb{R}^{k+1} \mid \|x\|=1\}\). All angles will be expressed in radians. The following will be a useful fact:

Proposition 3.1. Suppose that \(k,n \ge 3\) are positive integers and \(A_1,\ldots,A_n \in \mathbb{R}^k\). If \(\|A_i-A_3\| < \|A_i-A_j\|\) for any \(i=1,2\), \(j \ne i,3\), then \(\angle A_1A_3A_2 > \pi/3\).

Proof. We have that \(\|A_1-A_3\| < \|A_1-A_2\|\) and \(\|A_2-A_3\| < \|A_2-A_1\|\). Hence \(\|A_1-A_2\|\) is the longest side in \(\triangle A_1A_2A_3\). Therefore, it is opposite of the largest angle and hence \(\angle A_1A_3A_2 > \pi/3\). \(\square\)

Notice that if \(v_1,v_2\) are unit vectors in \(\mathbb{R}^k\), then the angle between them (that is less than \(\pi\)) is equal to \(\angle(v_1,v_2)=\arccos(v_1 \cdot v_2)\). Let \(v_1,v_2,v_3\) be three unit vectors in \(\mathbb{R}^k\). We can apply an orthogonal transformation, which is an angle-preserving map, to map them to three unit vectors in \(\mathbb{R}^3\). We then have that \(v_1,v_2,v_3 \in S^2\). The spherical distance between two vectors in \(S^2\) is equal to the angle between them. Hence, by the triangle inequality on the sphere, we have that

\[ \angle(v_1,v_2)+\angle(v_2,v_3) \ge \angle(v_1,v_3). \tag{5} \]

For any vector \(v \in S^{k-1}\) and angle \(0 < \phi < \pi\), define a hyperspherical cap with angle \(\phi\) to be the set of points

\[ C_{v,\phi}=\{w \mid w \in S^{k-1},\angle(w,v) \le \phi\}. \]

To proceed we will need the surface area of a hyperspherical cap. Let \(k \ge 2\) and suppose that we have the sphere \(S^k\) in \(\mathbb{R}^{k+1}\). Let \(\phi \in [0,\pi/2]\). Li [3] showed that the area of the hyperspherical cap with angle \(\phi\) is equal to

\[ A_{k,\phi}=\frac{2\pi^{(k-1)/2}}{\Gamma\left(\frac{k-1}{2}\right)}\int_0^{\phi}\sin^{k-2}\theta\,d\theta, \]

where \(\Gamma\) is the Gamma function. Thus, if \(0 < \phi_1 < \phi_2 \le \pi/2\) then

\[ \frac{A_{k,\phi_1}}{A_{k,\phi_2}} = \frac{\int_0^{\phi_1}\sin^{k-2}\theta\,d\theta}{\int_0^{\phi_2}\sin^{k-2}\theta\,d\theta}. \tag{6} \]

Let \(A_k\) denote the area of \(S^k\). We have that \(A_{k,\pi/2}=A_k/2\). We now prove the following lemma that will give us upper and lower exponential bounds on the ratio of areas of hyperspherical caps with fixed angles.

Lemma 3.2. Given \(0 < \phi_1 < \phi_2 \le \pi/2\) and any positive integer \(k \ge 3\), we have that

\[ \frac{\phi_1\sin^{k-2}\left(\frac{\phi_1}{2}\right)}{2\phi_2\sin^{k-2}(\phi_2)} < \frac{A_{k,\phi_1}}{A_{k,\phi_2}} < \frac{2\phi_1\sin^{k-2}(\phi_1)}{(\phi_2-\phi_1)\sin^{k-2}\left(\frac{\phi_1+\phi_2}{2}\right)}. \]

Proof. To get the lower bound we can see that for any \(0 < \phi \le \pi/2\),

\[ \int_0^{\phi}\sin^{k-2}\theta\,d\theta > \int_{\phi/2}^{\phi}\sin^{k-2}\theta\,d\theta > \frac{\phi}{2}\sin^{k-2}(\phi/2), \tag{7} \]

and we also have that

\[ \int_0^{\phi}\sin^{k-2}\theta\,d\theta < \phi\sin^{k-2}(\phi). \tag{8} \]

Now, from (6) and (7) for \(\phi_1\) and (8) for \(\phi_2\) we have that

\[ \frac{\phi_1\sin^{k-2}\left(\frac{\phi_1}{2}\right)}{2\phi_2\sin^{k-2}(\phi_2)} < \frac{A_{k,\phi_1}}{A_{k,\phi_2}}. \]

To get the upper bound we can also see that

\[ \int_0^{\phi_2}\sin^{k-2}\theta\,d\theta > \int_{\frac{\phi_1+\phi_2}{2}}^{\phi_2}\sin^{k-2}\theta\,d\theta > \left(\frac{\phi_2-\phi_1}{2}\right)\sin^{k-2}\left(\frac{\phi_2+\phi_1}{2}\right). \]

Now using this and (8) for \(\phi_1\) we have that

\[ \frac{A_{k,\phi_1}}{A_{k,\phi_2}} < \frac{2\phi_1\sin^{k-2}(\phi_1)}{(\phi_2-\phi_1)\sin^{k-2}\left(\frac{\phi_1+\phi_2}{2}\right)}. \]

This completes the proof of the lemma. \(\square\)

We will now need a few more lemmas that will be used to prove the lower bound in Theorem 1.2. To do this we will need to describe how to construct examples in \(\mathbb{R}^k\) for realizable pairs \((f,g)\). In these constructions we will pick points one by one. The following lemma will be used to find a convenient order in which to construct the points.

Lemma 3.3. Let \(T_1,T_2,T_3,T_4\) be forest graphs on the same vertex set \(V\) and let \(G=T_1 \cup T_2 \cup T_3 \cup T_4\). Then there is a permutation \(x_1,x_2,\ldots,x_{|V|}\) of the vertices of \(G\) such that for any \(1 \le j \le |V|\), we have that \(|\{l \mid l < j, x_jx_l \in E(G)\}| \le 7\).

Proof. Let \(n=|V|\). We show that the lemma is true by induction on \(n\). The base case \(n=1\) is trivial. Suppose it is true for \(n=s \ge 1\). Now suppose that \(n=s+1\). Since \(T_i\) are forests for \(1 \le i \le 4\), we have that \(e(T_i) \le s\) for \(1 \le i \le 4\). Thus, the average degree of \(G\) satisfies

\[ d=\frac{2e(G)}{s+1} \le \frac{8s}{s+1} < 8. \]

Hence there is a vertex \(y \in G\) with degree at most 7. Let \(T_i’\) be the induced subgraph of \(T_i\) on the vertex set \(V’ = V\backslash\{y\}\) for \(1 \le i \le 4\) and let \(G’=\bigcup_{i=1}^{4}T_i’\). Now, by induction, we can pick an order \(x_1,x_2,\ldots,x_s\) of the vertices of \(V’\) satisfying that for any \(1 \le j \le s\), we have that \(|\{l \mid l < j, x_jx_l \in E(G’)\}| \le 7\). Now, let \(y=x_{s+1}\). We have that the order \(x_1,x_2,\ldots,x_{s+1}\) of the vertices in \(V\) satisfies the required conditions. \(\square\)

Our construction for the lower bound will be on the sphere \(S^{k-1}\). For points \(A,B \in S^{k-1}\), we have that \(\|A-B\|=2\sin \frac{\angle AOB}{2}\) where \(O\) is the center of \(S^{k-1}\). Thus, the larger \(\angle AOB\) is the larger the distance. For a realizable pair \((f,g)\) with \(\operatorname{dom} f=[n]\), define \(H_{f,g}\) to be the graph on vertex set \([n]\) with edge set:

\[ E(H_{f,g})=\begin{cases} E(H_f \cup H_g), & \text{if } E(H_f \cap H_g)=\emptyset,\\ E(H_f \cup H_g) \cup \{ik_1,jk_2 \mid i,j \in [n], i \ne k_1, j \ne k_2\}, & \text{if } k_1k_2 \in E(H_f \cap H_g). \end{cases} \]

We now prove a lemma that partially describes how we will pick our angles in potential constructions in \(\mathbb{R}^k\) for realizable pairs.

Lemma 3.4. Suppose that \((f,g)\) is a realizable pair with \(\operatorname{dom} f=[n]\). If \(E(H_f) \cap E(H_g) \ne \emptyset\), let \(k_1,k_2\) be such that \(f(k_1)=k_2\) and \(g(k_2)=k_1\). Then we can pick \(\alpha_{i,j}\) for all edges \(ij \in E(H_{f,g})\) satisfying the following properties

  • \(\alpha_{i,j}=\alpha_{j,i}\) and all \(\alpha_{i,j}\) for \(i < j\) are distinct.
  • For any edge \(ij \in H_f\backslash H_g\), we have that \(\arccos(1/500) < \alpha_{i,j} < \arccos(1/1000)\).
  • For any edge \(ij \in H_g\backslash H_f\), we have that \(\arccos(-1/1000) < \alpha_{i,j} < \arccos(-1/500)\).
  • For any edge \(ij \in H_f \cup H_g\), we have that \(\alpha_{i,f(i)} \le \alpha_{i,j} \le \alpha_{i,g(i)}\).
  • If \(E(H_f) \cap E(H_g) \ne \emptyset\), then for any \(i \ne k_1\), \(j \ne k_2\) such that \(ik_1,jk_2 \notin E(H_f \cup H_g)\), we have that \(\arccos(1/1000) < \alpha_{k_2,j} < \pi/2 < \alpha_{k_1,i} < \arccos(-1/1000)\).
  • If \(E(H_f) \cap E(H_g) \ne \emptyset\) then \(\alpha_{k_1,k_2}=\pi/2\).

Proof. From the proof of Theorem 1.1 it is clear that we can define an ordering with a bijection \(c : E(K_n) \to \left[\binom{n}{2}\right]\) which satisfies that for any distinct \(i,j \in [n]\), \(c(if(i)) \le c(ij) \le c(ig(i))\). Also, from that proof, we will have that the edges of \(H_f\backslash H_g\) have the lowest values of \(c\) (from 1 to \(|H_f\backslash H_g|\)) and the edges of \(H_g\backslash H_f\) have the highest values of \(c\) (from \(\binom{n}{2}-|H_g\backslash H_f|+1\) to \(\binom{n}{2}\)). If \(E(H_f) \cap E(H_g) \ne \emptyset\), then we will also have \(c(k_2j) < c(k_1k_2) < c(k_1i)\) for any \(i \ne k_1\), \(j \ne k_2\). Since \(\arccos(1/500) < \arccos(1/1000) < \pi/2 < \arccos(-1/1000) < \arccos(-1/500)\), we can clearly pick \(\alpha_{i,j}\) to satisfy all the required properties. \(\square\)

For a hyperspherical cap \(C_{v,\phi} \subset S^{k-1}\), define its boundary to be \(\partial C_{v,\phi}=\{w \mid w \in C_{v,\phi},\angle(w,v)=\phi\}\). Notice that \(\partial C_{v,\phi}=\{w \mid w \in C_{v,\phi},w \cdot v = \cos \phi\}\). We will now show a useful lemma about vectors in \(\mathbb{R}^k\).

Lemma 3.5. Let \(0 < \alpha < 1/100\) be a real number. Suppose that \(s \in [7]\) and \(v_1,v_2,\ldots,v_s \in \mathbb{R}^k\) are unit vectors, where \(k \ge 7\) is an integer and \(|v_i \cdot v_j| \le \alpha\) for any distinct \(i,j\). Let \(a_1,a_2,\ldots,a_s\) be real numbers such that \(|a_i| \le \alpha\) for all \(i\). Then there is a unique vector \(v \in \operatorname{Span}(v_1,\ldots,v_s)\) such that \(v \cdot v_i = a_i\) for all \(i \in [s]\). Moreover, \(\|v\| \le 8\alpha\).

Proof. We first show that \(\{v_i \mid 1 \le i \le s\}\) is linearly independent. Suppose that there are \(\mu_i\) not all zero for \(1 \le i \le s\) such that \(\sum_{i=1}^{s}\mu_i v_i=0\). Without loss of generality let \(|\mu_1| \ge |\mu_i|\) for all \(2 \le i \le s\). Then

\[ v_1 = -\sum_{i=2}^{s}\frac{\mu_i}{\mu_1}v_i. \]

Taking the dot product with \(v_1\) we have that

\[ 1 = |v_1 \cdot v_1| = \left| -\sum_{i=2}^{s}\frac{\mu_i}{\mu_1}v_i \cdot v_1 \right| \le \sum_{i=2}^{s}\left|\frac{\mu_i}{\mu_1}\right||v_1 \cdot v_i| \le 6\alpha, \]

which is a contradiction. Thus, \(v_1,\ldots,v_s\) are linearly independent. By applying an appropriate orthogonal transformation we may assume without loss of generality that \(\operatorname{Span}(v_1,\ldots,v_s)=\mathbb{R}^s\). Now, if we consider the \(s \times s\) matrix \(A\) with row \(i\) equal to the row vector \(v_i\), then vectors \(v \in \mathbb{R}^s\) satisfying \(v \cdot v_i = a_i\) for all \(i\) are precisely solutions to the equation

\[ Av=(a_1,a_2\ldots,a_s)^T. \]

This has a unique solution since \(v_1,\ldots,v_s\) are linearly independent and therefore \(A\) is invertible. Suppose that \(v\) is that solution.

Now, let \(v=\sum_{i=1}^{s}\lambda_i v_i\). Without loss of generality suppose that \(|\lambda_1| \ge |\lambda_i|\) for all \(2 \le i \le s\). If \(\lambda_1=0\) then \(0=\|v\| < 8\alpha\), so suppose that \(\lambda_1 \ne 0\). We have by the triangle inequality that

\[ \begin{aligned} \alpha \ge |v \cdot v_1| &= |\lambda_1|\left|v_1 \cdot v_1 + \sum_{i=2}^{s}\frac{\lambda_i}{\lambda_1}v_i \cdot v_1\right| \\ &\ge |\lambda_1|\left(|v_1 \cdot v_1|-\sum_{i=2}^{s}\left|\frac{\lambda_i}{\lambda_1}\right||v_i \cdot v_1|\right) \\ &\ge |\lambda_1|(1-6\alpha), \end{aligned} \]

since \(v_1\) is a unit vector and \(|v_1 \cdot v_i| \le \alpha\) for \(2 \le i \le s\). Thus, \(|\lambda_1| \le \frac{\alpha}{1-6\alpha}\) and hence \(|\lambda_i| \le \frac{\alpha}{1-2\alpha}\) for all \(i\). Now, by the triangle inequality and since \(v_i\) are unit vectors, we have that

\[ \|v\| \le \sum_{i=1}^{s}|\lambda_i| \le \frac{7\alpha}{1-6\alpha} < 8\alpha, \]

since \(\alpha < 1/100\). This completes the proof of the lemma. \(\square\)

We will now show a lemma that tells us about the intersection of the boundaries of at most seven hyperspherical caps.

Lemma 3.6. Let \(\alpha < 1/200\) be a positive real number. Suppose that \(2 \le s \le 8\) and let \(v_1,v_2,\ldots,v_s\) be unit vectors in \(\mathbb{R}^k\) where \(k \ge 9\) is an integer. Let \(\alpha_i \in (0,\pi)\) for \(i \in [s]\) be real numbers such that \(|\cos(\alpha_i)| \le \alpha\) for all \(i\) and \(\cos \alpha_s \ge \alpha/2\). Suppose that \(|v_i \cdot v_j| \le \alpha\) for all distinct \(i,j \in [s]\). Let \(C_{v_i,\alpha_i}\) for \(i \in [s]\) be hyperspherical caps in \(S^{k-1}\). We then have that \(T=\bigcap_{i=1}^{s-1}\partial C_{v_i,\alpha_i}\) is a \((k-s)\)-dimensional sphere of radius not smaller than \(\sqrt{1-64\alpha^2}\). Moreover,

\[ \frac{\operatorname{Area}(C_{v_s,\alpha_s} \cap T)}{\operatorname{Area}(T)} \le \frac{A_{k-s,\beta}}{A_{k-s}}, \]

where \(\beta = \arccos\left(\frac{\alpha-128\alpha^2}{2}\right)\) and the areas are both \((k-s)\)-dimensional areas.

Proof. Let \(S = \operatorname{Span}(v_1,v_2,\ldots,v_{s-1})\) and let \(S^{\perp}\) be the orthogonal complement of \(S\) in \(\mathbb{R}^k\). Let \(a_i = \cos \alpha_i\) for all \(1 \le i \le s\). By Lemma 3.5 there is a unique vector \(v \in S\) such that \(|v \cdot v_i|=a_i\) for \(i \in [s-1]\) and we also have that \(\|v\| \le 8\alpha < 1\). From the proof of that lemma we also know that \(v_1,v_2,\ldots v_{s-1}\) are linearly independent and hence \(\dim S=s-1\). For any vector \(w \in S^{\perp}\) with \(\|w\|=\sqrt{1-\|v\|^2}\), we have that \(\|v+w\|^2=\|v\|^2+\|w\|^2=1\). Thus, \(v+w \in S^{k-1}\). We also have that \((v+w) \cdot v_i = a_i\) for all \(i \in [s-1]\). On the other hand, suppose that \(x \in S^{k-1}\) is such that \(x \cdot v_i = a_i\) for all \(i \in [s-1]\). Let \(x=x_1+x_2\) be the decomposition of \(x\) such that \(x_1 \in S\), \(x_2 \in S^{\perp}\). Then we have that \(x_1 \cdot v_i = a_i\) for \(i \in [s-1]\) and hence by Lemma 3.5 \(x_1=v\). But then since \(\|x_1\|^2+\|x_2\|^2=1\), we have that \(\|x_2\|=\sqrt{1-\|v\|^2}\). Since \(\partial C_{v_i,\alpha_i}=\{x \mid x \in S^{k-1}, x \cdot v_i = a_i\}\), from above we have that

\[ T = \{x \mid x \in S^{k-1}, x \cdot v_i = a_i \text{ for all } i \in [s-1]\} = \{v+w \mid w \in S^{\perp}, \|w\|=\sqrt{1-\|v\|^2}\}, \]

is a \((k-s)\)-dimensional sphere (since \(\dim S^{\perp}=k-s+1\)) of radius \(\sqrt{1-\|v\|^2} \ge \sqrt{1-64\alpha^2} > 0\). Thus, \(T\) is non-empty. We now decompose the vector \(v_s\) into \(v_s=v_s’+w_s\), where \(v_s’ \in S\) and \(w_s \in S^{\perp}\). We have that \(v_s’ \cdot v_i = v_s \cdot v_i\) for \(i \in [7]\). Notice that by Lemma 3.5 we have that \(v_s’\) is the unique vector in \(S\) satisfying \(v_s’ \cdot v_i = v_s \cdot v_i\) for \(i \in [s-1]\) and hence \(\|v_s’\| \le 8\alpha\).

Let \(M = \{w \mid w \in S^{\perp},\|w\|^2=1-\|v\|^2\}\). Applying an appropriate orthogonal transformation we may assume that \(S^{\perp}=\mathbb{R}^{k-s+1}\). Now we have that \(M = \sqrt{1-\|v\|^2}S^{k-s}\). For any \(w \in M\), we see that \(v+w \in C_{v_s,\alpha_s}\) if and only if \((v+w) \cdot v_s \ge a_s\). But we have that

\[ (v+w) \cdot v_s = (v+w) \cdot (v_s’+w_s) = v \cdot v_s’ + w \cdot w_s. \]

Thus, \(v+w \in C_{v_s,\alpha_s}\) if and only if \(w \cdot w_s \ge a_s – v \cdot v_s’\). Since \(\|v_s’\| \le 8\alpha\), we know that \(w,w_s\) are non-zero and hence \(v+w \in C_{v_s,\alpha_s}\) if and only if

\[ \frac{w}{\|w\|}\cdot \frac{w_s}{\|w_s\|} \ge \frac{a_s – v \cdot v_s’}{\|w\|\|w_s\|}. \tag{9} \]

We know that \(\|w_s\|,\|w\| \le 1\) and \(|v \cdot v_s’| \le \|v\|\|v_s’\| \le 64\alpha^2\). Therefore, \(a_s – v \cdot v_s’ \ge \alpha/2 – 64\alpha^2 > 0\) and hence

\[ \frac{a_s – v \cdot v_s’}{\|w\|\|w_s\|} \ge \frac{\alpha – 128\alpha^2}{2} = \cos \beta > 0. \]

Since \(\frac{w}{\|w\|},\frac{w_s}{\|w_s\|} \in S^{k-s}\), we have that if (9) is satisfied, then \(\frac{w}{\|w\|} \in C^{k-s}_{\frac{w_s}{\|w_s\|},\beta}\), where the superscript indicates that the cap is in \(S^{k-s}\). Since \(M=T-v\) and \(\beta < \pi/2\), we have that

\[ \frac{\operatorname{Area}(C_{v_s,\alpha_s} \cap T)}{\operatorname{Area}(T)} \le \frac{A_{k-s,\beta}}{A_{k-s}}, \]

which completes the proof of the lemma. \(\square\)

We are now ready to prove Theorem 1.2. First we prove the easier upper bound.

Proof of upper bound. Suppose that \(k \ge 4\). Let \(\epsilon = \sin(\pi/12)\) and let \(\alpha = \frac{1}{6\sin^3(\pi/12)}\). By Lemma 3.2 we have that

\[ \frac{A_{k-1,\pi/6}}{A_{k-1}} = \frac{A_{k-1,\pi/6}}{2A_{k-1,\pi/2}} > \frac{\sin^{k-3}(\pi/12)}{6} = \alpha\epsilon^k. \tag{10} \]

Now suppose that \(m(k) > 1+\frac{1}{\alpha\epsilon^k}\). Let \(n=m(k)\). We know that \(m(k) \ge 3\). Consider the following pair of functions \(f,g : [n] \to [n]\) given by

\[ f(i)=\begin{cases} n, & \text{if } i < n,\\ 1, & \text{if } i=n, \end{cases} \qquad g(i)=\begin{cases} 1, & \text{if } 1 < i < n,\\ 2, & \text{if } i=1,n. \end{cases} \]

We can see that by Theorem 1.1 \((f,g)\) is a realizable pair. Since \(n=m(k)\), there are distinct points \(X_1,\ldots,X_n \in \mathbb{R}^k\) such that for every \(i\), we have that \(X_iX_{f(i)} < X_iX_j\) for any \(j \ne i,f(i)\). Let \(v_i = \overrightarrow{X_nX_i}\) for each \(1 \le i \le n-1\). By Proposition 3.1 we have that \(\angle X_iX_nX_j > \pi/3\) for any \(1 \le i < j < n\) and hence \(\angle(v_i,v_j) > \pi/3\). Let \(w_i = \frac{v_i}{\|v_i\|}\). Now, by (5) this means that the hyperspherical caps \(C_{w_1,\pi/6},C_{w_2,\pi/6},\ldots,C_{w_{n-1},\pi/6}\) in \(S^{k-1}\) are pairwise disjoint. Therefore, we have that \((n-1)A_{k-1,\pi/6} \le A_{k-1}\). Thus, by (10) we have that

\[ A_{k-1} \ge (n-1)A_{k-1,\pi/6} > \frac{A_{k-1,\pi/6}}{\alpha\epsilon^k} > A_{k-1}, \]

which is a contradiction. Therefore, we have that \(m(k) \le 1+\frac{1}{\alpha\epsilon^k}\). Let \(C=\frac{2}{\epsilon}\). We have that \(\epsilon < 1\) so \(C > 1\) and there is a large enough \(D\) such that for all \(k \ge D\), we have that \(2^k\alpha > 1\) and \(\frac{1}{\alpha\epsilon^k} > 1\). Thus, for all \(k \ge D\), we have that

\[ m(k) \le \frac{2}{\alpha\epsilon^k} \le \frac{2^{k+1}}{\epsilon^k} = 2C^k. \]

Now, there is certainly a large enough \(B\) so that for all positive integers \(k\), we have that \(m(k) \le BC^k\), which completes the proof. \(\square\)

We will now prove the lower bound.

Proof of lower bound. Let \(\alpha=1/500\) and let \(\beta=\arccos\left(\frac{\alpha-128\alpha^2}{2}\right)\). It is easy to see that \(m(k) \ge 3\) for all \(k\). We may assume that \(k \ge 10\), since we can always pick \(A > 0\) to be small enough so that the lower bound holds for \(1 \le k \le 9\) as well. Suppose that \((f,g)\) is a realizable pair of functions with \(\operatorname{dom} f=[n]\) and \(n < Ac^k+1\), where

\[ c = \frac{\sin\left(\frac{\pi/2+\beta}{2}\right)}{\sin \beta} \quad \text{and} \quad A = \frac{(\pi/2-\beta)\sin^{10}\beta}{2\beta\sin^{10}\left(\frac{\pi/2+\beta}{2}\right)}. \]

Since \(\alpha=1/500\), we have that \(\beta < \pi/2\) and hence \(c > 1\) and \(A > 0\). Let \(\alpha_{i,j}\) for all \(ij \in E(H_{f,g})\) satisfy the properties in Lemma 3.4. Let \(\delta=\arccos(\alpha/2)\).

If \(H_f\) had a cycle say \(i_1i_2\ldots i_k\) with \(k \ge 3\), we may assume that \(i_1 \to i_2\) is an edge of \(G_f\). But then since all vertices of \(G_f\) have out-degree one and \(i_1i_k \in E(H_f)\), we have that \(i_k \to i_1\) is an edge of \(G_f\). If \(i_j \to i_{j+1}\) is an edge of \(G_f\) for \(j \ge 2\) (\(i_{k+1}=i_1\)), then we have that \(i_{j-1} \to i_j\) is an edge of \(G_f\). Thus, by induction, \(i_1 \to i_2 \to \cdots \to i_k\) is a cycle in \(G_f\), which is impossible. Therefore, \(H_f\) has no cycles. Similarly, \(H_g\) has no cycles.

Let \(T_1=H_f\) and \(T_2=H_g\). If \(E(H_f \cap H_g)=\emptyset\), let \(T_3=T_4=E_n\), where \(E_n\) is the graph on vertex set \([n]\) with no edges. Otherwise, by Lemma 2.4 there is exactly one edge \(k_1k_2\) in \(H_f \cap H_g\) where \(f(k_1)=k_2\) and \(g(k_2)=k_1\). Suppose that \(W_i\) is the graph on vertex set \([n]\) with edge set \(\{jk_i \mid j \ne k_i\}\) for \(i=1,2\). Notice that

\[ H_{f,g}=T_1 \cup T_2 \cup T_3 \cup T_4. \]

We now apply Lemma 3.3 on \(T_1,T_2,T_3,T_4\) to get a permutation \(x_1,x_2,\ldots,x_n\) of \([n]\) such that for any \(1 \le j \le n\), we have that \(|\{l \mid l < j, x_jx_l \in E(H_{f,g})\}| \le 7\). We may assume without loss of generality that \(x_i=i\). Let \(O\) be the coordinate origin of \(\mathbb{R}^k\). We are now going to construct points \(X_1,X_2,\ldots,X_n \in S^{k-1}\) that satisfy the following properties:

  • \(\delta < \angle X_iOX_j < \pi-\delta\) for any distinct \(i,j \in [n]\) such that \(ij \notin E(H_{f,g})\),
  • \(\angle X_iOX_j = \alpha_{i,j}\) if \(ij \in E(H_{f,g})\).

To do this we will construct these points inductively. First we pick \(X_1\) to be an arbitrary point on \(S^{k-1}\). Now suppose that we have so far constructed \(X_1,X_2,\ldots,X_{s-1}\) for some \(2 \le s \le n\) and that they satisfy the required properties. Let \(v_i=\overrightarrow{OX_i}\) for \(1 \le i \le s-1\). We will now construct \(X_s\). We know that there are at most seven edges \(is\) in \(H_{f,g}\) with \(i < s\). In the remainder of the proof all hyperspherical caps are taken to be in \(S^{k-1}\).

In order for the second property to hold it is enough that for any \(is \in E(H_{f,g})\) with \(1 \le i \le s-1\), we have \(X_s \in \partial C_{v_i,\alpha_{i,s}}\). Thus, we need \(X_s\) to be in the intersection of some \(t\) cap boundaries where \(0 \le t \le 7\). Assume that those cap boundaries are \(\partial C_{w_i,\beta_i}\) for \(1 \le i \le t\), where the vectors \(w_i\) for \(1 \le i \le t\) are some of the vectors \(v_1,v_2,\ldots,v_{s-1}\) and \(\beta_i\) for \(1 \le i \le t\) are some of the \(\alpha_{j,s}\). Since \(\alpha=1/500\), by Lemma 3.4 we know that for any distinct \(1 \le i,j \le t\), we have that \(|w_i \cdot w_j| \le \alpha\).

On the other hand, if \(is \notin E(H_{f,g})\), then for the first property, it is enough that \(X_s \notin C_{v_i,\delta}\) and \(X_s \notin C_{-v_i,\delta}\). We know that \(X_s\) needs to avoid at most \(2(s-1)\) caps with angle \(\delta\). Let those caps be

\[ C_{r_1,\delta}, C_{r_2,\delta}, \ldots, C_{r_l,\delta}, \]

where \(0 \le l \le 2(s-1)\) and every vector \(r_i\) is one of the vectors \(\pm v_1,\pm v_2,\ldots,\pm v_{s-1}\). If \(t \ge 1\) let

\[ T=\bigcap_{i=1}^{t}\partial C_{w_i,\beta_i}, \]

and if \(t=0\) let \(T=S^{k-1}\). We will show that we can select \(X_s \in T\) such that for every \(1 \le i \le l\), we also have that \(X_s \notin C_{r_i,\delta}\).

First suppose that \(t \ge 1\). We know that \(r_i=\pm v_{i’}\) for some \(i’\) such that \(ii’ \notin E(H_{f,g})\). Hence none of the \(w_1,\ldots,w_t\) are equal to \(v_{i’}\) but they are all among \(v_1,v_2,\ldots,v_{s-1}\). Therefore, \(|r_i \cdot w_j| \le \alpha\) for all \(j \in [t]\). Thus, by Lemma 3.6 we have that for any \(1 \le i \le l\),

\[ \frac{\operatorname{Area}(T \cap C_{r_i,\delta})}{\operatorname{Area}(T)} \le \frac{A_{k-t-1,\beta}}{A_{k-t-1}}. \]

If \(t=0\), then we still have

\[ \frac{\operatorname{Area}(T \cap C_{r_i,\delta})}{\operatorname{Area}(T)} \le \frac{A_{k-1,\delta}}{A_{k-1}} \le \frac{A_{k-t-1,\beta}}{A_{k-t-1}}, \]

since \(\beta > \delta\). Either way by Lemma 3.2

\[ \frac{A_{k-t-1,\beta}}{A_{k-t-1}} = \frac{A_{k-t-1,\beta}}{2A_{k-t-1,\pi/2}} \le \frac{\beta\sin^{k-t-3}\beta}{(\pi/2-\beta)\sin^{k-t-3}\left(\frac{\pi/2+\beta}{2}\right)} \le \frac{1}{2Ac^k}, \]

because \(t \le 7\) and \(\beta < \pi/2\). Thus, by the union bound

\[ \frac{\operatorname{Area}(T \cap (\bigcup_{i=1}^{l}C_{r_i,\delta}))}{\operatorname{Area}(T)} \le \sum_{i=1}^{l}\frac{\operatorname{Area}(T \cap C_{r_i,\delta})}{\operatorname{Area}(T)} \le l\frac{1}{2Ac^k} \le \frac{2(s-1)}{2Ac^k} \le \frac{2(n-1)}{2Ac^k} < 1, \]

and hence there is a point \(X_k \in T\backslash(\bigcup_{i=1}^{l}C_{r_i,\delta})\). Thus, we ensure that the two required properties for angles \(\angle X_iOX_j\) hold and by induction we can pick points \(X_1,X_2\ldots,X_n\) so that the two required properties hold.

Now suppose that \(i,j\) are distinct numbers in \([n]\) with \(j \ne f(i)\). If \(if(i)\) is not an edge in \(H_g\), then it is an edge in \(H_f\backslash H_g\). Hence, by definition of \(\alpha_{i,j}\) from Lemma 3.4, we have that if \(ij \in E(H_f \cup H_g)\), by the fourth and first property of Lemma 3.4 \(\angle X_iOX_{f(i)} < \angle X_iOX_j\). But also, if \(if \notin E(H_f \cup H_g)\), by the second property we have that \(\angle X_iOX_{f(i)} < \delta \le \angle X_iOX_j\). On the other hand, if \(if(i) \in H_g\) then \(E(H_f \cap H_g) \ne \emptyset\), so let \(k_1,k_2\) be defined as in Lemma 3.4. We have that \(i=k_1\), \(f(i)=k_2\) and hence from the fourth, fifth and sixth property in Lemma 3.4 we have that \(\angle X_iOX_{f(i)}=\pi/2 < \alpha_{k_1,j}=\angle X_iOX_j\). Thus, for any distinct \(i,j \in [n]\) with \(j \ne f(i)\), we have that \(\|X_i-X_{f(i)}\|=2\sin\frac{\angle X_iOX_{f(i)}}{2} < 2\sin\frac{\angle X_iOX_j}{2}=\|X_i-X_j\|\). Similarly, for any distinct \(i,j \in [n]\) with \(j \ne g(i)\), we have that \(\|X_i-X_{g(i)}\| < \|X_i-X_j\|\).

Now we just need to ensure that \(\|X_i-X_j\|\) are all distinct. Since the inequalities \(\|X_i-X_{f(i)}\| < \|X_i-X_j\|\) for all \(i,j \ne i,f(i)\) and \(\|X_i-X_{g(i)}\| > \|X_i-X_j\|\) for all \(i,j \ne i,g(i)\) are all strict, for any sufficiently small perturbation of points \(X_1,X_2,\ldots,X_n\), those inequalities will still hold. It is easy to see that we can find a small perturbation such that \(\|X_i-X_j\|\) are all distinct and all the inequalities still hold (we can move points one by one and we just need to avoid finitely many spheres and hyperplanes which have \(k\)-dimensional volume 0). The perturbed points will not necessarily lie on \(S^{k-1}\). This shows that \((f,g)\) is realizable in \(\mathbb{R}^k\). Since there is an integer in \([Ac^k,Ac^k+1)\), this completes the proof of Theorem 1.2. \(\square\)

4. Related Results

In this section we will consider minimum and maximum distance functions separately. It turns out that maximum distances are not so interesting. If \((X,d)\) is a metric space, we will define a function \(g : [n] \to [n]\) without fixed points to be max-realizable in \((X,d)\) if there are points \(A_1,A_2,\ldots,A_n \in X\) such that all distances \(d(A_i,A_j)\) are distinct for all different pairs \(\{i,j\}\) with \(i \ne j\) and for any distinct \(i,j \in [n]\), we have that \(d(A_i,A_{g(i)}) \ge d(A_i,A_j)\). Define \(g\) to be max-realizable if it is max-realizable in some metric space.

Theorem 4.1. Any function that is max-realizable is also max-realizable in \(\mathbb{R}^2\).

Our construction will involve ellipses and we will need a few lemmas. The first lemma will be useful when choosing points on the ellipses.

Lemma 4.2. Let \(C\) be the ellipse given by the equation \(x^2+4y^2=4\). Suppose that \(b\) is any real number in \((0,1/3)\). Let \(P_b=(-2\sqrt{1-b^2},-b)\) and for any \(y \in (0,1)\), let \(Q_y=(2\sqrt{1-y^2},y)\). Define the function \(g_b : (0,1) \to \mathbb{R}\) to be \(g_b(y)=P_bQ_y^2\). Then there is an \(m_b \in (0,1)\) (depending on \(b\)) such that \(g_b(y)\) is strictly increasing on \((0,m_b]\) and strictly decreasing on \([m_b,1)\). Moreover, if \(f : (0,1/3) \to (0,1)\) is defined as \(f(b)=m_b\), then \(f\) is a strictly increasing continuous function and \(Q_{m_b}\) is the unique farthest point on \(C\) from \(P_b\).

Proof. Notice that \(P_b,Q_y \in C\). We have that

\[ g_b(y)=4(\sqrt{1-y^2}+\sqrt{1-b^2})^2+(y+b)^2. \]

Computing the derivative with respect to \(y\) we have that

\[ g_b'(y) = -6y – 8y\frac{\sqrt{1-b^2}}{\sqrt{1-y^2}} + 2b. \tag{11} \]

We will show that there is a unique \(m_b \in (0,1)\) such that \(g'(m_b)=0\). To have \(g_b'(y)=0\), dividing by 2 and rearranging (11), we need

\[ 3y-b = \frac{-4y\sqrt{1-b^2}}{\sqrt{1-y^2}}. \tag{12} \]

Since the right-hand side is negative, we must have \(y < b/3\). We can also see that for \(y \ge b/3\), we have that \(g_b'(y) < 0\). Now consider (12) with \(y \in (0,b/3)\). We have that

\[ \frac{(3y-b)^2(1-y^2)}{y^2}=16(1-b^2). \tag{13} \]

Define \(h_b(y)\) to be the left-hand side of (13). We have that

\[ h_b'(y) = -18y+6b+6\frac{b}{y^2}-2\frac{b^2}{y^3} = \left(6-\frac{2b}{y^3}\right)(b-3y). \]

We know that \(1 > b > 3y\) and hence also \(\frac{2b}{y^3} > \frac{2\cdot 27b}{b^3} > 6\). This means that \(h_b'(y) < 0\) and hence \(h_b(y)\) is decreasing on \((0,b/3)\). Since \(h_b(b/3)=0\) and as \(y \to 0\) \(h_b(y) \to \infty\), we have that (13) has a unique solution on \((0,b/3)\). This means that \(g_b'(y)\) has a unique zero \(m_b\) in \((0,1)\) which lies in \((0,b/3)\). Since \(g_b'(y)\) is continuous and as \(y \to 0\) \(g_b'(y) \to 2b > 0\), we have that \(g_b'(y)\) is positive on \((0,m_b)\) and negative on \((m_b,1)\). So \(g_b(y)\) is strictly increasing on \((0,m_b]\), strictly decreasing on \([m_b,1)\) and for all \(y \in (0,1)\backslash\{m_b\}\), we have that \(g_b(m_b) > g_b(y)\).

Now we will show that \(f\) is continuous. Suppose that \(b_n\) is a sequence of reals in \((0,1/3)\) such that \(b_n \to b\) as \(n \to \infty\) for some \(b \in (0,1/3)\). We will show that \(m_{b_n} \to m_b\). Assume the contrary. Then there is an \(\epsilon > 0\) such that there is an infinite subsequence \(b_{i_n}\) such that \(|m_{b_{i_n}}-m_b| > \epsilon\) for all \(n\). By moving to a convergent subsequence, by compactness, we may assume that \(m_{b_{i_n}} \to a\) for some \(a\) such that \(|a-m_b| \ge \epsilon\) and \(a \ge 0\). Now, from (13) we see that \(h_{b_{i_n}}(m_{b_{i_n}}) \to 16(1-b^2)=h_b(m_b)\), but also by continuity \(h_{b_{i_n}}(m_{b_{i_n}}) \to h_b(a)\) if \(a > 0\), while \(h_{b_{i_n}}(m_{b_{i_n}}) \to \infty\) if \(a=0\). Thus, \(a > 0\) and since \(m_{b_{i_n}} < b_{i_n}/3\), we must have that \(a=\lim m_{b_{i_n}} \le \lim b_{i_n}/3=b/3\). Since \(h_b(b/3)=0\), we have that \(a < b/3\), but then we have that \(a=m_b\), which is a contradiction. Thus, we have shown that \(f\) is indeed continuous.

Now suppose that \(b < c\). From (13) and since \(m_b < b/3 < c/3\), we know that \(h_c(m_b) > h_b(m_b)=16(1-b^2) > 16(1-c^2)\). Since \(h_c\) is decreasing on \((0,c/3)\), we have that \(m_c > m_b\) and therefore \(f\) is strictly increasing. Now we have from above that for any \(b < 1/3\), the farthest point to \(P_b\) on \(C\) (where \(C\) refers only to the curve and not the area inside) in the open upper right quadrant is indeed \(Q_{m_b}\). Since the tangents to the ellipse at points \(A=(2,0)\) and \(B=(0,1)\) are perpendicular to the \(x,y\) axes respectively, we know that there are points \(E,F\) on \(C\) in the open upper right quadrant such that \(\angle P_bAE\), \(\angle P_bBF\) are obtuse. This means that neither \(A\) nor \(B\) can be the farthest point from \(P_b\) on \(C\). Now, for any point \((p,q) \in C\), if we consider the points \((p,q),(p,-q),(-p,q),(-p,-q)\), then the point (that appear twice if either coordinate is zero) that is in the closed upper right quadrant has the highest distance to \(P_b\) in both the \(x,y\) coordinates. This means that \(Q_{m_b}\) is indeed the unique farthest point from \(P_b\) on \(C\). \(\square\)

In order to show that any function \(g : [n] \to [n]\) is max-realizable in \(\mathbb{R}^2\) we will first split \(G_g\) into connected components and show that they are all max-realizable in certain types of subsets of \(\mathbb{R}^2\). Then we will combine the examples for each component to show that \(f\) is max-realizable in \(\mathbb{R}^2\). For any \(\delta > 0\) and \(X \in \mathbb{R}^k\), let \(B_{\delta}(X)=\{P \in \mathbb{R}^k \mid \|X-P\| < \delta\}\). The following lemma will deal with one component.

Lemma 4.3. Suppose that \(g : [n] \to [n]\) is a function without fixed points such that \(H_g\) is connected and \(G_g\) has no cycles of length bigger than two. Then \(g\) is max-realizable in \(\mathbb{R}^2\). Moreover, for any distinct points \(A,B \in \mathbb{R}^2\) and any \(\epsilon > 0\), there is an example of points \(X_1,X_2,\ldots,X_n\) that realizes \(g\) such that all the points are in \(B_{\epsilon}(A) \cup B_{\epsilon}(B)\).

Proof. By rotation, translation and scaling we may assume that \(A=(-2,0)\), \(B=(2,0)\). As above let \(C\) be the ellipse given by the equation \(x^2+4y^2=4\). We know that \(A,B \in C\). We will show that we can pick the points \(X_1,X_2,\ldots,X_n\) to be on \(C\). By Lemma 2.3 there is a non-negative integer \(m\) and a partition \([n]=F_0 \cup F_1 \cup \cdots \cup F_m\) with the property that if \(i \to j\) is an edge of \(G_g\), we have that either \(i,j \in F_0\) or there is some \(s > 0\) such that \(i \in F_s\), \(j \in F_{s-1}\). From the proof of Lemma 2.3 we have that \(G_g[F_0]\) is precisely the set of points belonging to a 2-cycle in \(G_g\). We also know that since the out-degree of any vertex in \(G_g\) is one, we have that \(G_g[F_0]\) is a union of disjoint 2-cycles and from any vertex \(i \in [n]\) there is a directed path to exactly one of these cycles. Suppose that \(C_1,C_2,\ldots,C_s\) are all of the 2-cycles in \(F_0\). Then for \(1 \le i \le s\), let

\[ H_i = \{j \in [n] \mid \text{there is a path from } j \text{ to } C_i\}. \]

By the above, \(H_i\)’s are disjoint. If there is an edge say \(u \to v\) from \(H_i\) to \(H_j\) for any \(i \ne j\), then we would have \(u \in H_j\), which is a contraction. This means that \(H_g[H_1],H_g[H_2],\ldots,H_g[H_s]\) are all disconnected from each other. Thus, \(s=1\) and \(G_g[F_0]=C_1\).

Let \(C_1=\{a_0,b_0\}\). We will define the set

\[ S_A = \{i \in [n] \mid \text{the shortest path in } G_g \text{ from } i \text{ to } C_1 \text{ ends at } a_0\}. \]

Similarly, define \(S_B\). For \(1 \le i \le m\), let \(A_i=F_i \cap S_A\) and let \(B_i=F_i \cap S_B\). Let \(f\) be defined as in Lemma 4.2. Let \(X_{a_0}=A\), \(X_{b_0}=B\). For any \(b,y \in (0,1/3)\), define \(P_b,Q_y\) as in Lemma 4.2. Let \(0 < b_m < 1/3\) be such that \(P_{b_m}A < \epsilon\) and define \(b_{m-1},b_{m-2},\ldots,b_1\) such that \(f(b_i)=b_{i-1}\) for \(i \ge 2\). By Lemma 4.2, since \(f(b) < b\) for all \(b \in (0,1/3)\), we have that \(\|P_{b_i}-A\|,\|Q_{b_i}-B\| < \epsilon\) for all \(1 \le i \le m\). Define \(V_i\) for \(1 \le i \le m\) to be

\[ V_i=\begin{cases} B_{\delta}(Q_{b_i}) \cap C, & \text{if } i \text{ is odd},\\ B_{\delta}(P_{b_i}) \cap C, & \text{if } i \text{ is even}, \end{cases} \]

where \(\delta\) is sufficiently small. We can certainly ensure that \(V_i \subset B_{\epsilon}(A) \cup B_{\epsilon}(B)\) for all \(1 \le i \le m\) and that all the \(V_i\) are disjoint. We can also ensure that \(V_i\) is contained in the open upper right quadrant for all odd \(i\) and \(V_i\) is contained in the open lower left quadrant for all even \(i\). Notice that by Lemma 4.2 \(f\) is continuous and strictly increasing on \((0,1/3)\) and hence has a continuous inverse \(f^{-1} : f((0,1/3)) \to (0,1/3)\). Let \(U_m=V_m\). Recursively define

\[ U_{m-i}=\begin{cases} V_{m-i} \cap \{Q_{f(b)} \mid b \in (0,1/3), P_b \in U_{m-i+1}\}, & \text{if } m-i \text{ is odd},\\ V_{m-i} \cap \{P_{f(b)} \mid b \in (0,1/3), Q_b \in U_{m-i+1}\}, & \text{if } m-i \text{ is even}, \end{cases} \]

for \(1 \le i \le m-1\). By induction from \(m\) to 1 we have that for any \(1 \le i \le m\), \(U_i\) is an open subset of \(C\) such that if \(i\) is even then \(P_{b_i} \in U_i\), and if \(i\) is odd then \(Q_{b_i} \in U_i\). Our example that realizes \(g\) will have that the points \(X_j\) with \(j \in A_i\) will lie in \(U_i\). For any \(b \in (0,1/3)\), define \(R_b=(-2\sqrt{1-b^2},b)\) and \(S_b=(2\sqrt{1-b^2},-b)\).

By Lemma 4.2 and by symmetry we have that the unique farthest point on \(C\) from \(P_{b_{i+1}}\) is \(Q_{b_i}\) and the unique farthest point on \(C\) from \(Q_{b_{i+1}}\) is \(P_{b_i}\) for any \(1 \le i \le m-1\). This means that if \(\delta\) is small enough, then for any \(1 \le i \le m-1\) and \(1 \le j \le m\) with \(j \ne i\), we have that

\[ \|E-F\| > \|E-G\| \text{ if } E \in V_{i+1}, F \in V_i, G \in V_j \cup \{A,B\}. \]

For all \(j \in A_1\), pick \(X_j\) to be an arbitrary point in \(U_1\) so that the chosen points are distinct. We will now describe how to pick points \(X_j \in U_i\) for \(j \in A_i\) with \(i \ge 2\) inductively on \(i\). Suppose that for some \(1 \le i \le m-1\), we have chosen all the points \(X_j \in U_i\) with \(j \in A_i\) where the \(X_j\) are distinct. Without loss of generality we may assume that \(A_i=[l]\) for some positive integer \(l\). We know that \(j \in A_{i+1}\) if and only if \(g(j) \in A_i\) so we can partition \(A_{i+1}=g^{-1}(1) \cup g^{-1}(2) \cup \ldots \cup g^{-1}(l)\). From the definition of \(U_i\), Lemma 4.2 and by central symmetry of \(C\) we know that there are points \(Y_j \in U_{i+1}\) for \(1 \le j \le l\) such that the unique farthest point on \(C\) from \(Y_j\) is \(X_j\). Now, let \(\delta_i\) be sufficiently small and for each \(j \in A_{i+1}\), pick \(X_j\) to be an arbitrary point in \(U_{i+1} \cap B_{\delta_i}(Y_j)\) so that all of the \(X_j\) are disjoint. By picking \(\delta_i\) to be small enough we can ensure that for each \(j \in A_{i+1}\), the farthest point from \(X_j\) among the points \(\{X_{j’} \mid j’ \in A_i\}\) is indeed \(X_{g(j)}\). We can construct inductively \(X_j\) for all \(j \in S_A\backslash(A_1 \cup \{a_0\})\).

Similarly, we can consider small neighbourhoods of \(R_{b_i}\) for odd \(i\) and \(S_{b_i}\) for even \(i\) to construct points \(X_j\) for all \(j \in S_B\) with similar properties. This would construct all the points \(X_j\) for \(j \in [n]\). By uniqueness of farthest points we can ensure that, by taking the neighbourhoods to be sufficiently small,T the farthest point from \(X_j\) among \(S=\{X_{j’} \mid j’ \in [n]\}\) is indeed \(X_{g(j)}\) for any \(j \in (S_A \cup S_B)\backslash(A_1 \cup B_1 \cup \{a_0,b_0\})\). We now need to consider the case when \(j \in A_1 \cup B_1 \cup \{a_0,b_0\}\).

Suppose that \(j \in A_1\). By the triangle inequality \(|\|X_j-X_{a_0}\|-\|Q_{b_1}-A\|| \le \delta\). Note that

\[ \|Q_{b_1}-A\|^2 = b_1^2+4(1+\sqrt{1-b_1^2})^2 = 8-3b_1^2+8\sqrt{1-b_1^2}. \]

Let \(b_0=f(b_1)\). By symmetry and Lemma 4.2 we know that the farthest point on \(C\) from \(Q_{b_1}\) is \(P_{b_0}\) and \(b_0 < b_1/3\), but we also know that as we move a point \(E\) on \(C\) from \(P_{b_0}\) downwards (and right) the distance \(\|Q_{b_1}-E\|\) decreases at least until we get to the point \((0,-1)\). Thus, we know that \(\|Q_{b_1}-P_{b_i}\| < \|Q_{b_1}-P_{b_2}\|\) for \(i > 2\). Notice that for any \(i\), among points \(Q_{b_i},P_{b_i},R_{b_i},S_{b_i}\) the (unique) farthest point from \(Q_{b_1}\) is \(P_{b_i}\) because it is farthest in both coordinates. Thus, based on our construction in order to show that for sufficiently small \(\delta\), the farthest point from \(X_j\) is indeed \(X_{a_0}=A\), it is enough to show that

\[ \|Q_{b_1}-P_{b_2}\|,\|Q_{b_1}-R_{b_1}\|,\|Q_{b_1}-B\| < \|Q_{b_1}-A\|. \]

We have that

\[ \begin{aligned} \|Q_{b_1}-B\|^2 &= b_1^2 + 4(1-\sqrt{1-b_1^2})^2,\\ \|Q_{b_1}-A\|^2 &= b_1^2 + 4(1+\sqrt{1-b_1^2})^2,\\ \|Q_{b_1}-R_{b_1}\| &= 4\sqrt{1-b_1^2},\\ \|Q_{b_1}-P_{b_2}\|^2 &= (b_1+b_2)^2 + 4(\sqrt{1-b_1^2}+\sqrt{1-b_2^2})^2. \end{aligned} \]

Clearly \(\|Q_{b_1}-B\| < \|Q_{b_1}-A\|\). Since \(1 > \sqrt{1-b_1^2}\), we have that \(\|Q_{b_1}-A\|^2 > 4\cdot(2\sqrt{1-b_1^2})^2 = \|Q_{b_1}-R_{b_1}\|^2\) so \(\|Q_{b_1}-R_{b_1}\| < \|Q_{b_1}-A\|\). From Lemma 4.2 we also know that \(b_1 < b_2/3\) and hence we have that

\[ \|Q_{b_1}-A\|^2 – \|Q_{b_1}-P_{b_2}\|^2 = 8\sqrt{1-b_1^2} – 8\sqrt{1-b_1^2}\sqrt{1-b_2^2} + 3b_2^2 – 2b_1b_2. \]

Since \(3b_2^2 > 2b_1b_2\) and \(\sqrt{1-b_2^2} < 1\), we have that \(\|Q_{b_1}-P_{b_2}\| < \|Q_{b_1}-A\|\). So if \(\delta\) is sufficiently small, then for any \(j \in A_1\), the farthest point from \(X_j\) in \(S\) is indeed \(X_{a_0}=A\). Similarly, we can ensure that if \(j \in B_1\), the unique farthest point from \(X_j\) is \(X_{b_0}=B\). Now, for any point \(E=(x,y) \in C\) distinct from \(B\), we have that

\[ \begin{aligned} \|A-E\|^2 &= (x+2)^2+y^2 = x^2+4x+4+1-\frac{x^2}{4} \\ &= \frac{3x^2+16x-44}{4}+1 \\ &= \frac{(x-2)(3x+22)}{4}+16 < 16 = \|A-B\|^2. \end{aligned} \]

So \(X_{b_0}=B\) is the unique farthest point from \(X_{a_0}=A\) among the points in \(S\) and vice versa. Thus, we have that for all \(j \in [n]\), the unique farthest point from \(X_j\) in \(S\) is \(X_{g(j)}\). Now, similarly to the argument at the end of the proof of Theorem 1.2, by slightly perturbing the points \(X_1,X_2,\ldots,X_n\) (not necessarily having them on \(C\)), we can also ensure that all the distances \(\|X_i-X_j\|\) are distinct. This completes the proof of the lemma. \(\square\)

We are now ready to prove Theorem 4.1.

Proof of Theorem 4.1. Suppose that \(g\) is a max-realizable function. From the proof of Lemma 2.1 we see that \(G_g\) does not have cycles of length more than two. By Lemma 2.3 there is a partition \(G_g=F_0 \cup F_1 \cup \cdots \cup F_m\) for some \(m \ge 0\) such that any edge in \(G_g\) either goes from \(F_i\) to \(F_{i-1}\) for some \(1 \le i \le m\) or from \(F_0\) to \(F_0\). As in the proof of Lemma 4.3, \(G_g[F_0]\) is a union of disjoint 2-cycles. Let those cycles be \(C_1,C_2,\ldots,C_s\) for some \(s \ge 1\). Define \(H_i\) in the same way as in Lemma 4.3. Again as in the proof of that lemma we know that \(H_i\) are disjoint and \(H_g[H_i]\) are all disconnected from each other. Now consider the unit circle \(S^1\). Let \(A_1,A_2,\ldots,A_s \in S^1\) and \(B_1,B_2,\ldots,B_s \in S^1\) be arbitrary such that all of the \(2s\) points are distinct and \(\|A_i-B_i\|\) is a diameter of \(S^1\) for all \(i\). Now, let \(\epsilon\) be sufficiently small. For any \(1 \le i \le s\), by Lemma 4.3 we can select points \(X_j \in B_{\epsilon}(A_i) \cup B_{\epsilon}(B_i)\) for all \(j \in H_i\) such that the farthest point from \(X_j\) among the points \(\{X_{j’} \mid j’ \in H_i\}\) is \(X_{g(j)}\).

Note that \(\|A_i-B_i\| > \|A_i-B_j\|\) for any \(i \ne j\). This means that we can certainly pick a sufficiently small \(\epsilon\) so that for any \(i \ne j\), if \(E \in B_{\epsilon}(A_i)\), \(F \in B_{\epsilon}(B_i)\), \(G \in B_{\epsilon}(A_j) \cup B_{\epsilon}(B_j)\), then \(\|E-F\| > \|E-G\|\). This will ensure that for any \(j \in [n]\), the farthest point from \(X_j\) among the points \(\{X_{j’} \mid j’ \in [n]\}\) is indeed \(X_{g(j)}\). As before by a slight perturbation of the points \(X_1,X_2,\ldots,X_n\) we can also ensure that all the distances \(\|X_i-X_j\|\) are distinct. Thus, we have that \(g\) is max-realizable in \(\mathbb{R}^2\). This completes the proof. \(\square\)

If \((X,d)\) is a metric space, we will define a function \(f : [n] \to [n]\) without fixed points to be min-realizable in \((X,d)\) if there are points \(A_1,A_2,\ldots,A_n \in X\) such that all distances \(d(A_i,A_j)\) are distinct for all different pairs \(\{i,j\}\) with \(i \ne j\), and for any distinct \(i,j \in [n]\), we have that \(d(A_i,A_{f(i)}) \le d(A_i,A_j)\). Define \(f\) to be min-realizable if it is min-realizable in some metric space. Theorem 4.1 tells us that a max-realizable function \(g\) is not very interesting and may suggest that a realizable pair of functions \((f,g)\) is realizable in \(\mathbb{R}^2\) if and only if \(f\) is min-realizable in \(\mathbb{R}^2\). This is however not the case. In fact, one can check that every min-realizable function \(f\) with \(|\operatorname{dom} f|=6\) is also min-realizable in \(\mathbb{R}^2\). However, there is a realizable pair \((f,g)\) that is not realizable in \(\mathbb{R}^2\) with \(|\operatorname{dom} f|=6\). We show this in the next proposition. We also note that, using the same method as in the proof of Theorem 1.1, we can show that the set of min-realizable functions is the same as the set of max-realizable functions and those are precisely the functions \(f\) from \([n]\) to itself without fixed points such that \(G_f\) has no cycles of length greater than two.

Proposition 4.4. Let \(f,g : [6] \to [6]\) be defined as follows: \(f(i)=6\) for \(i \in [5]\), \(f(6)=1\), \(g(i)=1\) for \(i=2,3,4,5\), \(g(1)=g(6)=2\). Then \((f,g)\) is a realizable pair that is not realizable in \(\mathbb{R}^2\).

Proof. It is easy to see that \((f,g)\) is a nice pair and hence a realizable pair. Suppose that it is realizable in \(\mathbb{R}^2\). Let \(X_1,X_2,\ldots,X_6 \in \mathbb{R}^2\) be an example that realizes \((f,g)\), where \(X_i\) corresponds to \(i\) for all \(i \in [6]\). We may assume that \(X_6=O=(0,0)\) is the coordinate origin. We have that, by Proposition 3.1, for any distinct \(i,j \in [5]\), \(\angle X_iOX_j > \pi/3\). Suppose that ray \(OX_i\) meets \(S^1\) at \(Y_i\) for \(i \in [5]\), where \(S^1\) is the unit circle. We may assume that \(i_0=1\) and \(i_0,i_1,\ldots,i_4\) is a permutation of \([5]\) such that \(Y_{i_0},Y_{i_1},\ldots,Y_{i_4}\) appear on \(S^1\) clockwise in that order. Let \(T\) be the point on ray \(OX_1\) such that \(\|O-T\|=\|O-X_{i_4}\|\). Since \(\|O-X_1\| < \|O-X_{i_4}\|\) we have that \(X_1\) lies in the interior of segment \(OT\). Since \(\|X_{i_1}-O\| < \|X_{i_1}-X_1\|\), we also know that \(\angle X_{i_1}X_1O < \pi/2\) and hence \(\|X_{i_1}-X_1\| < \|X_{i_1}-T\|\). Now, let \(\alpha_j=\angle X_{i_j}OX_{i_{j+1}}\) for \(j=0,1,\ldots,4\) where \(i_5=i_0\). Since \(\sum_{i=0}^{4}\alpha_i=2\pi\) and \(\alpha_i > \pi/3\) for all \(i\), we have that \(\alpha_0+\alpha_4=2\pi-\alpha_1-\alpha_2-\alpha_3 < \pi\). Now, by the cosine theorem, we have that

\[ \begin{aligned} \|X_{i_1}-T\|^2 &=\|O-X_{i_1}\|^2+\|O-T\|^2-2\|O-T\|\cdot\|O-X_{i_1}\|\cos\alpha_0\\ &<\|O-X_{i_1}\|^2+\|O-X_{i_4}\|^2-2\|O-X_{i_4}\|\cdot\|O-X_{i_1}\|\cos(\alpha_0+\alpha_4)\\ &=\|X_{i_1}-X_{i_4}\|^2. \end{aligned} \]

But since \(g(i_1)=1\), we have that \(\|X_{i_1}-X_1\| > \|X_{i_1}-X_{i_4}\| > \|X_{i_1}-T\| > \|X_{i_1}-X_1\|\), which is a contradiction. This completes the proof. \(\square\)

Notice that if \(k\) is fixed and \(f\) is a function from \([n]\) to itself, then similarly to the proof of the upper bound in Theorem 1.2, if there is a vertex of \(G_f\) with large enough in-degree (depending on \(k\)), we know that \(f\) is not min-realizable in \(\mathbb{R}^k\). However, having large in-degree is not the only obstacle. To show this, we will first define the complete upward binary tree of depth \(s\) to be the tree \(B^s\), where the vertex set is \(\{(i,j) \mid 0 \le i \le s, 1 \le j \le 2^i\}\) and the edge set consists of edges \((i+1,2j-1) \to (i,j),(i+1,2j) \to (i,j)\) for all \(0 \le i \le s-1\), \(1 \le j \le 2^i\). We define the level of vertex \((i,j) \in B^s\) to be \(i\). Notice that no vertex in \(B^s\) has in-degree more than two. We now state the following theorem.

Theorem 4.5. For any positive integer \(k\), there is a large enough \(s(k)\) such that the following holds. If \(f\) is a function from \([n]\) to itself for some \(n \in \mathbb{N}\), then for any \(t \ge s(k)\) if \(G_f\) has a copy of \(B^t\), we have that \(f\) is not min-realizable in \(\mathbb{R}^k\).

To prove this, we will first need a few lemmas. The following lemma gives a bound on the number of points in a ball such that no two points are close to each other. For any \(A \in \mathbb{R}^k\) and positive real number \(r\), let \(B_r(A)\) denote the open ball in \(\mathbb{R}^k\) with radius \(r\) centered at \(A\).

Lemma 4.6. Let \(k\) be a fixed positive integer. For any real \(r > 1\) and \(A \in \mathbb{R}^k\), if \(n > (2r+1)^k\) is a positive integer and \(X_1,X_2,\ldots,X_n \in B_r(A)\), then there are distinct \(i,j\) such that \(\|X_i-X_j\| < 1\).

Proof. Suppose that for some \(r > 1\), \(A \in \mathbb{R}^k\), points \(X_1,X_2,\ldots,X_n \in B_r(A)\) are such that \(\|X_i-X_j\| \ge 1\) for all distinct \(i,j \in [n]\). We have that \(B_{1/2}(X_i)\) are all disjoint and are all subsets of \(B_{r+1/2}(A)\). Let \(\alpha\) denote the \((k\)-dimensional) volume of an open ball in \(\mathbb{R}^k\) with radius 1/2. We have that

\[ (2r+1)^k\alpha = \operatorname{Vol}(B_{r+1/2}(A)) \ge \operatorname{Vol}\left(\bigcup_{i=1}^{n}B_{1/2}(X_i)\right) = n\alpha, \]

where the volumes are \(k\)-dimensional. So \(n \le (2r+1)^k\), which completes the proof. \(\square\)

The next lemma will give a bound on the number of points that satisfy certain properties on minimum distances. It is essentially a generalization of the argument in the proof of the upper bound in Theorem 1.2.

Lemma 4.7. Let \(k\) be a positive integer. Then there is a real number \(B_k \ge 1\) such that the following holds. If \(P,X_1,X_2,\ldots,X_n \in \mathbb{R}^k\) are such that \(\|P-X_i\| > 6\) for all \(i\) and \(\|P-X_i\| < \|X_i-X_j\|+1\) for any distinct \(i,j\), then \(n \le B_k\).

For \(k=1\), it is trivial, so suppose that \(k \ge 2\). Let \(P,X_1,X_2,\ldots,X_n \in \mathbb{R}^k\) be as above for some \(n \in \mathbb{N}\). We may assume that \(P\) is the coordinate origin. Now, let ray \(\|P-X_i\|\) meet \(S^{k-1}\) at \(Y_i\) for each \(i\). We will show that for any distinct \(i,j\), \(\cos(\angle X_iPX_j) < 2/3\). We may assume that \(i=1\), \(j=2\) and let \(a=\|P-X_1\|\), \(b=\|P-X_2\|\), \(c=\|X_1-X_2\|\). We may also assume that \(a \ge b\). Note that \(c > a-1\). Now we have

\[ \cos(\angle X_iPX_j) = \frac{a^2+b^2-c^2}{2ab} < \frac{a^2+b^2-(a-1)^2}{2ab} = \frac{b^2+2a-1}{2ab} < \frac{1}{2}+\frac{1}{b} \le \frac{2}{3}, \]

since \(b \ge 6\). Thus, since \(\angle Y_iPY_j = \angle X_iPX_j\), we have that \(\angle Y_iPY_j > \arccos(2/3)\). Let \(\alpha = \frac{\arccos(2/3)}{2}\). Let \(v_i=\overrightarrow{PY_i}\) for each \(i\). Now, by (5) we have that the hyperspherical caps \(C_{v_i,\alpha}\) in \(S^{k-1}\) are all disjoint and hence

\[ A_{k-1} \ge \operatorname{Area}\left(\bigcup_{i=1}^{n}C_{v_i,\alpha}\right)=\sum_{i=1}^{n}\operatorname{Area}(C_{v_i,\alpha})=nA_{k-1,\alpha}, \]

where the areas are \((k-1)\)-dimensional. Thus, taking \(B_k=\frac{A_{k-1}}{A_{k-1,\alpha}}\) gives the desired result.

Now we prove Theorem 4.5.

Proof of Theorem 4.5. Since \(B^t \le B^{t+1}\), it is enough to show that there is a large enough \(t\) such that if \(f\) is a min-realizable function and \(G_f\) has a copy of \(B^t\), then \(f\) is not min-realizable in \(\mathbb{R}^k\). Assume the contrary. Suppose that \(t \in \mathbb{N}\) is large. We can pick points \(X_{i,j} \in \mathbb{R}^k\) with \(0 \le i \le t\), \(j \in [2^i]\) such that all pairs of points have distinct distances and for any \(0 \le i \le t-1\), \(j \in [2^i]\), \(X_{i,j}\) is the closest point in \(S=\{X_{i,j} \mid 0 \le i \le t, j \in [2^i]\}\) to \(X_{i+1,2j-1}\) and the closest point in \(S\) to \(X_{i+1,2j}\). Suppose that \(h : E(B^t) \to \mathbb{R}\) is defined such that if \(e \in E(B^t)\) is an edge such that \(e=(i_1,j_1) \to (i_2,j_2)\), then \(h(e)=\|X_{i_1,j_1}-X_{i_2,j_2}\|\). Also, define \(g : B^t\backslash\{(0,1)\} \to B^t\) such that for any \(0 \le i \le t-1\), \(1 \le j \le 2^i\), \(g((i+1,2j-1))=g((i+1,2j))=(i,j)\). Now we may sort the edges in \(E(B^t)\) in order \(e_1,e_2,\ldots,e_{2^{t+1}-2}\) such that \(h(e_1),h(e_2),\ldots,h(e_{2^{t+1}-2})\) is a strictly increasing sequence. For convenience, let \(p=2^{t+1}-2\). Now, for each \(l \in [p]\), let \((i_l,j_l)\) be the head of edge \(e_l\) (the edge starts from vertex \((i_l,j_l)\)).

Suppose that \(l\) is such that \(i_l > 1\). Then consider the directed path in \(B^t\) \((i_l,j_l)=x \to g(x) \to g^{(2)}(x) \to \cdots \to g^{(i_l)}(x)=(0,1)\), where \(g^{(s)}\) is \(g\) applied \(s\) times. By considering the point in \(\mathbb{R}^k\) corresponding to \(g^{(s)}(x)\) for \(1 \le s \le i_l-1\), we have that \(h(g^{(s)}(x)g^{(s+1)}(x)) < h(g^{(s-1)}(x)g^{(s)}(x))\). Therefore, in the sequence \(e_1,e_2,\ldots,e_p\) all of the edges on the path from \((i_l,j_l)\) to \((0,1)\) other than \(e_l\) appear before \(e_l\). For convenience, let \(P=X_{0,1}\). For any \(1 \le l \le p\), let \(T_l\) be the graph consisting of edges \(e_1,e_2,\ldots,e_l\) and whose vertex set is the union of the vertices in \(e_1,e_2,\ldots,e_l\). Also, let \(T_0\) be the graph with no edges and whose only vertex is \((0,1)\). From above we can see that \(T_l\) has exactly one more edge and one more vertex than \(T_{l-1}\) for \(1 \le l \le p\). We shall now prove the following claim.

Claim. For any integers \(1 \le m < r \le p\), we have that if \(r-m > (4t+1)^k\) then \(h(e_r) \ge 2h(e_m)\).

Proof of Claim. Suppose that \(h(e_r) < 2h(e_m)\). For each \(1 \le l \le r-m\), let \(P_l=X_{i_{m+l},j_{m+l}}\). We have that the closest point to \(P_l\) in \(S\) is of distance \(h(e_{m+l})\) to \(P_l\) so for any \(l,q\), we have that \(h(e_m) < \|P_l-P_q\|\). Suppose that \(1 \le l \le r-m\). Since \(P_l\) corresponds to vertex \(w=(i_{m+l},j_{m+l})\), consider \(w \to g(w) \to \cdots \to g^{(i_{m+l})}(w)=(0,1)\). By the above, we know that \(h(g^{(s)}(w)g^{(s+1)}(w)) \le h(wg(w))=h(e_{m+l}) \le h(e_r) < 2h(e_m)\) for all \(0 \le s \le i_l-1\). By the triangle inequality,

\[ P_lP \le \sum_{s=0}^{i_l-1} h(g^{(s)}(w)g^{(s+1)}(w)) < i_l2h(e_m) \le 2th(e_m). \]

Thus, we have that \(P_l \in B_{2th(e_m)}(P)\) for all \(l\). Applying Lemma 4.6 scaled with a factor of \(h(e_m)\), we have that \(r-m \le (4t+1)^k\). This proves the claim. \(\square\)

Consider the process of starting with an empty graph with vertex set the same as \(B^t\) and adding edges \(e_1,e_2,\ldots,e_p\) one by one. We may assume that \(t\) is odd and let \(t=2d+1\). Suppose that \(e_s\) is the first edge whose head is on level \(d\). By the above, we know that \(i_l < d\) for any \(1 \le l \le s-1\). Now suppose that \((i_s,j_s)=w_d \to w_{d-1} \to \cdots \to w_0=(0,1)\) is the directed path in \(B^t\) from \((i_s,j_s)\) to \((0,1)\). For each \(1 \le l \le d\), let \(y_l\) be the vertex in \(B^t\) such that \(y_l \to w_{l-1}\) is an edge in \(B^t\) but \(y_l \ne w_l\). Consider the sets

\[ S_l = \{v \in B^t \mid \text{the directed path from } v \text{ to } (0,1) \text{ in } B^t \text{ passes through } y_l\}, \]

for \(1 \le l \le d\). The edges added so far have no vertex on a level greater than \(d\). Thus, for each \(l\), we can pick a vertex \(v_l \in S_l\) of the highest level (that is still at most \(d+1\)) such that \(v_l \to g(v_l) \notin E(T_s)\) but \(g(v_l) \in T_s\). For each \(1 \le l \le d\), let \(H_l\) be the induced subgraph of \(B^t\) on the set \(\{g(v_l)\} \cup \{v \in B^t \mid g^{(i)}(v)=v_l \text{ for some } 0 \le i < d/B_k – 1\}\), where \(B_k\) is defined as in Lemma 4.7. By construction, \(H_l\) are edge-disjoint graphs. From the claim we see that adding at least \((4t+1)^k+1\) edges means that we have to at least double the \(h\) function. Applying this \(t\) times means that adding at least \((4t+1)^{k+1} > t((4t+1)^k+1)\) edges we have to multiply our \(h\) function by at least \(2^t\) times. Let \(s_i=s+i(4t+1)^{k+1}\) for \(0 \le i \le t\). Notice that \(s < 2^{d+1}\) and hence \(t(4t+1)^{k+1}+s < 2^t+2^{d+1} < p\) for sufficiently large \(t\) since exponential beats polynomial. This means that \(s_t < p\) for large \(t\).

Define \(H_{l,i}=H_l \cap T_{s_i}\) for \(0 \le i < d/B_k\), \(l \in [d]\). Notice that \(H_{l,0}\) consists of just the vertex \(g(v_l)\). Now, say that \(H_l\) is \(i\)-good for \(1 \le i < d/B_k-1\), \(l \in [d]\) if for any vertex \(v \in H_l\backslash H_{l,i-1}\) such that \(g(v) \in H_{l,i-1}\), we have that \(v \in H_{l,i}\). Essentially this means that all the neighbouring vertices to \(H_{l,i-1}\) are added to \(H_{l,i}\). Now suppose that \(i\) is fixed. We will show that there are at most \(B_k\) of the graphs \(H_l\) that are not \(i\)-good. Let \(S \subset [d]\) be the set of indices such that for each \(l \in S\), we have that \(H_l\) is not \(i\)-good. That means that for each \(l \in S\), there is some vertex \(x_l \in H_l\backslash H_{l,i-1}\) such that \(g(x_l) \in H_{l,i-1}\) and \(x_l \notin H_{l,i}\). Now suppose that \(Q_l,R_l\) are the points in \(\mathbb{R}^k\) corresponding to \(x_l,g(x_l)\) respectively. By the definition of \(s_i\) we have that \(h(e_m) > 2^t h(e_{s_i-1})\) for any \(m \ge s_i\) and therefore \(\|Q_l-R_l\| > 2^t h(e_{s_i-1})\). Since \(g(w_l) \in H_{l,i-1}\), we know that similarly to above, by the triangle inequality, \(\|R_l-P\| \le th(e_{s_i-1})\). For large enough \(t\), we have that \(2^t > 7t\) and for any disjoint \(l_1,l_2 \in S\), we have that

\[ \|Q_{l_1}-Q_{l_2}\| > \|Q_{l_1}-R_{l_1}\| \ge \|Q_{l_1}-P\|-\|P-R_{l_1}\| \ge \|Q_{l_1}-P\|-th(e_{s_i-1}), \]

and we also have that for any \(l \in S\)

\[ \|Q_l-P\| \ge \|Q_l-R_l\|-\|R_l-P\| > 6th(e_{s_i-1}). \]

Thus, we can apply Lemma 4.7 scaled by a factor of \(th(e_{s_i-1})\) to conclude that \(|S| \le B_k\).

Let \(m\) be the largest integer such that \(m < d/B_k < t\). Clearly, \(m \ge d/B_k-1\) and by the above, we have that for any \(i\), at most \(B_k\) of the \(H_l\) are not \(i\)-good. Therefore, there must be some \(l’ \in [d]\) such that \(H_{l’}\) is \(i\)-good for all \(1 \le i \le m\). Notice that, by induction on \(j\), if \(H_l\) is \(i\)-good for \(1 \le i \le j\), then we must have that \(H_{l,j}\) must contain all vertices in the set \(\{g(v_l)\} \cup \{v \in H_l \mid g^{(j’)}(v)=v_l \text{ for some } 0 \le j’ \le j-1\}\). This means that \(H_{l’}=H_{l’,m}\). From \(e_s\) to \(e_{s_m}\) we have added at most \(m(4t+1)^{k+1} \le d(8d+5)^{k+1}\) edges. But we have added all the edges of \(H_{l’}\), which there are more than \(2^{m-1} > 2^{d/B_k-2} > d(8d+5)^{k+1}\) for large enough \(d\). This gives a contradiction which completes the proof of the theorem. \(\square\)

We have therefore shown that having a large in-degree is not the only obstacle to being min-realizable in \(\mathbb{R}^k\). Ideally, we want to find, if possible, a stronger condition for being min-realizable in \(\mathbb{R}^k\) or at least in \(\mathbb{R}^2\). Therefore, we leave with the following two open problems:

Problem 4.8. For any given \(k\), classify all the functions that are min-realizable in \(\mathbb{R}^k\).

Problem 4.9. For any given \(k\), classify all the realizable pairs of functions that are realizable in \(\mathbb{R}^k\).

Conflict of interest

The author declares no conflict of interest.

References:

  1. B. Bollobás. Combinatorics: Set Systems, Hypergraphs, Families of Vectors, and Combinatorial Probability. Cambridge University Press, Cambridge, UK, 1986.
  2. H. T. Croft. Personal communication. Personal communication, 2022.
  3. S. Li. Concise formulas for the area and volume of a hyperspherical cap. Asian Journal of Mathematics and Statistics, 4:1–9, 2011.
  4. L. Liberti, C. Lavor, N. Maculan, and A. Mucherino. Euclidean distance geometry and applications. SIAM Review, 56(1):3–69, 2014. https://doi.org/10.1137/120875909.
  5. K. J. Swanepoel. Combinatorial distance geometry in normed spaces. In G. Ambrus, I. Bárány, K. J. Böröczky, G. Fejes Tóth, and J. Pach, editors, New Trends in Intuitive Geometry, pages 407–458. Springer Berlin Heidelberg, Berlin, Heidelberg, 2018. https://doi.org/10.1007/978-3-662-57413-3_17.
  6. Y. Zhao and S.-H. Teng. Combinatorial and spectral aspects of nearest neighbor graphs in doubling dimensional and nearly-Euclidean spaces. Theoretical Computer Science, 410(11):1081–1092, 2009. https://doi.org/10.1016/j.tcs.2008.10.032.