Abstract 1 Introduction 2 Result References Appendix A Alternative proof

Geodesics of Length Less Than πR in a Set of Reach R Are Unique and Continuous with Respect to the Endpoints

André Lieutier ORCID Aix-en-Provence, France    Mathijs Wintraecken ORCID Inria centre d’Université Côte d’Azur, Sophia Antipolis, France
Abstract

Positive reach underpins many results in computational geometry and topology. It is used for triangulation criteria, topological inference, and manifold learning. The geometric properties of these sets have therefore been studied intensely. Here we focus on the shortest paths or minimizing geodesics in these sets. Our main result states that minimizing geodesics of length strictly less than πR in a set of reach R are unique. This in turn implies that such minimizing geodesics are continuous with respect to the endpoints.

Keywords and phrases:
Reach, geodesics, metric geometry
Funding:
Mathijs Wintraecken: Supported by the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 754411. The Austrian science fund (FWF) M-3073. The welcome package from IDEX of the Université Côte d’Azur, ANR-15-IDEX-01. The French National Research Agency (ANR) under grant StratMesh, ANR-24-CE48-1899.
Copyright and License:
[Uncaptioned image] © André Lieutier and Mathijs Wintraecken; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry
Acknowledgements:
We thank Jean-Daniel Boissonnat for discussion and Eddie Aamari for his insight in possible applications. We are indebted to the reviewers for many suggestion and in particular noting that Corollary 10 immediately follows from the results in our submission.
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

Federer [14] introduced the reach of a closed set 𝒮d as the infimum of the distance from 𝒮 to the medial axis ax(𝒮), i.e. the set of points in d for which the closest point in 𝒮 is not unique. Assumptions on the reach (and its local version the local feature size [3]) underpin the correctness of many algorithms in computational geometry and topology. In this paper we consider minimizing geodesics in this space and show that they are both unique and depend continuously on the endpoints if the geodesics are sufficiently short. Moreover, the bound on the length of the minimizing geodesics that implies uniqueness (and therefore continuity) is in fact tight, because it is attained on the sphere.

1.1 Motivation

Triangulation algorithms.

The assumption of positive reach is central to almost all triangulation algorithms, see for example [10, 12, 5], as well as manifold learning, see for example [16, 15, 2, 30]. However these algorithms often consider manifolds of positive reach instead general sets of positive reach. If we want to extend our algorithm beyond the realm of manifolds to more general stratified spaces, starting with “well behaved” sets of positive reach111Sets of positive reach are stratified spaces [14], where the stratification is understood in a weak sense. However, it is not clear that sets of positive reach are triangulable in general or additional assumptions are needed. This having been said, there are compact sets of (arbitrarily large) positive reach that are not (piecewise smoothly/linearly) homeomorphic to a finite simplicial complex, which puts this outside of the realm of computation. or at least sets of which the strata have positive (local [24]) reach understanding the geometry of those sets seems essential.

Metric learning.

Another motivation comes from metric learning. In [1] this is explained as follows:

“In the data analysis area, metric learning refers to the problem of finding a distance d over the space of observations that is relevant for a given task at stake [35, 32]. For instance, in a supervised framework where one is provided with tuples of allegedly similar or dissimilar observations, the goal is to find a distance that is small on the similar tuples and large on the dissimilar ones. There is a wide range of existing methods in the literature, ranging from parametric (LSI [34], MCML [18], LDML [21] among others) to nonparametric (DMLMJ [29], kernel methods [23, 9], to cite a few).

In an unsupervised setting, metric learning aims at finding a metric that takes into account the underlying geometry of the data. That is, it amounts to estimating the shortest-path (or geodesic) distance. Often, this is done via a dimension reduction technique: any low-dimensional embedding of the data gives rise to a new distance over the data in the embedded space. Existing algorithms include PCA, t-SNE [22], MDS [11], Isomap [33], or MVU [4]. See [32] for a thorough overview of the field.”

And indeed in [1] geodesics play a crucial role in establishing optimal bounds.

1.2 Contribution

This paper focusses on the following result:

Theorem 1.

Let 𝒮 be a set of positive reach R, then for any two points a,b𝒮 such that the geodesic distance on 𝒮 satisfies d𝒮(a,b)<πR there is a unique minimizing geodesic in 𝒮 connecting a and b.

We stress that in the context of sets of positive reach a minimizing geodesic is a curve of minimal length connecting the two points. In this paper we only consider minimizing geodesics and therefore will not explicitly repeat “minimizing” everywhere. More generally, a geodesic is a curve such that it is locally a minimizing geodesic (between the endpoints of a subsegment). In particular more than half of great circle on a sphere, is NOT a minimizing geodesic, although they are geodesics in the more general and Riemannian setting.

The following corollary to the main theorem is perhaps even more important for applications:

Corollary 2.

Let 𝒮 be a set of positive reach R, then the geodesic connecting any two points a,b𝒮 is continuous (in the C0 sense) with respect to the endpoints provided that d𝒮(a,b)<πR.

Both results are tight, because the bound is attained on the sphere.

1.3 Previous work

CAT(𝒌) spaces.

The terminology CAT(k) was introduced by Gromov [20] for metric spaces that satisfy some weak form of curvature bound. We’ll now give a rough definition of CAT(k) spaces, but refer to [7] for a precise introduction, see Section II.1. Let (,d) be a geodesic metric space, that is a space where the length between two points is defined as the minimum of all lengths of continuous (rectifiable) curves connecting the two points, i.e. the minimum is attained. Such a minimizing curve is called a geodesic. A geodesic triangle in such a space consists of three points and the geodesics connecting those points. We can then consider a geodesic triangle with the same edge lengths in a (simply connected) space of constant curvature k (that is a sphere, Euclidean space, or hyperbolic space). This triangle is called a comparison triangle. We say that the diameter of a simply connected space of constant curvature is π/k if k>0 and otherwise. We also refer to this as the diameter of the comparison space. This geodesic triangle in satisfies the CAT(k) inequality if the distances between the points on the triangle are less than the corresponding distances between points on the comparison triangle in a space of constant curvature k. If this holds for any geodesic triangle of diameter less than the diameter of the comparison space, then we say that the entire space is CAT(k).

Sets of positive reach as CAT(𝒌) spaces.

Lytchak [25, 26] proved sets of positive reach are CAT(k), for some k. Because in (simply connected) spaces of constant curvature, geodesic triangles with small diameter and one edge length equal to zero consist of two coinciding edges, the uniqueness of sufficiently small geodesics follows directly from Lytchak’s result. However, from a computational perspective the result of Lytchak is ineffective, because we only know that such a constant exists and not what this constant may be.

Another way that this paper distinguishes itself compared to the literature, is that the results are all completely elementary, in the sense that we only need some results by Federer [14] and Euler-Lagrange theory [31].

1.4 Further motivation and future work

Many questions on the geometry of sets of positive reach and the behaviour of geodesics in sets of positive reach of course remain open. Determining the k for which a set of reach R is CAT(k), would be an important next step, which in fact motivated this work to a large extent. We conjecture that k=1/R2.

If we may engage in some speculation, establishing the CAT(k) property would potentially:

  • Help establish bounds on angles between tangent cones of sets of positive reach, beyond the manifold setting, which is in turn essential for stratification learning.

  • Help establish convergence rates for algorithms to compute geodesics in sets of positive reach.

2 Result

2.1 Notation

We’ll denote sets of positive reach by 𝒮 and the closest point projection by π𝒮. We use the notation B(c,r) for a ball in Euclidean spaces with centre c and radius r. Curves are generally denoted by γ and most importantly:

We’ll use Newton’s notation for the derivatives of curves that is, γ˙=ddtγ.

2.2 Uniqueness

The main idea of the proof is the following: Suppose that there are two geodesics γ1 and γ2 connecting two points is not unique then we can move the geodesic γ1 a little in the direction γ2, shortening the geodesic and thus yielding a contradiction. This perturbed geodesic, of course, needs to lie on the set of positive reach, which will be achieved by closest point projection onto the set of positive reach. We commence our proof with a couple of lemmas that will be instrumental in dealing with this projection.

We first recall a convexity result from [6]. We recall that a set C is geodesically convex if for any two points c,cC the geodesic connecting c and c is contained in C.

Corollary 3 (Corollary 1 of [6]).

Let 𝒮d be a closed set with positive reach R>0. Then, for any r<R and any xd then 𝒮B(x,r) is geodesically convex in 𝒮.

Lemma 4.

Let 𝒮 have reach R and assume p,q𝒮 with |pq|2R. Define x=λp+(1λ)q. We have that

d(x,𝒮) =|xπ𝒮(x)|
RR2λ(1λ)|pq|2
λ(1λ)|pq|22R+𝒪((λ(1λ)|pq|22R)2),

with d the Euclidean distance.

Figure 1: Left: The region in which the geodesic connecting p and q lies is indicated in green, the grey dashed circles have radius R. Right: A zoom in on the spindle with the distance from the yellow point (λp+(1λ)q) to the boundary of the spindle indicated in dark green. The geodesic connecting p and q (which is a part of 𝒮) within the spindle is indicated in blue. Because the union of the two dark green line segments (which are almost collinear in the figure, in higher dimensions it is a cone or in other words, the join of a sphere and a point), separates the spindle into two halves and the geodesic is continuous the dark green set intersect the geodesic. This implies that the distance from the grey point to the boundary upper bounds the distance to 𝒮.

Proof.

Corollary 3 implies that the geodesic connecting p and q is contained in the intersection of all balls of radius less than the reach that contain p and q so that in particular the geodesic is contained in the spindle (the intersection of all balls of radius R in Euclidean space that contain p and q), as depicted in Figure 1. This implies in turn that |xπ𝒮(x)| less than or equal to the distance from x to the boundary of the spindle. Let’s restrict ourselves to the plane given by p, q, and π𝒮(x) and consider a circle of radius R with centre c that yields the boundary of the spindle in this plane, see again Figure 1. By the cosine rule have that

|cλp(1λ)q|2=R2+λ2|pq|22Rλ|pq|cosθ,

where cosθ=|pq|2R (the value for θ follows by inspection of the triangle with vertices p, c, and 12(p+q)). So that

|cλp(1λ)q|2 =R2+λ2|pq|2λ|pq|2
=R2(1λ)λ|pq|2.

The first inequality now follows by observing that the distance from x to the spindle is given by R|cλp+(1λ)q|, see Figure 1. The second inequality follows from the standard observation that 1t=1t2𝒪(t2), which in turn follows by Taylor’s theorem.

We’ll need the following corollary of [14, Theorem 4.8(8)]. Theorem 4.8(8) of [14] says the closest point projection π𝒮 at a point x is 11d(x,𝒮)/R-Lipschitz. We therefore immediately have:

Corollary 5.

If γ:[0,]d is a C1 curve, then the length of π𝒮(γ) is upper bounded as follows

length(π𝒮(γ))011d(γ(t),𝒮)/R|γ˙(t)|𝑑t. (1)

The following simple but very useful bound will be instrumental in the proof below.

Lemma 6.

If a and b are two unit vectors we have that

|λa+(1λ)b|2 =1(1λ)λ|ab|2.

For vectors of arbitrary length we have

|λa+(1λ)b|2 =λ|a|2+(1λ)|b|2λ(1λ)|ab|2.

Proof.

We have that for any two unit vectors a,b that:

|λa+(1λ)b|2 =λ2|a|2+(1λ)2|b|2+2λ(1λ)ab (2)
=λ2+(1λ)2+2λ(1λ)ab (using that |a|=|b|=1)
=1(1λ)λ(22ab)
|ab|2 =|a|2+|b|22ab (3)
=22ab (using that |a|=|b|=1)

and thus

|λa+(1λ)b|2 =1(1λ)λ|ab|2.

For a,b of arbitrary length we combine (2) and (3) as follows

|λa+(1λ)b|2 =λ2|a|2+(1λ)2|b|2+λ(1λ)(|a|2+|b|2|ab|2)
=λ|a|2+(1λ)|b|2λ(1λ)|ab|2.

Theorem 1. [Restated, see original statement.]

Let 𝒮 be a set of positive reach R, then for any two points a,b𝒮 such that the geodesic distance on 𝒮 satisfies d𝒮(a,b)<πR there is a unique minimizing geodesic in 𝒮 connecting a and b.

Overview of the proof.

The core idea of the proof is the following: Given two geodesics γ1 and γ2 connecting a,b that are parametrized by arc length we have that λγ1+(1λ)γ2 is shorter than γ1 and γ2 because |λγ˙1+(1λ)γ˙2|<1, if λ(0,1). So222Here abuse notation a little bit because we do not distinguish the notation for a geodesic and its parametrization. if λγ1+(1λ)γ2𝒮 we would find a contradiction, because there would be a curve connecting a and b that would be shorter than a geodesic. The main difficulty of the proof is that λγ1+(1λ)γ2 is generally not in 𝒮, but we need to project on 𝒮 to find a curve that is. The technical difficulty lies with dealing with this projection.

The proof, perhaps surprisingly, also relies on a result from mathematical physics. Consider the Lagrangian of the (real) harmonic oscillator:

HO=|x˙|2|x|2R2

Write SHO for the action, that is

SHO=0τHO𝑑t. (4)

The Euler-Lagrange equation,

ddtx˙=x,

in this case yields

x¨(t)=x(t)R2,

with the familiar solutions c1sin(t/R)+c2cos(t/R)=c4sin(tt0R). We have the following, see [19, Section V], [28] for this specific result333Note that our the Lagrangian of a high dimensional harmonic oscillator (with constant potential) is the sum of one-dimensional harmonic oscillators. and [17] for general theory:

Theorem 7 (Adjusted from [19] and [28]).

The solution to the Euler-Lagrange equation of the harmonic oscillator is a global minimum of the action (4) provided that τ<πR.

This means in particular that:

Corollary 8.

Let c4 be a constant. If τ<πR and x(t) is a function that satisfies x(0)=0 and x(τ)=c4sin(τR), then we have that

SHO(x) =0τ|x˙|2|x|2R2dt
0τ(c42cos2(tR)c42sin2(tR)R2)𝑑t
=0τc42R2cos(2tR)𝑑t
=c422Rsin(2τR).

Proof of Theorem 1.

Because dS(a,b)<πR the geodesic distance between a and b is finite, which means that there exists a path of finite length connecting a and b in 𝒮. Moreover, thanks to the second paragraph of part III, section 1: “Die Existenz geodätischer Bogen in metrischen Räume” in [27], we have that: If there is at least one path between a and b with finite length, then a minimizing geodesic, i.e. a path with minimal length connecting a to b, exists. Therefore the set of minimizing geodesics is not empty.

Let γ1,γ2:[0,]S be two length minimizing paths from a to b, parametrized by arc length, with same length: length(γ1)=length(γ2)=:=dS(a,b).

Denote by ϵ the maximal distance between γ1(t) and γ2(t), i.e.

ϵ:=maxt[0,]|γ1(t)γ2(t)|, (5)

and let tmax[0,] be a parameter for this distance is attained, that is,

d(γ1(tmax),γ2(tmax))=ϵ.

Without loss of generality, we assume that tmax/2.

We now consider the two families of curves

γλ𝔼(t)=λγ1(t)+(1λ)γ2(t)

and

γλ𝒮(t)=π𝒮(γλ𝔼(t)).

We now upper bound the length γλ𝒮(t). By Lemma 4 we have that

d(γλ𝔼(t),𝒮)RR2λ(1λ)|γ1(t)γ2(t)|2.

Using Corollary 5 this yields that

length(γλ𝒮(t))
011(11λ(1λ)|γ1(t)γ2(t)|2/R2)|λγ˙1(t)+(1λ)γ˙2(t)|𝑑t. (6)

We now focus on the second term in the product in the integral.

With Lemma 6 we find the following bound on (6):

length(γλ𝒮(t))0 1(1λ)λ(|γ˙1(t)γ˙2(t)|2)1λ(1λ)|γ1(t)γ2(t)|2/R2dt. (7)

Assuming that (1λ)λ is very small (more precisely we’ll show that the length decreases in first order near λ=0 or λ=1) yields that

0 1(1λ)λ(|γ˙1(t)γ˙2(t)|2)1λ(1λ)|γ1(t)γ2(t)|2/R2dt.
= 0(1+λ(1λ)|γ1(t)γ2(t)|22R2)(112(1λ)λ(|γ˙1(t)γ˙2(t)|2))𝑑t
+𝒪(λ2(1λ)2) (by Taylor)
= 01+λ(1λ)|γ1(t)γ2(t)|22R212(1λ)λ(|γ˙1(t)γ˙2(t)|2)dt
+𝒪(λ2(1λ)2)
= 0112(1λ)λ(|γ˙1(t)γ˙2(t)|2|γ1(t)γ2(t)|2R2)dt
+𝒪(λ2(1λ)2). (8)

Now writing Δ(t)=γ1(t)γ2(t) and thus Δ˙(t)=γ˙1(t)γ˙2(t), this integral (ignoring the higher order terms) takes the form of a familiar Lagrangian integral or action

0𝑑t=0112(1λ)λ(|Δ˙(t)|2|Δ(t)|2R2)dt, (9)

which we recognize (up to global additive and multiplicative factors) as the action integral of the harmonic oscillator. To achieve better bounds we’ll now split this into two integrals

0𝑑t=0/2𝑑t+/2𝑑t.

We’ll only concentrate on the first integral, the second one can be treated in a completely symmetrical manner.

We now invoke Theorem 7 and Corollary 8, with τ=/2, together with (7), (8), and (9), to find that
length(γλ𝒮(t)) 0112(1λ)λ(|γ˙1(t)γ˙2(t)|2|γ1(t)γ2(t)|2R2)dt +𝒪(λ2(1λ)2) =(0/2+/2)(112(1λ)λ(|γ˙1(t)γ˙2(t)|2|γ1(t)γ2(t)|2R2))dt +𝒪(λ2(1λ)2) 2(/212(1λ)λc422Rsin(R))+𝒪(λ2(1λ)2), (the follows because 12(1λ)λ is negative)

where c4 is some constant. This is strictly less than , as long as <πR. This contradicts the assumption that the geodesics have length (which is the sum of the integral from 0 to /2 and the integral from /2 to ), because now we found a curve that is shorter up to first order.

2.3 Continuity

The uniqueness of the geodesics of length less than πR implies continuity for geodesics under the same restriction. The proof of the continuity will rely heavily on the Arzelà-Ascoli theorem, see e.g. [13]. To this end we have to recall some nomenclature: A sequence {γn}n0 of continuous functions on an interval I is uniformly bounded if for all n and all tI, we have that |γn(x)|C, with C some (universal) constant. The sequence {γn}n0 is uniformly equicontinuous if, for every ϵ>0 there exists a δ>0, such that for all t,t satisfying |tt|δ and all n we have that

|γn(t)γn(t)|ϵ.

The theorem can now be stated as

Theorem 9 (Arzelà-Ascoli).

Let {γn}n0 be a sequence of real-valued uniformly bounded, equicontinuous functions on a compact interval I. Then there exists a subsequence {γnk}k0 that converges uniformly.

With these preliminaries out of the way we can state the second contribution of the paper: See 2

We provide two proofs, one here and another in the appendix. Although they share a fair number of common techniques they differ significantly on the way that they treat the length of the limit curve. Moreover, the proof here is shorter, but requires some familiarity with using the Arzelà-Ascoli theorem, while the proof in the appendix discusses this in greater detail.

Proof.

Let an, bn be a pair of sequences of points in 𝒮, where limnan=a and limnbn=b, as well as a sequence of geodesics γn, connecting an and bn. Let γ be the minimizing geodesic connecting a and b.

We want to prove that limnγγnsup=0, where sup denotes the C0 norm (i.e. sup norm). In other words, we have to prove that, for any ϵ>0, the cardinal of the set:

Γϵ:={γnγγnsupϵ}

is finite.

Assume to achieve a contradiction that the cardinal of Γϵ is infinite. Since the set of functions in Γϵ is bounded and equicontinuous (because they admit a uniform Lipschitz constant), we can apply Arzelà-Ascoli theorem and find a subsequence {γnk,k}Γϵ converging to a curve γ in 𝒮. Since |length(γ)length(γnk)|=|d𝒮(a,b)d𝒮(ank,bnk)|d𝒮(a,ank)+d𝒮(b,bnk).) one has limklength(γnk)=length(γ).

By a classical result [8, Claim 5.8, page 19], the length of the limit cannot be larger than the limit inf of lengths which yields length(γ)limklength(γnk)=length(γ). Therefore, γ would be a geodesic between a and b with γγsupϵ which contradicts the unicity of geodesics stated in Theorem 1.

Corollary 2 has itself another consequence which is worth pointing out.

Corollary 10.

A geodesic ball of radius less than πR is contractible.

Proof.

Write B𝒮(c,r), for the geodesic ball in 𝒮 with centre c and radius r, where r<πR. Let xB𝒮(c,r), and let γxc(t) be the geodesic parametrized by [0,1] with constant arclength with γxc(1)=x and γxc(0)=c. Thanks to Corollary 2 the geodesics are continuous under the sup-norm, with respect to endpoint x. This means that the map H:[0,1]×B𝒮(c,r):(λ,x)γxc(λ) is a (continuous) homotopy.

References

  • [1] Eddie Aamari, Clément Berenfeld, and Clément Levrard. Optimal reach estimation and metric learning. The Annals of Statistics, 51(3):1086–1108, 2023.
  • [2] Eddie Aamari and Clément Levrard. Stability and minimax optimality of tangential Delaunay complexes for manifold reconstruction. Discrete & Computational Geometry, 59(4):923–971, 2018. doi:10.1007/s00454-017-9962-z.
  • [3] N. Amenta and M. Bern. Surface reconstruction by Voronoi filtering. Discrete & Computational Geometry, 22(4):481–504, December 1999. doi:10.1007/PL00009475.
  • [4] Ery Arias-Castro and Bruno Pelletier. On the convergence of maximum variance unfolding. The Journal of Machine Learning Research, 14(1):1747–1770, 2013. doi:10.5555/2567709.2567719.
  • [5] Jean-Daniel Boissonnat, Frédéric Chazal, and Mariette Yvinec. Geometric and Topological Inference. Cambridge Texts in Applied Mathematics. Cambridge University Press, 2018. doi:10.1017/9781108297806.
  • [6] Jean-Daniel Boissonnat, André Lieutier, and Mathijs Wintraecken. The reach, metric distortion, geodesic convexity and the variation of tangent spaces. Journal of Applied and Computational Topology, 3(1):29–58, June 2019. doi:10.1007/s41468-019-00029-8.
  • [7] Martin R Bridson and André Haefliger. Metric spaces of non-positive curvature, volume 319 of Grundlehren der mathematischen Wissenschaften. Springer Science & Business Media, 2013.
  • [8] H. Busemann. The geometry of geodesics. Dover Publications, 2005.
  • [9] Ratthachat Chatpatanasiri, Teesid Korsrilabutr, Pasakorn Tangchanachaianan, and Boonserm Kijsirikul. A new kernelization framework for Mahalanobis distance learning algorithms. Neurocomputing, 73(10-12):1570–1579, 2010. doi:10.1016/J.NEUCOM.2009.11.037.
  • [10] S.-W. Cheng, T.K. Dey, and J.R. Shewchuk. Delaunay Mesh Generation. Computer and information science series. CRC Press, 2013.
  • [11] Michael AA Cox and Trevor F Cox. Multidimensional scaling. In Handbook of data visualization, pages 315–347. Springer, 2008.
  • [12] T.K. Dey. Curve and Surface Reconstruction: Algorithms with Mathematical Analysis. Number 23 in Cambridge monographs on applied and computational mathematics. Cambridge University Press, 2007.
  • [13] Nelson Dunford and Jacob T Schwartz. Linear operators, part 1: general theory. John Wiley & Sons, 1988.
  • [14] H. Federer. Curvature measures. Transactions of the American Mathematical Society, 93:418–491, 1959.
  • [15] Charles Fefferman, Sergei Ivanov, Yaroslav Kurylev, Matti Lassas, and Hariharan Narayanan. Reconstruction and interpolation of manifolds. I: The geometric Whitney problem. Foundations of Computational Mathematics, 2019. doi:10.1007/s10208-019-09439-7.
  • [16] Charles Fefferman, Sergei Ivanov, Matti Lassas, and Hariharan Narayanan. Fitting a manifold of large reach to noisy data. arXiv e-prints, page arXiv:1910.05084, October 2019. arXiv:1910.05084.
  • [17] Izrail Moiseevitch Gelfand and Richard A Silverman. Calculus of variations. Courier Corporation, 2000.
  • [18] Amir Globerson and Sam T. Roweis. Metric learning by collapsing classes. In Advances in Neural Information Processing Systems, volume 18, 2005.
  • [19] C. G. Gray and Edwin F. Taylor. When action is not least. American Journal of Physics, 75(5):434–458, May 2007. doi:10.1119/1.2710480.
  • [20] Mikhael Gromov. Hyperbolic groups. In Essays in group theory, pages 75–263. Springer, 1987.
  • [21] Matthieu Guillaumin, Jakob Verbeek, and Cordelia Schmid. Is that you? Metric learning approaches for face identification. In 2009 IEEE 12th International Conference on Computer Vision, pages 498–505. IEEE, 2009. doi:10.1109/ICCV.2009.5459197.
  • [22] Geoffrey Hinton and Sam T. Roweis. Stochastic neighbor embedding. In Advances in Neural Information Processing Systems, volume 15, 2002.
  • [23] James T. Kwok and Ivor W. Tsang. Learning with idealized kernels. In Proceedings of the International Conference on Machine Learning (ICML), pages 400–407, 2003. URL: http://www.aaai.org/Library/ICML/2003/icml03-054.php.
  • [24] André Lieutier and Mathijs Wintraecken. Manifolds of positive reach, differentiability, tangent variation, and attaining the reach. In Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri, editors, 42nd International Symposium on Computational Geometry (SoCG 2026), volume 367 of Leibniz International Proceedings in Informatics (LIPIcs), pages 75:1–75:16, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
  • [25] Alexander Lytchak. On the geometry of subsets of positive reach. Manuscripta mathematica, 115(2):199–205, 2004.
  • [26] Alexander Lytchak. Almost convex subsets. Geometriae Dedicata, 115(1):201–218, 2005.
  • [27] K. Menger. Untersuchungen über allgemeine Metrik. Vierte Untersuchung. Zur Metrik der Kurven. Mathematische Annalen, 103:466–501, 1930.
  • [28] M. Moriconi. Condition for minimal harmonic oscillator action. American Journal of Physics, 85(8):633–634, August 2017. doi:10.1119/1.4984778.
  • [29] Bac Nguyen, Carlos Morell, and Bernard De Baets. Supervised distance metric learning through maximization of the Jeffrey divergence. Pattern Recognition, 64:215–225, 2017. doi:10.1016/J.PATCOG.2016.11.010.
  • [30] Barak Sober and David Levin. Manifold approximation by moving least-squares projection (MMLS). Constructive Approximation, pages 1–46, 2019. doi:10.1007/s00365-019-09489-8.
  • [31] M. Spivak. A comprehensive introduction to differential geometry: Volume I. Publish or Perish, 1999.
  • [32] José L. Suárez, Salvador García, and Francisco Herrera. A tutorial on distance metric learning: Mathematical foundations, algorithms, experimental analysis, prospects and challenges. Neurocomputing, 425:300–322, 2021. doi:10.1016/J.NEUCOM.2020.08.017.
  • [33] Joshua B. Tenenbaum, Vin de Silva, and John C. Langford. A global geometric framework for nonlinear dimensionality reduction. Science, 290(5500):2319–2323, 2000.
  • [34] Eric P. Xing, Andrew Y. Ng, Michael I. Jordan, and Stuart J. Russell. Distance metric learning, with application to clustering with side-information. In Advances in Neural Information Processing Systems, volume 15, 2002.
  • [35] Liu Yang and Rong Jin. Distance metric learning: A comprehensive survey. Technical Report MSU-CSE-06-2, Michigan State University, 2006.

Appendix A Alternative proof

Alternative proof of Corollary 2.

Assume that the geodesics are not continuous with respect to the endpoints, then there exist an ϵ>0 and a pair of sequences of points an, bn, where limnan=a and limnbn=b, as well as a sequence of geodesics γn, connecting an and bn such that

suptI|γn(t)γ(t)|ϵ,

where γ is the geodesic connecting a and b. We stress that here we parametrize the geodesics on the unit interval [0,1], with constant norm of the tangent vector, i.e. |γ˙n|=d𝒮(an,bn).

We further note that thanks to the metric characterization of sets of positive reach [6, Theorem 1] convergence in the Euclidean and geodesic sense are equivalent.

Again, thanks to the metric characterization of sets of positive reach [6, Theorem 1] we know that geodesics are themselves sets of (at least) the same reach as the set in which they lie. We also know that manifolds of positive reach are C1,1 where the Lipschitz constant of the derivative is bounded by 1/R, see [24]. This implies that the tangent vectors γ˙n are uniformly Lipschitz, that is Lipschitz with the same Lipschitz constant for all n. This uniform Lipschitz constant implies by definition uniform equicontinuity of γ˙n. Because all geodesics are parametrized according to arclength, with |γ˙n|=d𝒮(an,bn), and d𝒮(an,bn) is bounded by assumption, γ˙n is also bounded.

We now observe that by passing to a subsequence we can assume that there is one tI such that

|γn(t)γ(t)|ϵ/2. (10)

This can be seen as follows: Because I is compact the supremum must be attained at some point tn for each (γnγ)(t). Again because I is compact this sequence of points must have a convergent subsequence nm with limit t because of smoothness (more precisely, the fact that |γ˙n| is bounded) of (γn)(t), we have that for m sufficiently large and |tt| sufficiently small, we have |γnm(t)γ(t)|ϵ/2. This implies that (10) holds.

Now we can invoke the Arzelà-Ascoli theorem to conclude that there exist a γ˙, which is the limit of a convergent subsequence of γ˙n. We write γ(t)=0tγ˙ds. With this notation we can formulate the following observations:

  • The lengths of γn converge to the length of γ.

  • The geodesic γn has to converge to the geodesic distance between a and b, because by the triangle inequality we have that

    |length(γ)length(γn)|=|d𝒮(a,b)d𝒮(an,bn)|d𝒮(a,an)+d𝒮(b,bn).

    And hence, γ and γ both are geodesics, that is their lengths equal the geodesic distance between the endpoints.

  • |γ(t)γ(t)|ϵ/2, in particular γγ.

This yields a contradiction with the uniqueness of the geodesics, that is Theorem 1.