Thomas Jefferson High School for Science and Technology, Virginia, USA and ~[email protected] California State University Channel Islands, California, USA and ~[email protected] Montgomery Blair High School, Silver Spring, Maryland, USA and ~[email protected] Department of Computer Science, University of Maryland, College Park, USA and ~[email protected] Department of Computer Science, University of Maryland, College Park, USA and ~[email protected]://orcid.org/0000-0002-5704-312X Mount Holyoke College, Massachusetts, USA and ~[email protected] Department of Computer Science, University of Maryland, College Park, USA and ~[email protected] Princeton University, New Jersey, USA and ~[email protected] Department of Computer Science, University of Maryland, College Park, Maryland, USA and https://www.cs.umd.edu/~mount/[email protected]://orcid.org/0000-0002-3290-8932 \CopyrightH. Banerjee, C. I. Day, M. Hunleth, S. Hwang, A. H. Gezalyan, M. Golovatskaia, N. Parepally, L. Wang, and D. Mount \ccsdesc[500]Theory of computation Computational geometry
Acknowledgements.
The REU grant CNS-2150382 for REU-CAAR funded part of this work. \hideLIPIcsOn The Heine-Borel Property and Minimum Enclosing Balls
Abstract
In this paper, we contribute a proof that the problem of determining the minimum radius balls over metric spaces with the Heine-Borel property is always LP-type. Additionally, we prove that weak metric spaces, those without symmetry, also have this property if we fix the direction in which we take their distances from the centers of the balls. We use this to prove that the minimum radius ball problem is also LP-type in the Thompson metrics and Funk weak metric. We finally examine the LP algorithm and explicit primitives for computing the minimum radius ball in the Hilbert metric.
keywords:
Hilbert metric, Thompson metric, Heine-Borel property, convexity, LP-type problems1 Introduction
The concept of an LP-type problem originates with the work of Micah Sharir and Emo Welzl in 1992 in their paper "A combinatorial bound for linear programming and related problems"[26]. Since then, a variety of problems have been shown to be LP-type, including minimum radius balls in the Euclidean metric [17] and spaces with Bregman divergences [18], finding the closest distance between two convex polygons [17], various game-theoretic games [11] such as simple stochastic games and parity games. The analysis of LP-type problems has been a continuous area of study in computational geometry since their inception. We contribute to this by proving that determining the minimum radius ball in any metric space satisfying the Heine-Borel property is LP-type. We provide an example with the Hilbert and Thompson metrics. We also show that this holds for weak metric spaces, that is, where the distance function fails to be symmetric.
The Hilbert metric originates from the work of David Hilbert in 1895 in relation to Hilbert’s fourth problem [12]. It presents a non-Euclidean metric in which the triangle inequality is not strict. The Hilbert metric generalizes the Cayley-Klein model of hyperbolic geometry to arbitrary convex bodies in an -dimensional space. Definitions will be given in Section 2. Given a convex body, , the Hilbert metric has many desirable properties, such as the fact that straight lines are geodesics and are preserved under projective transformations. In the probability simplex, it provides a natural distance between discrete probability distributions, as shown by the works of Nielsen and Sun [20, 21]. For an excellent resource on Hilbert geometry, see "From Funk to Hilbert Geometry" or the "Handbook of Hilbert Geometry", both by Papadopoulos and Troyanov[23, 22].
The Hilbert metric has seen recent use in a diverse set of fields, especially in that of convexity approximation. This is in particular due to its relationship with Macbeath regions (which are equivalent to Hilbert balls up to a scaling factor) [1, 2] and the flag approximability of polytopes [29]. Other fields in which the Hilbert metric has been used are quantum information theory on convex cones defined by various operators[24], machine learning in the form of clustering and graph embeddings [20, 21], optimal mass transport [5], and a variety of situations in real analysis [13]. Due to its many uses, various algorithms from classical computational geometry have been modified for use in the Hilbert metric, including Voronoi diagrams [10, 4] and Delaunay triangulations [9]. We expand on these works by contributing an algorithm for minimum enclosing balls in the Hilbert polygonal geometry.
The Thompson metric was defined by A. C. Thompson in 1963 as an alternative to the Hilbert metric for its applications in analysis[27]. Like the Hilbert, it provides a metric space over convex bodies and has a similar geometry. Its primary uses are in analysis, in particular as a metric on cones [6, 14, 15, 16]. We contribute a proof that minimum radius balls in this metric are LP-type. Additionally, we contribute the fact that Thompson balls are, like Macbeath Regions, also equivalent to Hilbert balls up to a scaling factor, and therefore induce the same topology on convex bodies.
The Funk weak metric was defined by Paul Funk in 1929 [8]. The Funk metric is a weak metric space that can be used to define both the Hilbert and the Thompson metrics, and is often studied in their context [22, 28] and in the context of flags of polytopes [7]. Because the Funk metric is non-symmetric, it induces a reverse metric called the reverse Funk metric. We contribute a proof that the minimum radius ball problem in these weak metrics are LP-type.
2 Preliminaries
2.1 Metric Spaces
A metric space is the generalization of a distance on a set . It is a fundamental concept in geometry, real/complex analysis, and topology. We define it here:
Definition 2.1 (Metric Space).
The pair is a metric space if, for all :
-
1.
iff
-
2.
-
3.
When all of the above properties are satisfied except for symmetry, the space is called a weak metric. Given a metric space, , the closed ball of radius around a point generalizes the Euclidean idea of a circle to an arbitrary metric space. We define it here:
Definition 2.2 (Closed Ball).
A closed ball around a point in a metric space of radius is defined:
See Figure 1 for the closed balls in the four mentioned metrics.
A large set of metric spaces have a useful property known as the Heine-Borel property. A metric space is said to have the Heine-Borel property property if every closed and bounded set in the metric space is compact [30].
2.2 The Hilbert and Thompson Metrics, and the Funk Weak Metric
The Hilbert and Thompson metrics, and the Funk weak metrics, are defined on the points in the interior of a convex body in , where is a closed and bounded convex set. Unless otherwise stated, we assume that is a convex polygon with edges. We let refer to the boundary of . Given any pair of points and within the interior of , we define to be the cord of through those two points, and to be the directed ray from through . Unless otherwise stated, when we take , we mean the interior of .

Definition 2.3 (Funk weak metric).
Given two points in a convex polygon in such that intersects at a point on , we define the Funk weak metric to be:
where .
The above definition is also sometimes called the forward Funk metric. Note however that the Funk weak metric is an asymmetric metric. Therefore, its reverse, the reverse Funk metric, is defined to be . The Hilbert metric can be defined as the average of the forward and reverse Funk metrics.
Definition 2.4 (Hilbert metric).
Given two distinct points in a convex polygon in , let and denote the endpoints of the chord on , so that the points lie in order , the Hilbert distance between and , , is:
where .
Since the product in the definition of the Hilbert metric is the cross ratio, which is preserved under projective transformations, it follows that the Hilbert metric is invariant under projective transformations[19]. It is also worth noting that straight lines are geodesics in the Hilbert metric, though not all geodesics are straight lines, and that the Hilbert metric satisfies all the properties of a metric, including symmetry and the triangle inequality. Nielsen and Shao showed how to algorithmically compute Hilbert balls with the aid of spokes.
Definition 2.5 (Spoke).
Given a spoke through from a vertex of is .
Succinctly, a Hilbert Ball of radius around a point can be constructed by computing all the points that are a distance of away from along the spokes of from the vertices of and forming their convex hull (see Figure 1(c)).
Lemma 2.6 (Nielsen and Shao [19]).
Hilbert balls have at most sides.
The Thompson metric is similar to the Hilbert in its construction. It is the maximum of both the Funk and reverse Funk metrics.
Definition 2.7 (Thompson metric).
Given a bounded closed convex body in and two points , let and denote the endpoints of the chord on , so that the points lie in order , the Thompson distance between and is:
where .
As it is the maximum of the two Funk weak metrics in a convex body, certain facts about this metric are clear.
Lemma 2.8.
Balls in the Thompson metric are convex polygons with sides.
Proof 2.9.
Theorem 2.10.
The topology induced by the Hilbert or Thompson metrics, as well as the Funk weak metrics in a bounded convex domain coincides with the Euclidean topology in that domain.
Proof 2.11.
This is a well known result in the field. For reference, this follows from Theorem in [3] where the authors show that the Hilbert and Euclidean metrics induce the same topology on bounded convex domains in . In addition, refer to Proposition in "From Funk to Hilbert Geometry" for Funk weak metrics.
From this we immediately have the following corollary.
Corollary 2.12.
Any Hilbert or Thompson metric space, as well as any Funk weak metric space, has the Heine-Borel property.
3 Minimum Enclosing Radius Balls and the Heine-Borel Property
We begin by defining several concepts such as the minimum radius ball, and a set of criterion for being an LP-type problem[26].

Definition 3.1 (Minimum Radius enclosing Ball).
A closed ball is a minimum radius enclosing ball of when has radius . Note that in a general metric space, the minimum radius enclosing ball need not exist, nor be unique.
Definition 3.2 (Minimum Ball Property).
A metric space satisfies the minimum ball property if for every finite there exists a minimum radius enclosing ball of .
For an example of a metric space without the minimum ball property see Figure 2. In this situation several closed disks were removed from with the Euclidean distance.
Proposition 3.3.
Let be a metric space. If satisfies the Heine-Borel property, then satisfies the minimum ball property.
Proof 3.4.
For a given finite define:
Note that is bounded below by 0 and is nonempty because is bounded as a consequence of being finite. So the infimum is defined and finite. Thus, to show there exists a ball of minimal radius, we want to show that there exists a ball of radius enclosing . Define the set of centers . For all we have because for all we have and thus as well.
Each is bounded since for any and any , .
We will now show that each is closed. Let and such that , . Then for any , there exists such that . So by the triangle inequality, for any , so . So for any . Thus . So contains all of its limit points and is thus closed.
Define . Since we are assuming the Heine-Borel property and showed each is closed and bounded, each is compact. Because is a decreasing nested sequence of compact sets of with the metric topology, by Cantor’s intersection theorem is nonempty [25].
Fix . Then for any , for all . Thus . We conclude .
Note that the converse does not hold. As a counterexample, any infinite set equipped with the discrete metric does not satisfy the Heine-Borel property, yet it satisfies the minimum ball property. Additionally, note that in the above proof of Theorem 3.3 we did not use the symmetric property of the metric space, only the triangle inequality. As such, given the same definition of a ball Definition 2.2 and Definition 3.1 e.g. fixing the direction of the ball, we contribute the following corollary.
Corollary 3.5.
Let be a weak metric space. If satisfies the Heine-Borel property, then satisfies the minimum ball property.
We now introduce the characterization of an LP-type problem by Sharir and Welzl [26].
Definition 3.6 (LP-type).
A pair is called an LP-type problem if is a finite set and is a function from subsets of to a totally ordered set such that satisfies the following two properties:
Let be a metric space satisfying the minimum ball property. Let have some well-ordering . Take a finite set . We define:
Here, gives us a unique minimum radius enclosing ball of , by taking the minimum center with respect to the well-ordering. We call this ball . Note that if , there may exist other points such that as well; however, defines only one minimum radius enclosing ball. Note also that if then by Proposition 3.10 we can take the lexicographic usual total order and will still be well-defined.
Theorem 3.7.
The problem of finding the minimum radius ball of a set of points in a metric space that satisfies the minimum ball property is LP-type.
Proof 3.8.
To see that satisfies monotonicity, consider a finite set . Let and suppose . Note that and thus . It follows from the definition of that . By the same logic, .
To see that satisfies locality, consider a finite set . Take and such that and . It follows that . Hence, and . Thus, by monotonicity, , and we conclude that .
Note that the only properties of the metric space used for Theorem 3.7 is the minimum ball property, which we’ve shown can also hold for weak metric spaces in Corollary 3.5, and that if then , which still holds for weak metrics so long as the direction of the ball is fixed. As such, we contribute the following corollary.
Corollary 3.9.
Finding the minimum radius ball of a set of points in a weak metric space that satisfies the minimum ball property is LP-type.
Note that a well-ordering is not always necessary and can be replaced with a total ordering, such as a lexicographic ordering.
Proposition 3.10.
If for then the well-order on can be replaced with the lexicographical usual total order from .
Proof 3.11.
Recall, the following notation and results from Theorem 3.3.
We saw that each is closed and bounded with respect to the metric topology. Thus it is compact in the standard (metric) topology in , and thus , the set of centers of minimum radius enclosing balls is also nonempty and compact in this topology.
Let be the projection onto the component. Since is compact in the standard topology, its projection onto each component is compact and thus compact in the standard topology on . We want to show that there is a minimal point with respect to the lexicographic order on .
The body is compact, and thus it has a minimal element, .
Then is non-empty and compact (in standard topology) since is compact and is closed.
We similarly recursively define to be the minimal element of and find to be compact for . It follows that is the minimal element of with respect to the lexicographic order.
Corollary 3.12.
The minimum radius ball problem in the Hilbert and Thompson metrics, as well as the Funk weak metrics, is LP-type.
4 Hilbert Radius Minimum Enclosing Ball
We have shown in Corollary 3.12 that the minimum radius enclosing ball problem is LP-type in a Hilbert metric, so we will now focus on how to implement the LP algorithm. By Proposition 3.10 the well-order on can be replaced with the lexicographical usual total order from . This is useful as we can comprehend and compute using the lexicographic total order.
Running an LP algorithm on an LP-type problem requires solving two primitive operations [17]. These are the violation test (given a basis and element , whether ) and basis computations (how to find a basis of ). Instead of a well-order, we will let be the lexicographic order for the Hilbert convex polygons. We need the two following supporting lemmas:
Lemma 4.1.
The combinatorial dimension for minimum Hilbert radius balls is 3.
Proof 4.2.
This follows immediately from the fact that, in general position at most three points defines a Hilbert ball [9](see Lemma 14). This is because Hilbert balls intersect along line segment edges in general position. Three points cannot intersect along the same edge at the same distance without two of them lying along the same spoke.
Lemma 4.3.
Given an sided convex polygon in , the center of the minimum Hilbert radius ball around two points, , can be computed in time .
Proof 4.4.
The balls of minimum radius for a set of two points are always centered on a section of the bisector in the sector directly between the two points. This is because Hilbert balls are polygons and the balls around two points meet at a segment across this sector[19] (see Lemma page ). This piece of the bisector is a line [4]. We binary search the boundary of to determine which edges define this sector, and then use the bisector equation there [9, 4] (see Section 3 in [9]). We choose the lexicographically smallest point along the bisector in this sector to serve as the center of the minimum Hilbert radius ball around points .
Lemma 4.5.
The violation test in the Hilbert metric for radius balls can be computed in time .
Proof 4.6.
Given a basis , we are interested in if . We assume that is not already in . We have two nontrivial cases based on the size of the basis.
Case 1: has two elements . To determine if , it suffices to check whether is contained in the minimum radius ball of . If is contained, then . If is not contained, either the center must move or the radius must increase, so . Since we can compute the center of a point Hilbert ball in time by Lemma 4.3, we can check this case in time.
Case 2: has three elements. In this case, we calculate the center of the Hilbert ball around the three points in time using the algorithm from "Delaunay Triangulations in the Hilbert Metric" [9]. If a center exists, we compute the distance between and the center. If a center does not exist, one of the three elements is contained in a ball defined by the other two, so we check all pairs of elements using Lemma 4.3 in time to find the minimum enclosing ball. We take the resulting ball and check the center’s distance to . Either is in the ball or it is not, in which case must increase because either the radius or center must move.
Lemma 4.7.
The basis computation in the Hilbert metric for radius balls can be done in time .
Proof 4.8.
Suppose we have a previous basis and a new element that is not contained inside the ball formed by the basis. We would like to compute the basis of . This gives us a few cases. We will consider the non-trivial cases where contains two or three elements. In either situation, we compute the minimum enclosing balls of all pairs and triples of points in , and check for containment of the remaining points in those balls. This can be done in as described in Case 3 of Lemma 4.5.
Theorem 4.9.
Hilbert minimum radius balls, of points, can be computed in time .
Proof 4.10.
This follows directly from the running time of our primitive operations and Theorem 7 and Corollary 8 from Sharir and Welzl’s "A combinatorial bound for linear programming and related problems"[26].
5 Conclusion
In this paper, we contributed a criterion for showing that minimum radius balls are LP-type. This criterion being that finite sets in the metric space always have at least one minimum radius ball. We showed that if a metric space, or weak metric space, has the Heine-Borel property, it has this property. We used this to contribute a minimum radius ball algorithm for the Hilbert metric and proved that the minimum radius ball problem is LP-type for the Thompson metric and Funk weak metrics.
References
- [1] Ahmed Abdelkader and David M. Mount. Economical Delone sets for approximating convex bodies. In Proc. 16th Scand. Workshop Algorithm Theory, pages 4:1–4:12, 2018. doi:10.4230/LIPIcs.SWAT.2018.4.
- [2] Ahmed Abdelkader and David M Mount. Convex approximation and the Hilbert geometry. In 2024 Symposium on Simplicity in Algorithms (SOSA), pages 286–298. SIAM, 2024.
- [3] AF Beardon. The Klein, Hilbert and Poincaré metrics of a domain. Journal of computational and applied mathematics, 105(1-2):155–162, 1999.
- [4] Madeline Bumpus, Caesar Dai, Auguste H. Gezalyan, Sam Munoz, Renita Santhoshkumar, Songyu Ye, and David M. Mount. Software and analysis for dynamic Voronoi diagrams in the Hilbert metric, 2023. arXiv:2304.02745.
- [5] Yongxin Chen, Tryphon Georgiou, and Michele Pavon. Entropic and displacement interpolation: A computational approach using the Hilbert metric. SIAM J. Appl. Math., 76:2375–2396, 2016. doi:10.1137/16M1061382.
- [6] Ştefan Cobzaş and Mircea-Dan Rus. Normal cones and Thompson metric. Topics in Mathematical Analysis and Applications, pages 209–258, 2014.
- [7] Dmitry Faifman, Constantin Vernicos, and Cormac Walsh. Volume growth of Funk geometry and the flags of polytopes. arXiv preprint arXiv:2306.09268, 2023.
- [8] Paul Funk. Über geometrien, bei denen die geraden die kürzesten sind. Mathematische Annalen, 101(1):226–237, 1929.
- [9] Auguste H. Gezalyan, Soo H. Kim, Carlos Lopez, Daniel Skora, Zofia Stefankovic, and David M. Mount. Delaunay triangulations in the hilbert metric. In 19th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2024). Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2024.
- [10] Auguste H. Gezalyan and David M. Mount. Voronoi diagrams in the Hilbert metric. In 39th International Symposium on Computational Geometry (SoCG 2023). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2023.
- [11] Nir Halman. Simple stochastic games, parity games, mean payoff games and discounted payoff games are all lp-type problems. Algorithmica, 49:37–50, 2007.
- [12] D. Hilbert. Ueber die gerade Linie als kürzeste Verbindung zweier Punkte. Math. Annalen, 46:91–96, 1895. doi:10.1007/BF02096204.
- [13] Bas Lemmens and Roger Nussbaum. Birkhoff’s version of Hilbert’s metric and its applications in analysis, 2013. arXiv:1304.7921.
- [14] Bas Lemmens and Mark Roelands. Unique geodesics for Thompson’s metric. Annales de l’Institut Fourier, 65(1):315–348, 2015.
- [15] Bas Lemmens and Mark Roelands. Midpoints for Thompson’s metric on symmetric. Osaka Journal of Mathematics, 54(1):197–208, 2017.
- [16] Yongdo Lim. Geometry of midpoint sets for Thompson’s metric. Linear Algebra and its Applications, 439(1):211–227, 2013.
- [17] Jiří Matoušek, Micha Sharir, and Emo Welzl. A subexponential bound for linear programming. In Proceedings of the eighth annual symposium on Computational geometry, pages 1–8, 1992.
- [18] Frank Nielsen and Richard Nock. On the smallest enclosing information disk. Information Processing Letters, 105(3):93–97, 2008.
- [19] Frank Nielsen and Laetitia Shao. On balls in a Hilbert polygonal geometry. In Proc. 33rd Internat. Sympos. Comput. Geom., pages 67:1–67:4, 2017. (Multimedia contribution). doi:10.4230/LIPIcs.SoCG.2017.67.
- [20] Frank Nielsen and Ke Sun. Clustering in Hilbert’s projective geometry: The case studies of the probability simplex and the elliptope of correlation matrices. In Frank Nielsen, editor, Geometric Structures of Information, pages 297–331. Springer Internat. Pub., 2019. doi:10.1007/978-3-030-02520-5_11.
- [21] Frank Nielsen and Ke Sun. Non-linear embeddings in Hilbert simplex geometry. In Topological, Algebraic and Geometric Learning Workshops 2023, pages 254–266. PMLR, 2023.
- [22] Athanase Papadopoulos and Marc Troyanov. From Funk to Hilbert geometry. In Handbook of Hilbert geometry, volume 22 of IRMA Lectures in Mathematics and Theoretical Physics, pages 33–68. European Mathematical Society Publishing House, 2014. doi:10.4171/147-1/2.
- [23] Athanase Papadopoulos and Marc Troyanov. Handbook of Hilbert geometry, volume 22 of IRMA Lectures in Mathematics and Theoretical Physics. European Mathematical Society Publishing House, 2014. doi:10.4171/147.
- [24] David Reeb, Michael J. Kastoryano, and Michael M. Wolf. Hilbert’s projective metric in quantum information theory. J. Math. Physics, 52(8), 2011. doi:10.1063/1.3615729.
- [25] Walter Rudin et al. Principles of mathematical analysis, volume 3. McGraw-hill New York, 1964.
- [26] Micha Sharir and Emo Welzl. A combinatorial bound for linear programming and related problems. In STACS 92: 9th Annual Symposium on Theoretical Aspects of Computer Science Cachan, France, February 13–15, 1992 Proceedings 9, pages 567–579. Springer, 1992.
- [27] Anthony C Thompson. On certain contraction mappings in a partially ordered vector space. Proceedings of the American Mathematical Society, 14(3):438–443, 1963.
- [28] Marc Troyanov. Funk and Hilbert geometries from the Finslerian viewpoint. arXiv preprint arXiv:1311.2508, 2013.
- [29] Constantin Vernicos and Cormac Walsh. Flag-approximability of convex bodies and volume growth of Hilbert geometries, 2018. arXiv:1809.09471.
- [30] Robert Williamson and Ludvik Janos. Constructing metrics with the Heine-Borel property. Proceedings of the American Mathematical Society, 100(3):567–573, 1987.