Abstract 1 Introduction 2 Preliminaries 3 Homology and cohomology relations in the filter 4 Constructing the homotopy 5 Final algorithm and summary References

Topological Simplification Guided by Forbidden Regions

Jakub Leśkiewicz222Corresponding author ORCID Jagiellonian University, Kraków, Poland    Bartosz Furmanek ORCID Jagiellonian University, Kraków, Poland    Michał Lipiński ORCID Institute of Science and Technology Austria (ISTA), Klosterneuburg, Austria    Dmitriy Morozov ORCID Lawrence Berkeley National Laboratory, CA, USA
Abstract

Topological simplification is the process of reducing complexity of a function while maintaining its essential features. Its goal is to find a new filter function, which reorders cells of the input complex in a way which eliminates some persistent homological features, without affecting the rest. We present a new approach to simplification based on the concept of forbidden regions and combinatorial dynamics. It allows us to reorder and cancel critical values, whose cancellation is not possible using existing methods because they are not consecutive in the total order. Each such cancellation takes O(cn) time in the worst case, where c is the number of birth-death pairs and n is the size of the input complex.

Keywords and phrases:
persistent homology, topological simplification, depth posets
Funding:
Jakub Leśkiewicz: The research was partially funded by the Polish National Science Center under Opus Grant No. 2019/35/B/ST1/00874 and Opus Grant 2025/57/B/ST1/00550.
Bartosz Furmanek: The research was partially funded by the Polish National Science Center under Opus Grant No. 2019/35/B/ST1/00874 and Opus Grant 2025/57/B/ST1/00550.
Michał Lipiński: This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie Grant Agreement No. 101034413.
Dmitriy Morozov: This work was supported in part by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, under Contract No. DE-AC02-05CH11231.
Copyright and License:
[Uncaptioned image] © Jakub Leśkiewicz, Bartosz Furmanek, Michał Lipiński, and Dmitriy Morozov; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Computing methodologies Algebraic algorithms
; Mathematics of computing Algebraic topology
Related Version:
Full Version: https://arxiv.org/abs/2603.16416 [23]
Acknowledgements:
Jakub Leśkiewicz wants to thank his supervisor, Prof. Marian Mrozek, for scientific guidance, patience, and opportunity to delay the rest of his duties while writing this work. The author also extends thanks to his entire family, to Zuzanna Świątek, and to Mikołaj Kardyś, BEng, MSc, for providing meals during the most intensive periods of work.
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

Simplification of real-valued functions is one of the central topics in Morse theory. In the classical (smooth) setting, one of the most notable examples of such simplifications is performed throughout the proof of the h-cobordism theorem [25, 24]. In the discrete setting, Forman’s theory [18, 17] studies the reversal of a unique combinatorial path between two critical points as a way of reducing the total number of critical points and, therefore, simplifying the Morse complex.

More recently, simplification has been studied in the context of persistent homology. The authors of [14] introduced the problem of persistence-sensitive simplification – asking to simplify all pairs with persistence below a given threshold – and gave an algorithm for 2-manifolds. Their solution was later improved to linear time [1]. Another approach, based on Forman’s combinatorial vector fields, was presented in [3]. This work drew connection to the cancellation procedure by observing that whenever the unique path connects two critical points with locally lowest difference in function values, their cancellation does not affect the remaining part of the persistence diagram [3]. These apparent pairs have also been called close pairs [9] and shallow pairs [15].

This observation further helped in optimization of (persistent) homology computation [2] and shape reconstruction [4]. The idea of pruning pairs of critical cells, following Forman’s approach, has been extensively studied in data visualization [6, 7, 10, 16, 21, 22, 27]. Recent works on topological optimization [20, 26] offer an alternative, albeit less controlled approach to simplification.

But there remains a critical gap. The works that are able to rigorously control the changes in persistent homology [14, 1, 3] are only able to simplify 0-dimensional persistent homology (as well as codimension-1, by duality). Meanwhile, the middle dimensions – e.g., 1-dimensional homology on 3-manifolds – are important in practice.

In this work, we study how relations between persistence pairs calculated by the standard lazy reduction algorithm [11, 5] can guide us in simplifying a discrete Morse function h, while controlling the changes in its persistence diagram in any dimension and the overall gradient structure. These relations organize persistence pairs in a hierarchical structure called a depth poset [12]. As observed in [13, 26], these relations describe the obstacles to modifying a function without changing its persistence diagram.

Concretely, for a given persistence pair α, we define forbidden regions for its death and birth cells, which describe the parts of the persistence diagram that α cannot move to without changing the persistence pairing. Conversely, when the forbidden regions leave a gap – a path from α to the diagonal – we can construct a homotopy that brings α to the diagonal without changing the rest of the persistence pairs and the gradient structure. This allows us to identify a broader family of persistence pairs, possibly with high persistence, that can be safely and selectively removed. We summarize our main contribution in the following theorem, where BD(h) denotes the set of birth-death pairs induced by a discrete Morse function h, and Crit(𝒱h), the set of critical cells for h.

Theorem 1.

Let h be a discrete Morse function on a Lefschetz complex X. If αBD(h) is a persistence pair such that forbidden regions of its death and birth cells do not intersect, and there exists exactly one gradient path between the paired critical cells, then there exists a discrete Morse function h on X such that BD(h)=BD(h){α} and h(x)=h(x) for all xCrit(𝒱h).

We present a constructive proof to this theorem, which provides an algorithm explicitly tracking all changes in relations throughout the homotopy and the final path reversal. As a result, we obtain already computed relations between pairs in BD(h), which enables iterative simplification.

2 Preliminaries

Definition 2.

A Lefschetz complex is a triplet (X,dim,D), where X is a finite set of elements called cells, dim:X is a map assigning a dimension to each cell, and D:X×X2 is the boundary coefficient such that D(x,y)0 implies dimx+1=dimy, in which case we say x is a facet of y. Additionally, we require that for any x,yX we have zXD(x,z)D(z,y)=0. We also define the coboundary coefficient as D(y,x)D(x,y).

Lefschetz complexes generalize simplicial, cubical, and cellular complexes while remaining concrete enough to define persistent homology. When it does not lead to confusion, we shorten the notation and refer to the set of cells, X, as the Lefschetz complex. We often interpret D and D as a matrix, in which case we put the arguments in the square brackets for emphasis, e.g., D[x,y]. We write Xn for the set of n-dimensional cells of X, and Dn, Dn for the n-th boundary and coboundary matrix, respectively.

Definition 3 (Discrete Morse function).

Let X be a Lefschetz complex. A map h:X is called a discrete Morse function (dMf, for short) if the following conditions are satisfied for all x,yX.

  1. (i)

    if D(x,y)=1 then h(x)h(y) (weak monotonicity),

  2. (ii)

    if h(x)=h(y) then either D(x,y)=1 or D(y,x)=1 (pairing),

  3. (iii)

    for every y, we have #h1(y)2 (almost injective).

In particular, we say that X is filtered by h. It also induces an h-order on X:

x<hy(h(x)<h(y))or(h(x)=h(y)anddimx<dimy).

If X is filtered by a dMf h, then we always assume that rows and columns of Dn are ordered by the h-order, and those of Dn by the reversed h-order.

To calculate persistent homology, we use the original version of the persistence algorithm [11], called lazy reduction algorithm, described in the form we need in [26]. The algorithm relies on an auxiliary function low, which, for a given column, returns the index of the row containing the lowest non-zero entry in that column. For a given (co)boundary matrix Dn, Algorithm 1 performs successive column additions, which results in a decomposition Dn=RnUn with Un invertible and upper triangular. Moreover, if xy and Un[x,y]0, then column Rn[:,x] was added to Rn[:,y] by the algorithm. Observe that in Dn the rows are indexed by (n1)-dimensional cells and the columns by n-dimensional cells. The same holds for Rn; however, both the rows and columns of Un are indexed by n-dimensional cells. Similarly, we obtain D=RU decomposition by applying D to the algorithm.

Algorithm 1 Lazy reduction of the matrix over 2.

We say that α=(α,α×) is an (n-dimensional) birth-death pair if α is a low of Rn+1[:,α×]. α is an (n-dimensional) birth-death pair if and only if α× is a low of Rn[:,α] [8]. We refer to α and α× as birth and death cells, respectively. The dimension of a birth-death pair is the dimension of its birth cell. We denote the set of all birth-death pairs by BD(h) and the set of all n-dimensional birth-death pairs by BDn(h). The cells in dimension n that are not paired at all – their columns in Rn are zero, and there are no columns in Rn+1 that have them as the lowest non-zero entry – are n-dimensional homology generators. It is convenient to assume that these generators also belong to some birth-death pair, even if its second component is undefined.

Let x,yXn. If Un[x,y]=1, we say that there is a homological relation between x and y and denote this fact by x×y. Dually, if Un[x,y]=1, we write xy to indicate a cohomological relation. If the relation type is not important, we simply write xy. If x and y are unrelated, we write xy, adding a superscript to specify the missing relation type, e.g., x ×y if U[x,y]=0. Observe that if x×y, then x must be a death cell, whereas y may be either a death cell or birth cell. Similarly if xy then x has to be a birth cell, while the type of y remains unspecified. We extend these notions to birth-death pairs: β×α whenever β× is homologically related to any component of α; similarly for other kinds of arrows. As rows and columns of Dn and Dn are ordered with respect to the h-order and the reversed h-order, so are Rn, Rn, Un and Un. We emphasize that Rn and Un are not transposed matrices Rn and Un, but components of lazy decomposition Dn=RnUn.

The persistence diagram is a set of two dimensional points (h(α),h(α×)) for αBD(h). When we visualize a persistence diagram (see Figure 2), it is convenient to add the diagonal, i.e., all points (x,x) for x, and to annotate the arrows with the type of the relation. Since a dMf is not injective in general, it can generate birth-death pairs on the diagonal of the persistence diagram. We denote the set of such diagonal pairs by BD¯(h) and use notation BD^(h) for the pairs above the diagonal.

Observation 4.

If pairs α,βBDn(h) and βα, then h(β)>h(α) and h(β×)<h(α×). (see [26, Lemma 2.1])

The preceding observation means that if we depict every relation between the birth-death pairs of the same dimension as arrows in the persistence diagram, then every such arrow points up and to the left.

Definition 5.

Let X be a Lefschetz complex and let h:X be a dMf. A topological simplification of h is a discrete Morse function h such that BD^(h)BD^(h) and h(α)=h(α) and h(α×)=h(α×), whenever αBD^(h).

In words, a topological simplification removes some off-diagonal persistence pairs and preserves the rest.

Definition 6.

A combinatorial vector field (or a vector field, for short) on a Lefschetz complex X is a partition 𝒱 of X into singletons, called critical cells, and facet–cofacet pairs, called vectors. Crit(𝒱) denotes the family of all critical cells of 𝒱; Vec(𝒱), the family of all vectors. We use the convention that the dimension of a vector is the smaller dimension of its two components.

A combinatorial vector field 𝒱 induces a digraph G𝒱=(X,E). Every edge (x,y)E is either an explicit arc when (x,y)𝒱 or an implicit arc when D(y,x)=1 and (x,y)𝒱. A path ρ has dimension k if it consists only of cells of dimension k and k+1. In particular, any path from y to x, where x,yCrit(𝒱) and k=dim(x)=dim(y)1 is of dimension k and alternates between k and k+1 dimensional cells.

A combinatorial vector field 𝒱 is called gradient if G𝒱 is acyclic. If there is a path between vertices y and x, then we write y𝒱x, omitting the superscript when the vector field is clear from the context. 𝒱k denotes the union of all k-dimensional vectors and critical cells of dimension k and k+1. Finally, note that for a given discrete Morse function h, the non-empty preimages 𝒱h{h1(a)a,h1(a)} form a combinatorial gradient vector field.

The Morse complex connects homological and dynamical perspectives on scalar functions. It is not required to carry out the reasoning we need, but it will simplify it considerably.

Definition 7 (Morse complex).

Let 𝒱 be a combinatorial gradient vector field on X. The Morse complex of 𝒱 is a Lefschetz complex, denoted by (𝒱), consisting of the set of critical cells of 𝒱 along with the restriction of dim. The boundary coefficient D(x,y) is given by the number of paths in G𝒱 from y to x (mod2), provided dimy=dimx+1 and 0 otherwise.

The most useful properties of Morse complexes for our work is that they describe the off-diagonal birth-death pairs. Indeed, if 𝒱h is a gradient vector field of some dMf h, its restriction to (𝒱h), denoted by h, is an injective dMf. The next observation follows from [15, Theorem 4.3].

Corollary 8.

Let X be filtered by dMfh. Then BD(h)=BD^(h) and U, U are restrictions of U and U to the critical cells.

It follows that we can identify the components of the pairs in BD^(h) with elements of Crit(𝒱h), while the vectors are the diagonal pairs, Vec(𝒱h)=BD¯(h). This perspective enables us to apply the following classical theorem.

Theorem 9 ([19, Theorem 9.1] ).

Let x be a k-dimensional critical cell and y be a k+1 dimensional critical cell of a gradient vector field 𝒱. If there exists a unique path ρ from y to x, then reversing it in 𝒱 produces another gradient vector field, which we denote 𝒱ρ. The critical cells of 𝒱ρ are exactly the critical cells of 𝒱 apart from x and y.

We say that αBD^(h) is reversible if there exists exactly one path between α× and α in 𝒱h. However, the theorem alone gives no guarantee that elimination of a pair of critical cells will not affect the remaining pairs in BD^(h). Identifying those pairs that can be safely removed is therefore a key challenge.

Definition 10.

Let X be a Lefschetz complex filtered by dMfh. A pair (x,y)X×X such that D(x,y)=1 is a shallow pair if h(x) is the maximum among facets of y and h(y) is the minimum among cofacets of x.

Observe that every shallow pair is a birth-death pair. Shallow pairs were introduced as apparent pairs in [2] and as close pairs in [9]. Since the theory behind them was later developed in the framework of the depth posets [13], we adopt the name from that setting. Shallow pairs are closely related to an algebraic operation called Lefschetz cancelation.

Definition 11.

Let (s,t)X×X be a pair in a Lefschetz complex such that s is a facet of t. A cancellation of (s,t) produces a quotient, another Lefschetz complex (X^,dim^,D^) such that X^=X{s,t}, dim^ is a restriction of dim to X^ and D^(x,y)=D(x,y)+D(s,y)D(x,t).

The boundary map in the quotient can be written in matrix form: if dimt=n and D^n is the n-th boundary matrix of X^, then D^n[:,y]=Dn[:,y]+Dn[s,y]Dn[:,t], after erasing row s and column t. Throughout this paper, we often refer to small modifications of matrices based on their previous state. In such cases, any matrix M after modification is denoted M^.

Theorem 12 ([12, Theorem 3.2]).

Let X be filtered by a dMfh. Fix a shallow pair α. Then birth-death pairs of quotient of X after Lefschetz cancelation of α are exactly BD(h){α}, and every shallow pair of h distinct from α remains shallow in the quotient, which may in addition contain new shallow pairs not present in X.

In other words, performing a Lefschetz cancellation on a shallow pair does not change the pairing between the rest of the cells. It is convenient to characterize shallow pairs in terms of the relations between cells.

Observation 13.

An n-dimensional birth-death pair α is shallow if and only if Un+1[:,α×] and Un[:,α] are zero except Un+1[α×,α×] and Un[α,α]. Equivalently, α is shallow iff βα for any birth-death pair β.

It is important to note that a Lefschetz cancellation leaves intact not only the pairing, but also the relations between cells.

Theorem 14.

Let Dn be a boundary matrix, and D^n, a boundary matrix of the quotient after cancellation of the (n1)-th dimensional shallow pair α. Let RnUn and R^nU^n be their respective decompositions obtained via the lazy reduction. Then, Un[x,y]=U^n[x,y] for all x,y different than α×. Moreover, symmetrically Un1[x,y]=U^n1[x,y] for all x,y different than α.

The above theorem can be rephrased as follows.

Observation 15.

Let X be filtered by a dMf and α be a shallow birth-death pair. If βγ in X, then the same relation holds in the quotient X^ obtained after the cancellation of α, for all βα.

Due to Observation 2 above, we introduce critical shallow pairs. An off-diagonal birth-death pair α is a critical shallow pair if there does not exist an off-diagonal birth-death pair β such that βα. It is easy to see that critical shallow pairs are exactly the shallow pairs of the Morse complex, although they need not be shallow pairs in the original complex. Equivalently, a pair α is critically shallow if for every βα, the pair β is a vector in 𝒱h.

Refer to caption
Figure 1: Two vector fields differing by a reversal of the path between components of a birth-death pair α. Critical cells are shown with colored nodes, and arrows between them symbolize paths created by vectors. Above each vector field is the boundary matrix of the corresponding Morse complex. Reversing the path between components of α gives the same boundary matrix as performing the Lefschetz cancelation.
Theorem 16.

Let 𝒱 be a combinatorial vector field on X and let s,tCrit(𝒱) be such that dims+1=dimt. Assume that there exists a unique path ρ from t to s. Then (𝒱ρ) is isomorphic to the quotient of (𝒱) after cancelling the pair (s,t). (See example in Figure 1.)

So to find a topological simplification of h, one can find a critical shallow pair α that is reversible. Then, one has to invert the unique path ρ between α× and α, and find h with the property that 𝒱ρ=𝒱h and h|Crit(𝒱ρ)=h|Crit(𝒱ρ). Unfortunately, it may happen that there is no pair that is both shallow and reversible. One of the goals of this paper is to remedy this problem.

3 Homology and cohomology relations in the filter

To understand how birth-death pairs and the relationships between them change during changes of the dMf, one must study how they change upon transposition of two adjacent cells in the boundary matrix. This problem is well-studied; see [5] and [13]. Observing that the depth poset can be constructed from the union of homological and cohomological relations between birth-death pairs (see Theorem 4.8 in [12]), we reformulate the results from [13] in the language of this paper. First, we introduce two additional objects.

Lemma 17 ([13, Lemma 3.2]).

Fix a birth-death pair αBD(h). If we remove all birth-death pairs below and to the right of α – in the region (h(α),+]×[,h(α×)] – by iteratively canceling shallow pairs, we get the same boundary matrix regardless of the order of cancellations.

Lemma 3 proves that the following definition is unambiguous.

Definition 18.

Fix α,βBDn(h) such that the components of these pairs are consecutive columns in Dn+1 or in Dn. Define Dn+1α,β to be the matrix obtained by performing Lefschetz cancellations, always canceling shallow pairs, for all pairs lying in the bottom-right quadrant of α (excluding β if it eventually lies in this region) and for all pairs lying in the bottom-right quadrant of β (excluding α if it eventually lies in this region).

Note that in the above definition, we can cancel all pairs in the bottom-right quadrants because, from Observation 2, there is no γBDn(h) such that βγα. After the cancellations, we have either (i) both α and β are shallow, or (ii) βα and β is shallow, or (iii) αβ and α is shallow.

Refer to caption
Figure 2: Left: (n1)-st dimensional persistence diagram of some complex X, with Dn in the bottom-right corner. In the diagram, we denote by × homological relations between pairs, and by relations which are homological and cohomological at the same time. To decide if moving β past α changes the relations between cells, as determined by Equation 1 in Theorem 20, we need to calculate Dnα,β. Right: The persistence diagram with the updated relation after the transposition of α and β. In the bottom-right corner, we show Dnα,β before the transposition. The cells deleted by the Lefschetz cancellations are crossed out.

Now we are ready to utilize results from [13] in a series of theorems.

Theorem 19 (Result of death-cells transposition [13, Lemma 3.4]).

Let α,β be n-dimensional birth-death pairs such that h(α)<h(β). Then the transposition of α× and β× does not change the values in Un+1, while the changes in Un follow these rules:

  1. (1)

    If β ×α and (βα or Dn+1α,β[α,β×]=1), then the pairing is unaffected and the row β of the matrix Un changes according to the formula:

    U^n[β,:]=Un[β,:]+Un[α,:], (1)
  2. (2)

    If β×α, then the pairs (α,α×),(β,β×) turn into (α,β×) and (β,α×) and Un changes as in (1).

  3. (3)

    Otherwise, Un and the pairing remain unchanged.

Theorem 20 (Result of birth-cells transposition [13, Lemma 3.3]).

Let α and β be n-dimensional birth-death pairs such that h(β×)<h(α×). Then the transposition of α and β does not change the values in Un, while the changes in Un+1 follow these rules:

  1. (1)

    If β α and (β×αorDn+1α,β[β,α×]=1), then the pairing is unaffected and the row β× of the matrix Un+1 changes according to the formula:

    U^n+1[β×,:]=Un+1[β×,:]+Un+1[α×,:] (2)
  2. (2)

    If βα, then Un+1 changes as in (2), and pairs (α,α×),(β,β×) turn into (β,α×) and (α,β×).

  3. (3)

    Otherwise Un+1 and the pairing remain unchanged.

Theorem 21 (Result of birth-death transposition [13, Lemma 3.5]).

A transposition between a birth and a death cell, which is a result of increasing birth, or decreasing death does not affect pairing or relations between birth-death pairs.

Figure 2 presents an example of how a transposition affects the relationship between birth-death pairs. Now we introduce our own propositions, which will be useful later.

Proposition 22.

Fix a pair αBD(n1)(h). A transposition that increases the value of α or decreases the value of α× and does not cause a switch cannot create a relation βα for any pair β.

Note that a transposition may involve skipping two columns and rows when bypassing a combinatorial vector. The following proposition helps decrease complexity of the final algorithm.

Proposition 23.

Let h,h be two dMfs such that 𝒱h=𝒱h and the difference between h-order and h-order is a transposition between a critical cell and a vector. Then h and h generate the same off-diagonal birth-death pairs and relations between them.

Proof.

As this process does not change the (co)boundary matrix of (𝒱h), it cannot change the pairing or relations between critical cells.

Finally, the following two corollaries give us an opportunity to focus only on specific cases during the construction of the homotopy below.

Corollary 24.

Take a pair αBDn(h). If x is a cell such that α<hx and also xα, then x is an n-dimensional birth cell. Analogously, if y<hα× and y×α×, then y is an (n+1)-dimensional death cell.

Proof.

Because y×α×, the column indexed by y was added to column α× during the lazy reduction of matrix Dn+1. Because lazy reduction never adds zero columns, column y in Rn+1 has a unique low, so it is a death cell. Analogously, if xα, then column x was added to column α in Dn, so x is a birth cell.

4 Constructing the homotopy

4.1 Homotopy

Recall that a linear homotopy between two maps f0 and f1 is a family of maps ft(x):=H(t,x)=(1t)f0(x)+tf1(x) for t[0,1].

We say that AX is connected if it Hasse diagram – the graph whose vertices are the cells of A with an edge for every boundary relation – is connected. An f-induced partition is a partition 𝒜 of X into maximal, with respect to inclusion, sets A, such that f is constant on A, and every A is connected.

Theorem 25.

Let f0 and f1 be two dMfs defined on X such that 𝒱f0=𝒱f1. Let ft(x):=H(t,x) be the linear homotopy between f0 and f1. Let 𝒱ft denote the ft-induced partition of X. Then, 𝒱ft=𝒱f0 for every t[0,1].

Using this theorem, we can represent our homotopy as a finite series of transpositions, allowing us to analyze only a finite number of time steps. Indeed, along a homotopy (ft)t[0,1] there are only finitely many parameters t at which ft fails to be a dMf. On each open interval between two such parameters, the induced ft-order is well-defined and remains constant (in particular, it does not depend on t). Consequently, for a sufficiently fine discretization of [0,1], consecutive ft-orders differ by exactly one transposition.

4.2 Journey to the diagonal

Consider an example in Figure 3 and assume that our goal is to reduce the lifetime of the pair α to be arbitrarily small, without changing the pairing or the vector field. To reduce the lifetime, we may increase the value of α and decrease the value of α×, along with a set of vectors. We may implement this as a series of “moves” of the birth-death pair to the right and down in the persistence diagram.

Unfortunately, our moves are constrained: if we want to preserve the original vector field, then we cannot decrease α× below β as α×β, and similarly, α cannot increase above γ×. Moreover, as β××α× and γ××α×, we also cannot decrease α× below these levels, without switches in pairing. Even worse, because ξα, α cannot increase above ξ without another switch.

This appears to be a serious obstacle. However, when we examine the persistence diagram (see bottom part of the Figure 3), we notice, following Observation 2, that increasing α above β breaks both homological relations of α× without changing the pairing. Afterwards, we are able to decrease α× as close to α as we want. This motivates our central notion of forbidden regions, which describe the allowed “moves” in the persistence diagram.

Definition 26 (Forbidden regions).

For an off-diagonal pair αBD^(h), we say that:

  1. (1)

    Forbidden region for α× is defined as

    h(α):=β×αβBD^n(h)[,h(β)]×[,h(β×)]α×xxCrit(𝒱h)[,h(x)]×[,h(x)].
  2. (2)

    Forbidden region for α is defined as

    h(α):=βαβBD^n(h)[h(β),+]×[h(β×),+]yαyCrit(𝒱h)[h(y),+]×[h(y),+].

Once we have the notion of forbidden regions, we can define a set of safe transformations, which we call allowed moves.

Definition 27 (Allowed moves).

Let h be a dMf, αBD^(h) and cα. A pre-allowed move of α is a new dMf h such that:

  1. (1)

    𝒱h=𝒱h and for all xCrit(𝒱h){c} we have h(x)=h(x),

  2. (2)

    If c is a birth cell, then h(c)>h(c); if c is a death cell, then h(c)<h(c),

  3. (3)

    h-order and h-order restricted to Crit(𝒱h) differ by a single transposition at most.

If a pre-allowed move h is such that BD(h)=BD(h), then we say that h is an allowed move.

A pre-allowed move pushes the pair α containing c toward the diagonal either by increasing birth or decreasing death without affecting the vector field. A single pre-allowed move bypasses at most one other critical cell. We note that multiple vectors can change their value and position in the h-order – as long as the gradient structure is preserved. We will use the allowed moves to construct the homotopy bringing a persistent pair to the diagonal.

Corollary 28.

If h is a pre-allowed move for h, then the change in persistence pairing can only result from transpositions of critical cells.

Proof.

The linear homotopy from h to h may be expressed as a series of transpositions in h-order, given by specific times t[0,1] and ht-orders. By Theorem 25, the transpositions do not change the vector field, and thus, the diagonal pairs. Therefore, by Proposition 3, the change in persistence pairing can only result from transpositions of critical cells.

Observe that for an X filtered by dMfh, for every cell x and interval [a,b] such that h(x)[a,b], we can find t[0,1] such that h(x)=at+(1t)b. We call it the linear coefficient of x on [a,b]. We now show that, for a fixed h, one can construct a pre-allowed move that pushes the chosen birth-death pair to the right, and another one that pushes it downward.

Proposition 29 (Increasing birth – moving right).

Let X be filtered by a dMf h. Let αBD^(h)k be an off-diagonal pair, and δ,ξ be real values such that h(α)<δ<ξ<h(α×), and there is at most one eCrit(𝒱h) such that h(e)(h(α),δ). Additionally, assume that e↝̸α and h1([δ,ξ])=. Define

h(x)={txδ+(1tx)ξwhen h(x)[h(α),ξ] and x𝒱hα and xCrit(𝒱h){α},h(x)otherwise,

where tx is the linear coefficient of x on the interval [h(α),ξ]. Then h is a pre-allowed move of α with respect to h.

Refer to caption
Refer to caption
Figure 3: Top: Schematic picture of 𝒱hk. Node heights encode values of dMf, critical cells are labeled by Greek letters with superscripts. Several important sublevels are highlighted with dashed lines. Bottom: Boundary matrix and the persistence diagram of the Morse complex induced by 𝒱hk with the two kinds of forbidden regions highlighted, and relations involving the birth-death pair α shown as edges. The forbidden regions for α× are shown in light blue; those for α, in darker blue. The dashed arrows illustrate a possible homotopy, which moves the point to the diagonal.
Proposition 30 (Decreasing death – moving down).

Let X be filtered by dMfh. Let αBD^(h)k be an off-diagonal pair, and ξ,δ be real values such that h(α)<ξ<δ<h(α×), and there is at most one eCrit(𝒱h) such that h(e)(δ,h(α×)). Additionally, assume α×↝̸e and at the same time h1([ξ,δ])=. Define

h(x)={txξ+(1tx)δwhen h(x)[ξ,h(α×)] and α×𝒱hx and xCrit(𝒱h){α×},h(x)otherwise,

where tx is the linear coefficient of x on the interval [ξ,h(α×)]. Then h is a pre-allowed move of α with respect to h.

Now observe that an allowed move of α does not introduce new forbidden regions.

Lemma 31.

Let h be an allowed move of αBD^(h). Then h(α)h(α) and h(α)h(α).

Proof.

The statement follows directly from Proposition 3 and the fact that 𝒱h=𝒱h, and we are changing the value of only one component of α.

It follows that if we know the initial forbidden regions, we can design a sequence of allowed moves that brings α arbitrarily close to the diagonal.

Theorem 32.

Let X be filtered by a dMf h1 and αBD^k(h) be such that h1(α)h1(α)=, then there exists a sequence of dMfs h1,h2,,hn such that hi+1 is an allowed move of αBD(hi), and hn(α×)hn(α) is arbitrarily small.

Proof.

We begin by showing that we are able to construct from hi an allowed move hi+1 such that α and α× are closer in hi+1-order than in hi-order, where both orders are restricted to the critical cells. Due to Corollary 4.2, to show that BD(hi)=BD(hi+1), we can focus only on transpositions between critical cells. Define x and y as critical cells such that in hi-order, we have α<hix<hi<hiy<hiα×.

If x↝̸α, then if x is a death cell or x α, we use Proposition 4.2 to construct hi+1, which increases the value of α with the values of δ and ξ in the proposition larger than hi(x). Analogously, if α×↝̸y, then if y is a birth cell or y ×α×, then use Proposition 4.2 to construct hi+1, which decreases the value of α× to bypass y. From Theorems 19, 20 and 21, we get that these are indeed allowed moves.

If xα and α×y, then x generates forbidden regions bounded by a vertical line and y generates forbidden region bounded by a horizontal line. Because x<hiy, they intersect. We get the same argument if xα and y×α×, or α×y and xα. If xα and y×α×, then due to Corollary 3, there has to exist (x,β×),(γ,y)BDk(hi). It follows from Observation 2 that they are in the bottom-right quadrant of the pair α. Therefore, they generate forbidden α× and α regions, which intersect.

It follows from Lemma 4.2 that if hi(α)hi(α), then h1(α)h1(α).

Accordingly, we can construct a series of allowed moves, such that hj is the last one, and α and α× are consecutive in the hj-order restricted to the critical cells. Then, by Proposition 4.2, we construct a final pre-allowed move such that the value gap between the cells of α can be made arbitrarily small. Since no critical cell is bypassed during this deformation, the move is allowed.

4.3 Reversing the path

In the previous subsection, we showed that if the forbidden regions of the birth and the death cell of a (reversible) pair α do not intersect, then we can reduce its lifetime arbitrarily close to zero. In particular, we can make it a critical shallow pair. It follows from Theorem 16 that we can safely – that is, without introducing changes in the pairing or in the relations – reverse the path between the components of α. The reversal is the final step of the construction, which corresponds to α entering the diagonal. To make the homotopy fully explicit we construct the final dMf inducing the vector field with reversed path.

Proposition 33.

Let αBDn(h) be a reversible pair such that the unique path between α× and α is ρ. If h1([h(α),h(α×)])=ρ=(α=x0,x1,x2,,xm=α×), then the function h, defined as

h(x)={h(xm2i/2)when xρ and x=xi,h(x)otherwise,

is a dMf which generates 𝒱ρ and does not change the value of the critical cells other than the components of α.

5 Final algorithm and summary

5.1 Final algorithm

We summarize the entire construction in the form of an algorithm that produces a topological simplification of a given dMf.

Input.

A Lefschetz complex X filtered by a dMf h; the combinatorial vector field 𝒱h; the set BD(h) of birth–death pairs; all homology/cohomology relations among the off-diagonal pairs; and a reversible, k-dimensional birth-death pair α, such that h(α)h(α)=.

  1. (1)

    Following the procedure described in Theorem 32, move α so close to the diagonal that h1((h(α),h(α×))=ρ, where ρ is a unique path between the components of α. During this process, update the relations between the critical cells of 𝒱h using Theorems 19, 20.

  2. (2)

    Reverse the path ρ between α× and α in the vector field, constructing a new dMf as described in Proposition 4.3.

Output.

A Lefschetz complex X filtered by a dMf h; the combinatorial vector field 𝒱h; the set BD(h) of birth-death pairs; all homology/cohomology relations among the off-diagonal pairs.

Figure 4 illustrates an example of a topological simplification obtained by this procedure.

Refer to caption
Figure 4: Persistence diagram of the 10-simplex, filtered by a random injective dMf such that every birth-death pair of dimension n is separated from pairs of dimensions n+1 and n1. We apply a procedure that first simplifies dMf by the standard method, i.e., path reversing between shallow pairs. When there is no reversible shallow pair left, we continue using the algorithm described in this paper. We made multiple passes canceling any pair that met the algorithm’s assumptions. We stopped when there was no reversible pair with a path between forbidden regions. Pairs of different types (canceled by the standard method, canceled using forbidden regions, not cancelable) are denoted by different colors. Figure 5 zooms-in on the pairs in dimension 4.
Theorem 34.

The algorithm above returns a topological simplification h for a dMf h. Moreover, the output of the algorithm contains the updated vector field and homology/cohomology relations for h.

Proof.

We start by showing that BD^(h)=BD^(h){α}. Step 1 does not cause any changes in the pairing by Theorem 32. A dMf constructed in Step 2 has the same off-diagonal pairs as the previous one, except α, due to Theorem 16 and Theorem 12.

Proposition 3 and Theorem 16 imply that it suffices to apply the update pattern and check its conditions only during transpositions of critical cells in Step 1. This results in the updated relations among critical cells at the end of the algorithm.

After the update, the new vector field 𝒱h=𝒱ρ, where ρ is a unique path. We know the birth-death pairs BD(h), as well as all relations between critical cells after the application of the update patterns.

The proof of Theorem 34 also proves Theorem 1. For an iterative execution of the algorithm, we can use its output as an input for the next run; one only needs to provide the next eligible pair. Finally, we consider how much the new constructed dMf h differs from the original one.

Proposition 35.

Let X be filtered by a dMf h, and h be its topological simplification constructed by our algorithm, which removes pair α. Then, the difference between h and h is bounded by the lifetime of α, that is maxxX|h(x)h(x)|(h(α×)h(α)).

Proof.

It follow directly from the fact that in Propositions 4.2, 4.2 and 4.3, we change only the values of the cells between h(α) and h(α×), and if the value of the dMf is changed on x, then the resulting value also lies between h(α) and h(α×).

Refer to caption
Figure 5: Birth-death pairs in dimension 4 from Figure 4.

5.2 Complexity

We note that checking if a pair α can serve as an input to the algorithm takes 𝒪(nlogn) time, see [23]; there are at most c such pairs to check. The complexity of the algorithm is dominated by the cost of checking if moving pair α past pair β requires updating relations between birth-death pairs, whenever βα. Computing Dn+1α,β can clearly be done in 𝒪(n2) time; however, in the full version of the paper (see [23]) we show that it can be reduced to 𝒪(n). Therefore, the worst case running time is 𝒪(cn), where c is the number of birth-death pairs, and n is the number of cells in the complex.

5.3 Summary

We presented a new criterion for removing a fixed birth-death pair. We have also shown that for every pair that satisfies this criterion, it is possible to construct a homotopy, which moves this pair into the diagonal. The paper opens a number of questions.

  1. (1)

    How does the order of cancellations affect the possibility of canceling the remaining pairs? Is there an optimal order? Can we find a hierarchy of cancellations using this order?

  2. (2)

    Is the criterion exhaustive? That is, are there other removable pairs that are not captured by the criterion?

  3. (3)

    Is it possible to weaken the criterion by proper manipulation of the pairs generating the forbidden regions? For example, if forbidden region of α and forbidden region of α× intersect, is it possible to manipulate other cells to clear a path to the diagonal for α, and restore their values after the cancellation?

  4. (4)

    Is it possible to parallelize the cancellation process? If so, for which pairs?

References

  • [1] Dominique Attali, Marc Glisse, Samuel Hornus, Francis Lazarus, and Dmitriy Morozov. Persistence-sensitive simplification of functions on surfaces in linear time. Manuscript, presented at TOPOINVIS, 9:23–24, 2009.
  • [2] Ulrich Bauer. Ripser: efficient computation of Vietoris–Rips persistence barcodes. Journal of Applied and Computational Topology, 5(3):391–423, 2021. doi:10.1007/s41468-021-00071-5.
  • [3] Ulrich Bauer, Carsten Lange, and Max Wardetzky. Optimal topological simplification of discrete functions on surfaces. Discrete & Computational Geometry, 47(2):347–377, 2012. doi:10.1007/s00454-011-9350-z.
  • [4] Ulrich Bauer and Fabian Roll. Wrapping Cycles in Delaunay Complexes: Bridging Persistent Homology and Discrete Morse Theory. In Wolfgang Mulzer and Jeff M. Phillips, editors, 40th International Symposium on Computational Geometry (SoCG 2024), volume 293 of Leibniz International Proceedings in Informatics (LIPIcs), pages 15:1–15:16, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2024.15.
  • [5] David Cohen-Steiner, Herbert Edelsbrunner, and Dmitriy Morozov. Vines and vineyards by updating persistence in linear time. In Proceedings of the Twenty-Second Annual Symposium on Computational Geometry (SoCG’06), pages 119–126. ACM, 2006. doi:10.1145/1137856.1137877.
  • [6] Lidija Comic and Leila De Floriani. Cancellation of critical points in 2d and 3d morse and morse-smale complexes. In David Coeurjolly, Isabelle Sivignon, Laure Tougne, and Florent Dupont, editors, Discrete Geometry for Computer Imagery, 14th IAPR International Conference, DGCI 2008, Lyon, France, April 16-18, 2008. Proceedings, volume 4992 of Lecture Notes in Computer Science, pages 117–128, Berlin, Heidelberg, 2008. Springer. doi:10.1007/978-3-540-79126-3_12.
  • [7] Lidija Comic, Leila De Floriani, Federico Iuricich, and Paola Magillo. Computing a discrete morse gradient from a watershed decomposition. Comput. Graph., 58:43–52, 2016. doi:10.1016/j.cag.2016.05.020.
  • [8] Vin de Silva, Dmitriy Morozov, and Mikael Vejdemo-Johansson. Dualities in persistent (co)homology. Inverse problems, 27(12):124003, November 2011. doi:10.1088/0266-5611/27/12/124003.
  • [9] Olaf Delgado-Friedrichs, Vanessa Robins, and Adrian Sheppard. Skeletonization and partitioning of digital images using discrete Morse theory. IEEE Trans Pattern Anal Mach Intell, 37(3):654–666, March 2015. doi:10.1109/TPAMI.2014.2346172.
  • [10] Tamal K. Dey, Jiayuan Wang, and Yusu Wang. Improved road network reconstruction using discrete Morse theory. In Proceedings of the 25th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL ’17), pages 58:1–58:4, New York, NY, USA, 2017. ACM. doi:10.1145/3139958.3140031.
  • [11] Herbert Edelsbrunner, David Letscher, and Afra Zomorodian. Topological persistence and simplification. Discrete & Computational Geometry, 28(4):511–533, 2002. doi:10.1007/s00454-002-2885-2.
  • [12] Herbert Edelsbrunner, Michał Lipiński, Marian Mrozek, and Manuel Soriano Trigueros. The poset of cancellations in a filtered complex. arXiv:2311.14364v3, 2024. arXiv:2311.14364.
  • [13] Herbert Edelsbrunner, Michał Lipiński, Marian Mrozek, Manuel Soriano Trigueros, and Fedor Zimin. The depth poset under transpositions in the filter. arXiv:2511.21961, 2025. doi:10.48550/arXiv.2511.21961.
  • [14] Herbert Edelsbrunner, Dmitriy Morozov, and Valerio Pascucci. Persistence-sensitive simplification functions on 2-manifolds. In Proceedings of the Twenty-second Annual Symposium on Computational Geometry, SCG ’06, pages 127–134, New York, NY, USA, 2006. ACM. doi:10.1145/1137856.1137878.
  • [15] Herbert Edelsbrunner and Marian Mrozek. The depth poset of a filtered Lefschetz complex. arXiv:2311.14364v2, 2023. doi:10.48550/arXiv.2311.14364.
  • [16] Riccardo Fellegara, Federico luricich, Leila De Floriani, and Kenneth Weiss. Efficient computation and simplification of discrete Morse decompositions on triangulated terrains. In Proceedings of the 22nd ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, SIGSPATIAL ’14, pages 223–232, New York, NY, USA, 2014. Association for Computing Machinery. doi:10.1145/2666310.2666412.
  • [17] Robin Forman. Combinatorial vector fields and dynamical systems. Mathematische Zeitschrift, 228(4):629–681, 1998. doi:10.1007/PL00004638.
  • [18] Robin Forman. Morse theory for cell complexes. Advances in Mathematics, 134(1):90–145, 1998. doi:10.1006/aima.1997.1650.
  • [19] Robin Forman. A user’s guide to discrete Morse theory. Séminaire Lotharingien de Combinatoire [electronic only], 48:B48c, 35 p., electronic only–B48c, 35 p., electronic only, 2002. URL: http://eudml.org/doc/123837.
  • [20] Rickard Brüel Gabrielsson, Vignesh Ganapathi-Subramanian, Primoz Skraba, and Leonidas J. Guibas. Topology-aware surface reconstruction for point clouds. Comput. Graph. Forum, 39(5):197–207, 2020. doi:10.1111/cgf.14079.
  • [21] David Günther, Jan Reininghaus, Hubert Wagner, and Ingrid Hotz. Efficient computation of 3D Morse–Smale complexes and persistent homology using discrete Morse theory. The Visual Computer, 28(10):959–969, 2012. doi:10.1007/s00371-012-0726-8.
  • [22] Attila Gyulassy, Peer-Timo Bremer, Bernd Hamann, and Valerio Pascucci. A practical approach to Morse-Smale complex computation: Scalability and generality. IEEE Transactions on Visualization and Computer Graphics, 14(6):1619–1626, 2008. doi:10.1109/TVCG.2008.110.
  • [23] Jakub Leśkiewicz, Bartosz Furmanek, Michał Lipiński, and Dmitriy Morozov. Topological simplification guided by forbidden regions, 2026. doi:10.48550/arXiv.2603.16416.
  • [24] John Milnor. Morse Theory. Princeton University Press, 1963.
  • [25] John Milnor. Lectures on the h-Cobordism Theorem. Princeton University Press, 1965.
  • [26] Arnur Nigmetov and Dmitriy Morozov. Topological optimization with big steps. Discrete & Computational Geometry, 72:310–344, 2024. doi:10.1007/s00454-023-00613-x.
  • [27] Vanessa Robins, Peter John Wood, and Adrian P. Sheppard. Theory and algorithms for constructing discrete Morse complexes from grayscale digital images. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(8):1646–1658, 2011. doi:10.1109/TPAMI.2011.95.