arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1905.09151v1 [math.AT] 22 May 2019

Rank-based persistence

Mattia G. Bergomi Note: Champalimaud Research, Champalimaud Centre for the Unknown, 1400-038 Lisbon, Portugal. ${$mattia.bergomi, pietro.vertechi $}$@neuro.fchampalimaud.org    Pietro Vertechifootnotemark:
Abstract

Persistence has proved to be a valuable tool to analyze real world data robustly. Several approaches to persistence have been attempted over time, some topological in flavor, based on the vector space-valued homology functor, other combinatorial, based on arbitrary set-valued functors. To unify the study of topological and combinatorial persistence in a common categorical framework, we give axioms for a generalized rank function on objects in a target category so that functors to that category induce persistence functions. We port the interleaving and bottleneck distances to this novel framework and generalize classical equalities and inequalities. Unlike sets and vector spaces, in many categories the rank of an object does not identify it up to isomorphism: to preserve information about the structure of persistence modules, we define colorable ranks, persistence diagrams and prove the equality between multicolored bottleneck distance and interleaving distance in semisimple Abelian categories. To illustrate our framework in practice, we give examples of multicolored persistent homology on filtered topological spaces with a group action and labeled point cloud data.

Keywords

rank, persistence, categorification, regular category, abelian category, semisimple category, classification, group action, point cloud, poset, bottleneck, interleaving

AMS subject classification

18E10, 18A35, 55N35, 68U05

1 Introduction

Topological persistence offers valuable tools to give encompassing representations of the geometry and topology of sampled objects, even in high dimension. Moreover, persistent homology and its encoding via persistence diagrams are endowed with essential properties in data analysis, such as stability [9] and resistance to occlusions [10]. Equipped with these fundamental features, persistent homology has been successfully employed in a vast number of applications [15].

We provided a first generalized theory of persistence to concrete categories in [4]. This first generalization allows one to define persistence in a very general setting, that includes not only topological spaces or weighted graphs but also arbitrary categories of presheaves. However, it fails to fully generalize the classical theory, for it does not show how to define persistence functions based on functors to the target category of vector spaces (such as the homology functors). The primary technique developed in [4] to define stable persistent functions (named coherent sampling) requires using finite sets as target category, thus failing to recover, for example, the study of higher persistent homology groups.

Here, we aim at providing a new categorical generalization, embracing both the classical theory and the framework described in [4]. With this aim in mind, we first decompose classical persistent homology into its basic ingredients: 1. A filtration in a source category 𝐓𝐨𝐩\mathbf{Top}. 2. A functor HkH_{k} from the source category to a target category 𝐅𝐢𝐧𝐕𝐞𝐜𝕂\mathbf{FinVec}_{\mathbb{K}}. 3. A notion of rank in the target category (the dimension of the vector space).

Thereafter, we explore which axioms each of these ingredients must respect for the classical results on persistence diagrams, bottleneck and interleaving distances to hold.

Not only we establish a common generalization of the combinatorial [4] and topological approach to persistence [12], but we also find examples of novel target categories, different from 𝐅𝐢𝐧𝐒𝐞𝐭\mathbf{FinSet} or 𝐅𝐢𝐧𝐕𝐞𝐜𝕂\mathbf{FinVec}_{\mathbb{K}}, giving rise to persistence modules with structure. Of particular interest is the case of persistent group representations, which arises naturally in the study of filtrations of topological spaces or simplicial objects with a group action compatible with the filtering function. By coloring the resulting persistence diagram, we are able to recover a notion of similarity that respects the structure of our target category, e.g., the group action. This construction holds in any target semisimple Abelian category: we show examples arising from labeled point cloud datasets, relevant for instance in a machine learning context.

The paper is organized as follows. In section 2 we determine what are the features of the functions cardinality of a set and dimension of a vector space that make them suitable as a notion of rank of an object in a target category. We lay down an axiomatic foundation for such rank functions in the general setting of regular categories and provide as an example the length of an object in an Abelian category, which naturally generalizes the dimension of a vector space. In section 3, we first show how a functor from an arbitrary category to a regular category equipped with a rank function defines a categorical persistence function. Then, we port the classical notions (e.g. regular and critical value, tameness and cornerpoint multiplicity) to the categorical setting and use them to define persistence diagrams. We show how persistence diagrams relate to persistence modules in the case of a semisimple category. Finally, we discuss the notions of interleaving and bottleneck distance and prove the inequality between them, i.e. that the interleaving distance is always greater or equal than bottleneck, with great generality. Equality between the two distances requires additional assumptions: in section 4 we discuss how, in the case of a semisimple target category, one can color the persistence diagram: a bottleneck distance computed allowing only color-preserving bijections is then equal to the interleaving distance. We finally show examples of multicolored persistence in the case of topological spaces with group actions and labeled point clouds.

For the sake of readability, we provide and exemplify basic definitions of category theory in appendix A.

2 Rank functions in regular categories

Historically, there have been two different treatments of persistent homology, one associating to a map of topological spaces the cardinality of the image of a map of sets [16], the other the dimension of the image of a map of vector spaces [13]. To unify them in a common framework, we introduce here the concept of ranked category, i.e. a regular category (definition A.3.2) equipped with an integer-valued rank function on objects.

The reason behind choosing to work with regular categories is that, by definition, every morphism XϕYX\xrightarrow{\phi}Y in a regular category 𝐑\mathbf{R} can be factored in X𝜀Z𝜇YX\xrightarrow{\varepsilon}\mathrel{\mkern-14.0mu}\rightarrow Z\xhookrightarrow{\mu}Y such that ϕ=με\phi=\mu\circ\varepsilon, where μ\mu is a monomorphism (definition A.1.2) and ε\varepsilon a regular epimorphism (definition A.3.1), which in turn gives a good notion of image of a morphism (ZZ being the image of XϕYX\xrightarrow{\phi}Y). This notion of image will allow us to define persistence functions based on the rank of the image of a morphism. As both monomorphisms and regular epimorphisms are preserved by pullbacks (definition A.2.9), we will be able to prove classical properties of persistence by building appropriate diagrams.

Definition 1.

Let 𝐑\mathbf{R} be a regular category. Given a lower-bounded function r:Obj(𝐑)r:\textnormal{Obj}(\mathbf{R})\to\mathbb{Z}, we say that rr is a rank function if:

  1. 1.

    For any monomorphism ABA\hookrightarrow B, r(A)r(B)r(A)\leq r(B)

  2. 2.

    For any regular epimorphism BDB\twoheadrightarrow D, r(B)r(D)r(B)\geq r(D)

  3. 3.

    For any pullback square:

    A{\lx@inpgf@ignorespaces A}B{\lx@inpgf@ignorespaces B}C{\lx@inpgf@ignorespaces C}D{\lx@inpgf@ignorespaces D}ι1\scriptstyle{\lx@inpgf@ignorespaces\iota_{1}}π1\scriptstyle{\lx@inpgf@ignorespaces\pi_{1}}π2\scriptstyle{\lx@inpgf@ignorespaces\pi_{2}}ι2\scriptstyle{\lx@inpgf@ignorespaces\iota_{2}}

    where ι1,ι2\iota_{1},\iota_{2} are monomorphisms and π1,π2\pi_{1},\pi_{2} are regular epimorphisms, the following inequality holds:

    r(B)r(A)r(D)r(C)r(B)-r(A)\geq r(D)-r(C)

We say that a rank function rr is strict if the inequalities in conditions 1 and 2 are strict unless the morphisms are invertible. If furthermore 𝐑\mathbf{R} has an initial object \emptyset and r()=0r(\emptyset)=0, we say that rr is 00-based. A ranked category (𝐑,r)(\mathbf{R},r) is simply a regular category 𝐑\mathbf{R} equipped with a rank function rr.

The pullback requirement in the third condition is not necessary: this will prove useful in the following sections when working with functors that do not preserve pullback squares.

Proposition 1.

Given a ranked category (𝐑,r)(\mathbf{R},r), for any commutative square (not necessarily pullback):

A{\lx@inpgf@ignorespaces A^{\prime}}B{\lx@inpgf@ignorespaces B}C{\lx@inpgf@ignorespaces C}D{\lx@inpgf@ignorespaces D}ι1\scriptstyle{\lx@inpgf@ignorespaces\iota_{1}^{\prime}}π1\scriptstyle{\lx@inpgf@ignorespaces\pi_{1}^{\prime}}π2\scriptstyle{\lx@inpgf@ignorespaces\pi_{2}}ι2\scriptstyle{\lx@inpgf@ignorespaces\iota_{2}}

where ι2\iota_{2} is a monomorphism and π2\pi_{2} is a regular epimorphism, the following inequality holds:

r(B)r(A)r(D)r(C)r(B)-r(A^{\prime})\geq r(D)-r(C)
Proof.

We can build the pullback square:

A{\lx@inpgf@ignorespaces A}B{\lx@inpgf@ignorespaces B}C{\lx@inpgf@ignorespaces C}D{\lx@inpgf@ignorespaces D}ι1\scriptstyle{\lx@inpgf@ignorespaces\iota_{1}}π1\scriptstyle{\lx@inpgf@ignorespaces\pi_{1}}π2\scriptstyle{\lx@inpgf@ignorespaces\pi_{2}}ι2\scriptstyle{\lx@inpgf@ignorespaces\iota_{2}}

where ι1\iota_{1} is a monomorphism (as it is pullback of a monomorphism) and π1\pi_{1} is a regular epimorphism (as it is pullback of a regular epimorphism).

Therefore r(B)r(A)r(D)r(C)r(B)-r(A)\geq r(D)-r(C). We have a natural monomorphism AAA^{\prime}\hookrightarrow A, therefore, by property 1:

r(B)r(A)r(B)r(A)r(D)r(C)r(B)-r(A^{\prime})\geq r(B)-r(A)\geq r(D)-r(C)

Proposition 2.

If a functor F:𝐐𝐑F:\mathbf{Q}\to\mathbf{R} preserves the image factorization, i.e. it preserves monomorphisms and regular epimorphisms, and rr is a rank function on 𝐑\mathbf{R}, then rF:Obj(𝐐)r\circ F:\textnormal{Obj}(\mathbf{Q})\to\mathbb{Z} is a rank function on 𝐐\mathbf{Q}.

Proof.

As FF preserves monomorphisms, given a monomorphism ABA\hookrightarrow B we have a monomorphism F(A)F(B)F(A)\hookrightarrow F(B) and therefore r(F(A))r(F(B))r(F(A))\leq r(F(B)). Similarly given a regular epimorphism BDB\twoheadrightarrow D we have a regular epimorphism F(B)F(D)F(B)\twoheadrightarrow F(D) so r(F(B))r(F(D))r(F(B))\geq r(F(D)). Finally, given a pullback square:

A{\lx@inpgf@ignorespaces A}B{\lx@inpgf@ignorespaces B}C{\lx@inpgf@ignorespaces C}D{\lx@inpgf@ignorespaces D}

We have a commutative square (not necessarily pullback):

F(A){\lx@inpgf@ignorespaces F(A)}F(B){\lx@inpgf@ignorespaces F(B)}F(C){\lx@inpgf@ignorespaces F(C)}F(D){\lx@inpgf@ignorespaces F(D)}

By proposition 1 we have r(F(B))r(F(A))r(F(D))r(F(C))r(F(B))-r(F(A))\geq r(F(D))-r(F(C))

This in particular applies to regular functors, i.e. functors that preserve regular epimorphisms and finite limits, as preserving limits implies preserving monomorphisms.

2.1 Fiber-wise rank functions

In this section we formalize the notion of fiber-wise rank function, i.e. a function respecting the assumptions of definition 1, whose behavior on regular epimorphisms can be determined from fibers on “points” (see example A.2.6).

Definition 2.

Given a regular category 𝐑\mathbf{R} with terminal object pt, we say that a function r:Obj(𝐑)r:{\textnormal{Obj}}(\mathbf{R})\to\mathbb{Z} is fiber-wise if, for all regular epimorphism BϕDB\overset{\phi}{\twoheadrightarrow}D, we have the following equality:

r(B)r(D)=ιHom(pt,D)(r(B×Dιpt)r(pt))r(B)-r(D)=\sum_{\iota\in\textnormal{Hom}({\textnormal{pt}},D)}(r(B\times_{D}^{\iota}{\textnormal{pt}})-r({\textnormal{pt}})) (1)

where the B×DιptB\times_{D}^{\iota}{\textnormal{pt}} realizes the pullback:

B×Dιpt{\lx@inpgf@ignorespaces B\times_{D}^{\iota}{\textnormal{pt}}}B{\lx@inpgf@ignorespaces B}ptD{\lx@inpgf@ignorespaces D}ϕ\scriptstyle{\lx@inpgf@ignorespaces\phi}ι\scriptstyle{\lx@inpgf@ignorespaces\iota}

The conditions of definition 1 become easier to prove in the case of fiber-wise functions.

Proposition 3.

Let 𝐑\mathbf{R} be a regular category with terminal object pt and r:Obj(𝐃)r:\textnormal{Obj}(\mathbf{D})\to\mathbb{Z} a lower-bounded function such that:

  1. 1.

    For any monomorphism ABA\hookrightarrow B, r(A)r(B)r(A)\leq r(B)

  2. 2.

    For any regular epimorphism AptA\twoheadrightarrow{\textnormal{pt}}, r(A)r(pt)r(A)\geq r({\textnormal{pt}})

  3. 3.

    rr is fiber-wise

Then rr defines a rank function on 𝐑\mathbf{R}.

Proof.

We will prove that rr respects the assumptions of definition 1. It obviously respects the first assumption. It also respects the second as, given ACA\twoheadrightarrow C:

r(A)r(C)=ιHom(pt,C)(r(A×Cιpt)r(pt))r(A)-r(C)=\sum_{\iota\in\textnormal{Hom}({\textnormal{pt}},C)}(r(A\times_{C}^{\iota}{\textnormal{pt}})-r({\textnormal{pt}}))

and the right-hand side is 0\geq 0 as it is a sum of nonnegative quantities. To verify assumption 3, let us consider an inclusion pt𝜄C{\textnormal{pt}}\xhookrightarrow{\iota}C and the following diagram, where all squares are pullback

A×Cιpt{\lx@inpgf@ignorespaces A\times_{C}^{\iota}{\textnormal{pt}}}A{\lx@inpgf@ignorespaces A}B{\lx@inpgf@ignorespaces B}ptC{\lx@inpgf@ignorespaces C}D{\lx@inpgf@ignorespaces D}ι1\scriptstyle{\lx@inpgf@ignorespaces\iota_{1}}π1\scriptstyle{\lx@inpgf@ignorespaces\pi_{1}}π2\scriptstyle{\lx@inpgf@ignorespaces\pi_{2}}ι\scriptstyle{\lx@inpgf@ignorespaces\iota}ι2\scriptstyle{\lx@inpgf@ignorespaces\iota_{2}}

As the outermost square is pullback, we have an isomorphism A×CιptB×Dι2ιA\times_{C}^{\iota}{\textnormal{pt}}\simeq B\times_{D}^{\iota_{2}\circ\iota}, thus

r(A)r(C)\displaystyle r(A)-r(C) =ιHom(pt,C)(r(A×Cιpt)r(pt))=ιHom(pt,C)(r(B×Dι2ιpt)r(pt))\displaystyle=\sum_{\iota\in\textnormal{Hom}({\textnormal{pt}},C)}(r(A\times_{C}^{\iota}{\textnormal{pt}})-r({\textnormal{pt}}))=\sum_{\iota\in\textnormal{Hom}({\textnormal{pt}},C)}(r(B\times_{D}^{\iota_{2}\circ\iota}{\textnormal{pt}})-r({\textnormal{pt}}))
ιHom(pt,D)(r(B×Dιpt)r(pt))=r(B)r(D)\displaystyle\leq\sum_{\iota^{\prime}\in\textnormal{Hom}({\textnormal{pt}},D)}(r(B\times_{D}^{\iota^{\prime}}{\textnormal{pt}})-r({\textnormal{pt}}))=r(B)-r(D)

where the inequality comes from the fact that all summands are nonnegative and one sum has all the summands of the other plus potentially some more. ∎

Under the stronger assumptions of Abelian category (definition A.3.5), the fiber-wise condition simplifies greatly. As Abelian categories have a null object, given an epimorphism BϕDB\overset{\phi}{\twoheadrightarrow}Deq. 1 is equivalent to r(B)r(D)=r(ker(ϕ))r(0)r(B)-r(D)=r(ker(\phi))-r(0), where of course ker(ϕ)BϕDker(\phi)\hookrightarrow B\overset{\phi}{\twoheadrightarrow}D is a short exact sequence.

Proposition 4.

Let 𝐑\mathbf{R} be an Abelian category. Then r:Obj(𝐑)r:\textnormal{Obj}(\mathbf{R})\to\mathbb{Z} is fiber-wise if and only if for all short exact sequence ABDA\hookrightarrow B\twoheadrightarrow D, r(A)+r(D)=r(B)+r(0)r(A)+r(D)=r(B)+r(0).

In the Abelian case fiber-wise functions require less assumptions to verify the rank properties:

Proposition 5.

Let 𝐑\mathbf{R} be an Abelian category. If r:Obj(𝐑)r:\textnormal{Obj}(\mathbf{R})\to\mathbb{Z} is fiber-wise and for all DObj(𝐑)D\in\textnormal{Obj}(\mathbf{R}), r(0)r(D)r(0)\leq r(D) then rr is a rank. Furthermore, if r(0)=r(D)r(0)=r(D) only if DD is null then rr is strict.

Proof.

We can embed any monomorphism or epimorphism in a short exact sequence ABDA\hookrightarrow B\twoheadrightarrow D where, as rr is fiber-wise, r(0)+r(B)=r(A)+r(D)r(0)+r(B)=r(A)+r(D). As r(0)r(D)r(0)\leq r(D), r(B)r(A)r(B)\geq r(A). Similarly, as r(0)r(A)r(0)\leq r(A), r(B)r(D)r(B)\geq r(D).

To prove strictness, let us assume for example that r(A)=r(B)r(A)=r(B), then r(D)=r(0)r(D)=r(0) therefore DD is null so ABA\simeq B. Similarly if r(B)=r(D)r(B)=r(D) then r(A)=r(0)r(A)=r(0) therefore AA is null so BDB\simeq D. ∎

Examples of fiber-wise rank functions

The cardinality function ||:𝐅𝐢𝐧𝐒𝐞𝐭|-|:\mathbf{FinSet}\to\mathbb{Z} is fiber-wise (the terminal object pt being the singleton). Indeed given a surjective map of sets A𝑓DA\overset{f}{\twoheadrightarrow}D:

|A||D|=dD(|f1(d)|1)|A|-|D|=\sum_{d\in D}(|f^{-1}(d)|-1)

|||-| is clearly a rank function: it is nondecreasing on monomorphisms and nonincreasing on epimorphisms. |||-| is also strict, as a monomoprhism (or an epimorphism) between two sets with the same number of elements is invertible.

The category 𝐅𝐢𝐧𝐕𝐞𝐜𝕂\mathbf{FinVec}_{\mathbb{K}} is regular and the dimension function is a strict fiber-wise rank. This case can be generalized to a wide variety of Abelian categories. We recall from [14, Sect. 1] that, in an Abelian category an object XX has finite length if there exists a series of inclusions:

0X0X1XnX0\simeq X_{0}\hookrightarrow X1\hookrightarrow\dots\hookrightarrow X_{n}\simeq X

where all quotients Xi/Xi1X_{i}/X_{i-1} are simple. If such series exists, then length(X)=nlength(X)=nIf all objects in an Abelian category have finite lenght, we say that the category has finite length.

The function lengthlength is 00-based and, by [14, Sect. 1], for all short exact sequence ABDA\hookrightarrow B\twoheadrightarrow D, we have length(B)=length(A)+length(D)length(B)=length(A)+length(D) so, by proposition 4, lengthlength is fiber-wise.

Proposition 6.

Given 𝐃\mathbf{D} an Abelian category of finite length, the function

length:Obj(𝐃)length:\textnormal{Obj}(\mathbf{D})\to\mathbb{Z}

is a strict 00-based fiber-wise rank.

Proof.

lengthlength is nonnegative, and length(X)=0length(X)=0 if and only if XX is initial so, by proposition 5, it is a strict 00-based fiber-wise rank. ∎

The rank function lengthlength is is characterized by the following two features: 1. It is 00-based and fiber-wise. 2. It has value 11 on simple objects. Furthermore lengthlength and |||-| share the additive property, i.e. given two objects X,YObj(𝐑)X,Y\in\textnormal{Obj}(\mathbf{R}), r(XY)=r(X)+r(Y)r(X\amalg Y)=r(X)+r(Y).

Remark 1.

Even though the category 𝐅𝐢𝐧𝐌𝐨𝐝\mathbf{FinMod}_{\mathbb{Z}} of finitely generated Abelian groups (i.e. finitely generated \mathbb{Z}-modules) does not have finite length, we have an image factorization-preserving functor :𝐅𝐢𝐧𝐌𝐨𝐝𝐅𝐢𝐧𝐕𝐞𝐜-\otimes_{\mathbb{Z}}\mathbb{Q}:\mathbf{FinMod}_{\mathbb{Z}}\to\mathbf{FinVec}_{\mathbb{Q}}. By proposition 2, the rank function dim:Obj(𝐅𝐢𝐧𝐕𝐞𝐜)dim:{\textnormal{Obj}}(\mathbf{FinVec}_{\mathbb{Q}})\to\mathbb{Z} induces a rank function on 𝐅𝐢𝐧𝐌𝐨𝐝\mathbf{FinMod}_{\mathbb{Z}}, which coincides with the rank of finitely generated Abelian groups.

3 Categorical persistence

In general, given an arbitrary functor Ψ\Psi from a source category 𝐂\mathbf{C} to a regular target category 𝐑\mathbf{R} equipped with a rank rr, we can not naturally define a rank on 𝐂\mathbf{C}, unless 𝐂\mathbf{C} is regular and Ψ\Psi preserves the image factorization (i.e. monomorphisms and regular epimorphisms), see proposition 2. Unfortunately, these assumptions do not hold in many common cases: for instance the category 𝐓𝐨𝐩\mathbf{Top} is not regular and, even though 𝐅𝐢𝐧𝐒𝐢𝐦𝐩\mathbf{FinSimp} is regular, no homology functor Hk:𝐅𝐢𝐧𝐒𝐢𝐦𝐩𝐅𝐢𝐧𝐕𝐞𝐜H_{k}:\mathbf{FinSimp}\to\mathbf{FinVec} preserves the image factorization. However, we can still define an integer-valued function on the morphisms of 𝐂\mathbf{C}, as a categorical persistence function. While categorical persistence functions have very mild assumptions, they will be sufficient to guarantee the classical constructions and results of persistent homology. See table 1 for an intuitive comparison between the classical framework and ours.

3.1 Categorical persistence functions

In persistent homology, the functor HkH_{k} maps a filtration of topological spaces and a field of coefficients 𝕂\mathbb{K}, into a sequence of 𝕂\mathbb{K}-vector spaces VuV_{u} equipped with maps VuVvV_{u}\to V_{v} for uvu\leq v. The persistent homology group and persistent Betti number correspond to the image of VuVvV_{u}\rightarrow V_{v} and its rank, respectively. The aim of this section is to extend this procedure to arbitrary categories.

First, we extend the notion of persistence function from [4], which in turn generalizes persistent Betti number functions.

Definition 3.

Let 𝐃\mathbf{D} be a category. We say that a lower-bounded function p:Morph(𝐃)p:\textnormal{Morph}(\mathbf{D})\to\mathbb{Z} is a categorical persistence function if, for all u1u2v1v2u_{1}\to u_{2}\to v_{1}\to v_{2}, the following inequalities hold:

  1. 1.

    p(u1v1)p(u2v1)p(u1\to v1)\leq p(u2\to v1) and p(u2v2)p(u2v1)p(u2\to v2)\leq p(u2\to v1).

  2. 2.

    p(u2v1)p(u1v1)p(u2v2)p(u1v2)p(u2\to v1)-p(u1\to v1)\geq p(u2\to v2)-p(u1\to v2).

If 𝐃\mathbf{D} is the poset category (,){(\mathbb{R},\leq)} whose objects are real numbers, with a unique morphism from uu to vv if uvu\leq v, then we recover the definition of persistence function from [4]. In some sense, this is a categorification [3] of that notion.

Proposition 7.

Given a functor F:𝐂𝐃F:\mathbf{C}\to\mathbf{D} and a categorical persistence function pp for 𝐃\mathbf{D}, pFp\circ F is a categorical persistence function for 𝐂\mathbf{C}.

Proof.

Given u1u2v1v2u_{1}\to u_{2}\to v_{1}\to v_{2} we have, by functoriality, F(u1)F(u2)F(v1)F(v2)F(u_{1})\to F(u_{2})\to F(v_{1})\to F(v_{2}), so:

(pF)(u1v1)=p(F(u1v1))p(F(u2v1))=(pF)(u2v1)(p\circ F)(u_{1}\to v_{1})=p(F(u_{1}\to v_{1}))\leq p(F(u_{2}\to v_{1}))=(p\circ F)(u_{2}\to v_{1})

All other inequalities are proved in an analogous way. ∎

Remark 2.

All functors we consider are covariant. Contravariant functors, if used, will be written in the covariant form F:𝐂op𝐃F:\mathbf{C}^{op}\to\mathbf{D}.

Classical persistent homology is defined in terms of dimensions of images of maps between vector spaces. The same construction holds in this setting. Given a regular category 𝐑\mathbf{R}, we denote by im:Morph(𝐑)Obj(𝐑)im:\textnormal{Morph}(\mathbf{R})\to\textnormal{Obj}(\mathbf{R}) the map associating to each morphism its image. Given a rank function rr on 𝐑\mathbf{R} and a functor F:𝐂𝐑F:\mathbf{C}\to\mathbf{R}, the function rimF:Morph(𝐂)r\circ im\circ F:\textnormal{Morph}(\mathbf{C})\to\mathbb{Z} is a categorical persistence function. We will prove it in the following two propositions.

Proposition 8.

Given a ranked category (𝐑,r)(\mathbf{R},r), rimr\circ im defines categorical persistence function on 𝐑\mathbf{R}.

Proof.

Let us consider a diagram u1u2v1v2u_{1}\to u_{2}\to v_{1}\to v_{2} in 𝐃\mathbf{D}. Then, we have an inclusion

im(u1v1)im(u2v1),im(u1\to v1)\hookrightarrow im(u_{2}\to v_{1}),

and thus

r(im(u1v1))r(im(u2v1)).r(im(u_{1}\to v_{1}))\geq r(im(u_{2}\to v_{1})).

Similarly, we have an epimorphism im(u2v1)im(u2v2)im(u_{2}\to v_{1})\twoheadrightarrow im(u_{2}\to v_{2}), so r(im(u2v1))r(im(u2v2))r(im(u_{2}\to v_{1}))\geq r(im(u_{2}\to v_{2})). To prove the second condition of definition 1, we remind that the inequality of the third condition of the same definition holds for all commutative squares and not only pullback squares. Thus, we can build the following commutative diagram:

im(u1v1){\lx@inpgf@ignorespaces im(u_{1}\to v_{1})}im(u2v1){\lx@inpgf@ignorespaces im(u_{2}\to v_{1})}im(u1v2){\lx@inpgf@ignorespaces im(u_{1}\to v_{2})}im(u2v2){\lx@inpgf@ignorespaces im(u_{2}\to v_{2})}ι1\scriptstyle{\lx@inpgf@ignorespaces\iota_{1}}π1\scriptstyle{\lx@inpgf@ignorespaces\pi_{1}}π2\scriptstyle{\lx@inpgf@ignorespaces\pi_{2}}ι2\scriptstyle{\lx@inpgf@ignorespaces\iota_{2}}

where ι1,ι2\iota_{1},\iota_{2} are monomorphisms and π1,π2\pi_{1},\pi_{2} are regular epimorphisms. By the third condition of definition 1, we have:

r(im(u2v1))r(im(u1v1))r(im(u2v2))r(im(u1v2))r(im(u_{2}\to v_{1}))-r(im(u_{1}\to v_{1}))\geq r(im(u_{2}\to v_{2}))-r(im(u_{1}\to v_{2}))

By combining proposition 8 and proposition 7, we obtain:

Proposition 9.

Given a ranked category (𝐑,r)(\mathbf{R},r) and a functor F:𝐂𝐑F:\mathbf{C}\to\mathbf{R}, the function rimF:Morph(𝐂)r\circ im\circ F:\textnormal{Morph}(\mathbf{C})\to\mathbb{Z} is a categorical persistence function.

Functors to (𝐅𝐢𝐧𝐒𝐞𝐭,||)(\mathbf{FinSet},|-|) allow to recover persistent 0-Betti numbers, as well as all examples of coherent sampling in [4] such as blocks, edge-blocks and \cal F-connected components. In this framework , classical persistent homology can be seen as a combination of the functor Hk:𝐅𝐢𝐧𝐒𝐢𝐦𝐩𝐅𝐢𝐧𝐕𝐞𝐜𝕂H_{k}:\mathbf{FinSimp}\to\mathbf{FinVec}_{\mathbb{K}} with the fiber-wise rank function dimension.

Remark 3 ((,){(\mathbb{R},\leq)}-indexed diagrams).

Classically, persistent Betti numbers, as well as persistence functions in the sense of [4], are defined on Δ+\Delta^{+}, i.e. on pairs (u,v)2(u,v)\in\mathbb{R}^{2} with uvu\leq v. Categorical persistence functions, on the other hand, are defined more abstractly on Morph(𝐂){\textnormal{Morph}}(\mathbf{C}). However, as Δ+\Delta^{+} is in one-to-one correspondence with Morph((,,,)){\textnormal{Morph}}({(\mathbb{R},\leq)}), to define a function on Δ+\Delta^{+} from a categorical persistence function in 𝐂\mathbf{C}, we simply need a functor F:(,)𝐂F:{(\mathbb{R},\leq)}\to\mathbf{C}. We denote the category of these functors as 𝐂(,)\mathbf{C}^{(\mathbb{R},\leq)} and call them (,){(\mathbb{R},\leq)}-indexed diagrams in 𝐂\mathbf{C}. They are analogous to filtrations with the difference that, given a (,){(\mathbb{R},\leq)}-indexed diagram FF, we do not require morphisms F(u)F(v)F(u)\to F(v) to be monomorphisms. As an example, given a topological space XX and a real-valued function f:Xf:X\to\mathbb{R}, the functor

F:(,)𝐓𝐨𝐩\displaystyle F:{(\mathbb{R},\leq)}\to\mathbf{Top}
uf1((,u])\displaystyle u\mapsto f^{-1}((-\infty,u])

is a (,){(\mathbb{R},\leq)}-indexed diagram in 𝐓𝐨𝐩\mathbf{Top}, with F(uv)F(u\leq v) given by the inclusion f1((,u])f1((,v])f^{-1}((-\infty,u])\subseteq f^{-1}((-\infty,v]). Similarly, the homology in degree kk of the various sublevels also naturally forms a (,){(\mathbb{R},\leq)}-indexed diagram uHk(f1((,u])))u\mapsto H_{k}(f^{-1}((-\infty,u]))), where morphisms are no longer necessarily injective.

Refer again to Table 1 for an intuitive list of analogies between the classical and proposed frameworks.

Table 1: From the classical to the categorical framework.
Classical framework Categorical framework
Topological spaces Source category 𝐂\mathbf{C}
Vector spaces Regular target category 𝐑\mathbf{R}
Dimension Rank function on 𝐑\mathbf{R}
Homology functor Arbitrary functor from 𝐂\mathbf{C} to 𝐑\mathbf{R}
Filtration of topological spaces (,){(\mathbb{R},\leq)}-indexed diagram in 𝐂\mathbf{C}

3.2 Persistence diagrams

After generalizing the main ingredients of persistence, it is important to discuss how the notion of persistence diagram can be defined in this new context. Indeed, persistence diagrams are agile tools, that allow one to easily represent the features determined by the persistence function as a multiset of two-dimensional points. This representation is suitable for both rapid visualization and comparison of filtered objects.

In the following we will work with an arbitrary category 𝐂\mathbf{C}, a categorical persistence function p:Morph(𝐂)p:\textnormal{Morph}(\mathbf{C})\to\mathbb{Z}, as well as a (,){(\mathbb{R},\leq)}-indexed diagram FF, and the induced persistence function on Δ+\Delta^{+}:

pF:Δ+\displaystyle p_{F}:\Delta^{+}\to\mathbb{Z}
(u,v)p(F(uv))\displaystyle(u,v)\mapsto p(F(u\leq v))

To define a persistence diagram we follow the approach given in [4], which in turn draws from the definition of multiplicity of [11] and [17]. We will limit ourselves to the tame case: to do so we will need to generalize the definition of tameness from [5].

Definition 4.

[5, Def. 4.3] Let F𝐂(,)F\in\mathbf{C}^{(\mathbb{R},\leq)}. Let II\subset{\mathbb{R}} be an interval. We say that FF is constant on II if for all abIa\leq b\in I we have pF(a,a)=pF(a,b)=pF(b,b)p_{F}(a,a)=p_{F}(a,b)=p_{F}(b,b). We call aa\in{\mathbb{R}} a regular value (resp. right- or left-regular) for FF if there is a connected neighborhood (resp. connected right or left neighborhood) IaI\;\reflectbox{$\in$}\;a such that FF is constant on II. Otherwise we call aa a critical value. FF is tame if it has a finite number of critical values.

In the classical case of finite dimensional vector spaces, the regularity condition requires that maps F(a)ϕF(b)F(a)\xrightarrow{\phi}F(b) are isomorphisms for a,ba,b in a neighborhood of a regular value (see [5, Def. 4.3]). However, for a strict rank (such as dimdim or more generally lengthlength) this is equivalent to our condition r(F(a))=r(F(b))=r(im(ϕ))r(F(a))=r(F(b))=r(im(\phi)) thanks to the following lemma:

Lemma 1.

Let rr be a strict rank function and AϕBA\xrightarrow{\phi}B a morphism such as r(A)=r(B)=r(im(ϕ))r(A)=r(B)=r(im(\phi)). Then ϕ\phi is an isomorphism.

Proof.

We have a natural regular epimorphism A𝜒im(ϕ)A\overset{\chi}{\twoheadrightarrow}im(\phi) and r(A)=r(im(ϕ))r(A)=r(im(\phi)), so χ\chi is an isomorphism. Similarly we have a natural monomorphism im(ϕ)𝜓Bim(\phi)\xhookrightarrow{\psi}B and r(im(ϕ))=r(B)r(im(\phi))=r(B) so ψ\psi is an isomorphism. ϕ=ψχ\phi=\psi\circ\chi is therefore also an isomorphism. ∎

We will need one more lemma to be able to use persistence functions to compute multiplicity of cornerpoints.

Lemma 2.

Let pp be a persistence function on a category 𝐂\mathbf{C}. Then, given a diagram

ABCDA\to B\to C\to D

in the category 𝐂\mathbf{C}, the function:

p(BC)p(AC)p(BD)+p(AD)p(B\to C)-p(A\to C)-p(B\to D)+p(A\to D)

is weakly decreasing in AA and CC and weakly increasing in BB and DD.

Proof.

Let us prove that it is weakly decreasing in AA, i.e. that given a diagram AABCDA\to A^{\prime}\to B\to C\to D, the following inequality holds

p(BC)p(AC)p(BD)+p(AD)\displaystyle p(B\to C)-p(A\to C)-p(B\to D)+p(A\to D)\geq
p(BC)p(AC)p(BD)+p(AD)\displaystyle p(B\to C)-p(A^{\prime}\to C)-p(B\to D)+p(A^{\prime}\to D)

Or, equivalently:

p(AC)+p(AD)p(AC)+p(AD)-p(A\to C)+p(A\to D)\geq-p(A^{\prime}\to C)+p(A^{\prime}\to D)

which is simply the second property of definition 3. ∎

Definition 5.

Given u<v{,+}u<v\in\mathbb{R}\cup\{-\infty,+\infty\} we define the multiplicity of u,vu,v as the minimum of the following expression, over Iu,IvI_{u},I_{v} disjoint connected neighborhoods of uu and vv respectively:

pF(sup(Iu),inf(Iv))pF(inf(Iu),inf(Iv))pF(sup(Iu),sup(Iv))+pF(inf(Iu),sup(Iv))p_{F}(\sup(I_{u}),\inf(I_{v}))-p_{F}(\inf(I_{u}),\inf(I_{v}))-p_{F}(\sup(I_{u}),\sup(I_{v}))+p_{F}(\inf(I_{u}),\sup(I_{v}))

We denote this quantity by μ(u,v)\mu(u,v). Whenever μ(u,v)>0\mu(u,v)>0 we say (u,v)(u,v) is a cornerpoint. By convention in this definition we consider pF(u,v)=minx,ypF(x,y)p_{F}(u,v)=\min_{x,y}p_{F}(x,y) whenever either uu or vv is not finite.

Remark 4.

By lemma 2, the quantity:

pF(sup(Iu),inf(Iv))pF(inf(Iu),inf(Iv))pF(sup(Iu),sup(Iv))+pF(inf(Iu),sup(Iv))p_{F}(\sup(I_{u}),\inf(I_{v}))-p_{F}(\inf(I_{u}),\inf(I_{v}))-p_{F}(\sup(I_{u}),\sup(I_{v}))+p_{F}(\inf(I_{u}),\sup(I_{v}))

is weakly increasing in both IuI_{u} and IvI_{v} (where the ordering on the intervals is given by inclusion), so in practice this minimum is achieved for IuI_{u} and IvI_{v} sufficiently small intervals around uu and vv respectively.

Remark 5 (Cornerpoints at infinity).

We identify the vertical line ϱ\varrho of equation u=ku=k with the pair (k,+)(k,+\infty). Definition 5 allows one to define the multiplicity μ(ϱ)\mu(\varrho) as the minimum of

pF(sup(Ik),v)pF(inf(Ik),v).p_{F}(\sup(I_{k}),v)-p_{F}(\inf(I_{k}),v).

Whenever μ(ϱ)>0\mu(\varrho)>0, we say that ϱ\varrho is a cornerpoint at infinity.

Definition 6.

The persistence diagram 𝒟F\mathcal{D}F associated with the persistence function pFp_{F} is the multiset of its cornerpoints, along with all the diagonal points {(u,u)|u0}\{(u,u)|u\in\mathbb{R}_{\geq 0}\} with infinite (countable) multiplicity.

It is easy to show that if FF is tame the persistence diagram has only a finite number of off-diagonal points. The following property is relevant when measuring distances between diagrams and will be key in the remainder of this section.

Proposition 10.

If α<βγ<δ𝐑{+}\alpha<\beta\leq\gamma<\delta\in\mathbf{R}\cup\{+\infty\} are right-regular points, then sum of the multiplicities of the cornerpoints (u,v)(u,v) s. t. α<uβ\alpha<u\leq\beta and γ<vδ\gamma<v\leq\delta is

pF(β,γ)pF(α,γ)pF(β,δ)+pF(α,δ)p_{F}(\beta,\gamma)-p_{F}(\alpha,\gamma)-p_{F}(\beta,\delta)+p_{F}(\alpha,\delta)
Proof.

By induction on the number of cornerpoints in the box. ∎

3.3 Indecomposable persistence modules

Given a tame (with respect to a strict rank) (,){(\mathbb{R},\leq)}-indexed diagram FObj(𝐃(,))F\in\textnormal{Obj}(\mathbf{D}^{(\mathbb{R},\leq)}), we can partition \mathbb{R} into a finite number of non-empty intervals C1,,CnC_{1},\dots,C_{n}\subseteq\mathbb{R} such that F(xy)F(x\leq y) is an isomorphism whenever x,yx,y lie in the same interval. The full subcategory of such (,){(\mathbb{R},\leq)}-indexed diagrams is equivalent to the category of representations of the poset ({1,,n},)(\{1,\dots,n\},\leq). Given a sequence of points ciCic_{i}\in C_{i}, the equivalence of the two representation categories is induced by the pair of order-preserving maps:

ι:({1,,n},)(,)ici\displaystyle\begin{aligned} &\iota:(\{1,\dots,n\},\leq)\to{(\mathbb{R},\leq)}\\ &i\mapsto c_{i}\end{aligned} and π:(,)({1,,n},)xi such that xCi\displaystyle\begin{aligned} &\pi:{(\mathbb{R},\leq)}\to(\{1,\dots,n\},\leq)\\ &x\mapsto i\mbox{ such that }x\in C_{i}\end{aligned}

If 𝐃\mathbf{D} is an Abelian category of finite length, then so is 𝐃({1,,n},)\mathbf{D}^{(\{1,\dots,n\},\leq)}. Indeed, we can bound the length of any F𝐃({1,,n},)F\in\mathbf{D}^{(\{1,\dots,n\},\leq)} as follows:

length(F)i=1nlength(F(i))length(F)\leq\sum_{i=1}^{n}length(F(i))

By Krull-Schmidt theorem [1], FF can then be decomposed as direct sum of indecomposable objects

F=kKIkF=\bigoplus_{k\in K}I_{k}

Indecomposable objects in 𝐃({1,,n},)\mathbf{D}^{(\{1,\dots,n\},\leq)} have been characterized in the case 𝐃=𝐅𝐢𝐧𝐕𝐞𝐜𝕂\mathbf{D}=\mathbf{FinVec}_{\mathbb{K}}. Indeed, let AnA_{n} be the quiver having as nodes the points {1,,n}\{1,\dots,n\} and non-trivial edges ii+1i\to i+1 for i{1,,n1}i\in\{1,\dots,n-1\}. Then, AnA_{n} has trivially the same representations of ({1,,n},)(\{1,\dots,n\},\leq) and is one of the ADE Dynkin diagrams for which Gabriel’s theorem [18] can characterize all indecomposable representations. See [19] for a treatment of persistence homology that takes Gabriel’s theorem and Krull-Schmidt theorem as starting points. We can not, unfortunately, use Gabriel’s theorem as we wish to work with a more general 𝐃\mathbf{D}, but we will provide an equivalent classification for the quiver AnA_{n} and 𝐃\mathbf{D} semisimple (definition A.3.7). To do so, we will need to generalize [5, Def. 4.1].

Definition 7.

[5, Def. 4.1] Given a semisimple Abelian category 𝐃\mathbf{D}, a simple object SObj(𝐃)S\in\textnormal{Obj}(\mathbf{D}) and an interval II\subseteq\mathbb{R} we define the diagram χI,S𝐃(,)\chi_{I,S}\in\mathbf{D}^{(\mathbb{R},\leq)} as:

χI,S(a)={Sif aI0otherwise\displaystyle\chi_{I,S}(a)=\begin{cases}{}S&\text{if }a\in I\\ 0&\text{otherwise}\end{cases} and χI,S(ab)={IdSif a,bI0otherwise\displaystyle\chi_{I,S}(a\leq b)=\begin{cases}{}\textnormal{Id}_{S}&\text{if }a,b\in I\\ 0&\text{otherwise}\end{cases}

When working in 𝐃({1,,n},)\mathbf{D}^{(\{1,\dots,n\},\leq)} we abuse of the same notation and write:

χ[b,d],S=00[1,b1]SIdIdS[b,d]00[d+1,n]\chi_{[b,d],S}=\underbrace{0\to\dots\to 0}_{[1,b-1]}\to\underbrace{S\xrightarrow{Id}\dots\xrightarrow{Id}S}_{[b,d]}\to\underbrace{0\to\dots\to 0}_{[d+1,n]}

We say that a FF has finite type if F=kKχIk,SkF=\bigoplus_{k\in K}\chi_{I_{k},S_{k}}

Proposition 11.

If 𝐃\mathbf{D} is semisimple, all indecomposable objects in 𝐃({1,,n},)\mathbf{D}^{(\{1,\dots,n\},\leq)} are isomorphic to an “interval object” of the form χ[b,d],S\chi_{[b,d],S} where SS is a simple object.

Proof.

We proceed by contradiction. Let us take the smallest nn\in\mathbb{N} for which this does not hold and an indecomposable F𝐃({1,,n},)F\in\mathbf{D}^{(\{1,\dots,n\},\leq)} not isomorphic to any χ[b,d],S\chi_{[b,d],S}. F(1)≄0F(1)\not\simeq 0 and F(n)0F(n)\not\equiv 0 as otherwise we could find a counter-example for 𝐃({1,,n1},)\mathbf{D}^{(\{1,\dots,n-1\},\leq)}. Similarly ϕ=F(n1n)\phi=F(n-1\leq n) cannot be an isomorphism, as otherwise we would have a counter-example in 𝐃({1,,n1},)\mathbf{D}^{(\{1,\dots,n-1\},\leq)}. ϕ\phi must be epi, otherwise, we could write F(n)=im(ϕ)CF(n)=im(\phi)\oplus C with C≄0C\not\simeq 0 and FF would be the direct sum of:

i{im(ϕ) if i=nF(i) otherwise\displaystyle i\mapsto\begin{cases}im(\phi)&\text{ if }i=n\\ F(i)&\text{ otherwise }\end{cases} and i{C if i=n0 otherwise\displaystyle i\mapsto\begin{cases}C&\text{ if }i=n\\ 0&\text{ otherwise}\end{cases}

So, necessarily ϕ\phi is not monic, as in an Abelian category morphisms that are both monic and epic are isomorphisms. We can decompose each F(i)F(i) starting from i=1i=1 and proceeding recursively, by setting F(i)=ker(F(in))CiF(i)=ker(F(i\leq n))\oplus C_{i}, for every i{1,2,,n1}i\in\{1,2,\dots,n-1\}, where we can take CiC_{i} such that F(i1i)(Ci1)CiF(i-1\leq i)(C_{i-1})\subseteq C_{i}. We can then decompose FF as a direct sum of:

i{F(n) if i=nCi otherwise\displaystyle i\mapsto\begin{cases}F(n)&\text{ if }i=n\\ C_{i}&\text{ otherwise}\end{cases} and i{0 if i=nker(F(in)) otherwise\displaystyle i\mapsto\begin{cases}0&\text{ if }i=n\\ ker(F(i\leq n))&\text{ otherwise}\end{cases}

By assumption F(n)≄0F(n)\not\simeq 0 and ker(F(n1n))≄0ker(F(n-1\leq n))\not\simeq 0 so this is a non-trivial decomposition which is absurd. ∎

Theorem 1.

In a semisimple Abelian category equipped with the rank function lengthlength, a (,){(\mathbb{R},\leq)}-indexed diagram FF is of finite type if and only if it is tame.

Proof.

If FF is of finite type, then all points that are not extrema of some of the intervals defining FF are regular, so there can only be finitely many critical values. Conversely, if FF is tame, then we can find some partition of the real line in nonempty intervals C1,,CnC_{1},\dots,C_{n}\subseteq\mathbb{R} (which we assume to be sorted, i.e. ci<cjc_{i}<c_{j} whenever ciCic_{i}\in C_{i}, cj,Cjc_{j},\in C_{j} and i<ji<j) such that F(xy)F(x\leq y) is an isomorphism whenever x,yx,y lie in the same interval. We can then build F~Obj(𝐃)An\tilde{F}\in\textnormal{Obj}(\mathbf{D})^{A_{n}} by F~(i)=F(ci)\tilde{F}(i)=F(c_{i}) (where cic_{i} is some point in CiC_{i}). By proposition 11 F~χ[b,d],S\tilde{F}\simeq\chi_{[b,d],S} for some b,d{1,,n}b,d\in\{1,\dots,n\} and some simple object SS, so FχI,SF\simeq\chi_{I,S} where I=i=bdCiI=\cup_{i=b}^{d}C_{i}. ∎

3.4 Interleaving and bottleneck distances

There is a natural notion of distance between (,){(\mathbb{R},\leq)}-indexed diagram, the interleaving distance. Here we recall the categorical notion of interleaving from [5], which in turn draws from [8]. Note that here we will only consider strong interleavings, thus not considering the weaker definition provided in [8].

As in [5] we define the translation functor Tb:(,)(,)T_{b}:{(\mathbb{R},\leq)}\to{(\mathbb{R},\leq)} as Tb(a)=a+bT_{b}(a)=a+b and the natural transformation ηb:Id(,)Tb\eta_{b}:Id_{(\mathbb{R},\leq)}\to T_{b} given by ηb:aa+b\eta_{b}:a\leq a+b.

Given a (,){(\mathbb{R},\leq)}-indexed diagram FF, FTϵFT_{\epsilon} is simply defined by xF(x+ϵ)x\mapsto F(x+\epsilon). We will often compose functors to the left of natural transformation (thus applying the functor to the morphism the natural transformation returns) or to the right (thus calling the natural transformation on the object returned by the functor). For example, starting from ηb:IdTb\eta_{b}:Id\to T_{b}, we can compose FF to the left and obtain a new natural transformation Fηb:FFTbF\eta_{b}:F\to FT_{b}. Then, similarly, we can compose TcT_{c} to the right and obtain FηbTc:FTcFTb+cF\eta_{b}T_{c}:FT_{c}\to FT_{b+c}.

Definition 8.

[5, Def. 3.4] We remind that given two (,){(\mathbb{R},\leq)}-indexed diagrams F,GF,G, they are ϵ\epsilon-interleaved if there are natural transformations ϕF:FGTϵ\phi^{F}:F\to GT_{\epsilon} and ϕG:GFTϵ\phi^{G}:G\to FT_{\epsilon} such that:

(ϕGTϵ)ϕF=Fη2ϵ\displaystyle(\phi^{G}T_{\epsilon})\phi^{F}=F\eta_{2\epsilon} and (ϕFTϵ)ϕG=Gη2ϵ\displaystyle(\phi^{F}T_{\epsilon})\phi^{G}=G\eta_{2\epsilon}

The interleaving distance d(F,G)d(F,G) is the infimum of all ϵ\epsilon values such that FF and GG are ϵ\epsilon-interleaved.

There is a simple example coming from filtering functions. Given a topological spaces XX and two real-valued functions f,g:Xf,g:X\to\mathbb{R}, if ff and gg differ no more than ϵ\epsilon, i.e., for all xXx\in X, |f(x)g(x)|ϵ|f(x)-g(x)|\leq\epsilon, then there is a natural ϵ\epsilon-interleaving between the two (,){(\mathbb{R},\leq)}-indexed diagrams corresponding to the sublevels of ff and gg respectively.

It is natural to define persistence starting from one or sometimes more functors (see section 4.3 for an example with two functors):

𝐂0Ψ1𝐂1Ψ2Ψn𝐂n\mathbf{C}_{0}\xrightarrow{\Psi_{1}}\mathbf{C}_{1}\xrightarrow{\Psi_{2}}\dots\xrightarrow{\Psi_{n}}\mathbf{C}_{n}

where 𝐂0,,𝐂n1\mathbf{C}_{0},\dots,\mathbf{C}_{n-1} are arbitrary categories, whereas (𝐂n,r)(\mathbf{C}_{n},r) is a ranked category. A (,){(\mathbb{R},\leq)}-indexed diagram F𝐂0(,)F\in\mathbf{C}_{0}^{(\mathbb{R},\leq)} is mapped by the various functors Ψi\Psi_{i} in (,){(\mathbb{R},\leq)}-indexed diagrams

Ψ1(F)𝐂1(,),,Ψn(F)𝐂n(,)\Psi_{1}(F)\in\mathbf{C}_{1}^{(\mathbb{R},\leq)},\dots,\Psi_{n}(F)\in\mathbf{C}_{n}^{(\mathbb{R},\leq)}

Similarly an ϵ\epsilon-interleaving between F,G𝐂0(,)F,G\in\mathbf{C}_{0}^{(\mathbb{R},\leq)} is mapped to ϵ\epsilon-interleavings between Ψ1(F),Ψ1(G)\Psi_{1}(F),\Psi_{1}(G), Ψ2(F),Ψ2(G)\Psi_{2}(F),\Psi_{2}(G), et cetera. As a consequence we can define a sequence of interleaving distances d0d1dnd_{0}\geq d_{1}\geq\dots\geq d_{n} as follows:

di(F,G)=d𝐂i(Ψi(F),Ψi(G))d_{i}(F,G)=d_{\mathbf{C}_{i}}(\Psi_{i}(F),\Psi_{i}(G))

where d𝐂id_{\mathbf{C}_{i}} is the interleaving distance in category 𝐂i\mathbf{C}_{i}.

Furthermore, the bottleneck distance neglects the underlying category and is defined only via the persistence diagram.

Definition 9.

Let F,GF,G be two tame (,){(\mathbb{R},\leq)}-indexed diagrams in 𝐑\mathbf{R} and 𝒟F,𝒟G{\cal D}F,{\cal D}G their persistence diagrams. The bottleneck distance between the persistence diagrams is defined as

d(𝒟F,𝒟G)=infβsupp𝒟(F)pβ(p),d({\cal D}F,{\cal D}G)=\inf_{\beta\in{\cal B}}\sup_{p\in{\cal D}(F)}\|p-\beta(p)\|_{\infty},

where {\cal B} is the collection of all bijections between 𝒟F{\cal D}F and 𝒟G{\cal D}G.

We now prove that under mild hypotheses (𝐂n\mathbf{C}_{n} admits finite colimits) the chain of decreasing distances can be continued to include the bottleneck distance

d0(F,G)d1(F,G)dn(F,G)d(𝒟F,𝒟G)d_{0}(F,G)\geq d_{1}(F,G)\geq\dots\geq d_{n}(F,G)\geq d({\cal D}F,{\cal D}G)

and find examples of ranked categories that achieve the equality dn(F,G)=d(𝒟F,𝒟G)d_{n}(F,G)=d({\cal D}F,{\cal D}G). In particular, this chain of inequalities grants stability in the classical sense: as noted in remark 3, given two filtering functions that differ less than ϵ\epsilon, the associated (,){(\mathbb{R},\leq)}-indexed diagrams are ϵ\epsilon-interleaved.

To prove inequalities between interleaving and bottleneck distance, we will generalize [8, Lm. 4.5] to the case of persistence function on an arbitrary category and [8, Lm. 4.6, 4.7] from the category of vector spaces to an arbitrary category with finite colimits.

Lemma 3 (Box lemma).

Let F,GF,G be two tame (,){(\mathbb{R},\leq)}-indexed diagrams that are ϵ\epsilon-interleaved. Given α<β<γ<δ\alpha<\beta<\gamma<\delta let \square denote the region (α,β]×(γ,δ](\alpha,\beta]\times(\gamma,\delta] and ϵ\square_{\epsilon} the region (αϵ,β+ϵ]×(γϵ,δ+ϵ](\alpha-\epsilon,\beta+\epsilon]\times(\gamma-\epsilon,\delta+\epsilon]. Then the sum of the multiplicities of the points of 𝒟F{\cal D}F contained in \square is smaller or equal to the sum of the multiplicities of the points of 𝒟G{\cal D}G contained in ϵ\square_{\epsilon}.

Proof.

As in [8, Lm. 4.5] we notice that, if β+ϵ>γϵ\beta+\epsilon>\gamma-\epsilon, then ϵ\square_{\epsilon} intersects the diagonal and so the total multiplicity of 𝒟G{\cal D}G intersected with the diagonal is \infty, so we can assume β+ϵγϵ\beta+\epsilon\leq\gamma-\epsilon.

As FF and GG are ϵ\epsilon-interleaved, we have the commutative diagram:

F(α){\lx@inpgf@ignorespaces F(\alpha)}F(β){\lx@inpgf@ignorespaces F(\beta)}F(γ){\lx@inpgf@ignorespaces F(\gamma)}F(δ){\lx@inpgf@ignorespaces F(\delta)}G(αϵ){\lx@inpgf@ignorespaces G(\alpha-\epsilon)}G(β+ϵ){\lx@inpgf@ignorespaces G(\beta+\epsilon)}G(γϵ){\lx@inpgf@ignorespaces G(\gamma-\epsilon)}G(δ+ϵ){\lx@inpgf@ignorespaces G(\delta+\epsilon)}

from which we can consider the sequence of morphisms

G(αϵ)F(α)F(β)G(β+ϵ)G(γϵ)F(γ)F(δ)G(δ+ϵ)G(\alpha-\epsilon)\to F(\alpha)\to F(\beta)\to G(\beta+\epsilon)\to G(\gamma-\epsilon)\to F(\gamma)\to F(\delta)\to G(\delta+\epsilon)

Let us first assume that α,β,γ,δ\alpha,\beta,\gamma,\delta are all right-regular values for FF and αϵ,β+ϵ,γϵ,δ+ϵ\alpha-\epsilon,\beta+\epsilon,\gamma-\epsilon,\delta+\epsilon are all right-regular values for GG. Then by proposition 10, we can compute the sum of the multiplicities of the points of 𝒟F{\cal D}F and 𝒟G{\cal D}G using the categorical persistence function pp at the corners of the respective regions. Therefore we simply need to prove:

p(G(β+ϵγϵ))p(G(αϵγϵ))p(G(β+ϵδ+ϵ))+p(G(αϵδ+ϵ))\displaystyle p(G(\beta+\epsilon\leq\gamma-\epsilon))-p(G(\alpha-\epsilon\leq\gamma-\epsilon))-p(G(\beta+\epsilon\leq\delta+\epsilon))+p(G(\alpha-\epsilon\leq\delta+\epsilon))\geq
p(F(βγ))p(F(αγ))p(F(βδ))+p(F(αδ))\displaystyle p(F(\beta\leq\gamma))-p(F(\alpha\leq\gamma))-p(F(\beta\leq\delta))+p(F(\alpha\leq\delta))

The inequality can be proven by repeatedly applying lemma 2. A smaller diagram, not including F(δ)F(\delta) and G(δ+ϵ)G(\delta+\epsilon), can be used to prove the case δ=+\delta=+\infty.

If some of α,β,γ,δ\alpha,\beta,\gamma,\delta is not right-regular for FF or some of αϵ,β+ϵ,γϵ,δ+ϵ\alpha-\epsilon,\beta+\epsilon,\gamma-\epsilon,\delta+\epsilon is not right-regular for GG, we can simply prove the inequality for α,β,γ,δ=α+h,β+h,γ+h,δ+h\alpha^{\prime},\beta^{\prime},\gamma^{\prime},\delta^{\prime}=\alpha+h,\beta+h,\gamma+h,\delta+h, where hh is such that α,β,γ,δ\alpha^{\prime},\beta^{\prime},\gamma^{\prime},\delta^{\prime} are right-regular points for FF and αϵ,β+ϵ,γϵ,δ+ϵ\alpha^{\prime}-\epsilon,\beta^{\prime}+\epsilon,\gamma^{\prime}-\epsilon,\delta^{\prime}+\epsilon are right-regular for GG. Taking the limit for h0+h\to 0^{+} ends the proof. ∎

Lemma 4 (Interpolation lemma).

Let 𝐂\mathbf{C} be a category with finite colimits. If F,G𝐂(,)F,G\in\mathbf{C}^{(\mathbb{R},\leq)} are ϵ\epsilon-interleaved, there exists an interpolation H~s\tilde{H}_{s} for all s[0,ϵ]s\in[0,\epsilon] such that: FF and H~s\tilde{H}_{s} are ss-interleaved, GG and H~s\tilde{H}_{s} are (ϵs)(\epsilon-s)-interleaved, H~s\tilde{H}_{s} and H~s\tilde{H}_{s^{\prime}} are |ss||s-s^{\prime}|-interleaved.

Proof.

The proof follows the construction of [8], but in the more general setting of categories with finite colimits. We start by defining ϵ1=s{\epsilon}_{1}=s and ϵ2=ϵs{\epsilon}_{2}={\epsilon}-s. Then Hs=FTϵ1GTϵ2H_{s}=FT_{-{\epsilon}_{1}}\amalg GT_{-{\epsilon}_{2}}. We have a natural transformation

FιFHsTϵ1=FGTϵ1ϵ2F\xrightarrow{\iota^{F}}H_{s}T_{{\epsilon}_{1}}=F\amalg GT_{{\epsilon}_{1}-{\epsilon}_{2}}

given by the coproduct inclusion as well as a natural transformation

Hs=FTϵ1GTϵ2πFFTϵ1H_{s}=FT_{-{\epsilon}_{1}}\amalg GT_{-{\epsilon}_{2}}\xrightarrow{\pi^{F}}FT_{{\epsilon}_{1}}

which is defined as Fη2ϵ1Tϵ1F\eta_{2{\epsilon}_{1}}T_{-{\epsilon}_{1}} on the first term of the coproduct and as ϕGTϵ2\phi^{G}T_{-{\epsilon}_{2}} on the second term of the coproduct.

For this to be an interleaving, we need to prove that (πFTϵ1)ιF=Fη2ϵ1(\pi^{F}T_{{\epsilon}_{1}})\iota^{F}=F\eta_{2{\epsilon}_{1}} (going from FF to HsTϵ1H_{s}T_{{\epsilon}_{1}} and then to FT2e_1FT_{2e\_1} versus going from FF to FT2ϵ1FT_{2{\epsilon}_{1}} directly) and that ιFTϵ1πF=Hsη2ϵ1\iota^{F}T_{{\epsilon}_{1}}\pi^{F}=H_{s}\eta_{2{\epsilon}_{1}} (going from HsH_{s} to FTϵ1FT_{{\epsilon}_{1}} and then to HsT2ϵ1H_{s}T_{2{\epsilon}_{1}} versus going from HsH_{s} to HsT2ϵ1H_{s}T_{2{\epsilon}_{1}} directly).

We have (πFTϵ1)ιF=Fη2ϵ1(\pi^{F}T_{{\epsilon}_{1}})\iota^{F}=F\eta_{2{\epsilon}_{1}} as the left hand side is the composition:

FFGTϵ1ϵ2FT2ϵ1F\to F\amalg GT_{{\epsilon}_{1}-{\epsilon}_{2}}\to FT_{2{\epsilon}_{1}}

where the first morphism is the coproduct inclusion and the second morphism is Fη2ϵ1F\eta_{2{\epsilon}_{1}} on the first component of the coproduct.

As remarked by [8, Appendix A], however, lF=ιFTϵ1πFl^{F}=\iota^{F}T_{{\epsilon}_{1}}\pi^{F} and dF=Hsη2ϵ1d^{F}=H_{s}\eta_{2{\epsilon}_{1}} are not equal in general. Similarly, the dGd^{G} and lGl^{G} morphisms defined symmetrically are also not equal in general. H~s\tilde{H}_{s} is defined by coequalizing both dFT2ϵ1d^{F}T_{-2{\epsilon}_{1}} with lFT2ϵ1l^{F}T_{-2{\epsilon}_{1}} and dGT2ϵ2d^{G}T_{-2{\epsilon}_{2}} with lGT2ϵ2l^{G}T_{-2{\epsilon}_{2}}. This would of course satisfy all the desired interleaving properties between FF, GG and HsH_{s} but we need to show that the existing natural transformations HsFTϵ1H_{s}\to FT_{{\epsilon}_{1}} and HsGTϵ2H_{s}\to GT_{{\epsilon}_{2}} pass to the coequalizer (i.e. induce natural transformations H~sFTϵ1\tilde{H}_{s}\to FT_{{\epsilon}_{1}} and H~sGTϵ2\tilde{H}_{s}\to GT_{{\epsilon}_{2}}). As everything is symmetric, we only need to prove it for the map HsFTϵ1H_{s}\to FT_{{\epsilon}_{1}}.

We start by proving that the transformation HsFTϵ1H_{s}\to FT_{{\epsilon}_{1}} passes to the coequalizer of dFT2ϵ1d^{F}T_{-2{\epsilon}_{1}} and lFT2ϵ1l^{F}T_{-2{\epsilon}_{1}}. We observe that

HsT2ϵ1FTϵ1HsFTϵ1H_{s}T_{-2{\epsilon}_{1}}\to FT_{-{\epsilon}_{1}}\to H_{s}\to FT_{{\epsilon}_{1}}

is the same as the more direct map

HsT2ϵ1HsFTϵ1H_{s}T_{-2{\epsilon}_{1}}\to H_{s}\to FT_{{\epsilon}_{1}}

as both the blue parallelogram and the green rightmost triangle are commutative in the following diagram:

F(xϵ1){\lx@inpgf@ignorespaces F(x-{\epsilon}_{1})}F(x+ϵ1){\lx@inpgf@ignorespaces F(x+{\epsilon}_{1})}Hs(x2ϵ1){\lx@inpgf@ignorespaces H_{s}(x-2{\epsilon}_{1})}Hs(x){\lx@inpgf@ignorespaces H_{s}(x)}

therefore

HsT2ϵ1FTϵ1HsFTϵ1\displaystyle H_{s}T_{-2{\epsilon}_{1}}\to FT_{-{\epsilon}_{1}}\to H_{s}\to FT_{{\epsilon}_{1}} =HsT2ϵ1FTϵ1FTϵ1\displaystyle=H_{s}T_{-2{\epsilon}_{1}}\to FT_{-{\epsilon}_{1}}\to FT_{{\epsilon}_{1}}
=HsT2ϵ1HsFTϵ1\displaystyle=H_{s}T_{-2{\epsilon}_{1}}\to H_{s}\to FT_{{\epsilon}_{1}}

Proving that the transformation HsFTϵ1H_{s}\to FT_{{\epsilon}_{1}} passes to the coequalizer of dGT2ϵ2d^{G}T_{-2{\epsilon}_{2}} and lGT2ϵ2l^{G}T_{-2{\epsilon}_{2}} is slightly trickier. We need to prove that:

HsT2ϵ2GTϵ2HsFTϵ1=HsT2ϵ2HsFTϵ1H_{s}T_{-2{\epsilon}_{2}}\to GT_{-{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}=H_{s}T_{-2{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}

As HsT2ϵ2=FTϵ12ϵ2GT3ϵ2H_{s}T_{-2{\epsilon}_{2}}=FT_{-{\epsilon}_{1}-2{\epsilon}_{2}}\amalg GT_{-3{\epsilon}_{2}} we can prove the above equality on the two components separately. We consider the diagram:

F(xϵ12ϵ2){\lx@inpgf@ignorespaces F(x-{\epsilon}_{1}-2{\epsilon}_{2})}F(x+ϵ1){\lx@inpgf@ignorespaces F(x+{\epsilon}_{1})}Hs(x2ϵ2){\lx@inpgf@ignorespaces H_{s}(x-2{\epsilon}_{2})}Hs(x){\lx@inpgf@ignorespaces H_{s}(x)}G(x3ϵ2){\lx@inpgf@ignorespaces G(x-3{\epsilon}_{2})}G(xϵ2){\lx@inpgf@ignorespaces G(x-{\epsilon}_{2})}

As the blue bottom parallelogram and the green bottom-left triangle are commutative, we have:

GT3ϵ2HsT2ϵ2GTϵ2HsFTϵ1\displaystyle GT_{-3{\epsilon}_{2}}\to H_{s}T_{-2{\epsilon}_{2}}\to GT_{-{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}} =GT3ϵ2GTϵ2HsFTϵ1\displaystyle=GT_{-3{\epsilon}_{2}}\to GT_{-{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}
=GT3ϵ2HsT2ϵ2HsFTϵ1\displaystyle=GT_{-3{\epsilon}_{2}}\to H_{s}T_{-2{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}

As a consequence of the interleaving between FF and GG, the large inverted teal triangle is also commutative and so is the top red trapezoid. Consequently, we have:

FTϵ12ϵ2HsT2ϵ2GTϵ2HsFTϵ1\displaystyle FT_{-{\epsilon}_{1}-2{\epsilon}_{2}}\to H_{s}T_{-2{\epsilon}_{2}}\to GT_{-{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}} =FTϵ12ϵ2GTϵ2FTϵ1\displaystyle=FT_{-{\epsilon}_{1}-2{\epsilon}_{2}}\to GT_{-{\epsilon}_{2}}\to FT_{{\epsilon}_{1}}
=FTϵ12ϵ2FTϵ1\displaystyle=FT_{-{\epsilon}_{1}-2{\epsilon}_{2}}\to FT_{{\epsilon}_{1}}
=FTϵ12ϵ2HsT2ϵ2HsFTϵ1\displaystyle=FT_{-{\epsilon}_{1}-2{\epsilon}_{2}}\to H_{s}T_{-2{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}

so, necessarily

HsT2ϵ2GTϵ2HsFTϵ1=HsT2ϵ2HsFTϵ1H_{s}T_{-2{\epsilon}_{2}}\to GT_{-{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}=H_{s}T_{-2{\epsilon}_{2}}\to H_{s}\to FT_{{\epsilon}_{1}}

Proving that morphisms of the type HsHsT|ss|H_{s}\to H_{s^{\prime}}T_{|s-s^{\prime}|} also pass to the coequalizer is a similar exercise in diagram chasing. ∎

The following result is a generalization, in our setting, of [8, Thm. 4.4]. Given lemmas 3 and 4, which are the equivalent of [8, Lm. 4.5, 4.6, 4.7], the proof of the following result is identical to the proof of [8, Thm. 4.4]: we reproduce it here with slight changes to adjust for differences in notation.

Theorem 2.

Let 𝐑\mathbf{R} be a category with finite colimits and pp be a categorical persistence function. If F1,F2F1,F2 are two tame (,){(\mathbb{R},\leq)}-indexed diagrams in 𝐑\mathbf{R}, then

d𝐑(F1,F2)d(𝒟F1,𝒟F2).d_{\mathbf{R}}(F1,F2)\geq d({\cal D}F1,{\cal D}F2).
Proof.

The proof is analogous to [8, Thm. 4.4]. Let us assume that F,GF,G are ϵ\epsilon-interleaved. We can construct H~s\tilde{H}_{s} as in lemma 4. We define:

δ(s)=12min{pq,p𝒟H~sΔ,q𝒟H~s{p}}\delta(s)=\frac{1}{2}\min\left\{||p-q||_{\infty},\;p\in{\cal D}\tilde{H}_{s}\setminus\Delta,\;q\in{\cal D}\tilde{H}_{s}\setminus\{p\}\right\}

We say that H~s\tilde{H}_{s^{\prime}} is very close to H~s\tilde{H}_{s} if |ss|<δ(s)|s-s^{\prime}|<\delta(s). In such case, by lemma 3, as H~s\tilde{H}_{s} and H~s\tilde{H}_{s^{\prime}} are |ss||s-s^{\prime}| interleaved, any off-diagonal point of 𝒟H~s{\cal D}\tilde{H}_{s} admits exactly one point of 𝒟H~s{\cal D}\tilde{H}_{s^{\prime}} within ll^{\infty} distance |ss||s-s^{\prime}|. By compactness, we can find a sequence 0=s0<s1<<sn<sn+1=ϵ0=s_{0}<s_{1}<\dots<s_{n}<s_{n+1}=\epsilon such that for i=0,,ni=0,\dots,n either H~si\tilde{H}_{s_{i}} is very close to H~si+1\tilde{H}_{s_{i+1}} or vice versa. From the Easy Bijection Lemma [9], it follows that d(𝒟H~si,𝒟H~si+1)si+1sid({\cal D}\tilde{H}_{s_{i}},{\cal D}\tilde{H}_{s_{i+1}})\leq s_{i+1}-s_{i}. By applying repeatedly the triangle inequality we obtain that d(𝒟F,𝒟G)ϵd({\cal D}F,{\cal D}G)\leq\epsilon. ∎

Even though the interleaving distance is, under mild assumptions, larger than the bottleneck distance, the opposite is not true with such generality. In the rest of this section we will show a class of categories and rank functions for which the converse holds.

Definition 10.

A ranked category (𝐑,r)(\mathbf{R},r) is tight if, for any tame (,){(\mathbb{R},\leq)}-indexed diagrams FF and GG, the following equality holds:

d𝐑(F,G)=d(𝒟F,𝒟G)d_{\mathbf{R}}(F,G)=d({\cal D}F,{\cal D}G)
Theorem 3.

Let 𝐃\mathbf{D} be a semisimple Abelian category with only one simple object up to isomorphism, equipped with the rank lengthlength. Then the interleaving and bottleneck distances coincide on tame (,){(\mathbb{R},\leq)}-indexed diagrams, that is to say (𝐃,length)(\mathbf{D},length) is tight.

Proof.

Given F,GF,G two (,){(\mathbb{R},\leq)}-indexed diagrams, we know already d𝐃(F,G)d(𝒟F,𝒟G)d_{\mathbf{D}}(F,G)\leq d({\cal D}F,{\cal D}G) because of theorem 2. To prove the inequality, let us call SS the only (up to isomorphism) simple object in 𝐃\mathbf{D}. As FF and GG are tame, by theorem 1, they are also of finite type and we can therefore write:

Fk𝒟FχIk,S\displaystyle F\simeq\bigoplus_{k\in{\cal D}F}\chi_{I_{k},S} and Gk𝒟GχIk,S\displaystyle G\simeq\bigoplus_{k\in{\cal D}G}\chi_{I_{k},S}

where SS is a representative of the unique isomorphism class of simple objects in 𝐃\mathbf{D}. We take IkI_{k} to be the empty interval if kk lies on the diagonal of the persistence diagram.

Given ϵ>d(𝒟F,𝒟G)\epsilon>d({\cal D}F,{\cal D}G), let us take a bijection of persistence diagrams ψ:𝒟F𝒟G\psi:{\cal D}F\to{\cal D}G which sends each point to a point of distance <ϵ<\epsilon. The interleaving map ϕF:FGTϵ\phi^{F}:F\to GT_{\epsilon} will send χIk,S\chi_{I_{k},S} into χIψ(k),STϵ\chi_{I_{\psi(k),S}}T_{\epsilon}. ∎

theorem 3 is more general than the usual result (which considers 𝐃=𝐅𝐢𝐧𝐕𝐞𝐜𝕂\mathbf{D}=\mathbf{FinVec}_{\mathbb{K}}), as it includes modules over non-commutative division rings, which are a semisimple category with essentially one simple object. This will be important in the follow up to make general theorems about multicolored persistence in semisimple categories.

Having, up to isomorphism, only one simple object is a necessary assumption. As a counter-example, given a semisimple Abelian category 𝐃\mathbf{D} with at least two non-isomorphic simple objects O1O_{1} and O2O_{2}, (𝐃,length)(\mathbf{D},length) as in proposition 6 is not tight. If we take two constant (,){(\mathbb{R},\leq)}-indexed diagrams: uO1u\mapsto O_{1} and uO2u\mapsto O_{2}, their interleaving distance is \infty and their bottleneck distance is 00. To recover the equality, we will use the concept of coloring.

4 Multicolored persistence

The aim of this section is to find a suitable way to still use persistence diagrams to compute the interleaving distance (or find tighter bounds for it) even in categories with many non-isomorphic indecomposable objects. We will do so by defining multicolored persistence diagrams, where each color encodes the isomorphism class of an indecomposable persistence module.

We start by introducing the concept of coloring of ranked categories.

Definition 11.

Given an index set Γ\Gamma, we say that a ranked category (𝐑,r)(\mathbf{R},r) is Γ\Gamma-colorable if there exist ranked categories (𝐐γ,rγ)(\mathbf{Q}_{\gamma},r_{\gamma}) for γΓ\gamma\in\Gamma and image-preserving functors 𝒞γ:𝐑𝐐γ{\cal C}_{\gamma}:\mathbf{R}\to\mathbf{Q}_{\gamma} such that

  1. 1.

    the induced functor 𝒞:𝐑γΓ𝐐γ{\cal C}:\mathbf{R}\to\prod_{\gamma\in\Gamma}\mathbf{Q}_{\gamma} is fully faithful;

  2. 2.

    for each XObj(𝐑)X\in{\textnormal{Obj}}(\mathbf{R}), rγ(X)r_{\gamma}(X) is 00 for all but finitely many γΓ\gamma\in\Gamma and:

    r(X)=γΓrγ(𝒞γ(X))r(X)=\sum_{\gamma\in\Gamma}r_{\gamma}({\cal C}_{\gamma}(X)) (2)

We call such 𝒞{\cal C} a Γ\Gamma-coloring and we say that (𝐑,r)(\mathbf{R},r) is 𝒞{\cal C}-colored.

The fully faithful condition may sound quite abstract, in practice what we are asking is that given X,YObj(𝐑)X,Y\in\textnormal{Obj}(\mathbf{R}) the natural map of sets:

Hom(X,Y)γΓHom(𝒞γ(X),𝒞γ(Y))\textnormal{Hom}(X,Y)\to\prod_{\gamma\in\Gamma}\textnormal{Hom}({\cal C}_{\gamma}(X),{\cal C}_{\gamma}(Y))

is bijective.

Note that in an Abelian category 𝐂\mathbf{C} of finite length, equipped with the rank function lengthlength, we have a coloring given by the block decomposition into indecomposable categories 𝐂γ\mathbf{C}_{\gamma} (see [14, Sect. 1]). Consequently eq. 2 follows from the additivity of lengthlength.

4.1 Multicolored persistence diagrams

In what follows, we will show how, given (𝐑,r)(\mathbf{R},r) a 𝒞\mathcal{C}-colored ranked category, it is possible to construct a multicolored persistence diagram. First we will need a simple lemma:

Lemma 5.

Let (𝐑,r)(\mathbf{R},r) be a 𝒞\mathcal{C}-colored ranked category. Given F𝐑(,)F\in\mathbf{R}^{(\mathbb{R},\leq)}, if FF is constant on an interval II with respect to rr, then FF is also constant on II with respect to all colored components rγr_{\gamma}. As a consequence, if FF is tame with respect to rr, then FF is tame with respect to rγr_{\gamma}, for all γΓ\gamma\in\Gamma.

Proof.

Let II\subseteq{\mathbb{R}} be an interval. Given uvIu\leq v\in I we know that r(F(u))=r(im(F(uv)))r(F(u))=r(im(F(u\leq v))), i.e.:

γΓrγ(F(u))=γΓrγ(im(F(uv)))\sum_{\gamma\in\Gamma}r_{\gamma}(F(u))=\sum_{\gamma\in\Gamma}r_{\gamma}(im(F(u\leq v)))

Of course, for any γ\gamma, we have rγ(F(u))rγ(im(F(uv)))r_{\gamma}(F(u))\geq r_{\gamma}(im(F(u\leq v))). If for some γ¯\overline{\gamma} we had a strict inequality rγ¯(F(u))>rγ¯(im(F(uv)))r_{\overline{\gamma}}(F(u))>r_{\overline{\gamma}}(im(F(u\leq v))), then we would have a strict inequality:

γΓrγ(F(u))>γΓrγ(im(F(uv)))\sum_{\gamma\in\Gamma}r_{\gamma}(F(u))>\sum_{\gamma\in\Gamma}r_{\gamma}(im(F(u\leq v)))

which is absurd. rγ(im(F(uv)))=rγ(F(v))r_{\gamma}(im(F(u\leq v)))=r_{\gamma}(F(v)) is proved in the same way. ∎

As a consequence, given a 𝒞\cal C-colored ranked category (𝐑,r)(\mathbf{R},r) and a (,){(\mathbb{R},\leq)}-indexed diagram FF, we can draw its multicolored persistence diagram by superimposing the persistence diagrams associated to each colored component, see fig. 3. Let (𝐑,r)(\mathbf{R},r) be a 𝒞\cal C-colored ranked category. The multicolored bottleneck distance between two multicolored persistence diagrams is computed just like the normal bottleneck distance, but only accepting bijections that preserve the color of cornerpoints. We denote it by d𝒞d_{\cal C}.

Definition 12.

Let 𝒞\cal C be a coloring on a ranked category (𝐑,r)(\mathbf{R},r). We say that 𝒞\cal C is tight if for any tame (,){(\mathbb{R},\leq)}-indexed diagrams F,GF,G the following equality holds:

d𝐑(F,G)=d𝒞(𝒟F,𝒟G)d_{\mathbf{R}}(F,G)=d_{\cal C}({\cal D}F,{\cal D}G)

The multicolored bottleneck distance is greater or equal than the normal bottleneck distance, as the minimum is calculated across a smaller set of possible bijections. First, it is natural to ask whether the multicolored bottleneck distance is still bounded by the interleaving distance.

Figure 1: H1H_{1} and multicolored simplicial complexes. Coloring the vertices of a simplicial complex allows one to create a compact poset representation of all possible interaction between colored components evaluated through a rank function. Here, we consider a two-class coloring, namely orange oo and blue bb. In each panel, the leftmost object is a multicolored simplicial complex, in the center the poset obtained by considering colors and their interactions: ({{b},{o},{b,o}},)(\left\{\{b\},\{o\},\{b,o\}\right\},\subseteq). Finally, the diagram obtained by computing the first homology group for each element of {{b},{o},{b,o}}\left\{\{b\},\{o\},\{b,o\}\right\}. Observe how the cycle generated by the orange component propagates to {b,o}\{b,o\} in Panel (a), whilst it disappears from {b,o}\{b,o\} in Panel (b), because of the central blue vertex.
Theorem 4.

Let 𝒞:𝐑γΓ𝐐γ{\cal C}:\mathbf{R}\to\prod_{\gamma\in\Gamma}\mathbf{Q}_{\gamma} be a Γ\Gamma-coloring of a ranked category (𝐑,r)(\mathbf{R},r) with components (𝐐γ,rγ)(\mathbf{Q}_{\gamma},r_{\gamma}). If, for all γΓ\gamma\in\Gamma, the category 𝐐γ\mathbf{Q}_{\gamma} admits finite colimits, then the multicolored bottleneck distance is bounded by the interleaving distance, i.e.

d𝐑(F,G)d𝒞(𝒟F,𝒟G)d_{\mathbf{R}}(F,G)\geq d_{\cal C}({\cal D}F,{\cal D}G)

Furthermore, if all (𝐐γ,rγ)(\mathbf{Q}_{\gamma},r_{\gamma}) are tight, then 𝒞{\cal C} is a tight coloring in the sense of definition 12.

Proof.

The functor 𝒞{\cal C} is fully faithful by definition 11, hence FF and GG are ϵ{\epsilon}-interleaved in 𝐑\mathbf{R} if and only if 𝒞γF{\cal C}_{\gamma}F and 𝒞γG{\cal C}_{\gamma}G are ϵ\epsilon-interleaved in 𝐐γ\mathbf{Q}_{\gamma} for all γ\gamma. Therefore:

d𝐑(F,G)=supγΓd𝐐γ(𝒞γF,𝒞γG)d_{\mathbf{R}}(F,G)=\sup_{\gamma\in\Gamma}\;d_{\mathbf{Q}_{\gamma}}({\cal C}_{\gamma}F,{\cal C}_{\gamma}G)

Similarly:

d𝒞(𝒟F,𝒟G)=supγΓd(𝒟(𝒞γF),𝒟(𝒞γG))d_{\cal C}({\cal D}F,{\cal D}G)=\sup_{\gamma\in\Gamma}\;d({\cal D(C}_{\gamma}F),{\cal D(C}_{\gamma}G))

As all 𝐐γ\mathbf{Q}_{\gamma} have finite colimits, thanks to theorem 2, we have element-wise inequalities

d𝐐γ(𝒞γF,𝒞γG)d(𝒟(𝒞γF),𝒟(𝒞γG))d_{\mathbf{Q}_{\gamma}}({\cal C}_{\gamma}F,{\cal C}_{\gamma}G)\geq d({\cal D(C}_{\gamma}F),{\cal D(C}_{\gamma}G))

so, necessarily

d𝐑(F,G)d𝒞(𝒟F,𝒟G)d_{\mathbf{R}}(F,G)\geq d_{\cal C}({\cal D}F,{\cal D}G)

Similarly, if all (𝐐γ,rγ)(\mathbf{Q}_{\gamma},r_{\gamma}) are tight, we have element-wise equalities:

d𝐐γ(𝒞γF,𝒞γG)=d(𝒟(𝒞γF),𝒟(𝒞γG))d_{\mathbf{Q}_{\gamma}}({\cal C}_{\gamma}F,{\cal C}_{\gamma}G)=d({\cal D(C}_{\gamma}F),{\cal D(C}_{\gamma}G))

and thus

d𝐑(F,G)=d𝒞(𝒟F,𝒟G)d_{\mathbf{R}}(F,G)=d_{\cal C}({\cal D}F,{\cal D}G)

Given an Abelian semisimple category 𝐂\mathbf{C}, let Γ\Gamma be a maximal set of non-isomorphic simple objects of 𝐂\mathbf{C} and, for each γΓ\gamma\in\Gamma, 𝐂γ\mathbf{C}_{\gamma} the full subcategory spanned by objects isomorphic to i=1nγ\bigoplus_{i=1}^{n}\gamma for nn\in\mathbb{N}. As in the case of finite group representations [21], objects in 𝐂\mathbf{C} can be canonically decomposed as a direct sum of components in the various 𝐂γ\mathbf{C}_{\gamma}. This decomposition induces a natural tight coloring 𝒞:𝐂γΓ𝐂γ{\cal C}:\mathbf{C}\to\prod_{\gamma\in\Gamma}\mathbf{C}_{\gamma} on (𝐂,length)(\mathbf{C},length).

Theorem 5.

Given 𝐂\mathbf{C} an Abelian semisimple category, 𝒞{\cal C} is a tight coloring on (𝐂,length)(\mathbf{C},length).

Proof.

By theorem 4 we only need to prove that, for all γΓ\gamma\in\Gamma, the ranked category (𝐂γ,length)(\mathbf{C}_{\gamma},length) is tight. However the category 𝐂γ\mathbf{C}_{\gamma} is semisimple and has only one simple object γ\gamma up to isomorphism so, by theorem 3 it is tight. ∎

We have two examples in mind: groups and posets.

4.2 Persistent homology on simplicial complexes with a group action

Figure 2: H1H_{1} multicolored persistence in 𝐓𝐨𝐩2\mathbf{Top}^{\mathbb{Z}_{2}}. We consider the action of 2\mathbb{Z}_{2} on the space XX represented in Panel (a) and generating the quotient highlighted in green. Note how the dashed loop lying on the (y,z)(y,z)-plane is fixed by the action of group. We consider the filtration induced by the height function h:Xh:X\rightarrow\mathbb{R}. In Panel (b) cycles are labelled according to the group action. The same labeling is reported in the persistence diagram of Panel (c).

If GG is a finite group whose cardinality is not a multiple of the characteristic of 𝕂\mathbb{K}, then the category of GG-representations in 𝐅𝐢𝐧𝐕𝐞𝐜𝕂\mathbf{FinVec}_{\mathbb{K}} is semisimple. The homology functor induces a map Hn:𝐅𝐢𝐧𝐒𝐢𝐦𝐩G𝐅𝐢𝐧𝐕𝐞𝐜𝕂GH_{n}:\mathbf{FinSimp}^{G}\to\mathbf{FinVec}_{\mathbb{K}}^{G} which allows us to define a categorical persistence function on finite simplicial complexes with a GG-action.

If a filtering function f:Xf:X\to\mathbb{R} is GG-invariant, i.e. for all xX,gGx\in X,g\in G, f(x)=f(gx)f(x)=f(gx), then the sublevels of ff form a (,){(\mathbb{R},\leq)}-indexed diagram in 𝐅𝐢𝐧𝐕𝐞𝐜𝕂G\mathbf{FinVec}_{\mathbb{K}}^{G}. In practice it may well happen that the filtration and the group action are not compatible and the condition f(x)=f(gx)f(x)=f(gx) is not always respected. In this case, one can consider an adjusted filtration such as:

f¯(x):=1|G|gGf(gx)\overline{f}(x):=\frac{1}{|G|}\sum_{g\in G}f(gx)
Application: Vietoris-Rips filtration under a group action

The above construction also applies on simiplicial complexes arising from point cloud data. Let GG be a finite group and (X,d)(X,d) a finite metric space with a distance-preserving GG-action. The Vietoris-Rips filtration [6] on (X,d)(X,d) is GG-invariant and therefore induces a (,){(\mathbb{R},\leq)}-indexed diagram in 𝐅𝐢𝐧𝐒𝐢𝐦𝐩G\mathbf{FinSimp}^{G}. Again, if the group action is not distance preserving, we can define an adjusted distance d¯(x,y):=1|G|gGd(gxi,gxj)\overline{d}(x,y):=\frac{1}{|G|}\sum_{g\in G}d(g\cdot x_{i},g\cdot x_{j}).

4.3 Persistent homology on labeled point clouds

Let (P,)(P,\preceq) be a finite poset. We can consider the category 𝐅𝐢𝐧𝐒𝐢𝐦𝐩(P,)\mathbf{FinSimp}^{(P,\preceq)}, i.e. (P,)(P,\preceq)-indexed diagrams of finite simplicial complexes. We have a chain of functors:

𝐅𝐢𝐧𝐒𝐢𝐦𝐩(P,)Hk𝐅𝐢𝐧𝐕𝐞𝐜𝕂(P,)𝑄𝐅𝐢𝐧𝐕𝐞𝐜𝕂|P|\mathbf{FinSimp}^{(P,\preceq)}\xrightarrow{H_{k}}\mathbf{FinVec}_{\mathbb{K}}^{(P,\preceq)}\xrightarrow{Q}\mathbf{FinVec}_{\mathbb{K}}^{|P|}

where we define QQ as follows:

pcoker(ipF(i)F(p))p\mapsto coker\left(\textstyle\bigoplus_{i\precneqq p}F(i)\to F(p)\right)

That is to say Q(F)Q(F) maps pp to F(p)F(p) quotiented by the images of F(i)F(i) with ii strictly smaller than pp. As 𝐅𝐢𝐧𝐕𝐞𝐜𝕂|P|\mathbf{FinVec}_{\mathbb{K}}^{|P|} is an Abelian semisimple category, the results of section 4.1 hold.

Figure 3: Multicolored persistence. We consider the colored weighted graph depicted in Panel (a), obtained by considering pairwise distances of points in a finite metric space, and the Vietoris-Rips filtration induced by the weight function defined on the edges. The multicolored persistence diagram in Panel (b) is obtained by considering the persistence of the cycles in the filtration along with their color, as depicted in Panel (c). Panels (d) and (e) are (,){(\mathbb{R},\leq)}-indexed diagrams in 𝐅𝐢𝐧𝐕𝐞𝐜(P,)\mathbf{FinVec}^{(P,\preceq)} and 𝐅𝐢𝐧𝐕𝐞𝐜|P|\mathbf{FinVec}^{|P|}, respectively. Note how the indecomposable components of the diagram in Panel (e) are the ones described in Section 3.3.
Application: Vietoris-Rips filtration with labeled data

Let (X,d,l)(X,d,l) be a finite metric space with a labeling function l:X{l1,,ln}l:X\to\{l_{1},\dots,l_{n}\} from XX to a discrete set of labels. Let X1,,XnX_{1},\dots,X_{n} be the subdatasets corresponding to the various labels, i.e. Xi=l1(li)X_{i}=l^{-1}(l_{i}). We wish to answer the following question: how do the homologies of the various XiX_{i} interact with one another? Let (Pn,)(P_{n},\subseteq) be the poset of non-empty subsets of {1,,n}\{1,\dots,n\} ordered by inclusion. We have a functor (Pn,)𝐌𝐞𝐭(P_{n},\subseteq)\to\mathbf{Met} sending r{1,,n}r\subseteq\{1,\dots,n\} to irXi\cup_{i\in r}X_{i}. By applying the Vietoris Rips construction we obtain a (Pn,)(P_{n},\subseteq)-indexed diagram of finite simplicial complexes. This allows us to build a multicolored persistence diagram from a labeled dataset keeping into account whether a persistent cycle originates from a single subdataset or a union. See fig. 3.

5 Conclusion

Topological persistence and persistent homology allow for a deeper understanding of the high-dimensional organization of data [7, 20, 2]. Notably, persistence diagrams provide an encompassing view on the topological and geometrical properties of a given dataset, both as a whole and at sample level. The main limitation of these methods is their innate confinement to the category of topological spaces. In [4], we described a first generalization of persistence to concrete categories, extending the persistence paradigm to the analysis of objects such as weighted graphs and quivers, without need of auxiliary topological constructions. However, the classical persistence homology can not be deduced naturally from this generalization. Specifically, whereas the coherent sampling technique defines a persistence function from a set-valued functor (e.g. the connected components), higher homology functors are naturally vector space-valued.

The proposed framework further generalizes both the classical and the concrete category-based persistence. We captured the essential properties of the cardinality function in 𝐅𝐢𝐧𝐒𝐞𝐭\mathbf{FinSet} and the dimension function in 𝐅𝐢𝐧𝐕𝐞𝐜\mathbf{FinVec} upon which the theory of size and persistent Betti numbers is built. This led us to the definition of ranked category: a regular category equipped with an integer-valued rank function defined on its objects. We provide strategies to build such functions as fiber-wise rank functions. As special cases of fiber-wise ranks we recover both the cardinality of sets and dimension of vector spaces, as well as the length function in the general case of Abelian categories of finite length. Finally, we show how categorical persistence functions can be built from rank functions, generalizing the construction of coherent sampling introduced in [4].

We provide definitions and more general proofs of the main results in classical and concrete category-based persistence. We define cornerpoints, their multiplicity and thus introduce a general paradigm to build persistence diagrams. We describe the structure of persistence modules and characterize their irreducible components in the semisimple case. These results allow us to define and discuss the interleaving and bottleneck distances, proving the stability of persistence diagrams in our framework. As finite dimensional vector spaces are an Abelian, semisimple category with essentially one simple object, we determine which of these hypotheses are needed for the classical results to hold in the generalized framework.

Our definitions are, to a large extent, preserved by functors. In particular, given two regular categories and a regular functor between them, a rank function on the target category induces a rank function on the source category. The same, without the regularity assumption, holds for any categorical persistence function. (,){(\mathbb{R},\leq)}-indexed diagrams, as well as ϵ\epsilon-interleavings between them, are preserved by arbitrary functors. As a general strategy, we apply functors to move from (,){(\mathbb{R},\leq)}-indexed diagrams in arbitrary categories to (,){(\mathbb{R},\leq)}-indexed diagrams in categories where the interleaving distance and the bottleneck distance are equal. In particular, this allows one to define chains of inequalities of interleaving distances in coarser and coarser categories. We observe how, in our setting, the generalized definition of filtration gets freer than the classical one, by not requiring the functions between sublevels to be monomorphisms.

The target categories of choice in the classical approach to persistence (𝐅𝐢𝐧𝐒𝐞𝐭\mathbf{FinSet} or 𝐅𝐢𝐧𝐕𝐞𝐜\mathbf{FinVec}) offer a clear correspondence between classes of isomorphism of objects and natural numbers, namely cardinality and dimension. To be able to deal with richer categories, we develop the concept of coloring, which allows us to recover the equality between interleaving and multicolored bottleneck distance.

Finally, we discuss and exemplify via toy examples several applications. In the Abelian semisimple case, we explicitly study the multicolored persistence and build the associated persistence diagram in the case of filtered simplicial complexes or point clouds with a group action. As much of the interest in persistent homology comes from its applications on real world data, we explore applications to point cloud data, where the extra structure is given by labels. Such datasets are routinely used in the training and testing of machine learning models on classification problems. Multicolored persistence naturally defines a topological notion of similarity of two datasets that keeps into account the labeling information. We speculate that such measure of similarity may be used to qualitatively assess the performance of machine learning models on classification problems.

References

  • [1] Michael F. Atiyah. On the Krull-Schmidt theorem with application to sheaves. Bulletin de la Société mathématique de France, 79:307–317, 1956.
  • [2] Woong Bae, Jaejun Yoo, and Jong Chul Ye. Beyond deep residual learning for image restoration: Persistent homology-guided manifold simplification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 145–153, 2017.
  • [3] John C. Baez and James Dolan. Categorification. arXiv:math/9802029, February 1998. arXiv: math/9802029.
  • [4] Mattia G. Bergomi, Massimo Ferri, Pietro Vertechi, and Lorenzo Zuffi. Beyond topological persistence: Starting from networks. arXiv:1901.08051 [math], January 2019. arXiv: 1901.08051.
  • [5] Peter Bubenik and Jonathan A. Scott. Categorification of Persistent Homology. Discrete & Computational Geometry, 51(3):600–627, April 2014.
  • [6] Gunnar Carlsson. Topology and data. Bulletin of the American Mathematical Society, 46(2):255–308, 2009.
  • [7] Gunnar Carlsson, Tigran Ishkhanov, Vin De Silva, and Afra Zomorodian. On the local behavior of spaces of natural images. International journal of computer vision, 76(1):1–12, 2008.
  • [8] Frédéric Chazal, David Cohen-Steiner, Marc Glisse, Leonidas J. Guibas, and Steve Y. Oudot. Proximity of persistence modules and their diagrams. In Proceedings of the 25th annual symposium on Computational geometry - SCG ’09, page 237, Aarhus, Denmark, 2009. ACM Press.
  • [9] David Cohen-Steiner, Herbert Edelsbrunner, and John Harer. Stability of Persistence Diagrams. Discrete & Computational Geometry, 37(1):103–120, January 2007.
  • [10] Barbara Di Fabio and Claudia Landi. A Mayer–Vietoris Formula for Persistent Homology with an Application to Shape Recognition in the Presence of Occlusions. Foundations of Computational Mathematics, 11(5):499–527, October 2011.
  • [11] Michele d’Amico, Patrizio Frosini, and Claudia Landi. Natural Pseudo-Distance and Optimal Matching between Reduced Size Functions. Acta Applicandae Mathematicae, 109(2):527–554, February 2010.
  • [12] H. Edelsbrunner, D. Letscher, and A. Zomorodian. Topological persistence and simplification. In Proceedings 41st Annual Symposium on Foundations of Computer Science, pages 454–463, November 2000.
  • [13] Herbert Edelsbrunner and John Harer. Persistent homology-a survey. Contemporary mathematics, 453:257–282, 2008.
  • [14] Pavel Etingof, editor. Tensor categories. Number 205 in Mathematical surveys and monographs. American Math. Soc, Providence, RI, 2015. OCLC: 924601171.
  • [15] Massimo Ferri. Persistent topology for natural data analysis - A survey. arXiv:1706.00411 [math], June 2017. arXiv: 1706.00411.
  • [16] Patrizio Frosini. Measuring shapes by size functions. In Intelligent Robots and Computer Vision X: Algorithms and Techniques, volume 1607, pages 122–134. International Society for Optics and Photonics, 1992.
  • [17] Patrizio Frosini and Claudia Landi. Size Functions and Formal Series. Applicable Algebra in Engineering, Communication and Computing, 12(4):327–349, August 2001.
  • [18] Peter Gabriel. Unzerlegbare Darstellungen I. manuscripta mathematica, 6(1):71–103, March 1972.
  • [19] Steve Oudot. Persistence Theory: From Quiver Representations to Data Analysis, volume 209 of Mathematical Surveys and Monographs. American Mathematical Society, Providence, Rhode Island, December 2015.
  • [20] Talha Qaiser, Korsuk Sirinukunwattana, Kazuaki Nakane, Yee-Wah Tsang, David Epstein, and Nasir Rajpoot. Persistent homology for fast tumor segmentation in whole slide histology images. Procedia Computer Science, 90:119–124, 2016.
  • [21] Jean-Pierre Serre, Leonard L Scott, and Springer Science+Business Media. Linear representations of finite groups. Springer, New York, 2014. OCLC: 883522602.

Appendix A Basic definitions and results

The aim of this section is to provide basic definitions of category theory to the unfamiliar reader.

A.1 Properties of morphisms

Definition A.1.1 (Epimorphism).

Consider X,YObj(𝐂)X,Y\in{\textnormal{Obj}}(\mathbf{C}). f:XYf:X\to Y is an epimorphism if given the following diagram

X{\lx@inpgf@ignorespaces X}Y{\lx@inpgf@ignorespaces Y}Z{\lx@inpgf@ignorespaces Z}f\scriptstyle{\lx@inpgf@ignorespaces f}g\scriptstyle{\lx@inpgf@ignorespaces g}h\scriptstyle{\lx@inpgf@ignorespaces h}

if gf=hfg\circ f=h\circ f then g=hg=h.

Example A.1.1 (Epimorphism).

Let X,YObj(𝐒𝐞𝐭)X,Y\in{\textnormal{Obj}}(\mathbf{Set}) and f:XYf:X\rightarrow Y, then ff is an epimorphism if and only if it is surjective.

Definition A.1.2 (Monomorphism).

Consider X,YObj(𝐂)X,Y\in{\textnormal{Obj}}(\mathbf{C}). f:XYf:X\to Y is a monomorphism if given the following diagram

Z{\lx@inpgf@ignorespaces Z}X{\lx@inpgf@ignorespaces X}Y{\lx@inpgf@ignorespaces Y}g\scriptstyle{\lx@inpgf@ignorespaces g}h\scriptstyle{\lx@inpgf@ignorespaces h}f\scriptstyle{\lx@inpgf@ignorespaces f}

if fg=fhf\circ g=f\circ h then g=hg=h.

Example A.1.2 (Monomorphism).

Let X,YObj(𝐒𝐞𝐭)X,Y\in{\textnormal{Obj}}(\mathbf{Set}) and f:XYf:X\rightarrow Y, then ff is a monomorphism if and only if it is injective.

A.2 Universal objects: limits and colimits

Many interesting objects can be defined in terms of universal properties. We will describe examples from two groups: limits (there are universal arrows to them) and colimits of diagrams (there are universal arrows from them).

Definition A.2.1 (Terminal object).

An object pt in a category 𝐂\mathbf{C} is called terminal if there exists a unique morphism x!ptx\xrightarrow{!}{\textnormal{pt}} for any object x𝐂x\in\mathbf{C}. If it exists, the terminal object is unique, up to unique isomorphism. For instance, the point space pt is terminal in Top.

Definition A.2.2 (Initial object).

An object \emptyset in a category 𝐂\mathbf{C} is initial if for any object x𝐂x\in\mathbf{C} there exists a unique morphism !x\emptyset\xrightarrow{!}x.

Definition A.2.3 (Zero object and pointed category).

An object which is both initial and terminal is said zero object. A category 𝐂\mathbf{C} equipped with a zero object is said pointed.

Example A.2.1 (Zero object).

The trivial group 11 is the zero object in 𝐆𝐫𝐩\mathbf{Grp}. Indeed 1GG/G=11\hookrightarrow G\twoheadrightarrow G/G=1, for every G𝐆𝐫𝐩G\in\mathbf{Grp}. In the category of 𝐕𝐞𝐜𝕂\mathbf{Vec}_{\mathbb{K}} of vector spaces on the field 𝕂\mathbb{K}, the zero object is the 00-dimensional vector space.

Definition A.2.4 (Product).

Let X,YX,Y be objects of a category 𝐂\mathbf{C}. The product of XX and YY is the object PP, along with morphisms πX:ZX\pi_{X}:Z\to X and πY:ZY\pi_{Y}:Z\to Y, such that given another such P,πX,πyP^{\prime},\pi^{\prime}_{X},\pi^{\prime}_{y}, we have a unique morphism PPP^{\prime}\to P that makes the following diagram commute:

P{\lx@inpgf@ignorespaces P^{\prime}}X{\lx@inpgf@ignorespaces X}P{\lx@inpgf@ignorespaces P}Y{\lx@inpgf@ignorespaces Y}πX\scriptstyle{\lx@inpgf@ignorespaces\pi^{\prime}_{X}}u\scriptstyle{\lx@inpgf@ignorespaces u}πY\scriptstyle{\lx@inpgf@ignorespaces\pi^{\prime}_{Y}}πY\scriptstyle{\lx@inpgf@ignorespaces\pi_{Y}}πX\scriptstyle{\lx@inpgf@ignorespaces\pi_{X}}

We denote the product X×YX\times Y.

Definition A.2.5 (Coproduct).

Let X,YX,Y be objects of a category 𝐂\mathbf{C}. The coproduct of XX and YY is the object CC, along with morphisms ιX:XC\iota_{X}:X\to C and ιY:YC\iota_{Y}:Y\to C, such that given another such C,ιX,ιYC^{\prime},\iota^{\prime}_{X},\iota^{\prime}_{Y}, we have a unique morphism CCC\to C^{\prime} that makes the following diagram commute:

C{\lx@inpgf@ignorespaces C}X{\lx@inpgf@ignorespaces X}XY{\lx@inpgf@ignorespaces X\amalg Y}Y{\lx@inpgf@ignorespaces Y}ιX\scriptstyle{\lx@inpgf@ignorespaces\iota^{\prime}_{X}}u\scriptstyle{\lx@inpgf@ignorespaces u}ιY\scriptstyle{\lx@inpgf@ignorespaces\iota^{\prime}_{Y}}ιY\scriptstyle{\lx@inpgf@ignorespaces\iota_{Y}}ιX\scriptstyle{\lx@inpgf@ignorespaces\iota_{X}}

We denote the coproduct XYX\amalg Y.

Example A.2.2 (Product and coproduct).

Let X,YObj(𝐒𝐞𝐭)X,Y\in{\textnormal{Obj}}(\mathbf{Set}). The product X×YX\times Y is simply the cartesian product. The coproduct XYX\amalg Y is the disjoint union of XX and YY.

Definition A.2.6 (Equalizer).

Let X,YX,Y be objects of 𝐂\mathbf{C} and consider two morphisms X𝑓YX\xrightarrow{f}Y, X𝑔YX\xrightarrow{g}Y. An object QQ, together with a morphism Q𝑞YQ\xrightarrow{q}Y is an equalizer if fq=gqf\circ q=g\circ q. Moreover, the pair (Q,q)(Q,q) must be universal, i.e. given another coequalizer (Q,q)(Q^{\prime},q^{\prime}), there exists a unique morphism Q𝑢QQ^{\prime}\xrightarrow{u}Q such that the following diagrams commutes.

Q{\lx@inpgf@ignorespaces Q}X{\lx@inpgf@ignorespaces X}Y{\lx@inpgf@ignorespaces Y}Q{\lx@inpgf@ignorespaces Q^{\prime}}q\scriptstyle{\lx@inpgf@ignorespaces q}f\scriptstyle{\lx@inpgf@ignorespaces f}g\scriptstyle{\lx@inpgf@ignorespaces g}q\scriptstyle{\lx@inpgf@ignorespaces q^{\prime}}u\scriptstyle{\lx@inpgf@ignorespaces u}

Thus, equalizers are unique up to isomorphism. Moreover, every equalizer is a monomorphism.

Example A.2.3 (Equalizer).

Let A,BObj(𝐒𝐞𝐭)A,B\in{\textnormal{Obj}}(\mathbf{Set}) and f,g:ABf,g:A\rightarrow B, then the equalizer is

{aA|f(a)=g(a)}\{a\in A\;|\;f(a)=g(a)\}
Definition A.2.7 (Coequalizer).

Let X,YX,Y be objects of 𝐂\mathbf{C} and consider two morphisms X𝑓YX\xrightarrow{f}Y, X𝑔YX\xrightarrow{g}Y. An object QQ, together with a morphism Y𝑞QY\xrightarrow{q}Q is a coequalizer if qf=qgq\circ f=q\circ g. Moreover, the pair (Q,q)(Q,q) must be universal, i.e. given another coequalizer (Q,q)(Q^{\prime},q^{\prime}), there exists a unique morphism Q𝑢QQ\xrightarrow{u}Q^{\prime} such that the following diagrams commutes.

X{\lx@inpgf@ignorespaces X}Y{\lx@inpgf@ignorespaces Y}Q{\lx@inpgf@ignorespaces Q}Q{\lx@inpgf@ignorespaces Q^{\prime}}f\scriptstyle{\lx@inpgf@ignorespaces f}g\scriptstyle{\lx@inpgf@ignorespaces g}q\scriptstyle{\lx@inpgf@ignorespaces q}q\scriptstyle{\lx@inpgf@ignorespaces q^{\prime}}u\scriptstyle{\lx@inpgf@ignorespaces u}

Thus, coequalizers are unique up to isomorphism. Moreover, every coequalizer is an epimorphism.

Example A.2.4 (Coequalizer).

Let A,BObj(𝐒𝐞𝐭)A,B\in{\textnormal{Obj}}(\mathbf{Set}) and f,g:ABf,g:A\rightarrow B, then the coequalizer is the quotient of BB with \sim, such that f(x)g(x)f(x)\sim g(x) for every xAx\in A.

Definition A.2.8 (Finitely (co)complete category).

A category 𝐂\mathbf{C} is finitely complete if it has equalizers, a terimal object and binary products. Analogously, a category 𝐂\mathbf{C} is finitely cocomplete if it has coequalizers, an initial object and binary coproducts.

Definition A.2.9 (Pullback).

Let X,YX,Y and ZZ be objects of a category 𝐂\mathbf{C}, and X𝑓ZX\xrightarrow{f}Z, Y𝑔ZY\xrightarrow{g}Z morphisms. An object PP and the morphisms Pp1XP\xrightarrow{p_{1}}X, Pp2YP\xrightarrow{p_{2}}Y is a pullback if the following diagram

P{\lx@inpgf@ignorespaces P}X{\lx@inpgf@ignorespaces X}Y{\lx@inpgf@ignorespaces Y}Z{\lx@inpgf@ignorespaces Z}p1\scriptstyle{\lx@inpgf@ignorespaces p_{1}}p2\scriptstyle{\lx@inpgf@ignorespaces p_{2}}f\scriptstyle{\lx@inpgf@ignorespaces f}g\scriptstyle{\lx@inpgf@ignorespaces g}

commutes and, given another such P,p1,p2P^{\prime},p_{1}^{\prime},p_{2}^{\prime} we have a unique morphism P𝑢PP^{\prime}\xrightarrow{u}P that makes the following diagram commute:

P{\lx@inpgf@ignorespaces P^{\prime}}P{\lx@inpgf@ignorespaces P}X{\lx@inpgf@ignorespaces X}Y{\lx@inpgf@ignorespaces Y}Z{\lx@inpgf@ignorespaces Z}p1\scriptstyle{\lx@inpgf@ignorespaces p_{1}^{\prime}}p2\scriptstyle{\lx@inpgf@ignorespaces p_{2}^{\prime}}u\scriptstyle{\lx@inpgf@ignorespaces u}p1\scriptstyle{\lx@inpgf@ignorespaces p_{1}}p2\scriptstyle{\lx@inpgf@ignorespaces p_{2}}f\scriptstyle{\lx@inpgf@ignorespaces f}g\scriptstyle{\lx@inpgf@ignorespaces g}

That is to say, the pullback is universal with respect to the diagram, and thus unique up to isomorphism. We denote it X×ZYX\times_{Z}Y.

Remark A.2.1.

The pullback X×ZYX\times_{Z}Y is the equalizer of the natural maps ZX×YZ\rightrightarrows X\times Y.

Example A.2.5 (Pullback).

Given three sets X,YX,Y and ZZ and functions X𝑓ZX\xrightarrow{f}Z, Y𝑔ZY\xrightarrow{g}Z, the coproduct X×ZYX\times_{Z}Y is the subset of the cartesian product:

X×ZY={(x,y)|xX,yY and f(x)=g(y)}X\times_{Z}Y=\{(x,y)\;|\;x\in X,\;y\in Y\text{ and }f(x)=g(y)\}
Example A.2.6 (Fiber).

In the category of sets, let pt be the terminal object. Let f:XYf:X\rightarrow Y be a map between sets and yYy\in Y. The fiber over yy is f1(y)Xf^{-1}(y)\subset X realised by the pullback

f1(y){\lx@inpgf@ignorespaces f^{-1}(y)}X{\lx@inpgf@ignorespaces X}ptY{\lx@inpgf@ignorespaces Y}f\scriptstyle{\lx@inpgf@ignorespaces f}

A.3 Regular, Abelian and semisimple categories

Definition A.3.1 (Regular epimorphism).

An epimorphism that is the coequalizer of a parallel pair of morphism.

Definition A.3.2 (Regular category).

A category 𝐑\mathbf{R} is regular if the following conditions hold:

  1. 1.

    𝐑\mathbf{R} is finitely complete.

  2. 2.

    Given X𝑓YX\xrightarrow{f}Y a morphism and its pullback (P,p1,p2)(P,p_{1},p_{2}), then the coequalizer of p1p_{1} and p2p_{2} exists.

  3. 3.

    Given the pullback

    R{\lx@inpgf@ignorespaces R}X{\lx@inpgf@ignorespaces X}Z{\lx@inpgf@ignorespaces Z}Y{\lx@inpgf@ignorespaces Y}g\scriptstyle{\lx@inpgf@ignorespaces g}f\scriptstyle{\lx@inpgf@ignorespaces f}

    if ff is a regular epimorphism, so is gg.

We will introduce some preparatory concepts to the definition of Abelian category.

Kernels and cokernels

Let 𝐂\mathbf{C} be a category and ξ:XY\xi:X\to Y a morphism. If for every object ZZ and morphisms g,h:ZXg,h:Z\to X, we have ξg=ξh\xi g=\xi h, then ξ\xi is said a (left) zero morphism. If 𝐂\mathbf{C} is pointed, i.e. it has a zero object 00, then given two objects X,YX,Y there exists a unique zero morphism ξ:XY\xi:X\to Y given by the composition X0YX\to 0\to Y.

Definition A.3.3 (Kernel).

Let 𝐂\mathbf{C} be a category with zero morphism ξ\xi and f:XYf:X\to Y a morphism. The kernel of ff is defined as the equalizer of ξ\xi and ff.

Definition A.3.4 (Cokernel).

Let 𝐂\mathbf{C} be a category with zero morphism ξ\xi and f:XYf:X\to Y a morphism. The cokernel of ff is defined as the coequalizer of ξ\xi and ff.

Definition A.3.5 (Abelian category).

A category 𝐂\mathbf{C} is abelian if

  1. 1.

    it is pointed, i.e. 𝐂\mathbf{C} has a zero objet;

  2. 2.

    has binary products and binary coproducts;

  3. 3.

    every morphism has kernel and cokernel;

  4. 4.

    each monomorphism is a kernel and each epimorphism is a cokernel.

In an Abelian category, the binary product and binary coproduct coincide and are sometimes called biproduct. We will sometimes simply call it sum, in analogy with the sum of vector spaces.

Definition A.3.6 (Simple object).

Let 𝐂\mathbf{C} be an Abelian category. An object XObj(𝐂)X\in{\textnormal{Obj}}(\mathbf{C}) is simple if its only subobjects are 00 and XX.

Lemma A.3.1 (Schur Lemma).

Given S,SS,S^{\prime} simple objects in an Abelian category, morphisms from SS to SS^{\prime} are either zero or invertible.

Definition A.3.7 (Semisimple category).

An Abelian category is semisimple if all its objects are semisimple, i.e. each object can be written as a finite sum of simple objects.