the date of receipt and acceptance should be inserted later
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. In this paper we focus on the intrinsic metric properties of sets of positive reach. In particular we give an elementary proof of the fact that (closed) sets of reach at least R are CAT(1/R2). This fact was established earlier by Alexander and Bishop, using quite significant machinery. The fact that a space is CAT(1/R2) offers many advantages, such as the uniqueness and continuity of sufficiently short geodesics, the existence of Fréchet means and by extension the Rips based homotopy reconstruction of Hausmann is available.
Federer [Fed59] introduced the reach of a closed set S⊂Rd as the infimum of the distance from S to the medial axis ax(S), i.e. the set of points in Rd for which the closest point in S is not unique. Assumptions on the reach (and its local version the local feature size [AB99]) underpin the correctness of many algorithms
Mathijs Wintraecken was supported by the Austrian science fund (FWF) grant No. M-3073, the ANR grant StratMesh (ANR-24-CE48-1899) and the welcome package from IDEX of the Université Côte d'Azur (ANR-15-IDEX-01).
The first part of this paper was presented at the Symposium on Computational Geometry 2026.
André Lieutier
No affiliation
E-mail: andre.lieutier@gmail.com
Mathijs Wintraecken (corresponding author)
Inria centre d'Université Côte d'Azur
E-mail: mathijs.wintraecken@inria.fr in computational geometry and topology. In this paper we consider the metric on sets of positive reach induced by shortest paths or geodesics distance. We provide an elementary proof of the fact that a set of at least reach R is CAT(1/R2).
The first part of the proof is dedicated to the fact that geodesics in a set of positive reach are unique and continuous with respect to the end points as long as the geodesic is strictly shorter than πR. We note that this bound in tight, because attained for the sphere. The uniqueness and continuity of geodesics also follows from the fact that the space is CAT(1/R2), but is required as a first step in the proof.
Unfortunately, when this paper was almost complete the authors discovered that the CAT(1/R2) property was established by Alexander and Bishop in [AB06]. The language used by Alexander and Bishop is such that this result is not that easy to recognize as [AB06, Theorem 1], without looking at it quite closely. However, we believe that the different and elementary approach to the question in this paper may still be of interest.
1.1 Motivation
Triangulation algorithms The assumption of positive reach is central to almost all triangulation algorithms, see for example [CDS13, Dey07, BCY18], as well as manifold learning, see for example [FILN19, FIK+19, AL18, SL19]. 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 reach1 or at least sets of which the strata have positive (local [LW24]) reach understanding the geometry of those sets seems essential. Moreover, the existence of Fréchet means in CAT(K) spaces makes it possible to define (possibly degenerate) intrinsic simplices, c.f. [DVW15].
Homotopy reconstruction The reconstruction of the homotopy of set of positive reach using Čech complexes has been studied extensively within computational topology since the appearance of the seminar work of Niyogi, Smale, and Weinberger [NSW08]. Although originally formulated exclusively for smooth manifolds this has been extended to include first manifolds with boundary [WW20] and then general sets of positive reach[ADPKF+24].
Learning the homotopy type [Hau95, Lat01] of a (non-embedded) Riemannian manifold of bounded curvature or more generally a CAT(K) space, based on the Rips-complex (based on intrinsic distances), has attracted significant attention and has recently been quantified in [KMT26, Maj24], which rely on Fréchet means. The quantified bounds on the curvature in terms of the reach allow for a more precise comparison between these different inference methods.
1 Sets of positive reach are stratified spaces [Fed59], 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.
Metric learning Another motivation comes from metric learning. In [ABL23] 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 [YJ06, SGH21]. 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 [XNJR02], MCML [GR05], LDML [GVS09] among others) to nonparametric (DMLMJ [NMDB17], kernel methods [KT03, CKTK10], 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 [HR02], MDS [CC08], Isomap [TdSL00], or MVU [ACP13]. See [SGH21] for a thorough overview of the field."
And indeed in [ABL23] geodesics play a crucial role in establishing optimal bounds. The stability of geodesics, which follows from the main result of this paper, could provide an essential tool in studying the stability of these methods.
1.2 Contribution
The main result of the paper is the following:
Theorem 1 If S⊂Rd is a closed set with reach at least R>0, then S endowed with the geodesic distance dS is a CAT (R21) metric space.
The proof has two important stepping stones, which would in fact also follow from the main statement (once it is available). The first stepping stone is:
Theorem 2 Let S be a set of positive reach R, then for any two points a,b∈S such that the geodesic distance on S satisfies dS(a,b)<πR there is a unique minimizing geodesic in S 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 can be defined as 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 such a curve is a geodesic in the more general and Riemannian contexts.
The second stepping stone is a corollary of Theorem 1
Corollary 1 Let S be a set of positive reach R, then the geodesic connecting any two points a,b∈S is continuous (in the C1 sense) with respect to the endpoints provided that dS(a,b)<πR.
We stress that all results are tight, because the bounds are attained for the standard sphere of radius R embedded in Euclidean space.
1.3 Previous work
CAT(k) spaces The terminology CAT(k) was introduced by Gromov [Gro87] 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 [BH13, Section II.1] for a precise introduction. Let (M,dM) 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.
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 M 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(k) spaces Lytchak [Lyt04, Lyt05] proved sets of positive reach are CAT(k), for some k.
As mentioned, this result was later quantified by Alexander and Bishop [AB06], whose paper tells us, albeit in a slightly different guise, that sets of reach R are at least CAT(1/R2). This paper reproves this result in a completely elementary fashion, in the sense that we only need some results by Federer [Fed59], comparison theory of second order differential equations, see Berger [Ber03, Section 3.2] for a very short and pedagogical discussion and proof, and Euler-Lagrange theory [Spi99].
1.4 Future work
The fact that sets of reach R are CAT(1/R2) opens a significant toolbox that has been developed in mathematics over the last decades. There are some interesting questions within computational geometry and topology for which the CAT(1/R2) is likely to help and that, as far as the authors are aware, are still open:
We know that tangent cones of sets of positive reach are semi-continuous [LW24] in the sense that there exists a neighbourhood such that the one-sided angle between the affine hulls of the tangent cones is bounded. We stress that for general sets of positive reach the one-sidedness of the angle is essential, because the dimension of the tangent cone can increase. We suggest to search for explicit Lipschitz bounds on the one-sided angle. Here we need to explain what we mean by Lipschitz in this semi-continuous setting: We conjecture that for every x∈S there exists an open neighbourhood U⊂Rd, such that for all y∈U∩S the one-sided angle from the affine hull of Tan(y,S) to the affine hull of Tan(x,S) is bounded by dS(x,y)/rch(S).
This question is motivated by stratification learning [BW18, BMW10, BCSE+07].
– As mentioned in the motivation many learning algorithms are based on estimation of intrinsic distances. The CAT(1/R2)-property could help establish or improve stability guarantees for such algorithms.
2 Notation and preliminaries
Although we often recall previous results and introduce notation when they are used, there are a couple of notations and results that are featured so often below that we recall them here.
We’ll denote sets of positive reach by S and the closest point projection by πS. We use the notation B(c,r) for a ball in Euclidean spaces with centre c and radius r. For a,b∈S, dS(a,b) denotes the geodesic distance between a and b in S. Curves are generally denoted by γ and most importantly:
We’ll use Newton’s notation for the derivatives of curves that is, γ˙=dtdγ and γ¨=dt2d2γ.
If we want to emphasize the end points (a,b) of a geodesic we write γa,b.
Originally [Fed59], the reach was defined as:
rch(S)=♯πS(x)≥2infd(x,S),
where “♯” denotes the cardinality.
The equivalent metric characterization of the reach of a set is the following:
Theorem 3 (Theorem 1 of [BLW19]) If S⊂Rd is a closed set, then
where the sup over the empty set is 0 and rch(X) denotes the reach of X.
Theorem 3 implies the following:
Corollary 2 One has:
If R≤rch(S) and a,b∈S satisfy ∣a−b∣<2R then dS(a,b)<πR.
Geodesics in a set S of reach R, seen as curves in Rd, have reach at least R.
Proof. The first statement follows because arcsin(1)=π/2. The second statement is true because geodesics themselves satisfy the characterization. □
In [BLW19, Theorem 1] we have seen that manifolds of positive reach are C1,1 with a (1/R)-Lipschitz derivative. Combining this with the previous result gives that:
Corollary 3 Geodesics in a set of reach R are C1,1 with a (1/R)-Lipschitz derivative and hence the derivative is twice differentiable almost everywhere. In particular, if γ denotes a geodesic, we have ∣γ¨(s)∣≤R1, whenever the second order derivative exists.
Proof. As mentioned, the fact that geodesics are C1,1 with a (1/R)-Lipschitz derivative follows from [BLW19, Theorem 1]. Thanks to the Rademacher theorem, see e.g. [Fed96, Theorem 3.1.6], the derivative is therefore twice differentiable almost everywhere. □
Next, we introduce the normal cone. We denote the scalar product in Rd by ⟨⋅,⋅⟩.
Definition 1 (Definitions 4.3 and 4.4 of [Fed59]) If S⊆Rd and p∈S, then the generalized tangent space Tan(p,S) is the set of all tangent vectors of S at p. It consists of all those u∈Rd, such that either u=0 or for every ε>0 there exists a point q∈S with
0<∥q−p∥<εand∥q−p∥q−p−∥u∥u<ε.
The normal cone of S at p is the set
Nor(p,S)
of all vectors v∈Rd such that ⟨v,u⟩≤0 for all u∈Tan(p,S).
3 Uniqueness and continuity of geodesics
3.1 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 [BLW19]. We recall that a set C is geodesically convex if for any two points c,c′∈C the geodesic connecting c and c is contained in C.
Corollary 4 (Corollary 1 of [BLW19]) Let S⊂Rd be a closed set with positive reach R>0. Then, for any r′<R and any x∈Rd then S∩B(x,r′) is geodesically convex in S.
Lemma 1 Let S have reach R and assume p,q∈S with ∣p−q∣≤2R. Define x=λp+(1−λ)q. We have that
Fig. 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 S) 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 S.
Proof. Corollary 4 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−πS(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 πS(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∣p−q∣2−2Rλ∣p−q∣cosθ
where cosθ=2R∣p−q∣ (the value for θ follows by inspection of the triangle with vertices p,c, and 21(p+q)). So that
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 1−t=1−2t−O(t2), which in turn follows by Taylor's theorem. □
We’ll need the following corollary of [Fed59, Theorem 4.8(8)]. Theorem 4.8(8) of [Fed59] says the closest point projection πS at a point x is 1−d(x,S)/R1-Lipschitz. We therefore immediately have:
Corollary 5 If γ:[0,ℓ]→Rd is a C1 curve, then the length of πS(γ) is upper bounded as follows
length(πS(γ))≤∫0ℓ1−d(γ(t),S)/R1∣γ˙(t)∣dt.(1)
The following simple but very useful bound will be instrumental in the proof below.
Lemma 2 If a and b are two unit vectors we have that
∣λa+(1−λ)b∣2=1−(1−λ)λ∣a−b∣2.
For vectors of arbitrary length we have
∣λa+(1−λ)b∣2=λ∣a∣2+(1−λ)∣b∣2−λ(1−λ)∣a−b∣2.
Proof. We have that for any two unit vectors a,b that:
Theorem 2 Let S be a set of positive reach R, then for any two points a,b∈S such that the geodesic distance on S satisfies dS(a,b)<πR there is a unique minimizing geodesic in S 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). So2 if λγ1+(1−λ)γ2⊂S 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 S, but we need to project on S 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:
LHO=∣x˙∣2−R2∣x∣2
Write SHO for the action, that is
SHO=∫0τLHOdt.(4)
The Euler-Lagrange equation,
dtd∂x˙∂L=∂x∂L,
in this case yields
x¨(t)=−R2x(t),
with the familiar solutions c1sin(t/R)+c2cos(t/R)=c4sin(Rt−t0). We have the following, see [GT07, Section V], [Mor17] for this specific result3 and [GS00] for general theory:
Theorem 4 (Adjusted from [GT07] and [Mor17]) 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 6 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
2 Here abuse notation a little bit because we do not distinguish the notation for a geodesic and its parametrization.
3 Note that our the Lagrangian of a high dimensional harmonic oscillator (with constant potential) is the sum of one-dimensional harmonic oscillators.
Proof of Theorem 2. 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 S. Moreover, thanks to the second paragraph of part III, section 1: “Die Existenz geodätischer Bogen in metrischen Räume” in [Men30], 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.
ϵ:=t∈[0,ℓ]max∣γ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
γλE(t)=λγ1(t)+(1−λ)γ2(t)
and
γλS(t)=πS(γλE(t)).
We now upper bound the length γλS(t). By Lemma 1 we have that
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
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ℓLdt=∫0ℓ/2Ldt+∫ℓ/2ℓLdt.
We'll only concentrate on the first integral, the second one can be treated in a completely symmetrical manner.
We now invoke Theorem 4 and Corollary 6, with τ=ℓ/2, together with (7), (8), and (9), to find that
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. □
3.2 Continuity of geodesics
3.2.1 Continuity in the C0 sense
The uniqueness of the geodesics of length less than πR implies continuity for geodesics under the same restriction. We will first prove a weak version of this statement, namely continuity without convergence of the derivatives. We will then proceed to prove that geodesics converge in the the C1 sense, that is both the geodesics and its derivatives converge. The proof of the continuity will rely heavily on the Arzelà-Ascoli theorem, see e.g. [DS88]. To this end we have to recall some nomenclature: A sequence {γn}n∈Z≥0 of continuous functions on an interval I⊂R is uniformly bounded if for all n and all t∈I, we have that ∣γn(x)∣≤C, with C some (universal) constant. The sequence {γn}n∈Z≥0 is uniformly equicontinuous if, for every ϵ>0 there exists a δ>0, such that for all t,t′ satisfying ∣t−t′∣≤δ and all n we have that
∣γn(t)−γn(t′)∣≤ϵ.
The theorem can now be stated as
Theorem 5 (Arzelà-Ascoli) Let {γn}n∈Z≥0 be a sequence of real-valued uniformly bounded, equicontinuous functions on a compact interval I. Then there exists a subsequence {γnk}k∈Z≥0 that converges uniformly.
With these preliminaries out of the way we can state a weak form of the second contribution of the paper:
Corollary 7 Let S be a set of positive reach R, then the geodesic connecting any two points a,b∈S is continuous (in the C0 sense) with respect to the endpoints provided that dS(a,b)<πR.
In the next subsection this will be strengthened to continuity in the C1 sense.
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 S, where limn→∞an=a and limn→∞bn=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→∞∥γ−γn∥sup=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∣∥γ−γn∥sup≥ϵ}
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∈N}⊂Γϵ converging to a curve γ′ in S. Since ∣length(γ)−length(γnk)∣=∣dS(a,b)−dS(ank,bnk)∣≤dS(a,ank)+dS(b,bnk).) one has limk→∞length(γnk)=length(γ).
By a classical result [Bus05, Claim 5.8, page 19], the length of the limit cannot be larger than the limit inf of lengths which yields length (γ′)≤limk→∞length(γnk)=length(γ). Therefore, γ′ would be a geodesic between a and b with ∥γ−γ′∥sup≥ϵ which contradicts the unicity of geodesics stated in Theorem 2. □
Corollary 7 has itself another consequence which is worth pointing out.
Corollary 8 A geodesic ball of radius less than πR is contractible.
Proof. Write BS(c,r), for the geodesic ball in S with centre c and radius r, where r<πR. Let x∈BS(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 7 the geodesics are continuous under the sup-norm, with respect to endpoint x. This means that the map H:[0,1]×BS(c,r):(λ,x)↦γxc(λ) is a (continuous) homotopy. □
3.2.2 Continuity in the C1 sense
The continuity of the geodesics in the C1 sense is a consequence of the fact that geodesics in a set of positive reach have positive reach, due to the metric characterization of sets of positive reach [BLW19, Theorem 1]. This means [LW24, Lyt04, Lyt05] that the geodesics are C1,1 and moreover Lipschitz constant of the first derivative is upper bounded by 1/R (with respect to the arclength), with R the reach. In particular this means if two geodesics of the same reach have a large angle between the tangent vectors (at some point along the curves) then the two geodesics cannot be close (in the C0 or the Hausdorff) sense everywhere in neighbourhood of the point, because the geodesics cannot bent inward fast enough, to stay close to each other.
General vector valued functions The link between the distance in the C0 and C1 senses for a C1,1 curve can be formalized based on the distance function. Indeed we have the following:
Lemma 3 Let F:[0,c]→Rd, be a C1 function whose derivative F˙ is ε2-Lipschitz. We write ε0 and ε1 for the supremum norms on the function and its derivative
ε0:=t∈[0,c]sup∣F(t)∣,ε1:=t∈[0,c]sup∣F˙(t)∣.
With this notation one has,
ε1≤max(4ε0ε2,4ε0/c).(10)
Proof. Since t↦∣F˙(t)∣ is continuous, there exists tmax∈[0,c] such that
ε1=∣F˙(tmax)∣.
Define [a,b]⊂[0,c] based on two cases:
−If ε2c≤ε1 we pick[a,b]=[0,c].−If ε2c≥ε1 we choose any a,b, such that tmax∈[a,b] and b−a=ε2ε1.
Observes that, in both cases we have that tmax∈[a,b] and
b−a≤ε2ε1.
We can assume that ε1=0 as then the Lemma trivially holds. We now define
We now come back to the two cases used in the definition of [a,b]: In the first case, where ε2c≤ε1, then b−a=c and one gets ε1≤4ε0/c. In the second case, where ε2c≥ε1, then b−a=ε2ε1 and we get 21ε2ε2=2ε0 which gives ε1≤4ε0ε2. □
Curves are continuous in the C1 sense We can now draw the conclusions from Lemma 3, which we formulate in a number of different ways, with an eye on future applications.
Curves with same length In the first case we compare two curves (or geodesics) of the same length.
Corollary 9 Let γi:[0,ℓ]→Rd, for i=1,2 be curves of same length ℓ>0 parameterized by arc length and with reach at least R>0. Then, denoting
Proof. We use Lemma 3 with F:=γ2−γ1. For this we first need to establish the Lipschitz constant on F. As mentioned in the introduction to this section, the works [LW24, Lyt04, Lyt05] imply that the Lipschitz constant of the first derivative by is bounded by 1/R (with respect to the arclength), with R the reach. This means that ε2=2/R is a Lipschitz constant for the derivative of the difference of two such curves. The result now follows. □
Curves with uniform parameterization on [0,1] In the second case we compare two curves (or geodesics) uniformly parametrized on [0,1].
Corollary 10 Let γi:[0,1]→Rd, for i=1,2 be curves with uniform parameterization (i.e. ∣γ˙i(t)∣=length(γi) for any t∈[0,1]) and with reach at least R>0. Then, denoting
Proof. We again apply Lemma 3 with F:=γ2−γ1. Note that in this case, using the same argument as in the previous corollary, one has ε2=(ℓ12+ℓ22)/R as a Lipschitz constant on ∣F˙∣. □
We summarize, first in a general then a more specific corollary:
Corollary 11 Let γ[0,1]→Rd and γi:[0,1]→Rd, for i∈N be curves with uniform parameterization and with reach at least R>0 such that (γi)i∈N converge to γ in C0 norm and the lengths of γi are uniformly bounded, then (γi)i∈N converge to γ in C1 norm.
The second more specific, is also the second main result of this paper:
Corollary 1 Let S be a set of positive reach R, then the geodesic connecting any two points a,b∈S is continuous (in the C1 sense) with respect to the endpoints provided that dS(a,b)<πR.
4 Sets of reach R are CAT (1/R2)
4.1 Notation
In the second part of the paper geodesics will be arc length parametrized, so that a geodesics γa,b is parametrized as
γa,b:[0,dS(a,b)]→S,
with γa,b(0)=a and γa,b(dS(a,b))=b. We stress that as we have seen in Corollary 3 second derivative of γa,b at s, denoted γ˙a,b(s), is exists almost everywhere.
Recall that arc length parametrization implies ∣γ˙a,b(s)∣=1 and ⟨γ˙a,b(s),γ¨a,b(s)⟩=0. Moreover, by Corollary 2, geodesics in S have reach at least R, and in this particular setting Theorem 4.8(7) of [Fed59] reduces to:
Lemma 4 If a,b∈S satisfy dS(a,b)<πR, then
sin∠γ˙a,b(0),b−a≤2R∣b−a∣.(13)
Although we recalled the concept in the introduction, we give a more formal definition of comparison triangle and CAT(k) spaces here. We follow [BH13] closely.
A geodesic triangle Δ in a metric space X consists of three vertices {a,b,c} and (a choice of) three (minimizing) geodesics joining the points pairwise, which are referred to as edges. A triangle Δˉ with vertices {aˉ,bˉ,cˉ} on a space form H(k) is called a comparison triangle for {a,b,c} if dX(a,b)=dH(k)(aˉ,bˉ), dX(b,c)=dH(k)(bˉ,cˉ), and dX(a,c)=dH(k)(aˉ,cˉ). Such triangles exist if the perimeter dX(a,b)+dX(b,c)+dX(a,c) is less than the diameter of H(k). Given a point x on the geodesic in the geodesic triangle connecting two vertices, say a and b so that the distance to the vertices are dX(a,x), dX(b,x) respectively, then its comparison point xˉ is the point on the corresponding geodesic which has the same distance two corresponding vertices, i.e. dX(a,x)=dH(k)(aˉ,xˉ), dX(b,x)=dH(k)(bˉ,xˉ).
Remark 1 For the general definition, we denote space forms, i.e. simply connected spaces of constant curvature (Euclidean space, hyperbolic spaces, or spheres), with H(k). In the specific setting of positive curvature, as we'll find ourselves in below, we prefer to specifically write Sd for spheres. We stress that (as usual) the diameter of non-positively curved spaces is infinite.
Definition 2 (Chapter II.1, Definition 1.1 [BH13]) Let X be a metric space and let k∈R. Let Δ be a geodesic triangle whose perimeter is smaller than twice the diameter of H(k). Let Δˉ⊂H(k) be a comparison triangle for Δ. Then, Δ is said to satisfy the CAT(k) inequality if for all x,y∈Δ and their comparison points xˉ,yˉ∈Δˉ, we have that dX(x,y)≤dH(k)(xˉ,yˉ). If k≤0 then X is a CAT(k) space or X is CAT(k) if X is a geodesic space all of whose geodesic triangles satisfy the CAT(k) inequality. If k>0, then X is called a CAT(k) if all pairs of points that are less than the diameter of H(k) apart are joined by a geodesic and all geodesic triangles of perimeter less than that of twice the diameter of H(k) satisfy the CAT(k) inequality.
We now recall the characterization of CAT(k) spaces that plays a central role in the second part of this paper.
Proposition 1 (Adjusted from Chapter II.1, Proposition 1.7, Claims (1) and (4) [BH13]) Fix k∈R. Let X be a metric space such that all pairs of points that are less than the diameter of H(k) apart are joined by a geodesic. Then the following are equivalent:
(1) X is CAT(k).
(4) The angle between the sides of any geodesic triangle in X (where we assume that the perimeter of each geodesic triangle is is smaller than twice the diameter of H(k) if k>0) with distinct vertices is no greater than the angle between the corresponding sides of its comparison triangle in H(k).
Remark 2 In the general definition the angle is specified to be the Alexandrov angle, see [BH13, Chapter I.1 Definition 1.12], but in our setting it reduces to the usual Euclidean angle.
4.2 Overview of the proof
The proof of the fact that sets of reach at least R, equipped with the inner geodesic distance, are CAT(1/R2) proceeds in 4 main steps.
Step 1 Whenever it exists γ¨a,b(s)∈NorS(γa,b(s)).
Step 2 Given two geodesics γ1,γ2 of length <πR emanating from a with some angle between them, we prove that their Euclidean distance s↦∣γ2(s)−γ1(s)∣ at a same length s is not less than the corresponding Euclidean distance between geodesics on a sphere of radius R starting with the same angle (within the context of Riemannian geometry this is called a Rauch hinge). This proof proceeds in two stages.
Based on Step 1 we can prove the following differential inequality is satisfied for any pair of geodesics γ1,γ2:
whenever γ1 and γ2 are twice differentiable at respective parameters s1 and s2. We apply (18) with γi=γa,bi for i=1,2 and s1=s2=s, where s∈[0,ℓ] and ℓ less than the minimal length of γ1 and γ2. By defining:
r(s):=∣γ2(s)−γ1(s)∣
the inequality (18) reduces then to
r¨+R21r≥0,withr(0)=0.(21)
This differential inequality yields the following results for r:
Lemma 5 If r:R+→R is a C1,1 function that satisfies (21), then
∀t∈[0,πR],r(t)≥Rr˙(0)sinRt.(14)
Equation (14) indeed means that the Euclidean distance between the points is bounded below by the corresponding distance for a sphere.
Remark 3 We stress that, while this relation is tight for the Euclidean distance, this is not an intrinsic quantity and this is not sufficient to derive the CAT(k) property in and by itself, even for isosceles triangles. The lower bound on the Euclidean distance does not yield a sufficiently strong lower bound on the geodesic distance between the points.
Step 3 We construct a lemma that is reminiscent of the Gauss' lemma [dC92, Lemma 3.5] in Riemannian geometry. 4 Roughly speaking we prove the boundary of a geodesic ball of radius <πR, is 'orthogonal' to the radial geodesic. In a precise sense we have the following lemma:
Lemma 6 Given 0<ℓ<πR, ε>0, and a,b∈S with dS(a,b)=ℓ, there exists α>0 such that for any b′∈S that satisfies dS(a,b′)=ℓ and 0<∣b′−b∣<α, one has
2π−ε≤∠b′−b,γ˙a,b(ℓ)≤2π+ε.(15)
Step 4 We define what we call a unit inverse exponential map uloga, where a∈S. This map takes a point x=a in the open geodesic ball of radius πR centered at a and gives γ˙a,x(0), the unit tangent vector to the geodesic from a to x at a. By the result of Step 2 we prove that this map is (locally) Lipschitz.
Now we consider three points a,b,c∈S, such that the perimeter of the geodesic triangle satisfies dS(a,b)+dS(b,c)+dS(a,c)<2πR and we want to upper bound the angle at the vertex a, which is the angle between uloga(b) and uloga(c).
We consider the composition of uloga with the geodesic γb,c from b to c, which is a Lipschitz curve on the unit ball and we remark that the length of this curve provides an upper bound on the angle ∠uloga(b), uloga(c). Let's call ρ(s) the geodesic distance between a and γb,c(s), where ρ(s)<πR thanks to the triangle inequality.
Using Steps 2 and 3, we prove that this length is upper bounded as follows
We consider the same relation on the standard 2-sphere RS2 of radius R, for a geodesic triangle aˉ,bˉ,cˉ∈RS2 with the same edge lengths as abc. We get:
Wrap-up We have shown that the angle ∠uloga(b), uloga(c) at a in S is upper bounded by the length of the curve uloga∘γb,c, which is itself upper bounded by (29), whose right hand side is upper bounded by the corresponding integral for RS2, which is angle at aˉ on the sphere. This in fact gives us the characterization of a CAT(1/R2) set.
4 The Gauss’ lemma (which we refer to) says that any sufficiently small sphere centered at a point in a Riemannian manifold is perpendicular to every geodesic through the point.
4.3 Geometry of geodesics in a set of positive reach
It is well known that, thanks to the variational principle, the second order derivative of a geodesic is normal to a smooth submanifold in Rd, see e.g. [Spi99]. This statement has the following generalization in the context of sets of positive reach.
Lemma 7 If a,b∈S satisfy dS(a,b)<πR and 0<s<dS(a,b), and the geodesic γa,b is twice differentiable at s then,
γ¨a,b(s)∈NorS(γa,b(s)).(16)
Here, NorS(x) denotes the cone normal to S at x. More generally, the Clarke derivative [Cla90] of s↦γ˙a,b(s) at s is a subset of NorS(γa,b(s)), that is,
∀s∈(0,dS(a,b)),∂γ˙a,b(s)⊂NorS(γa,b(s)).(17)
The proof is given in Appendix A.1.
4.4 Geometry of a geodesic isosceles wedge
4.4.1 A second order differential inequality on pairs of geodesics
Recall that, since geodesics are C1,1 they are twice differentiable almost everywhere.
Lemma 8 For i=1,2, let ai,bi∈S such that dS(ai,bi)<πR, denote γi:=γai,bi. Let si∈(0,dS(ai,bi)) be such that γi is twice differentiable at si. One has that,
By definition of Nor S one has then ∠γ¨1(s1),δ˙(0)≥π/2, so that, by the triangle inequality for angles or equivalently the triangle inequality for points on the sphere,
Swapping γ1 and γ2 and adding the corresponding inequalities yields (18).
4.4.2 Differential inequality for the divergence of a geodesic wedge with respect to the Euclidean distance
We consider now a,b1,b2∈S such that dS(a,bi)<πR, for i=1,2. We apply (18) with γi=γa,bi for i=1,2 and s1=s2=s, where s∈[0,ℓ] and ℓ the minimal length of γ1 and γ2.
We consider F:[0,ℓ]→Rd defined by F:=γ2−γ1 so that (18) gives:
⟨F¨(s),F(s)⟩≥−R2F(s)2andF(0)=0.(19)
4.4.3 Geodesics on a sphere with radius R
For ψ∈[0,π] and s∈[0,πR] we consider “meridian” geodesics γˉ1 and γˉ2 parametrized by arc length on the sphere of radius R in R3, starting at the “north pole” (0,0,R), and defined by:
This mean that the differential equation of (19) can be recast as
rr¨−F˙⊥2≥−R21r2.(20)
Observe that for the function Fˉ defined in Section 4.4.3 one has that Fˉ˙⊥=0.
Because, ∣F˙⊥∣2≥0, the equality (20) yields the following inequality
r¨+R21r≥0,
as long as r=0, while the same inequality is trivially satisfied if r is identically zero on some open subset, which means that the differential inequality is satisfied almost everywhere. In other words (19) yields,
r¨+R21r≥0,with r(0)=0.(21)
Lemma 5 If r:R+→R is a C1,1 function that satisfies (21), then
∀t∈[0,πR],r(t)≥Rr˙(0)sinRt.(14)
The result follows from Sturm-Liouville theory, see e.g. [Cod55, Chapter 8] for a general introduction. We follow the exposition of [Ber03, Section 3.2], whose formulation is the closest to what we need, with the addition of small observation which makes sure the argument goes through if r is only C1,1 instead of C2. This observation is based on the fundamental theorem of calculus for absolutely continuous functions, which can be formulated as:
Theorem 6 (Adapted from Theorem 6.4.2 in [Hei19]) If f:[a,b]→R, then the following two statements are equivalent.
(a) f is absolutely continuous.
(b) f is differentiable almost everywhere on [a,b], f′∈L1[a,b], and
f(x)−f(a)=∫axf′(t)dt.
We recall that Lipschitz functions are, in particular, absolutely continuous. We proceed with the proof of Lemma 5.
Proof. We write f for the solution to
f¨+R21f=0with f(0)=0 and f˙(0)=r˙0,
that is f(t)=Rr˙(0)sinRt. We examine the ratio r/f. Its derivative is finite and has the same sign as No(t)=r˙f−f˙r, as long as t<Rπ. The function No is Lipschitz, because r is assumed to be C1,1. Calculating the derivative of No and combining this with the differential (in)equalities yields that almost everywhere
r¨f−f¨r≥−R21rf+R21rf=0.
In other words the derivative is non-negative, which means that by Theorem 6 the function No(t) is monotone. Moreover, the initial conditions give that No(0)=0, so that No is always positive. This implies that the ratio r/f doesn't decrease, while it is 1 at t=0 by l'Hôpital's rule, so that r/f≥1, or r≥f, as long as t<Rπ. □
4.4.5 Euclidean width of an isosceles wedge
From the previous sections and Lemma 5 in particular we have:
Lemma 9 Consider a,b1,b2∈S such that dS(a,bi)<πR, for i=1,2 and denote L:=min(dS(a,b1),dS(a,b2)). Then:
The example in Section 4.4.3 shows that (22) is tight. We stress that the notation ρ is chosen in light of the (future) application in (32).
4.5 Inverse exponential map and Gauss Lemma
In his section, we prove the main theorem:
Theorem 1 If S⊂Rd is a closed set with reach at least R>0, then S endowed with the geodesic distance dS is a CAT (R21) metric space.
4.5.1 Inverse exponential map and uloga
We denote by BS∘(a,r) the open geodesic ball in S centered at a with radius r. Given a point a∈S, we define the map
uloga:BS∘(a,πR)∖{a}→Sd−1∩tanS(a)
by
uloga(x):=γ˙a,x(0).
Lemma 10 The map uloga is locally Lipschitz in BS∘(a,πR)∖{a}.
Proof. Take bi∈BS∘(a,πR)∖{a}, for i=1,2, such that dS(b1,b2)<πR. We introduce the abbreviations γi:=γa,bi and si:=dS(a,bi), where the latter notation is chosen because we use si as the parameter of the arc length parametrized geodesic.
By triangle inequality, we get that ∣s2−s1∣≤dS(b1,b2). We assume without loss of generality that s2≥s1. With this assumption the triangle inequality also yields
which gives a local Lipschitz bound, because arcsin(x) is locally Lipschitz as long as ∣x∣<1. □
Remark 4 The map:
log:BS∘(a,πR)→TanS(a)∩BRd∘(0,πR),
defined by log(a):=0 and log(x):=dS(a,x)loga(x) when x=a, is locally Lipschitz and generalizes the inverse of the Riemannian exponential map. The log is not in general injective and the corresponding exp map is in general set valued.
4.5.2 The geodesic sphere is orthogonal to radial geodesics (Gauss Lemma)
In this section we prove the following:
Lemma 6 Given 0<ℓ<πR, ε>0, and a,b∈S with dS(a,b)=ℓ, there exists α>0 such that for any b′∈S that satisfies dS(a,b′)=ℓ and 0<∣b′−b∣<α, one has
2π−ε≤∠b′−b,γ˙a,b(ℓ)≤2π+ε.(15)
The proof consists of two steps, where we start with a weaker lemma:
Lemma 11 Given 0<ℓ<πR and ε>0, there exists α(ℓ,ε)>0 such that for any a,b,b′∈S, that satisfy dS(a,b)=dS(a,b′)=ℓ and ∣b′−b∣<α, one has
∠b′−b,γ˙a,b(ℓ)≥2π−ε.
The proof can be found in Appendix A.2. The idea is to take a point c=γa,b(ℓ−h) for a well chosen h and then observe that, by triangle inequality, h=dS(c,b)≤dS(c,b′).
Proof of Lemma 6. From Corollary 1, we know that there exists α1>0 such that
∣b′−b∣<α1⇒∠γ˙a,b(ℓ),γ˙a,b′(ℓ)<ε/2.(23)
Applying Lemma 11 twice, once as it is formulated and once with b and b′ interchanged, we see that there exists some α2>0 so that the following two statements hold:
Taking α=min(α1,α2), first inequality in (15) is (24) and the second follows from the triangle inequality, (23), and (26), which completes the proof of the lemma.
4.5.3 The proof of the second main theorem
We are now ready to proceed with the proof of the second main result of this paper.
We consider 3 points a,b,c in S such that
dS(a,b)+dS(b,c)+dS(c,a)<2πR.(27)
It follows from the triangle inequality that no pair of points in {a,b,c} lies at geodesic distance greater than or equal to πR. Using the first main result of the paper it therefore follows that they are joined by unique minimizing geodesics of length smaller than πR. We want to upper bound the length of the curve uloga∘γb,c which is a stronger bound, than a bound on the Euclidean angle at a. According to [BH13, Chapter II.1, Proposition 1.7, claim (4)], upper bounding the angle at a triangle vertices for given edge lengths allows to characterize CAT(K) metric spaces.
Denote by ρ:[0,dS(b,c)]→[0,πR) the function defined by:
ρ(s):=dS(a,γb,c(s)).
Observe that by triangle inequality, one has both ρ(s)≤dS(a,b)+s and ρ(s)≤dS(a,c)+dS(b,c)−s, so that (27) implies
∀s∈[0,dS(b,c)],ρ(s)<πR.
Lemma 12 For s almost everywhere in [0,dS(b,c)], one has
Proof. By Lemma 10 the map uloga is Lipschitz and γb,c is 1-Lipschitz, so that uloga∘γb,c is Lipschitz and therefore, as a consequence of Rademacher's theorem, differentiable almost everywhere.
The function ρ is 1-Lipschitz by the triangle inequality and is therefore also differentiable almost everywhere. Let s∈(0,dS(b,c)) be such that both uloga∘γb,c and ρ are differentiable at s and assume moreover that
dtd∣t=sρ(t)>0.
As a consequence of the previous assumption there exists an η>0 such that t∈(s,s+η]⇒ρ(t)>ρ(s).
Let us define ϕ:[s,s+η]→S as follows
ϕ(t):=γa,γb,c(t)(ρ(s)).
We stress that, because the geodesics are arc length parametrized, ϕ(t) remains at a constant distance ρ(s) from a, that is
dS(a,ϕ(t))=ρ(s)(30)
For h∈(0,η) we consider the triangle with vertices γb,c(s), γb,c(s+h), ϕ(s+h).
Fig. 2 The notation for (28). In the figure the ∼ indicates the limit as h tends to zero. We stress that ϕ(s+h) is well defined because we assumed that dtd∣t=sρ(t)>0.
This with Lemma 5 gives us (28) in the case where dtd∣t=sρ(t)>0, since ρ(t) is differentiable, this (bound on the) right derivative calculated in (32) is the (bound on the) derivative. The result under the assumption that dtd∣t=sρ(t)<0 is symmetric (with the left derivative replacing the right derivative).
This only leaves us with the special case, where dtd∣t=sρ(t)=0. The ideas underlying this case are not very different from the analysis in the case where dtd∣t=sρ(t)>0, but the statement is somewhat involved. For a small h→0 we define
where in the explanation ∼ denotes equality up to leading order in h.
For the remainder of the paper the following will be our setting:
Setting 7. We consider the comparison triangle, that is the 3 points aˉ,bˉ,cˉ in RS2, the geodesic 2-sphere with radius R with same edge lengths as abc, i.e.:
where aˉ and bˉ are as defined in Setting 7 and arg:S1→[0,2π) is the argument or angle with its zero angle or argument defined by arglogaˉ(bˉ)=0. Moreover, denoting c~:=γ~(dS(b,c)), the end point of γ~, one has
Proof. We consider the spherical coordinates (ϕ,θ)∈(0,π)×[0,2π) defined for x∈RS2∖{(0,0,R),(0,0,−R)}, where we allow ourselves to identify RS2 with its embedding in R3:
x=Rsinϕ(x)cosθ(x)Rsinϕ(x)sinθ(x)Rcosϕ(x).
Without loss of generality we assume that aˉ=(0,0,R) is the north pole with (extended) coordinate ϕ(aˉ)=0 and bˉ on the zero or ‘Greenwich’ meridian, that is θ(bˉ)=0 and ϕ(bˉ)=ρ~(0)=dS(a,b), while ϕ(cˉ)=ρ~(dS(b,c))=dS(a,c). With these conventions we have that
θ(x)=arglogaˉ(x).(37)
Moreover, with this notation the objective (34) translates into showing the existence of a function γ~ such that γ~(0)=aˉ and, for s∈[0,dS(b,c)],
ϕ(γ~(s))=R1ρ~(s).(38)
We stress that, since ρ~ is assumed to be 1-Lipschitz, its derivative exists almost everywhere due to Rademacher's theorem and belongs to [−1,1]. Additionally, we define the normalized basis made of vector fields “south” and “east”, denoted s and e, of the tangent plane for a point x in terms of the coordinates (θ,ϕ)∈[0,2π)×(0,π):
s:=R1∂ϕ∂x,e:=Rsinϕ1∂θ∂x.
If a such γ~ exists, using (34) and (38), it must almost everywhere satisfy,
Since ∣γ~˙(s)∣=1, and by (35) and (37) θ is strictly monotone, Pythagoras gives
dtd∣t=sθ(γ~(t))=RsinRρ~(s)1−ρ~˙(s)2,
again, almost everywhere. Using the fundamental theorem of calculus for absolutely continuous functions (Theorem 6), again yields
θ(γ~(s))=∫0sRsinRρ~(t)1−ρ~˙(t)2dt.(39)
We can now define the curve γ~ as having the coordinates (ϕ,θ) given in (38) and (39). With this choice (36) follows from (37) and (39) and the lemma is proven. □
Consider ρˉ:(0,dS(b,c)]→[0,πR) defined by:
ρˉ(s):=dRS2(aˉ,γˉbˉ,cˉ(s))(40)
where γˉbˉ,cˉ is the minimizing geodesic, on RS2, from bˉ to cˉ.
Lemma 14 The function ρˉ of (40) maximizes the right hand side of (29), that is
∫0dS(b,c)RsinRρ(s)1−ρ^(s)2ds,
among all 1-Lipschitz functions ρ~:[0,dS(b,c)]→(0,πR), under the constraints
ρ~(0)=dS(a,b)andρ~(dS(b,c))=dS(a,c).(41)
Moreover, the angle ∠ulogaˉ(bˉ), ulogaˉ(c~) defined by the curve γ~ in Lemma 13 with ρ~=ρˉ is equal to this maximum.
Proof. As asserted by Lemma 13, for any such function ρ~ satisfying (41) there exists a curve γ~ with length dS(b,c) connecting bˉ and c~ and such that the right hand side of (29) is equal to the angle ∠ulogaˉ(bˉ), ulogaˉ(c~). Since the length of γ~ is dS(b,c), the distance dRS2(bˉ,c~) is upper bounded by dS(b,c) and this bound is attained when γ~ is a geodesic.
Maximizing the angle at aˉ, that is ∠ulogaˉ(bˉ), ulogaˉ(c~), is equivalent to maximizing the distance between bˉ and c~ which arises when dRS2(bˉ,c~)=dS(b,c), that is when γ~ is a geodesic. In this extremal case, the spherical triangle (aˉ,bˉ,c~) is isometric to (aˉ,bˉ,cˉ).
The right hand side of (29) for some 1-Lipschitz function ρ satisfying the boundary constraints (41) is therefore upper bounded by the corresponding integral when ρ is the ρˉ of (40).
Thanks to (36), this upper bound is the angle ∠ulogaˉ(bˉ), ulogaˉ(c~).
Main theorem The main theorem follows from Lemmas 12 and 14:
Proof of the main theorem. Using the characterization [BH13, Part II, Proposition 1.7, claim (4)] of CAT(K) spaces, recalled in Section 4.1, it suffices to prove that the angles at the vertices of triangle abc with perimeter less than 2πR are not greater than the angle of a spherical triangle with same edge lengths on a 2-sphere with radius R. The angle ∠γ˙a,b(0), γ˙a,c(0) is the (geodesic) distance on the sphere between the end points of the curve uloga∘γb,c on Sd−1. The length of this geodesic therefore upper bounds this angle.
Observe that, by the triangle inequality, the function ρ appearing in (29) is 1-Lipschitz, satisfies (41), and has values inside the open interval (0,πR). It follows, that, by (29), angle ∠γ˙a,b(0), γ˙a,c(0) is itself upper bounded by the maximal possible value of
∫0dS(b,c)RsinRρˉ(s)1−ρ~˙(s)2ds,
among all 1-Lipschitz functions ρ~:[0,dS(b,c)]→(0,πR), under constraints (41). In turn, Lemma 14, says that this maximal value is precisely the angle at aˉ of the comparison triangle aˉbˉcˉ. Of course, swapping vertex a with b or c gives the same upper bounds on the corresponding angles. □
Remark 5 The proof in fact prove a slightly stronger result than mere “CATness”, namely the upper bound on the length of uloga∘γb,c on Sd−1.
Acknowledgements
We thank Jean-Daniel Boissonnat for discussion and Eddie Aamari for his insight in possible applications. We are indebted to the reviewers (SoCG26) for many suggestion and in particular noting that Corollary 8 immediately follows from the results in our submission.
References
AB99. N. Amenta and M. Bern. Surface reconstruction by Voronoi filtering. Discrete & Computational Geometry, 22(4):481-504, Dec 1999.
AB06. Stephanie B. Alexander and Richard L. Bishop. Gauss equation and injectivity radii for subspaces in spaces of curvature bounded above. Geometriae Dedicata, 117(1):65-84, February 2006.
ABL23. Eddie Aamari, Clément Berenfeld, and Clément Levrard. Optimal reach estimation and metric learning. The Annals of Statistics, 51(3):1086-1108, 2023.
ACP13. Ery Arias-Castro and Bruno Pelletier. On the convergence of maximum variance unfolding. The Journal of Machine Learning Research, 14(1):1747-1770, 2013.
ADPKF+24. Dominique Attali, Hana Dal Poz Kourîmská, Christopher Fillmore, Ishika Ghosh, André Lieutier, Elizabeth Stephenson, and Mathijs Wintraecken. Tight bounds for the learning of homotopy à la niyogi, smale, andweinberger for subsets of euclidean spaces and of riemannian manifolds. volume 293, pages 11:1-11:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024.
AL18. 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.
BCSE+07. Paul Bendich, David Cohen-Steiner, Herbert Edelsbrunner, John Harer, and Dmitriy Morozov. Inferring local homology from sampled stratified spaces. In Proceedings of the IEEE Symposium on Foundations of Computer Science (FoCS), pages 536-546, 2007.
BCY18. Jean-Daniel Boissonnat, Frédéric Chazal, and Mariette Yvinec. Geometric and Topological Inference. Cambridge Texts in Applied Mathematics. Cambridge University Press, 2018.
Ber03. M. Berger. A Panoramic View of Riemannian Geometry. Springer-Verlag, 2003.
BH13. Martin R Bridson and André Haefliger. Metric spaces of non-positive curvature, volume 319 of Grundlehren der mathematischen Wissenschaften. Springer Science & Business Media, 2013.
BLW19. 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, Jun 2019.
BMW10. Paul Bendich, Sayan Mukherjee, and Bei Wang. Stratification learning through homology inference. In AAAI Fall Symposium Series, 2010.
Bus05. H. Busemann. The geometry of geodesics. Dover Publications, 2005.
BW18. Adam Brown and Bei Wang. Sheaf-Theoretic Stratification Learning. In Bettina Speckmann and Csaba D. Tóth, editors, 34th International Symposium on Computational Geometry (SoCG 2018), volume 99 of Leibniz International Proceedings in Informatics (LIPics), pages 14:1-14:14, Dagstuhl, Germany, 2018. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik.
CC08. Michael AA Cox and Trevor F Cox. Multidimensional scaling. In Handbook of data visualization, pages 315-347. Springer, 2008.
CDS13. S.-W. Cheng, T.K. Dey, and J.R. Shewchuk. Delaunay Mesh Generation. Computer and information science series. CRC Press, 2013.
CKTK10. 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.
Cla90. Frank H. Clarke. Optimization and Nonsmooth Analysis, volume 5 of Classics in applied mathematics. SIAM, 1990.
Cod55. Earl A Coddington. Theory of ordinary differential equations. McGraw-Hill, 1955.
dC92. M. P. do Carmo. Riemannian Geometry. Birkhäuser, 1992.
Dey07. 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.
DS88. Nelson Dunford and Jacob T Schwartz. Linear operators, part 1: general theory. John Wiley & Sons, 1988.
DVW15. Ramsay Dyer, Gert Vegter, and Mathijs Wintraecken. Riemannian simplices and triangulations. Geometriae Dedicata, 2015. http://dx.doi.org/10.1007/s10711-015-0069-5.
Fed59. H. Federer. Curvature measures. Transactions of the American Mathematical Society, 93:418-491, 1959.
Fed96. H. Federer. Geometric Measure Theory. Classics in Mathematics. Springer, 1996.
FIK+19. 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.
FILN19. 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.
GR05. Amir Globerson and Sam T. Roweis. Metric learning by collapsing classes. In Advances in Neural Information Processing Systems, volume 18, 2005.
Gro87. Mikhael Gromov. Hyperbolic groups. In Essays in group theory, pages 75-263. Springer, 1987.
GS00. Izrail Moiseevitch Gelfand and Richard A Silverman. Calculus of variations. Courier Corporation, 2000.
GT07. C. G. Gray and Edwin F. Taylor. When action is not least. American Journal of Physics, 75(5):434–458, May 2007.
GVS09. Matthieu Guillaumein, 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.
Hau95. Jean-Claude Hausmann. On the Vietoris-Rips complexes and a Cohomology Theory for metric spaces, pages 175–188. Princeton University Press, Princeton, 1995.
Hei19. Christopher Heil. Introduction to Real Analysis, volume 280. Springer, 2019.
HR02. Geoffrey Hinton and Sam T. Roweis. Stochastic neighbor embedding. In Advances in Neural Information Processing Systems, volume 15, 2002.
KMT26. Rafal Komendarczyk, Sushovan Majhi, and Will Tran. Topological stability and latschev-type reconstruction theorems for spaces of curvature bounded above, 2026.
KT03. 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.
Lat01. J. Latschev. Vietoris-Rips complexes of metric spaces near a closed Riemannian manifold. Archiv der Mathematik, 77(6):522–528, December 2001.
LW24. André Lieutier and Mathijs Wintraecken. Manifolds of positive reach, differentiability, tangent variation, and attaining the reach. working paper or preprint, December 2024.
Lyt04. Alexander Lytchak. On the geometry of subsets of positive reach. Manuscripta mathematica, 115(2):199–205, 2004.
Lyt05. Alexander Lytchak. Almost convex subsets. Geometriae Dedicata, 115(1):201–218, 2005.
Maj24. Sushovan Majhi. Demystifying Latschev's theorem: Manifold reconstruction from noisy data. Discrete Comput. Geom., 74(2):544–568, May 2024.
Men30. K. Menger. Untersuchungen über allgemeine Metrik. Vierte Untersuchung. Zur Metrik der Kurven. Mathematische Annalen, 103:466–501, 1930.
Mor17. M. Moriconi. Condition for minimal harmonic oscillator action. American Journal of Physics, 85(8):633–634, August 2017.
NMDB17. Bac Nguyen, Carlos Morell, and Bernard De Baets. Supervised distance metric learning through maximization of the Jeffrey divergence. Pattern Recognition, 64:215–225, 2017.
NSW08. P. Niyogi, S. Smale, and S. Weinberger. Finding the homology of submanifolds with high confidence from random samples. Discrete & Computational Geometry, 39(1-3):419–441, 2008.
O'N06. B O'Neill. Elementary Differential Geometry. Elsevier, 2006.
SGH21. 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.
SL19. Barak Sober and David Levin. Manifold approximation by moving least-squares projection (MMLS). Constructive Approximation, pages 1–46, 2019.
Spi99. M. Spivak. A comprehensive introduction to differential geometry: Volume I. Publish or Perish, 1999.
TdSL00. Joshua B. Tenenbaum, Vin de Silva, and John C. Langford. A global geometric framework for nonlinear dimensionality reduction. Science, 290(5500):2319–2323, 2000.
WW20. Yuan Wang and Bei Wang. Topological inference of manifolds with boundary. Computational Geometry, 88:101606, 2020.
XNJR02. 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.
YJ06. Liu Yang and Rong Jin. Distance metric learning: A comprehensive survey. Technical Report MSU-CSE-06-2, Michigan State University, 2006.
A Proofs of technical lemmas
A.1 Proof of Lemma 7
Lemma 7 If a,b∈S satisfy dS(a,b)<πR and 0<s<dS(a,b), and the geodesic γa,b is twice differentiable at s then,
γ¨a,b(s)∈NorS(γa,b(s)).(16)
Here, NorS(x) denotes the cone normal to S at x. More generally, the Clarke derivative [Cla90] of s↦γ˙a,b(s) at s is a subset of NorS(γa,b(s)), that is,
∀s∈(0,dS(a,b)),∂γ˙a,b(s)⊂NorS(γa,b(s)).(17)
Proof of Lemma 7. We first consider the case where γa,b is twice differentiable at parameter s0 and prove (16).
We consider the arc length parametrized geodesic γ:[0,ℓ]→S, which is by Corollary 3 a C1,1 curve with reach at least R. To derive a contradiction we assume that, for some parameter s0∈(0,ℓ), the second order derivative γ¨(s0) exists and one has γ˙(s0)∈/NorS(γ(s0)). We will build an infinitesimal variation of γ in a neighborhood of γ(s0) that shortens γ. As a result γ cannot be a minimizing geodesic, even locally, that is it is not a local minimizer of the length.
Since 0∈NorS(γ(s0)), our assumption gives us that γ˙(s0)=0.
We introduce the following notation
x:=γ(s0),u:=γ˙(s0),v:=∣γ˙(s0)∣γ¨(s0)
and write κ:=∣γ˙(s0)∣>0 for the (scalar) curvature, see e.g. [O'N06], so that
γ¨(s0)=κv.
Because NorS(x) is the dual cone of TanS(x), there exists τ1∈TanS(x), such that
⟨τ1,γ˙(s0)⟩>0.(42)
We define
τ:=∣τ1−⟨u,τ1⟩u∣τ1−⟨u,τ1⟩u.
Since s0∈(0,ℓ), we have that −u,u∈TanS(x). Moreover, TanS(x) is convex and thus τ∈TanS(x), because ±u,τ1∈TanS(x). By construction we have that ∣τ∣=1 and ⟨u,τ⟩=0. Since ∣γ˙∣2=1 we see that ⟨u,v⟩=0, which if combined with (42) gives
⟨τ,v⟩,⟨τ,γ^˙(s0)⟩>0.
The curve γ can be parametrized by its projection on the line tangent to γ at x, we call this parametrization γ^, that is,
γ^(t):=γ(s(t))=x+tu+21κt2v+δτ(t)τ+wδ(t),
where δτ(0)=dtdδτ(0)=dt2d2δτ(0)=0 and wδ(t) is orthogonal to u and τ and ∣wδ(0)∣=∣w˙δ(0)∣=∣w˙δ(0)∣=0.
Let us denote
β:=2π−∠τ,γ¨a,b(s)>0.
We further define w0 to be the unit vector
w0:=∣v−⟨v,τ⟩τ∣v−⟨v,τ⟩τ,
which is orthogonal to τ. With these definitions we have that
We'll now exploit the semi-continuity of the tangent and normal cones established in [LW24]. More precisely, by [LW24, equation (11)], there exists α1>0 with α1<R/10 such that,
∀y∈B(x,α1)∩S,∠τ,TanS(x)<θ.(44)
There is an α satisfying 0<α<α1/2 such that for all t∈[−α,α] we have that
dtdδτ(t),∣w˙δ(t)∣<101καsinβ(45)
We note that
dtdγ^(t)=u+(κtsinβ+δ˙τ(t))τ+κtcosβw0+w˙δ(t),
where, as mentioned, all vectors are orthogonal with the exception of w0 and w˙δ(t). Hence we can express the length of γ([s(−α),s(α)]) as
For λ∈[0,sinβ] and t∈[−α,α] we consider the following perturbation of γ^, denoted by γ^λ,
γ^λ(s(t))=γ^(t)+λ(21κ(α2−t2))τ.
We stress that by construction γ˙0=γ˙, γ˙λ(−α)=γ˙(−α), and γ˙λ(α)=γ˙(α). As in the first part of this paper this variation is not (necessarily) a curve in S, but its closest point projection is, which we will come back to later.
We want to prove that, for λ>0 small enough, πS∘γ˙λ([−α,α]) is strictly shorter than γ˙([−α,α]) while preserving the endpoints. For this we first need that the variation stays close to S, which is formally handled in the following claim:
Claim 8. Let γ^λ(t) be as defined above. We have that:
Proof of Claim 8. Let ε>0. One can clearly assume without loss of generality that
ε≤1/2.(49)
By (44) and the definition of tangent cone, for any t∈[−α,α], there exists x(t)∈S such that
0<∣x(t)−γ^(t)∣<10εRand∠τ,x(t)−γ^(t)<θ+ε/2.(50)
Recall that γ^(t′)∈S and γ^λ(t′)=γ^(t′)+λ(21κ(α2−t′2))τ. We define
η(t)h(t):=κα2∣x(t)−γ^(t)∣:=∣x(t)−γ^(t)∣ε/4.
We'll now show that for any t′∈(t−h(t),t+h(t)), the minimizing geodesic between γ^(t′) and x(t) is close enough to the segment [γ^(t′),x(t)], c.f. Figure 4. To this end we define
τ′=∣x(t)−γ^(t′)∣x(t)−γ^(t′).
By (50), one has that,
θ′:=∠τ,τ′<θ+ε/2.(51)
Fig. 4 The notation and setting of Claim 8.
Denote by y the point on the segment [γ^(t′),x(t)] closest to γ^λ(t′), so that, as we see in Figure 4,
(52) where we used (51) for the last inequality. We stress that here we used the definition of η. In fact, the definition of η ensures that ∣γ^λ(t′)−γ^(t′)∣≤∣γ^(t′)−x(t)∣, so that the projection of y onto the segment [γ^(t′),x(t)] lies in the interior, and the calculations above apply. Indeed, we see that
The second term is bounded in terms of ∣t−t′∣, which is in turn bounded by h(t), and the Lipschitz constant of γ^. The Lipschitz constant of γ^ is determined by the angle that γ makes with the tangent line, because γ is C1,1 we can assume that this constant is smaller than 2 by decreasing α if necessary. Because ∣t−t′∣ is upper bounded by h(t), we have that
Note that, as a consequence of Lemma 1, if z lies on the segment [p,q] with p,q∈S, then the distance from z do the geodesic between p and q on S is upper bounded by
d(z,S)≤∣z−p∣2R∣q−p∣.
This gives us an upper bound on the distance from y to the geodesic segment in S between γ^(t′) and x(t), that is,
d(y,S)≤λ(21κ(α2−t2))cosθ′2R∣x(t)−γ^(t′)∣.(54)
By the triangle inequality we have that
∣x(t)−γ^(t′)∣≤∣x(t)−γ^(t)∣+∣γ^(t)−γ^(t′)∣.
By (49) and (50) we have that the first term is bounded by Rε/10. As we have seen above the second term is bounded by 2∣t−t′∣≤2h(t)=∣x(t)−γ^(t)∣ε/2≤10εRε/2.
This means that we find
∣x(t)−γ^(t′)∣≤Rε/10+2Rε2/10<Rε/2,
where we used (50) to bound h(t). This means that (54) gives us
d(y,S)≤λ(21κ(α2−t2))cosθ′ε/4≤λ(21κ(α2−t2))ε/2
which, together with (52) and the triangle inequality yields
Since [−α,α] is compact, we can extract a finite open cover:
[−α,α]⊂i=1,…,N⋃(ti−h(ti),ti+h(ti))
Taking η=mini=1,…,Nη(ti) proves the claim.
Taking ε=sinθ in the claim gives us that, for some η>0, one has:
λ∈[0,η]⇒t∈[−α,α]maxdRd(γ^λ(t),S)<λκα2sinθ
using the same argument as in the first part of the paper namely that Theorem 4.8(8) of [Fed59] says the closest point projection πS at a point x is 1−d(x,S)1/R-Lipschitz, we find that
It follows that γ cannot be a local minimum of the length and therefore not a geodesic.
Extension to Clarke's gradient. We have proven the result, namely (16) for any s where s↦γ(s) is twice differentiable. In order to extend it to (17) we use the definition of Clarke gradient as the convex hull of neighboring derivative whenever they exists (which is one of a number of equivalent definitions, see [Cla90, Theorem 2.5.1]) together with the semi-continuity of normal cones.
Write Ω⊂(0,dS(a,b)) for the set where s↦γ^(s) is not differentiable. In our specific, setting where we consider the Lipschitz function s↦γ^, (one of) Clarke's definition(s) of the Clarke gradient [Cla90, Theorem 2.5.1] reads
∂γ^(s)=conv{si→slimγ^(si)∣∀i∈N,si∈/Ω}(55)
where conv X is the convex hull of X.
The semi-continuity of the normal cone is stated in [LW24, Lemma 33] as,
where NorS(p′)⊂NorS(p)∠ϵ means that any vector in NorS(p′) lies at angle at most ϵ from some vector in NorS(p).
Thanks to (16) and (56), we see that any limit in (55) makes a zero angle with NorS(γ(s)). Since NorS(γ(s)) is closed and convex, we get (17).
A.2 Proof of Lemma 11
Lemma 11 Given 0<ℓ<πR and ε>0, there exists α(ℓ,ε)>0 such that for any a,b,b′∈S, that satisfy dS(a,b)=dS(a,b′)=ℓ and ∣b′−b∣<α, one has
∠b′−b,γ^a,b(ℓ)≥2π−ε.
Proof of Lemma 11. We first need to make some definitions and introduce notation, see Figure 5 for an illustration. Take h0 such that
0<h0<min(ℓ,Rε,R/10)(57)
and define
α:=4Rh02.
Denote δ:=∣b′−b∣<α and
h:=2δR.
So that δ:=4Rh2 and h≤h0. Write c=γa,b(ℓ−h).
Fig. 5 The notation for the proof of Lemma 11.
Because dS(a,c)=ℓ−h and dS(a,b′)=ℓ, the triangle inequality gives
h≤dS(c,b′),(58)
see also Figure 5. Lemma 4 now gives
∠b−c,γ˙a,b(ℓ)≤2Rh≤21ε,(59)
where we used the assumption (57) for the second inequality. Since the geodesic distance between points in S is always greater than the Euclidean distance we see that ∣b−c∣≤h. Furthermore, Theorem 3 gives
Alternative proof of Corollary 7. 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 limn→∞an=a and limn→∞bn=b, as well as a sequence of geodesics γn, connecting an and bn such that
t∈Isup∣γ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∣=dS(an,bn).
We further note that thanks to the metric characterization of sets of positive reach [BLW19, Theorem 1] convergence in the Euclidean and geodesic sense are equivalent.
Again, thanks to the metric characterization of sets of positive reach [BLW19, 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 [LW24]. 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∣=dS(an,bn), and dS(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 t∗∈I such that
∣γn(t∗)−γ(t∗)∣≥ϵ/2.(62)
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 ∣t−t∗∣ sufficiently small, we have ∣γnm(t)−γ(t)∣≥ϵ/2. This implies that (62) 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