1 Introduction

Given a metric space X and a scale \(r \ge 0\), there are various constructions that assign a simplicial complex to X at scale a \(r \ge 0\): Rips complex, Čech complex, alpha complex, etc. A collection of any of the mentioned complexes for all \(r \ge 0\) yields a filtration, an increasing sequence of simplicial complexes representing X at all scales. In the past hundred years, filtrations were used to study metric spaces from infinitesimal (shape theory) and asymptotic (coarse geometry) point of view. At the turn of the century, filtrations emerged as one of the foundational concepts of persistent homology, which is obtained by applying a homology to a Rips filtration and is a stable descriptor of metric spaces. This point of view is being used to great effect in topological data analysis. Its computational convenience was established with the first persistence algorithm [11] for finite filtrations. A simplified topological idea used in the algorithm is the following: adding an edge to a simplicial complex either decreases \(H_0\) or increases \(H_1\). Elaborating on this idea we can see that each decrease \(H_0\) or increase \(H_1\) can be assigned to a specific edge. This fact which is crucial to extract corresponding homology representatives with the aim to identify those geometric features in our space, that generate parts of persistent homology.

In this paper, we study analogous results for persistent homology obtained by applying Rips filtration to a compact metric space. In this setting, it is not apparent what the critical edges corresponding to changes in persistence are and whether they exist (in fact, in general they do not). Besides being of theoretical interest of its own, the stability result of persistent homology imply that our results describe the limit of persistent homologies obtained from ever finer finite samples of X. As such our results interpret and provide additional structure to practical computations of persistent homology.

The main results of this paper are:

  • Theorems 3.4 and 4.5: Each scale c where \(H_0\) decreases or \(H_1\) increases is in the closure of local minima of the distance function d.

  • Theorem 3.4 and Proposition 4.8: When the cardinality of pairs at which d attains a local minimum is finite, each mentioned change in persistent homology corresponds to specific pairs at which d attains a local minimum.

Expanding on this context, we use our main results to develop a theory of critical edges of persistent homology. Our secondary results include:

  • Theorem 4.14: Reconstruction result for first homology and fundamental group of compact metric spaces.

  • Corollary 4.13 and Theorem 4.19: Bounds on the change of \(H_1\) and \(H_0\) at critical scales of persistent homology, and bounds on the ranks of the same groups. These include the first results on finiteness of the rank of \(H_1\) for Rips complexes of non-finite spaces at all scales.

  • Theorem 4.21: A simple combinatorial criterion to determine whether the unique pair of points at which d attains an isolated local minimum causes change in persistent homology.

  • Theorem 5.3: Detecting each strict local minimum of d through persistent homology via selective Rips complexes.

These results are complemented by examples demonstrating the necessity of our assumptions. While some of the results of this paper might seem as expected analogues of finite filtrations, the mentioned examples demonstrate that the technicalities of the analogy are far from straightforward. Almost all our results fail to hold in case X is not compact or in case we use closed Rips filtrations instead of open ones.

While our primary focus is persistent homology, our results are stated and proved so that they also apply to persistent fundamental group. We use term “persistence” to encompass persistent homology and persistent fundamental group. Figure 1 demonstrates our results on a simple example.

Fig. 1
figure 1

Space X consisting of three components. By Theorems 3.4 and 4.5, a decrease in \(H_0(\textrm{Rips}(X,r))\) or an increase in \(H_1(\textrm{Rips}(X,r))\) can only be achieved at scales r corresponding to local minima of d. Distance function d attains four non-zero local minima at pairs of points of identical appearance. Let us denote the distinct local minima (i.e., the distances between the corresponding points) by \(min_\bullet , min_\circ min_\blacksquare ,\) and \(min_\square \). At \(min_\bullet \) and \(min_\blacksquare \) two components are merged and thus by Theorems 3.4 and 4.19 the only change is decrease in \(H_0\). At \(min_\circ \) the rank of \(H_1\) increases by 1 by Theorems 4.5, Theorem 4.19, and 4.21. At \(min_\square \), there is no change to \(H_0\) or \(H_1\) by Theorem 4.21, although by using appropriate selective Rips complexes we can see an increase in the rank of \(H_1\) by Theorem 5.4

Related work: To the best of our knowledge, specific identifications of simplices inducing a change in persistent homology (via Rips complexes) of non-finite compact spaces have only been carried out on circles [1] (critical simplices are regular \((2n+1)\)-gons), certain ellipses at small scales [2] (certain critical triangles are equilateral triangles), and in the context of one-dimensional persistence of geodesic spaces [20, 21] (simplices terminating one-dimensional persistence on compact geodesic spaces are equilateral triangles). In all these cases, the diameter function attains a local minimum at the critical simplices. On a similar note, critical simplices of Čech filtration of a finite collection of points in an Euclidean space were studied in [4]. While one-dimensional persistence of nerves was implicitly studied in [5], the approach did not utilize specific simplices but rather used Spanier groups.

There is a growing volume of work studying Rips complexes of simple spaces [1, 2, 12, 18, 19] or interpreting parts of persistence diagrams with properties of the underlying space [3, 17, 20,21,22,23, 26]. Reconstruction results using Rips complexes are typically concerned with reconstructing the homotopy type of the underlying space [15, 24]. To the best of our knowledge, Theorem 4.14 is the first reconstruction theorem aimed at reconstructing persistent homology at only certain dimension under more general assumptions.

Our results on the first homology of a Rips complex being finitely generated under certain assumptions complement results in [9], which focused on Čech complexes. Furthermore, [9] provided an example of a space, whose closed Rips complex has first homology group of infinite rank. The question of such an example for open Rips complexes was left open. We provide it in Example 6.3.

Selective Rips complexes of the last section were first introduced in [25] for the same reason they are utilized here: to detect more geometric features of a metric space. In [25] the features in question were certain simple closed geodesics, in this paper they are local minima of d.

Structure of the paper: In Sect. 2, we provide preliminaries. In Sect. 3, we provide a complete description of zero-dimensional persistence. Section 4 is the most extensive and contains a thorough analysis of emerging homology of one-dimensional persistence, along with a majority of the secondary results. Selective Rips complexes and the way to use them to detect more local minima than with Rips complexes are provided in Sect. 5. Section 6 provides several (counter)examples that demonstrate necessity of our conditions and justify our choices, such as X being compact and use of open Rips complexes instead of closed ones.

2 Preliminaries

Let \(X=(X,d)\) be a metric space with \(d:X\times X \rightarrow [0,\infty )\). For each \(r>0\) and \(x\in X\), let \(\textrm{B}(x,r)= \{y\in X \mid d(x,y) < r \}\) be the open ball, and let \(\overline{\textrm{B}}(x,r)= \{y\in X \mid d(x,y) \le r \}\) be the closed ball. Let \(\textrm{LocMin}(d)\) denote the collection of all local minima of the distance function d. Note that \(0\in \textrm{LocMin}(d)\) if \(X \ne \emptyset \). Scale c is an isolated local minimum of the distance function d if it is the only local minimum of d on some open interval containing c.

Given a scale \(r \ge 0\) the (open) Rips complex \(\textrm{Rips}(X,r)\) is an abstract simplicial complex defined by the following rule: A finite subset \(\sigma \subset X\) is a simplex iff \({\text {Diam}}(\sigma ) < r\). In particular, \(\textrm{Rips}(X,0)\) is the empty set and for each \(r>0\) the vertex set of \(\textrm{Rips}(X,r)\) is X.

Given a scale \(r \ge 0\) the closed Rips complex \(\overline{{\text {Rips}}}(X,r)\) is an abstract simplicial complex defined by the following rule: A finite subset \(\sigma \subset X\) is a simplex iff \({\text {Diam}}(\sigma ) \le r\).

In what follows, we will define persistent homology based on open Rips complexes. Analogue construction can be made with closed Rips complexes, or any other construction yielding a well-defined filtration (such as open and closed Čech complexes, selective Rips complexes defined in a later section, etc.). On the other hand, we can (and will) perform the same construction with fundamental groups. Our general term “persistence” will refer to persistent homology or persistent fundamental group applied to any filtration, although we will focus on Rips filtrations and its variations.

Rips filtration of X is the collection of Rips complexes \(\{\textrm{Rips}(X,r)\}_{r \ge 0}\) along with natural inclusions \(i_{s,t} :\textrm{Rips}(X,s) \hookrightarrow \textrm{Rips}(X,t)\) for all \(s \le t\). We will be using i to denote maps of the form \(i_{s,t}\) without specifying indices.

Applying homology \(H_q\) with coefficients in G to a filtration we obtain persistent homology consisting of homology groups \(\{H_q(\textrm{Rips}(X,r);G)\}_{r \ge 0}\) and the induced homomorphisms \(\{(i_{s,t})_*\}_{s \le t}.\) In the literature persistent homology is sometimes sometimes denoted as the collection of the ranks of maps \((i_{s,t})_*\). Throughout this paper, persistent homology (or persistent fundamental group) will be the object obtained by applying homology (or fundamental group) to a filtration. The Abelian group G forming coefficients will be considered fixed and omitted from notation.

Fixing dimension \(q\in \{0,1,\ldots \}\) we say a scale \(a \ge 0\) is a regular value for \(H_q\) if there exists \(\varepsilon >0\) such that for all \(s,t\in (a - \varepsilon , a + \varepsilon ) \cap [0,\infty )\) satisfying \( s \le t\), the map \((i_{s,t})_*\) is an isomorphism (see [13] and [6] previous appearances of this concept). A scale \(a \ge 0\) is a critical value of \(H_q\) if it is not a regular value. It will be beneficial if we further distinguish critical values. A scale \(a \ge 0\) is an emergent-regular value of \(H_q\) if there exists \(\varepsilon >0\) such that for all \(s,t\in (a - \varepsilon , a + \varepsilon ) \cap [0,\infty )\) satisfying \( s \le t\), the map \((i_{s,t})_*\) is surjective, and is emergent-critical if it is not emergent-regular. Similarly, scale \(a \ge 0\) is a terminally-regular value of \(H_q\) if there exists \(\varepsilon >0\) such that for all \(s,t\in (a - \varepsilon , a + \varepsilon ) \cap [0,\infty )\) satisfying \( s \le t\), the map \((i_{s,t})_*\) is injective, and is terminally-critical if it is not terminally regular. In a similar way, we define regular and critical values of persistent fundamental group.

We will refer to the collection of critical values in any of the mentioned cases as the spectrum. For example, the emergent \(H_1\) spectrum is the collection of emergent-critical values of \(H_1\). Note that by definition each spectrum is a closed subset of \([0,\infty )\).

Given a field \(\mathbb {F}\) and an interval \(J \subset [0,\infty ) \), the interval module \(\mathbb {F}_{J}\) is a collection of \(\mathbb {F}\)-vector spaces \(\{V_r\}_{r \in [0,\infty )}\) with

  • \(V_r = \mathbb {F}\) for \(r\in J\);

  • \(V_r=0\) for \(r \notin J\),

and commuting linear bonding maps \(V_s \rightarrow V_{t}\) which are identities whenever possible (i.e., for \(s,t\in J\)) and zero elsewhere. When persistent homology of a Rips filtration of a compact metric space X is computed with coefficients in a field \(\mathbb {F}\), it decomposes (uniquely up to permutation of the summands) as a direct sum of interval modules (see q-tameness condition in Proposition 5.1 of [9], the property of being radical in [8], and the main result in [8] along with its corollaries for details). The intervals determining the said collection of interval modules are called bars. They form a multiset called barcode of the persistence homology. For each bar, its endpoints form a pair of numbers from \((0,\infty )\cup \{\infty \}\), with the left endpoint being smaller than \(\infty \). These pairs form a multiset called a persistence diagram.

3 Zero-Dimensional Persistence

In this section, we will analyze critical scales of persistent zero-dimensional homology of a compact metric space X obtained through the Rips filtration. It is apparent that the only emergent-critical value of \(H_0\) is zero as \(\textrm{Rips}(X,0)=\emptyset \) while the vertex set of \(\textrm{Rips}(X,r)\) for each \(r>0\) is X. We thus turn our attention to terminally-critical values.

Lemma 3.1

(Finiteness property) Let X be a compact metric space. Then for every \(r>0\), \(H_0(\textrm{Rips}(X,r))\) is finitely generated. The rank of \(H_0(\textrm{Rips}(X,r))\) is bounded from above by the number of open r balls required to cover X.

Proof

Let \(r > 0\). \(H_0((\textrm{Rips}(X,r))\) is generated by elements of the form \([v_n]\), where \(v_n \in X\). Since X is compact, we can cover it with finitely many open balls of radius r, i.e., \(\bigcup _{j=1}^k \textrm{B}(v_j,r)=X\). For each \(x\in \textrm{B}(v_n,r)\), we have \([x]=[v_n]\in H_0((\textrm{Rips}(X,r))\) hence \([v_1], \ldots [v_k]\) is a finite generating set. \(\square \)

Let \(\rho >0\). A finite \(\rho \)-sequence between points \(x,y\in X\) is a sequence \(x=x_1, x_2, \ldots , x_p=y\) of points in X such that \(d(x_j, x_{j+1})\le \rho \). A finite strictly \(\rho \)-sequence between points \(x,y\in X\) is a sequence \(x=x_1, x_2, \ldots , x_p=y\) of points in X such that \(d(x_j, x_{j+1})< \rho \).

Definition 3.2

Let X be a compact metric space and \(r>0\). We define an equivalence relation \(\sim _r\) on X by \(x\sim _r y \Leftrightarrow [x]=[y] \in H_0(\textrm{Rips}(X,r))\). Equivalently, \(x\sim _r y\) if there is a finite strictly r-sequence between them.

Lemma 3.3

This equivalence classes of \(\sim _r\) are open and closed subsets of X.

Proof

If \(x \in X\) and \(y\in \textrm{B}(x,r)\), then \([x] =[y]\) and thus the equivalence class [x] is open in X. According to the Lemma 3.1 there are only finitely many equivalence classes, so they are also closed. \(\square \)

Theorem 3.4

(Geometry of terminally critical scales) Let X be a compact metric space. Then:

  1. (1)

    The only potential accumulation point of the \(H_0\) critical values is 0.

  2. (2)

    Each terminally-critical value of persistent \(H_0\) (i.e., \(\{H_0(\textrm{Rips}(X,r))\}_{r \ge 0}\)) is a local minimum of the distance function d.

  3. (3)

    Assume \(a_1 < a_2\) are consecutive \(H_0\) terminally critical values and \(r\in (a_1,a_2]\), or \(a_1\) is the largest \(H_0\) critical value and \(r>a_1\). Then, points \(x,y\in X\) satisfy \(x \sim _r y\) iff there is a finite \(a_1\)-sequence between them.

Proof

Let \(r_1>0\) and assume \(A_1,A_2,\ldots A_n \subseteq X\) are the finitely many (by Lemma 3.1) equivalence classes of \(\sim _{r_1}\). It is apparent that there at most \(n-1\) critical scales of \(H_0\) larger than \(r_1\), with each of them being a scale at which at least two equivalence classes merge. This implies (1) as \(r_1>0\) can was chosen arbitrarily. Define

$$\begin{aligned} d(A_j,A_k)=\min \{d(x_j,x_k) \mid x_j \in A_j, x_k \in A_k \}, \ j,k=1,2,\ldots n. \end{aligned}$$

Let \(c_1=\min \{d(A_j,A_k) \mid j\ne k\}\). By Lemma 3.3 we may assume \(c_1=d(A_1,A_2)=d(x_1,x_2)\) for some \(x_1\in A_1, x_2\in A_2\). For each \(s > c_1,\ [A_1]=[A_2] \in H_0(\textrm{Rips}(X,s))\). Furthermore, for each \(r \le c_1, \ [A_j] \ne [A_k] \in H_0 ((\textrm{Rips}(X,r))\) for all \(j \ne k\) as every pair of points in X at distance less than r is contained in the single class \(A_j\) by the definition of \(c_1\). Therefore, \(c_1\) is the first critical values of \(H_0\) larger than \(r_1\). We claim \(c_1\) is a local minimum of the distance function d.

Take the open neighborhood \(A_1 \times A_2 \subset X \times X\) of \((x_1, x_2)\). By the definition of the pair \((x_1, x_2)\), we have \(d(x'_1,x'_2)\ge d(x_1,x_2)\) for each pair \((x'_1, x'_2) \in A_1\times A_2\). Hence d attains a local minimum \(c_1\) at \((x_1, x_2)\). As there are only finitely many critical scales of \(H_0\) larger than \(r_1\) we may proceed by induction: set \(r_2=c_1\) and repeat the argument for \(r_2\) instead of \(r_1\), etc. We thus obtained (2).

In order to prove (3), we may assume \(a_1=c_1\). From the argument above observe that \(a_1\) is the minimum of \(\{d(A_j,A_k) \mid j \ne k\}\) while \(a_2\)—if finite—is the second smallest number of \(\{d(A_j,A_k) \mid j \ne k\}\). Since \(x \sim _r y\), there is a finite strictly r-sequence between them. Each consecutive pair of points \((x'_j, x'_{j+1})\) from this sequence can be replaced by a finite \(c_1\)-sequence as follows:

  • If both \(x'_j\) and \(x'_{j+1}\) are from the same \(A_k\), then they may be connected by a finite strictly \(c_1\)-sequence.

  • Assume \(x'_j \in A_{k_1}\) and \(x'_{j+1}\in A_{k_2}\) for \(k_1 \ne k_2\). Then, \(d(A_{k_1},A_{k_2}) < r\) and thus \(d(A_{k_1},A_{k_2}) = c_1\). Without loss of generality, we may assume \(k_1=1\) and \(k_2=2\) given the setting at the beginning of the proof. Then, we may connect:

    • \(x'_j\) to \(x_1\) by a finite strictly \(c_1\)-sequence.

    • \(x_1\) to \(x_2\) by the obvious finite \(c_1\)-sequence \(x_1,x_2\).

    • \(x'_{j+1}\) to \(x_2\) by a finite strictly \(c_1\)-sequence.

As a result, we obtain a finite \(c_1\)-sequence from x to y thus (3) holds. \(\square \)

Remark 3.5

Let us summarize some of the the obtained results:

  1. (1)

    The only emergent-critical value of \(H_0\) is zero.

  2. (2)

    Each terminally critical value of \(H_0\) is a local minimum of d, i.e., the \(H_0\) spectrum is contained in \(\textrm{LocMin}(d)\).

  3. (3)

    The collection of terminally critical values of \(H_0\) is either finite or forms a sequence converging towards zero.

  4. (4)

    Given a terminally critical value c of \(H_0\) choose \(\varepsilon >0\) such that no other critical value lies in \((c-2\varepsilon , c+2\varepsilon )\). Then for each non-trivial \([\alpha ] \in \ker i_{c-\varepsilon , c+\varepsilon } \subset H_0(\textrm{Rips}(X,c-\varepsilon ))\), the 0-chain \(\alpha \) is non-trivial in \(H_0(\textrm{Rips}(X, c))\). In particular, \([\alpha ]\) (which may, for example, represent the formal difference of two components about to merge at c) becomes trivial beyond c, but not yet at c.

  5. (5)

    When persistent homology is computed with coefficients from a field, statement (4) implies that all bars of \(H_0\) are open at the left endpoint 0 and closed at the right endpoint.

Remark 3.6

Statement (1) above holds for any space X for \(H_0\), but not for higher-dimensional persistent homology. Statement (2) does not hold if X is not compact: consider the union of the graphs of functions \(1 + 1/x\) and \(-1-1/x\) for \(x>0\), which has a critical value 2 but the distance function lacks a positive local minimum. Statement (3) follows from Lemma 3.1 and also holds for totally bounded spaces, but obviously not in general. Statement (4) holds for any space X.

If we are using the closed Rips filtration (upon a compact metric space X) instead of the open one, statements (1)–(3) remain the same, while (4) changes: c is the minimal scale at which chain \([\alpha ]\) is trivial. Statement (5) changes to: all bars are intervals closed at the left endpoint 0 and open at the right endpoint.

4 One-Dimensional Persistence

In this section, we will analyze emergent spectrum of persistent \(H_1\) and persistent fundamental group of a compact metric space X obtained through the Rips filtration. We first prove that the mentioned spectra are contained in the closure \(\overline{\textrm{LocMin}(d)}\) of the local minima of d.

4.1 Geometry of Spectra

Definition 4.1

Fix \(r>0\). Let (Xd) be a compact metric and \(x,y\in X\) with \(d(x,y)<r\). Choose \(\nu < r - d(x,y)\). We say that (xy) \(\nu \)-descends (or simply descends) to \((x',y')\) if there are finite \(\nu \)-sequences \(x=x_1, x_2, \ldots , x_p=x'\) and \(y=y_1, y_2, \ldots , y_p=y'\) such that for each j we have \(d(x_j,y_j) < d(x,y)\), see Fig. 2.

Fig. 2
figure 2

A sketch of a \(\nu \)-descent. The distances between consecutive points (solid lines) are smaller than \(\nu \). The dashed distances are smaller than d(xy)

The concept of descending will allow us to replace an edge in a simplicial loop (or a homology cycle) with a sequence of shorter edges without changing the homotopy (homology) type. Descending Lemma below states that we can always descend so that the lengths of the obtained edges are at most the first local minimum of d smaller than r if such a local minimum exists. To that end, we introduce the following notation.

Let \(\rho >0\). A cyclic \(\rho \)-sequence is a finite \(\rho \)-sequence \(x=x_1, x_2, \ldots , x_p=x\) of points in X (in particular, \(d(x_j, x_{j+1})\le \rho \)). A cyclic \(\rho \)-sequence will often be identified with a 1-cycle in \(\overline{{\text {Rips}}}(X,\rho )\) defined as \(\sum _{j=1}^{p-1} \langle x_j, x_{j+1} \rangle \). A cyclic strictly \(\rho \)-sequence is a finite strictly \(\rho \)-sequence \(x=x_1, x_2, \ldots , x_p=x\) of points in X (in particular, \(d(x_j, x_{j+1}) < \rho \)). A cyclic strictly \(\rho \)-sequence will often be identified with a 1-cycle in \(\textrm{Rips}(X,\rho )\) defined as \(\sum _{j=1}^{p-1} \langle x_j, x_{j+1} \rangle \).

Let \(\bullet \) be a basepoint in X and all its Rips complexes unless explicitly stated otherwise.

Lemma 4.2

(Descending Lemma) Assume X is a compact metric space, let \(r > 0\), and choose a pair of points \(x,y\in X\) with \(d(x,y) < r\).

  1. (1)

    If \(c > 0\) is the only local minimum of the distance function d on the interval [cd(xy)), and d does not attain a local minimum at (xy), then (xy) descends to a pair of points \((x',y')\) at distance at most c.

  2. (2)

    Choose \(\varepsilon > 0\). If for some \(a \ge 0\), the distance d has no local minima on the interval (ad(xy)), and d does not attain a local minimum at (xy), then (xy) descends to a pair of points \((x',y')\) at distance at most \(a + \varepsilon \).

Proof

(1) Let \(x, y \in X\), \(c<d(x, y)<r\), and fix \(\nu < r - d(x, y)\). Define set

$$\begin{aligned} A{} & {} =A(x, y)=\{r'\le r \ | \ \exists x', y' \in X \ \text { such that } \ (x, y) \ \nu \text {-descends to } (x', y') \\{} & {} \text { and } d(x', y')\le r' \}. \end{aligned}$$

It is enough to show that \([c,r]\subseteq A\). It is obvious that A is not empty (\(r\in A\)) and A is an interval because if \(t \in A\) for some \(t < r\), then \(t' \in A \) for each \(t' \in [t, r]\) due to the descending condition in the definition of A(xy) being weaker for larger parameters, i.e., because (xy) \(\nu \)-descends to \((x', y')\) with \(d(x', y') \le t \le t'\). We proceed by three steps:

  • We first prove that A contains a number smaller than d(xy). As d does not attain a local minimum at (xy), there exist \((x', y')\) with \(d(x, x')< \nu , \ d(y, y') < \nu \), and \(d(x', y') < d(x,y).\) Thus, the pair (xy) descends to \((x', y')\) and hence \(d(x', y') \in A\).

  • We next prove that if \(A=[\rho ,r]\) then \(\rho \le c\).

    Assume \(A=[\rho ,r]\) where \(\rho > c\). There exists a pair \((x', y')\) with \(d(x', y')=\rho \), to which (xy) descends. Because \(\rho < d(x,y)\) is not a local minimum of d we can find \(x'', y''\in X\) with \(d(x'', y'')< d(x', y') = \rho ,\ d(x', x'') < \nu \), and \( d(y', y'')< \nu \). Prolonging the mentioned descent by one step using \(x''\) and \(y''\) we see that (xy) descends onto \((x'', y''), \ d(x'',y'')\in A\) and thus \(A \ne [\rho ,r]\).

  • We conclude by showing that A is closed at the left endpoint.

    For each \(n\in {\mathbb {N}}\) let \((x_n, y_n)\) be a pair in X to which (xy) descends with \(d(x_n, y_n)\le \rho + \frac{1}{n}\). As X is compact the sequences \((x_n)\) and \((y_n)\) have accumulation points \(x'\) and \(y'\), respectively. Observe that \(d(x', y')=\rho \). We claim that (xy) descends to \((x', y')\). Choose \( m \in {\mathbb {N}}\) such that \(d(x_m, x') < \nu \) and \(d(y_m, y')<\nu \). We can prolong the descent from (xy) to \((x_m, y_m)\) by one step to \((x', y')\), which implies \(\rho \in A\).

We conclude \([c, r] \subseteq A\) and thus (1) holds.

The proof of (2) is analogous to that of (1). When \(a=0\) we need to choose \(\nu < \varepsilon \). \(\square \)

Fig. 3
figure 3

A sketch of statement (1a) of Lemma 4.3. Edge \(\langle x,y\rangle \) of the bold 1-cycle \(\alpha \) is replaced by the grey finite c-sequence along the descending finite \(\nu \)-sequences obtained by (1) of Lemma 4.2. Such a modification preserves the homology class of a cycle (and based homotopy class of a path) containing the edge \(\langle x,y\rangle \)

Lemma 4.3

(Surjectivity Lemma) Assume X is a compact metric space and let \(r > 0\).

  1. (1)

    If \(c > 0\) is the only local minimum of the distance function d on the interval [cr), then:

    1. (a)

      For each 1-cycle \(\alpha \) in \(\textrm{Rips}(X,r)\), there exists a cyclic c-sequence \(\alpha '\) in X such that \([\alpha ']=[\alpha ]\in H_1(\textrm{Rips}(X,r))\), i.e., the natural inclusion induced map \(H_1(\overline{{\text {Rips}}}(X,c)) \rightarrow H_1(\textrm{Rips}(X,r))\) is surjective.

    2. (b)

      For each based simplicial loop \(\alpha \) in \(\textrm{Rips}(X,r)\) there exists a based simplicial loop \(\alpha '\) in \(\overline{{\text {Rips}}}(X,c)\) such that \(\alpha '\simeq \alpha \ \textrm{ rel } \bullet \) in \(\textrm{Rips}(X,r)\), i.e., the natural inclusion induced map \(\pi _1(\overline{{\text {Rips}}}(X,c),\bullet ) \rightarrow \pi _1 (\textrm{Rips}(X,r),\bullet )\) is surjective.

  2. (2)

    If for some \(a \ge 0\) the distance d has no local minima on the interval (ar), then for each \(\varepsilon > 0\):

    1. (a)

      For each 1-cycle \(\alpha \) in \(\textrm{Rips}(X,r)\), there exists a cyclic \((a + \varepsilon )\)-sequence \(\alpha '\) such that \([\alpha ']=[\alpha ]\in H_1(\textrm{Rips}(X,r))\), i.e., the natural inclusion induced map \(H_1(\overline{{\text {Rips}}}(X,a + \varepsilon )) \rightarrow H_1(\textrm{Rips}(X,r))\) is surjective.

    2. (b)

      For each based simplicial loop \(\alpha \) in \(\textrm{Rips}(X,r)\) there exists a based simplicial loop \(\alpha '\) in \(\overline{{\text {Rips}}}(X, a + \varepsilon )\) such that \(\alpha '\simeq \alpha \ \text { rel } \bullet \) in \(\textrm{Rips}(X,r)\), i.e., the natural inclusion induced map \(\pi _1(\overline{{\text {Rips}}}(X,a + \varepsilon ), \bullet ) \rightarrow \)\( \pi _1(\textrm{Rips}(X,r), \bullet )\) is surjective.

Proof

(1a) Given a 1-cycle \(\alpha \) in \(\textrm{Rips}(X,r)\), fix its edge \(\langle x,y\rangle \). By (1) of Lemma 4.2, the pair (xy) \(\nu \)-descends to \((x',y')\) via finite \(\nu \)-sequences \(x=x_1, x_2, \ldots , x_p=x'\) and \(y=y_1, y_2, \ldots , y_p=y'\) with \(d(x', y') \le c\). Replace edge \(\langle x,y\rangle \) in \(\alpha \) by a finite c-sequence \(x=x_1, x_2, \ldots , x_p =x', y'=y_p, y_{p-1}, \ldots , y_1=y\), as indicated in Fig. 3. The obtained modification preserves the homology class of the 1-cycle as is evident from Fig. 3: observe that the sides of the triangles \((x_j, x_{j+1},y_j)\) and \((x_{j+1}, y_j, y_{j+1})\) are at most d(xy), \(\nu \), and \(d(x,y) + \nu \), all of which are smaller than r by the definition of \(\nu \).

Performing such a modification for each edge in \(\alpha \) we obtain \(\alpha '\) satisfying the conclusion of (1a).

(1b) The proof is the same as that of (1a). The proof of (2) is analogous to that of (1). When \(a=0\) we need to choose \(\nu < \varepsilon \). \(\square \)

Remark 4.4

Lemmas 4.2 and 4.3 consist of two parts. Parts (1) refer to the case when \(\textrm{LocMin}(d)\cap [0,r)\) has a maximum (referred to as c in the statements). This is not always the case, see \(\{(1/n,\pm (1-1/n))\mid n\in \mathbb {N}\}\subset \mathbb {R}^2\). Parts (2) consider the case when \(\textrm{LocMin}(d)\cap [0,r)\) does not have a maximum (with the supremum being represented by a) or when the maximum is zero.

Theorem 4.5

Assume X is a compact metric space. Then, the emergent \(H_1\) spectrum and the emergent \(\pi _1\) spectrum of the open Rips filtration are both contained in \(\overline{\textrm{LocMin}(d)}\).

Proof

For \(b \notin \overline{\textrm{LocMin}(d)}\), there exists \(\varepsilon >0\) such that \(\textrm{LocMin}(d) \cap (b-\varepsilon ', b+\varepsilon ') = \emptyset \). By (2) of Lemma 4.3 the inclusions \(\{i_{t,s} \mid b-\varepsilon '< t< s < b+ \varepsilon '\}\) induced maps on \(H_1\) and \(\pi _1\) are surjective. \(\square \)

Remark 4.6

When X is not compact Theorem 4.5 might not hold. Observe that if \(X \subseteq \mathbb {R}^n\) is open (and non-empty) then \(\textrm{LocMin}(d)=\{0\}\) while persistent homology might be very rich. We also point out that the emergent \(H_1\) spectrum might not be contained in the emergent \(\pi _1\) spectrum as the latter only considers loops in the connected component (of the Rips complexes) containing \(\bullet \).

When considering persistence obtained through closed Rips filtration ephemeral summands might yield critical values that are not in \({\overline{\textrm{LocMin}}}(d)\), see Example 6.1. Furthermore, when persistent homology is computed with coefficients from a field and d attains only finitely many minima, statement (1a) of Lemma 4.3 implies that all bars of \(H_1\) are closed at the left endpoint if that endpoint is non-zero. If the left endpoint of a bar in \(H_1\) is zero, the bar is open at the left endpoint as \(\overline{{\text {Rips}}}(X,0)\) is a discrete set and thus has trivial \(H_1\).

4.2 Emergent Cycles (Loops) and their Cardinality

In this subsection, we prove that one-dimensional homology emerging at a locally isolated local minimum c of d arises by attaching elements of \(\mathcal {M}_c\) (see Definition 4.7) to \(\textrm{Rips}(X,c)\). We then use this fact to estimate the increase in the rank of \(H_1\) at c.

Definition 4.7

For \(c\in \textrm{LocMin}(d)\) define

$$\begin{aligned} \mathcal {M}_c:=\{(x,y) \in X^2 \mid d(x,y)=c, \ d\text { has a local minimum at }(x,y) \} \end{aligned}$$

as the collection of pairs at which d has a local minimum at \(d=c\).

Proposition 4.8

Assume X is a compact metric space. Let \(c > 0\) be an emergent critical value of \(H_1\) and an isolated local minimum of d, i.e., \((c-\varepsilon ,c+\varepsilon ) \cap \textrm{LocMin}(d)=\{c\}\) for some \(\varepsilon > 0\). Define

$$\begin{aligned} \textrm{Rips}^*(X,r)=\textrm{Rips}(X,r) \cup \{\langle x,y \rangle \mid (x,y)\in \mathcal {M}_c \}. \end{aligned}$$

Then for each \(t < s\) with \(c-\varepsilon< t< c< s < c+\varepsilon \), the map induced on \(H_1\) by the inclusion \(\textrm{Rips}^*(X,t) \hookrightarrow \textrm{Rips}(X,s)\) is surjective.

Proof

Choose a 1-chain \(\alpha \) in \(\textrm{Rips}(X,s)\). By (1a) of Lemma 4.3, \(\alpha \) is homologous in \(\textrm{Rips}(X,s)\) to a 1-chain \(\alpha '\) in \(\overline{{\text {Rips}}}(X,c)\). By (2) of Lemma 4.2, each edge of \(\alpha '\) that does not correspond to a pair in \(\mathcal {M}_c\) descends to a pair of points at distance less than t. Replacing each such edge in \(\alpha '\) by a finite t-sequence arising from the mentioned descent (as in the proof of (1a) of Lemma 4.3) we obtain a 1-cycle \(\alpha ''\) homologous to \(\alpha '\) in \(\textrm{Rips}(X,s)\), which satisfies the following properties: each of its edges corresponds to either a pair in \(\mathcal {M}_c\) or a pair of points at distance less than t. Thus, \(\alpha ''\) is a 1-cycle in \(\textrm{Rips}^*(X,t)\) homologous (in \(\textrm{Rips}(X,s)\)) to \(\alpha \). \(\square \)

Proposition 4.9

Assume X is a compact metric space. Let \(c > 0\) be an emergent critical value of \(\pi _1\) and an isolated local minimum of d, i.e., \((c-\varepsilon ,c+\varepsilon ) \cap \textrm{LocMin}(d)=\{c\}\) for some \(\varepsilon > 0\). Define

$$\begin{aligned} \textrm{Rips}^*(X,r)=\textrm{Rips}(X,r) \cup \{\langle x,y \rangle \mid (x,y)\in \mathcal {M}_c \}. \end{aligned}$$

Then, for each \(t < s\) with \(c-\varepsilon< t< c< s < c+\varepsilon \), the inclusion \(\textrm{Rips}^*(X,t) \hookrightarrow \textrm{Rips}(X,s)\) induced map on \(\pi _1\) is surjective.

Proof

The proof is analogous to that of Proposition 4.8. \(\square \)

Proposition 4.8 states that the emergent homology in persistent \(H_1\) at a critical point, which is an isolated local minimum, is generated by complementing the Rips complex by the edges corresponding to the pairs of points at which d attains a local minimum with value c. On one hand, this yields convenient description of emerging cycles (and loops in persistent fundamental group). On the other hand, it allows us to estimate the increase of the rank of \(H_1\).

Definition 4.10

The cardinality of the minimal generating set of a group G will be denoted by \({\text {mgs}}(G)\).

Clearly \({\text {rank}}(G) \le {\text {mgs}}(G)\) so all subsequent upper bounds on \({\text {mgs}}\) of groups also hold for the rank.

Proposition 4.11

Assume X is a compact metric space. Let \(c > 0\) be an isolated local minimum of d. Then, for each \(t < s\) within \((c-\varepsilon ,c+\varepsilon )\), we have \({\text {mgs}}(H_1(\textrm{Rips}(X,s))) \le {\text {mgs}}(H_1(\textrm{Rips}(X,t))) + |\mathcal {M}_c|\).

Proof

The proof is a direct consequence of Proposition 4.8 as adding \( |\mathcal {M}_c|\) edges to a simplicial complex increases the cardinality of the minimal generating set of its \(H_1\) by at most \( |\mathcal {M}_c|\). \(\square \)

Remark 4.12

The analogue of Proposition 4.11 for the fundamental group holds only if \(\textrm{Rips}(X,r)\) is connected for some \(r<c\). While adding an edge to a simplicial complex increases the cardinality of the minimal generating set of \(H_1\) by at most 1, it might increase the rank of cardinality of the minimal generating set of the fundamental group by more than 1 if the said edge connects different component of the said simplicial complex.

The following corollary refines Proposition 4.11. It states that \(|\mathcal {M}_c|\) is the upper bound for the increase of \({\text {mgs}}\) of \(H_1\) at c plus the decrease of \({\text {rank}}\) of \(H_0\) at c.

Corollary 4.13

Assume X is a compact metric space. Let \(c > 0\) be an isolated local minimum of d. Then, for each \(t < s\) within \((c-\varepsilon ,c+\varepsilon )\), we have

$$\begin{aligned}{} & {} {\text {mgs}}(H_1(\textrm{Rips}(X,s))) - {\text {mgs}}(H_1(\textrm{Rips}(X,t))) +\\{} & {} \quad + {\text {rank}}(H_0(\textrm{Rips}(X,t))) - {\text {rank}}(H_0(\textrm{Rips}(X,s))) \le |\mathcal {M}_c|. \end{aligned}$$

Proof

The proof is a direct consequence of Proposition 4.8 as adding an edge to a simplicial complex either connects two of its components (thus decreasing the rank of \(H_0\) by one) or increases the cardinality of the minimal generating set of its \(H_1\) by at most one. \(\square \)

4.3 Reconstruction Result for \(H_1\) and \(\pi _1\)

In this subsection, we prove that for a wide class of spaces, the Rips complex at small scales captures \(H_1\) and \(\pi _1\) of the underlying space X. Similar results for fundamental groups of nerve complexes have been proved on numerous occasions, including [5, 7]. On the other hand, reconstruction results for homotopy type of X using Rips complexes have been proved for certain classes of spaces in [15, 24].

Space X is simply connected up to scale \(R>0\) if for each \(x\in X\) and each positive \(r<R\) the open r-ball around x is simply connected. In particular, this means that such a space is locally path connected. Thus, a compact space which is simply connected up to scale \(R>0\) consists of finitely many open path-connected components.

Theorem 4.14

Let \((X, \bullet )\) be a based space which is compact and simply connected up to scale \(R>0\). Then, \(\pi _1(\textrm{Rips}(X,r),\bullet ) \cong \pi _1(X, \bullet )\) for each positive \(r < R/3\). Furthermore, if \(r' \in (r,R/3)\) then the natural inclusions \(i_{r,r'}\) of Rips complexes at scales \(r < r' \) induce isomorphisms on fundamental groups.

Proof

Define a map \(\varphi =\varphi _r :\pi _1(\textrm{Rips}(X,r),\bullet )\rightarrow \pi _1(X, \bullet )\) by the following rule. If \(\alpha \) is a based simplicial loop in \(\textrm{Rips}(X,r)\) given by the sequence of vertices \(\bullet = x_1, x_2, \ldots , x_n=\bullet \), define \(\varphi ([\alpha ])\) as the based homotopy type of the loop \(\alpha ^X\) obtained as the concatenation of paths \(\psi _k\) in X between points \(x_k\) and \(x_{k+1}\), where each path \(\psi _k\) is contained in \(\textrm{B}(x_k, r)\).

We first prove \(\varphi \) is well defined.

  • We first show that \(\varphi ([\alpha ])=[\alpha ^X]\) does not depend on the choice of paths \(\psi _k\). Assume \(\psi '_k\) is a different path from \(x_k\) to \(x_{k+1}\). Concatenating \(\psi _k\) with the reversed path \(\psi '_k\) we obtain a loop contained in \(\textrm{B}(x_k, 2r)\). As \(2r < R\) this loop is nullhomotopic. Thus, replacing \(\psi _k\) by \(\psi '_k\) does not change the homotopy type of \(\varphi ([\alpha ])\) as defined above.

  • We now show that \(\varphi ([\alpha ])\) does not depend on the homotopy representative of \([\alpha ]\). Assume \(\alpha \) and \(\beta \) are homotopic-based simplicial loops in \(\textrm{Rips}(X,r)\). A homotopy is given by a simplicial map H of a triangulation \(\tau \) of \(S^1 \times I\) into \(\textrm{Rips}(X,r)\). Define a homotopy \(H' :S^1 \times I \rightarrow X\) on the same triangulation \(\tau \) as follows:

    For each vertex \(v\in \tau \) define \(H'(v)=H(v)\). Orient all edges in \(\tau \). For each oriented edge \(\langle a,b \rangle \in \tau \) define \(H'\) on [ab] as a path between H(a) and H(b) in \(\textrm{B}(H(a),r)\). If \(H(a)=H(b)\) choose the constant path. This ensures the obtained homotopy \(H'\) is basepoint preserving. For each triangle \([a,b,c]\in \tau \) define \(H'\) on [abc] as the nullhomotopy in X of the loop X defined by \(H'\) on the boundary of [abc]. Note that the said loop is contained in the 3r-ball around one of its vertices (the one from which we can reach the other two vertices along the chosen orientation of the three edges) and the mentioned nullhomotopy exists as \(3r < R\).

    As a result, we obtain a based homotopy between \(\varphi ([\alpha ])\) and \(\varphi ([\beta ])\).

Thus, \(\varphi \) is well defined. Furthermore, it is obviously a homomorphism.

We next prove \(\varphi \) is injective. Let \(\alpha \) be a based simplicial loop in \(\textrm{Rips}(X,r)\) given by the sequence of vertices \(\bullet = x_1, x_2, \ldots , x_n=\bullet \). Assume \(\varphi ([\alpha ])\) is contractible. Then there exists a nullhomotopy \(H:B^2 \rightarrow X\) defined on a closed two-dimensional disc \(B^2\), whose restriction to the boundary \(S^1 = \partial B^2\) is \(\alpha ^X\). Choose a triangulation \(\tau \) of \(B^2\) containing vertices \(x_1, x_2, \ldots , x_n\) such that for each triangle T in \(\tau \) the image of H(T) is contained in a ball of radius r/2. Define a simplicial homotopy \(H':B^2 \rightarrow \textrm{Rips}(X,r)\), where the triangulation on \(B^2\) is \(\tau \), and for each vertex \(v\in \tau \) define \(H'(v)\) to be the vertex in \(\textrm{Rips}(X,r)\) corresponding to the point \(H(v)\in X\).

Note that \(H'\) is well defined as the vertices of each triangle are a set of diameter less than r. Thus, \(H'\) is a simplicial nullhomotopy of \(\alpha '\), which is defined as the restriction of \(H'\) to \(S^1 = \partial B^2\), in \(\textrm{Rips}(X,r)\). It remains to show that \([\alpha ]=[\alpha '] \in \pi _1(\textrm{Rips}(X,r),\bullet )\). Triangulation \(\tau \) restricted to \(S^1\) is a refinement of the triangulation on \(S^1\) induced by the vertices \(x_1, x_2, \ldots , x_n\). Thus, the vertices of \(\tau \) restricted to \(S^1\) are (in a cyclic order so as to determine a simplicial loop \(\alpha '\))

$$\begin{aligned} \bullet = x_1=x_{1,1}, x_{1,2}, \ldots , x_{1,k_1}= x_2=x_{2,1}, x_{2,2}, \ldots , x_{2,k_2}=x_3=x_{3,1}\ldots , x_n=\bullet . \end{aligned}$$

We claim that for each j the simplicial loop

$$\begin{aligned} x_j=x_{j,1}, x_{j,2}, \ldots , x_{j,k_j}= x_{j+1},x_j \end{aligned}$$

is nullhomotopic in \(\textrm{Rips}(X,r)\). Observe that all the mentioned vertices correspond to points in \(\textrm{B}(x_j,r)\). This means that the mentioned simplicial loop is contained in the closed star of \(x_j\) in \(\textrm{Rips}(X,r)\) and is thus contractible. Replacing the portion of the simplicial loop \(\alpha '\) between \(x_j\) and \(x_{j+1}\) by the single edge from \(x_j\) to \(x_{j+1}\) (as is in \(\alpha \)) thus preserves the homotopy type. Performing such homotopy-type preserving modification for each j we transform \(\alpha '\) into \(\alpha \) and conclude the proof of injectivity.

We now prove \(\varphi \) is surjective. Let \(f:S^1 \rightarrow X\) be a loop based at \(\bullet \). For each \(t\in S^1\), choose an open interval on \(S^1\) containing t, such that its image via f is contained in an open (r/2)-ball in X. By compactness there exists a finite collection of such intervals covering \(S^1\). Denoting the centers of the obtained intervals by \(t_j\), we obtain a finite sequence of points \(\bullet = t_1, t_2, \ldots , t_k = \bullet \) appearing in the positive order on \(S^1\) and winding around it exactly once, such that for each k the image via f of the closed interval from \(t_k\) to \(t_{k+1}\) (in the positive direction) is contained in \(\textrm{B}(t_k,r)\). The cyclic strictly r-sequence \(\bullet = f(t_1), f(t_2), \ldots , f(t_k) = \bullet \) is a simplicial based loop in \(\textrm{Rips}(X,r)\) whose based homotopy class is mapped to f via \(\varphi \).

Thus, \(\pi _1(\textrm{Rips}(X,r),\bullet ) \cong \pi _1(X, \bullet )\) for all positive \(r < R/3\). As maps \(\varphi _r\) commute with the inclusions induced maps on the fundamental groups of Rips complexes, the second conclusion of the theorem also holds. \(\square \)

Theorem 4.15

Let X be a based space which is compact and simply connected up to scale \(R>0\). Then, \(H_1(\textrm{Rips}(X,r)) \cong H_1(X)\) for each positive \(r < R/3\). Furthermore, if \(r' \in (r,R/3)\) then the natural inclusions \(i_{r,r'}\) of Rips complexes at scales \(r < r' \) induce isomorphisms on \(H_1\).

Proof

As X is compact and locally path connected it consists of a finite number of compact path connected components \(A_1, A_2, \ldots , A_n\). It follows from definition of R that the distinct components are at distance at least R and thus \(\textrm{Rips}(X,r)\) is a disjoint union of subcomplexes \(\textrm{Rips}(A_j,r)\). Choose j. Fixing a basepoint \(\bullet \in A_j\), Theorem  4.14 coupled with Hurewicz theorem states that \(H_1(\textrm{Rips}(A_j,r)) \cong H_1(A_1)\). As j was arbitraty we conclude the isomorphism \(H_1(\textrm{Rips}(X,r)) \cong H_1(X)\).

The second part follows similarly from the analogous property of the fundamental group. \(\square \)

Remark 4.16

Theorems 4.14 and  4.15 state that initially the persistent \(\pi _1\) and \(H_1\) are constant and isomorphic to the corresponding invariant of X.

4.4 Bounds on the Generating Sets of 1-Dimensional Persistence

In this subsection, we combine the reconstruction results of the previous subsection with the behaviour of 1-dimensional persistence at critical scales as discussed in Subsection 4.2 to provide a global bound on the rank of \(H_1\) the fundamental group of Rips complexes.

Given a space K with components \(K_1, K_2, \ldots , K_m\) and \(x_j\in K_j, \forall j\), define

$$\begin{aligned} \mathrm {MGS(K)} = \sum _{j=1}^m {\text {mgs}}(\pi _1(K_j,x_j)). \end{aligned}$$

Remark 4.17

Adding an edge E to a simplicial complex K can increase the fundamental group in two ways (see also Remark 4.12):

  • If both endpoints of E are in the same component B, then the addition of E increases the rank of the fundamental group of B (with a basepoint in B) by one.

  • If the endpoints of E are in different components \(B_j \ne B_k\), then the addition of E connects the two components and increases the rank of the fundamental group as follows:

    • For a basepoint \(b\notin B_j \cup B_k\), the rank of \(\pi _1(K,b)\) does not change.

    • For basepoints \(b_j\in B_j\) and \(b_k \in B_k\), \({\text {mgs}}(\pi _1(K, b_j))\) increases by \({\text {mgs}}(\pi _1(B_k, b_k))\).

In particular, adding an edge to a simplicial complex K increases \(\mathrm {MGS(K)}\) by at most one.

Remark 4.18

If Y is a compact, connected, locally path connected metric space, then \({\text {mgs}}(\pi _1(Y))\) is known to be finite, see for example [10]. Consequently, each space X, which is compact and simply connected up to scale \(R>0\), has finite \({\text {mgs}}(\pi _1(X))\), \(\mathrm {MGS(X)}\) and \({\text {mgs}}(H_1(X))\). In particular, such a space consists of finitely many compact components, which are simply connected up to scale \(R>0\). Applying the first statement of this remark to each of the components (and the Hurewicz’s theorem for the homological version), we obtain finiteness of all mentioned invariants.

Theorem 4.19

Let \((X, \bullet )\) be a based space which is compact and simply connected up to scale \(R>0\). Assume \(\textrm{LocMin}(d)\) is finite. If \(M_c\) is finite for each \(c > 0\), then for each \(r >0\):

$$\begin{aligned} {\text {mgs}}(H_1(\textrm{Rips}(X,r))) \le {\text {mgs}}(H_1(X)) + \sum _{c<r} |\mathcal {M}_c| < \infty . \end{aligned}$$

Furthermore, if \(A_1, A_2, \ldots , A_n\) are the path connected components and \(x_j\in A_j\), then for each \(r>0\):

$$\begin{aligned} \textrm{MGS}(\textrm{Rips}(X,r)) \le \mathrm {MGS(X)} + \sum _{c<r} |\mathcal {M}_c|< \infty . \end{aligned}$$

and in particular,

$$\begin{aligned} {\text {mgs}}(\pi _1(\textrm{Rips}(X,r),\bullet )) \le \mathrm {MGS(X)} + \sum _{c<r} |\mathcal {M}_c|< \infty . \end{aligned}$$

Proof

By Theorem 4.5\( {\text {mgs}}(H_1(\textrm{Rips}(X,r)))\) may increase only at \(\textrm{LocMin}(d)\). For small positive r, we have \( {\text {mgs}}(H_1(\textrm{Rips}(X,r))) = {\text {mgs}}(H_1(X))\) by Theorem 4.15. The increase of \( {\text {mgs}}(H_1(\textrm{Rips}(X,r)))\) at each point of \(\textrm{LocMin}(d)\) is bounded from above by \(|\mathcal {M}_c|\) by Proposition 4.11, which proves the first part of the theorem.

By Remark 4.17, Theorem 4.5, and Theorem 3.4, \( \textrm{MGS}(\textrm{Rips}(X,r))\) may increase only at \(\textrm{LocMin}(d)\). Without loss of generality we have \(\bullet = x_1\). For small positive r, \(\textrm{Rips}(X,r)\) is the disjoint union of \(\textrm{Rips}(A_1,r), \textrm{Rips}(A_s,r), \ldots , \textrm{Rips}(A_n,r)\) and thus \(\pi _1(\textrm{Rips}(X,r),\bullet ) = \pi _1(\textrm{Rips}(A_1,r),\bullet )\) by Theorem 4.14. Hence, \({\text {mgs}}(\pi _1(\textrm{Rips}(X,r),\bullet )) = {\text {mgs}}(\pi _1(A_1,\bullet ))\) for small positive r and by extension of the argument, \(\textrm{MGS}(\textrm{Rips}(X,r)) = \textrm{MGS} (X)\) for small positive r. The increase of \( \textrm{MGS}(\textrm{Rips}(X,r))\) at each point of \(\textrm{LocMin}(d)\) is generated by adding \(|\mathcal {M}_c|\) edges by Proposition 4.11 and thus by Remark 4.17, \( \textrm{MGS}(\textrm{Rips}(X,r))\) increases at c by at most \(|\mathcal {M}_c|\).

The last statement holds as \( {\text {mgs}}(\pi _1(\textrm{Rips}(X,r),\bullet )) \le \textrm{MGS}(\textrm{Rips}(X,r)).\) The finiteness of the mentioned invariants follows from Remark 4.18. \(\square \)

Corollary 4.20

Let \((X, \bullet )\) be a based space which is compact and simply connected up to scale \(R>0\), \(|\textrm{LocMin}(d)| < \infty \), and \(|M_c| < \infty , \forall c > 0\). Then for each r:

$$\begin{aligned} {\text {rank}}(H_1(\textrm{Rips}(X,r)))< \infty \quad \text { and } \quad {\text {rank}}(\pi _1(\textrm{Rips}(X,r)), \bullet )<\infty . \end{aligned}$$

Proof

The statement follows from Theorem 4.19. \(\square \)

Example 6.3 in the last section demonstrates that \( {\text {rank}}(H_1(\textrm{Rips}(X,r)))\) may be infinite if X is a compact metric space.

4.5 Combinatorial Criterion for Spectrum

Up to this point, our results explore and exploit the fact that the \(H_0\) spectrum and the emergent one-dimensional spectrum of a compact metric space are in a sense induced by members of \(\mathcal {M}_c\). It seems to be more complicated to provide a sufficient condition that will imply a particular element of \(\mathcal {M}_c\) induces any mentioned critical effect. In this subsection we provide such a condition in case \(|\mathcal {M}_c|=1\) for an isolated local minimum c. Observe that this case includes every finite \(X \subset \mathbb {R}^n\) in general position.

Theorem 4.21

Assume X is a compact metric space. Let \(c > 0\) be an isolated local minimum of d and \(\mathcal {M}_c= \{(x,y)\}.\) Then, the following are equivalent:

(a):

c is a member of either the \(H_0\) spectrum or the emergent \(H_1\) spectrum of X.

(b):

There does not exist \(z\in X \setminus \{x,y\}\) such that \(d(z,x) \le c\) and \(d(y,z) \le c\).

Proof

(a) \(\implies \) (b): Clearly c cannot be in both the \(H_0\) spectrum and the emergent \(H_1\) spectrum of X due to \(\mathcal {M}_c= \{(x,y)\}\), as adding an edge either connects two components or increases the \(H_1\) (see Proposition 4.8).

Let c be a member of the \(H_0\) spectrum. For each \(x' \in X\) let \(K_{x'}\) be the \(\sim _r\) equivalence class of points of X at scale r just before c satisfying \(x' \in K_{x'}\). By Lemma 3.3 the subsets \(K_{x'}\) are disjoint compact open subsets of X at pairwise distance at least c. Assume there exists \(z\in X {\setminus } \{x,y\}\) such that \(d(z,x) \le c\) and \(d(y,z) \le c\). Without loss of generality we may assume \(z \notin K_x\) as \(K_x \cap K_y = \emptyset \). But then (xz) is a local minimum of d different from (xy), a contradiction with \(|\mathcal {M}_c|=1\). Hence the assumed z does not exist.

Let c be a member the emergent \(H_1\) spectrum and let \([\alpha ]\) be a homology class of a connected cycle emerging at c. By (1a) of Lemma 4.3, \(\alpha \) can be chosen as a cyclic c-sequence in X containing a non-zero multiple of oriented edge \( \langle x,y \rangle \). Assume there exists \(z\in X {\setminus } \{x,y\}\) such that \(d(z,x) \le c\) and \(d(y,z) \le c\). Then each occurrence of \( \langle x,y \rangle \) within \(\alpha \) can be replaced using \(\partial \langle x, z, y\rangle \), in effect replacing edge \(\langle x,y \rangle \) with the edges \(\langle x,z \rangle \) and \(\langle z,y \rangle \), without changing \([\alpha ]\). We can now use (1) of Lemma 4.2 to replace each edge within \(\alpha \) at distance c by a finite strictly c-sequence without changing \([\alpha ]\) as such pairs are not local minima of d. Thus, we have constructed a representative of \([\alpha ]\) appearing at scale smaller than c, hence \([\alpha ]\) has not emerged at c. As a result, the assumed z can not exist.

(b) \(\implies \) (a): Assume (a) does not hold.

  1. (1)

    As c is not in the \(H_0\) spectrum, the pair \(\{x,y\}\) does not connect two different components in \(\textrm{Rips}(X,c)\). Thus, there exists a finite strictly c-sequence \(x=x_0, x_1, \ldots , x_m=y\). Let \(\alpha \) be the simplicial cycle corresponding to the finite c-loop \(x=x_0, x_1, \ldots , x_m=y, x\).

  2. (2)

    As c is not in the emergent \(H_1\) spectrum, \([\alpha ]\) is nullhomologous in \(\textrm{Rips}(X,r)\) for each \(r>c\).

  3. (3)

    As \(c \in \textrm{LocMin}(d)\) and \(|\mathcal {M}_c|=1\), we can choose \(R < c/4\) such that \(d(x',y')> c,\ \forall x' \in \overline{\textrm{B}}(x,R){\setminus } \{x\}, \forall y' \in \overline{\textrm{B}}(y,R){\setminus } \{y\}\).

  4. (4)

    Define compact sets \(A_x= \overline{\textrm{B}}(x,R) {\setminus }\textrm{B}(x,R/2)\) and \(A_y= \overline{\textrm{B}}(y,R) {\setminus } \textrm{B}(y,R/2)\). Note that by compactness and \(|\mathcal {M}_c|=1\), there exist real numbers \(w_1<w_2\) such that \(d(A_x \times \overline{\textrm{B}}(y,R) \cup \overline{\textrm{B}}(x,R) \times A_y) \subseteq [w_1, w_2] \subset (c,\infty ).\)

  5. (5)

    Choose \(\varepsilon _0 > 0\) so that for each \(x' \in \overline{\textrm{B}}(x,R)\) and \(y' \in \overline{\textrm{B}}(y,R)\) with \(d(x', y') \in (c, c + \varepsilon _0)\) we have \(x' \in \textrm{B}(x,R/2)\) and \(y' \in \textrm{B}(y,R/2)\). If such \(\varepsilon _0\) did not exist we would have for each sufficiently large \(n \in \mathbb {N}\), a pair \(t_n\in \overline{\textrm{B}}(x,R)\) and \(s_n \in \overline{\textrm{B}}(y,R)\) with \(d(t_n, s_n) \in (c, c + 1/n)\) and either \(t_n \in A_x\) or \(s_n \in A_y\). Without loss of generality we could choose a subsequence \((n_j)_{j\in \mathbb {N}}\) of \(\mathbb {N}\) so that \(t_{n_j} \in A_x, \forall j\). Then, we have \(t=\lim _{j \rightarrow \infty } t_{n_j}\in A_x\), \(s=\lim _{j \rightarrow \infty } s_{n_j}\in \overline{\textrm{B}}(y,R)\), and \(d(t,s)=c\), a contradiction with \(|\mathcal {M}_c|=1\).

  6. (6)

    Let \(r\in (c,c + \varepsilon _0)\). For each 1-chain \(\beta = \sum _{j=1}^k \mu _j, \sigma _j\) in \(\textrm{Rips}(X,r)\) (i.e., \(\mu _j \in G\) and \(\sigma _j\) is an oriented 1-simplex in \(\textrm{Rips}(X,r)\)) we define the invariant \(N_r(\beta )\) as follows. Define \(F_r\) as the collection of those indices \(j \in \{1,2,\ldots , k\}\) for which the first vertex of \(\sigma _j\) is in \(\textrm{B}(x,R/2)\) and the second is in \(\textrm{B}(y,R/2)\). Similarly, let \(L_r\) be the collection of those indices \(j \in \{1,2,\ldots , k\}\) for which the second vertex of \(\sigma _j\) is in \(\textrm{B}(x,R/2)\) and the first is in \(\textrm{B}(y,R/2)\). Define

    $$\begin{aligned} N_r(\beta ) = \sum _{j\in F_r} \mu _j - \sum _{j \in L_r} \mu _j \in G. \end{aligned}$$

    Quantity \( N_r(\beta )\) represents the total amount of weights in G pointing from \(\textrm{B}(x,R/2)\) to \(\textrm{B}(y,R/2)\) along oriented edges of \(\beta \).

  7. (7)

    Fix \(r\in (c,c + \varepsilon _0)\). Observe that \(N_r(\alpha )=1\). On the other hand, (2) implies that \(\alpha \) is a boundary of a 2-cycle in \(\textrm{Rips}(X,r)\) and hence the \(N_r\) of the said boundary is also 1. Thus there exists at least one 2-simplex with non-trivial \(N_r\). A simple case analysis shows that this is possible if and only if the 2-simplex in question has:

    • One vertex, say \(a_r\), in \(\textrm{B}(x,R/2)\).

    • One vertex, say \(b_r\), in \(\textrm{B}(y,R/2)\).

    • One vertex, say \(z_r\), in \(X \setminus \Big (\textrm{B}(x,R/2) \cup \textrm{B}(y,R/2) \Big )\).

    As \( \{a_r, b_r, z_r \}\) forms a simplex in \(\textrm{Rips}(X,r)\), the pairwise distances are smaller than r. On the other hand, (5) implies \(z_r \notin \textrm{B}(x,R) \cup \textrm{B}(y,R)\) thus \(d(a_r, z_r) \ge R/2\) and \(d(b_r, z_r) \ge R/2\).

  8. (8)

    By compactness of \(\overline{\textrm{B}}(x,R/2), \overline{\textrm{B}}(y,R/2)\), and \(X {\setminus } (\textrm{B}(x,R) \cup \textrm{B}(y,R))\), there exists a subsequence \((\ell _j)_{j\in \mathbb {N}}\) of \(\mathbb {N}\) such that the following limits exist in the corresponding mentioned compact sets:

    $$\begin{aligned} a=\lim _{j \rightarrow \infty } a_{c + 1/\ell _j} \quad b=\lim _{j \rightarrow \infty } b_{c + 1/\ell _j}, \quad z=\lim _{j \rightarrow \infty } z_{c + 1/\ell _j}. \end{aligned}$$
  9. (9)

    By (3) we have \(a=x\) and \(b=y\). By the upper bounds on pairwise distances in (7) we have \(d(a,z) \le r \) and \(d(b,z) \le r \). Furthermore, the lower bounds in (7) imply \(d(a,z) \ge R/2\) and \(d(b,z) \ge R/2\), which in particular mean \(z\in X {\setminus } \{x,y\}\). Thus (b) does not hold. \(\square \)

If X is connected, then replacing cycles by simplicial loops in the above proof yields the analogous result for the emergent \(\pi _1\) spectrum.

Proposition 4.22

Assume X is a connected compact metric space. Let \(c > 0\) be an isolated local minimum of d and \(\mathcal {M}_c= \{(x,y)\}.\) Then c is a member of the \(H_0\) spectrum or the emergent \(\pi _1\) spectrum of X iff there exists no \(z\in X {\setminus } \{x,y\}\) such that \(d(z,x) \le c\) and \(d(y,z) \le c\).

5 Detecting All Local Minima of the Distance Function

Theorem 4.21 provides a condition under which certain locally isolated elements of \(\textrm{LocMin}(d)\) are detected via persistence. In this section we prove that persistence can in fact detect each member of \(\textrm{LocMin}(d)\) of finite \(\mathcal {M}_c\), if we use appropriate selective Rips complexes instead of Rips complexes. Selective Rips complexes have been introduced in [25] and represent subcomplexes of Rips complexes with controllably thin simplices (see also [16] for a corresponding reconstruction result). The motivation for their construction was to provide a flexible construction of filtrations closely related to Rips filtrations, which enables us to detect as many geodesic circles (i.e., isometric images of circles equipped with a geodesic metric, inside a geodesic space) as possible using persistence. In this section we use a similar approach to detect \(\textrm{LocMin}(d)\).

Definition 5.1

[25] Let Y be a metric space, \(r_1 \ge r_2, n\in \mathbb {N}\). Selective Rips complex \(\textrm{sRips}(Y; r_1, n, r_2)\) is an abstract simplicial complex defined by the following rule: a finite subset \(\sigma \subset Y\) is a simplex iff the following two conditions hold:

  • \({\text {Diam}}(\sigma ) < r_1\);

  • there exist subsets \(U_0, U_1, \ldots , U_n\subset U\) of diameter less than \(r_2\) such that \(\sigma \subset U_0 \cup U_1 \cup \ldots \cup U_n\).

The geometric intuition behind Definition 5.1 is that simplices of dimension above n in \(\textrm{sRips}(Y; r_1, n, r_2)\) are very thin, and up to “distortion” \(r_2\) close to an n-dimensional simplex in \(\textrm{Rips}(X,r_1)\). Observe that \(\textrm{sRips}(Y; r_1, n, r_2)\) is a subcomplex of \(\textrm{Rips}(Y,r_1).\) In this paper we will be using selective Rips complexes of form \(\textrm{sRips}(Y; r_1, 1, r_2)\), which means that 2-simplices will be thin, i.e., that the shortest side of a 2-simplex will be smaller than \(r_2\). In order to simplify the notation of filtrations by selective Rips complexes we will focus on filtrations of a form

$$\begin{aligned} {\mathcal {F}}=\{\textrm{sRips}(Y;r,1,r_2(r))\}_{r \ge 0}, \end{aligned}$$

Where \(r_2=r_2(r) :[0,\infty ) \rightarrow [0,\infty )\) is a strictly increasing continuous bijection satisfying \(r_2(r) \le r\).

Many of the results of the previous sections also hold for selective Rips complexes:

  • The \(H_0\) persistence of the Rips filtration of X is isomorphic to the \(H_0\) persistence of the selective Rips filtration \({\mathcal {F}}\) as the one dimensional skeletons of \(\textrm{Rips}(X,r)\) and \(\textrm{sRips}(Y;r,1,r_2(r))\) coincide. Thus Theorem 3.4 also holds for selective Rips complexes arising from filtration \({\mathcal {F}}\).

  • Lemmas 4.2 and 4.3 also hold for selective Rips complexes arising from filtration \({\mathcal {F}}\). The reason is that the descending condition of Definition 4.1 is established for arbitrarily small positive \(\nu \) and is proved as such in 1 of Lemma 4.2. Consequently, the 2-simplices used to prove parts 1(a) and 1(b) of Lemma 4.3 (see Fig. 3) can be taken to be as thin as required by \({\mathcal {F}}\).

As a result, we obtain the following generalization of Theorem 4.5.

Theorem 5.2

Assume X is a compact metric space. Then, the emergent \(H_1\) spectrum and the emergent \(\pi _1\) spectrum arising from filtration \({\mathcal {F}}\) are both contained in \(\overline{\textrm{LocMin}(d)}\).

We are now in a position to prove the main result of this section: each member \(c \in \textrm{LocMin}(d)\) can be detected by persistence via selective Rips complexes if \(\mathcal {M}_c\) is finite. In case \(\mathcal {M}_c\) is infinite Example 6.2 shows that c may not be detected even by selective Rips complexes.

Theorem 5.3

Assume X is a compact metric space, \(c \in \textrm{LocMin}(d)\), and \(\mathcal {M}_c\) is finite. There exists a filtration \({\mathcal {F}}\) with function \(r_2\), such that c is either a critical value of \(H_0\) or an emergent critical value of \(H_1\) arising from filtration \({\mathcal {F}}\).

The following proof shares some of the setup with the proof of (b) of Theorem 4.21. The general idea is inspired by the proof of the main result of [25].

Proof

Choose \((x,y)\in \mathcal {M}_c\). Without loss of generality, we can assume c is not in the \(H_0\) spectrum. Thus \(c>0\) and there exists a finite strictly c-sequence \(x=x_0, x_1, \ldots , x_m=y\) in X. Let \(\alpha \) be the simplicial cycle corresponding to the finite c-loop \(x=x_0, x_1, \ldots , x_m=y, x\). We claim that there exists function \(r_2\) such that \([\alpha ]\in H_1\big (\textrm{sRips}(Y; r,1,r_2(r))\big )\) is nontrivial for \(r\in (c,c+\varepsilon )\) for some \(\varepsilon >0\).

Choose \(R < c/4\) such that \(d(x',y')> c,\ \forall x' \in \overline{\textrm{B}}(x,R){\setminus } \{x\}, \forall y' \in \overline{\textrm{B}}(y,R){\setminus } \{y\}\). Define compact sets \(A_x=\overline{\textrm{B}}(x,R) {\setminus } \textrm{B}(x,R/2)\) and \(A_y= \overline{\textrm{B}}(y,R) {\setminus } \textrm{B}(y,R/2)\). Note that by compactness and finiteness of \(\mathcal {M}_c\), there exist real numbers \(w_1<w_2\) such that \(d(A_x \times \overline{\textrm{B}}(y,R) \cup \overline{\textrm{B}}(x,R) \times A_y) \subseteq [w_1, w_2] \subset (c,\infty ).\) Choose \(\varepsilon > 0\) so that for each \(x' \in \overline{\textrm{B}}(x,R)\) and \(y' \in \overline{\textrm{B}}(y,R)\) with \(d(x', y') \in (c, c + \varepsilon )\) we have \(x' \in \textrm{B}(x,R/2)\) and \(y' \in \textrm{B}(y,R/2)\).

Choose \(r_2\) so that \(r_2(c+ \varepsilon ) < R/2\). This is the only additional condition that will be imposed on \(r_2\).

Let \(r\in (c,c + \varepsilon )\). For each 1-chain \(\beta = \sum _{j=1}^k \mu _j, \sigma _j\) in \(\textrm{sRips}(X;r,1,r_2(r))\) (i.e., \(\mu _j \in G\) and \(\sigma _j\) is an oriented 1-simplex in \(\textrm{sRips}(X;r,1,r_2(r))\)) we define the invariant \(N_r(\beta )\) as follows. Define \(F_r\) as the collection of those indices \(j \in \{1,2,\ldots , k\}\) for which the first vertex of \(\sigma _j\) is in \(\textrm{B}(x,R/2)\) and the second is in \(\textrm{B}(y,R/2)\). Similarly, let \(L_r\) be the collection of those indices \(j \in \{1,2,\ldots , k\}\) for which the second vertex of \(\sigma _j\) is in \(\textrm{B}(x,R/2)\) and the first is in \(\textrm{B}(y,R/2)\). Define

$$\begin{aligned} N_r(\beta ) = \sum _{j\in F_r} \mu _j - \sum _{j \in L_r} \mu _j \in G. \end{aligned}$$

Fix a scale \(r\in (c,c + \varepsilon )\). We will now demonstrate that the boundary of a 2-cycle in \(\textrm{sRips}(X;r,1,r_2(r))\) has even \(N_r\). By additivity, it suffices to consider a single 2-simplex. A simple case analysis shows that a 2-simplex in \(\textrm{sRips}(X;r,1,r_2(r))\) has an odd \(N_r\) if:

  • One vertex, say \(a_r\), in \(\textrm{B}(x,R/2)\).

  • One vertex, say \(b_r\), in \(\textrm{B}(y,R/2)\).

  • One vertex, say \(z_r\), in \(X {\setminus } \Big (\textrm{B}(x,R/2) \cup \textrm{B}(y,R/2) \Big )\). By (2) this implies \(z_r \in X {\setminus } \Big (\textrm{B}(x,R) \cup \textrm{B}(y,R) \Big )\).

This would mean all three pairwise distances in such a simplex would be larger that R/2, a contradiction with previously established \(r_2(c+ \varepsilon ) < R/2\). Hence, such 2-simplex does not exist.

Observe that \(N_r(\alpha )=1\) and thus \(\alpha \) can not be expressed as a boundary of a 2-chain in \(\textrm{sRips}(X;r,1,r_2(r))\) by (6). This proves our claim that \([\alpha ]\in H_1\big (\textrm{sRips}(Y; r,1,r_2(r))\big )\) is nontrivial for \(r\in (c,c+\varepsilon )\). As for each \(r'<c\) every 1-chain in \(\textrm{sRips}(Y; r',1,r_2(r'))\) has trivial \(N_r\), we also conclude \([\alpha ]\) emerges at c. This concludes the proof. \(\square \)

The following theorem states that if the distance function d attains a positive local minimum in at most finitely many pairs of points in X, then all local minima of d can be detected using persistence with a single selective Rips filtration \({\mathcal {F}}\).

Theorem 5.4

Assume X is a compact metric space, \(\textrm{LocMin}(d)\) is finite, and for each positive \(c \in \textrm{LocMin}(d)\) the set \(\mathcal {M}_c\) is finite. Then there exists a filtration \({\mathcal {F}}\) with function \(r_2\), such that each element of \(\textrm{LocMin}(d)\) is either a critical value of \(H_0\) or an emergent critical value of \(H_1\) arising from filtration \({\mathcal {F}}\). In particular, \(\textrm{LocMin}(d)\) is the union of the \(H_0\) spectrum and the emergent \(H_1\) spectrum of X via filtration \({\mathcal {F}}\).

Proof

Assume scale \(c\in \textrm{LocMin}(d)\) is not in the \(H_0\) spectrum. By Theorem 5.3 scale c is in the emergent \(H_1\) spectrum via \({\mathcal {F}}\) if condition (4) of the proof of Theorem 5.3 holds. As it is easy to satisfy finitely many such conditions simultaneously, there exists \(r_2\) such that the theorem holds. \(\square \)

6 Counter Examples

In this section, we present three examples that demonstrate the necessity of some of the assumptions in our results.

Example 6.1

Closed Rips filtrations may induced critical values not in \(\overline{\textrm{LocMin}(d)}\). The left part of Fig. 4 shows space A as a solid curve. The dashed circular arcs are parts of circles with centers at points a and b. Note that the pair (ab) is not a local minimum of d, neither is it in \(\overline{\textrm{LocMin}(d)}\). However, the closed Rips filtration of A still has d(ab) as an emergent \(H_1\) value as \(\overline{{\text {Rips}}}(A, d(a,b))\) contains the edge \(\langle a,b \rangle \) as a maximal simplex. This demonstrates that Theorem 4.5 does not hold for closed Rips filtrations. This example appeared first in [23].

The non-trivial class \(H_1(\overline{{\text {Rips}}}(A,d(a,b)))\) emerging at d(ab) is trivial in \(H_1(\overline{{\text {Rips}}}(A,r))\) for all \(r> d(a, b)\), which means its lifespan is zero. As open and closed Rips filtrations are 0-interleaved, the zero-lifespan elements (also referred to as ephemeral summands) are the only way in which the spectrum of a closed Rips filtration can be larger than the spectrum of the open Rips filtration, see [8, 9] for details and definitions of the mentioned terms.

Example 6.2

A local minimum c of d may not be detectable if \(\mathcal {M}_c\) is infinite. The right part of Fig. 4 shows space B. It consists of three line segments, two of which are parallel. The distance function d attains a local minimum at pair (ab), yet for each selective Rips filtration of B the scale d(ab) is not in the spectrum of B. This demonstrates that the requirement \(|\mathcal {M}_c| < \infty \) in Theorem 5.4 is necessary.

Fig. 4
figure 4

Spaces of examples 6.1 (left) and 6.2 (right), both are subspaces of the Euclidean plane

Example 6.3

\(H_1(\textrm{Rips}(X,r))\) may have infinite rank even if X is compact. Choose \(r>0\). Example \(Z = U \sqcup L\) is sketched on the left of Fig. 5. As a set it consists of lower points L and upper points U in the plane, defined as

$$\begin{aligned} L=\big \{x_j \mid j\in \{\infty , 1,2, \ldots \}\big \}, \quad U= \big \{y_j \mid j\in \{\infty , 1,2, \ldots \}\big \}, \end{aligned}$$

where \(x_\infty =(0,-r/2), \ y_\infty =(0,r/2)\), and for finite indices n we define

$$\begin{aligned} x_n = \Big (2^{-n+1}, -(r- 2^{-n})/2\Big ), \quad y_n=\Big (2^{-n+1}, (r- 2^{-n})/2\Big ). \end{aligned}$$

The metric used is the Manhattan metric denoted by \(d=d_1\), i.e.,

$$\begin{aligned} d((a_1, a_2), (b_1, b_2))= |a_1 - b_1| +|a_2 - b_2|. \end{aligned}$$

The details on local distances are indicated on the right side of Fig. 5. Note that \(\lim _{j \rightarrow \infty } x_j = x_\infty \) and \(\lim _{j \rightarrow \infty } y_j = y_\infty \). As \(\sum _{j=1}^\infty 2^{-j}=1\) we see that \(d(x_1, x_\infty )=d(y_1, y_\infty )=5/4\). Also note that:

  1. (1)

    \(d(x_j, x_k) \le 5/4, \forall j,k \in \{\infty , 1,2, \ldots \}\).

  2. (2)

    \(d(x_1, y_1)=r-1/2\) and also \(d(x_j,y_j)<r, \ \forall j<\infty \).

  3. (3)

    \(d(x_j, y_{j+1})=d(y_j, x_{j+1})=r + 2^{-(j+2)}>r, \ \forall j<\infty \).

  4. (4)

    Observations (2) and (3) imply \(d(x_j, y_k) < r\) iff \(j=k\).

Fixing \(r \ge 5/4\) we make the following observations for \(\textrm{Rips}(Z,r)\):

  • \(\textrm{Rips}(Z,r)\) contains the full simplex on L as \({\text {Diam}}(L) = 5/4\) by (1). On a similar note, \(\textrm{Rips}(Z,r)\) contains the full simplex on U.

  • Observations (2), (3), and (4) imply that the only simplices connecting U and L in \(\textrm{Rips}(Z,r)\) are the “vertical” edges \(\langle x_j, y_j \rangle \) for all \(j < \infty \).

As a result \(H_1(\textrm{Rips}(Z,r),{\mathbb {Z}}) \cong \bigoplus _{j=1, 2, \ldots } {\mathbb {Z}}\) is the countable direct sum of integer groups, which is not finitely generated.

This example complements analogue examples on closed Rips complexes in [9]. It also shows that finiteness of \(\textrm{LocMin}(d)\) is required in Corollary 4.20. On a different note, observe that \(r=5/4\) is an emergent critical scale of \(H_1\) despite not being a local minimum of d.

Fig. 5
figure 5

Space Z of example 6.3 on the left, and details of tis local configuration on the right. The metric used is \(d_1\)

Example 6.4

The results of this paper imply that a local minimum of d can “contribute” two potential changes to persistence (as a critical edge): an increase in \(H_1\) or a decrease in \(H_0\). However, it turns out that when \(\mathcal {M}_c\) is infinite, it can actually affect persistent homology in any way, i.e., terminating or giving rise to homology in any dimension. Hence a general theory of critical edges is much more complicated and not at all analogous to persistence on finite metric spaces.

For example, let A be a planar circle of radius 10 and \(x\in A\). Define

$$\begin{aligned} B = A \times \{0,1\} \cup \{x\} \times [0,1] \subset \mathbb {R}^3 \end{aligned}$$

as two parallel circles connected by a line segment. Observe that B is a connected space with the first Betti number 2. By Theorem 4.14, \(H_1(\textrm{Rips}(B,r))\) is also of rank 2 for \(r < 1\). However, for \(\in (1,2)\) the local minima attained at the uncountably many pairs \(\{y\}\times \{0,1\}\) for \(y\in A {\setminus } \{x\}\) “stack up” in circle to terminate a one-dimensional homology class and result in a decrease in the rank \(H_1(\textrm{Rips}(B,r))\) to 1 at \(r=1\).