WorksMathematics
Discrete Morse Theory for Computing Filtered Cosheaf Homology
Abstract
This paper addresses the computation of persistent homology for filtrations of cellular cosheaves over a fixed cell complex, where the algebraic data vary along the filtration while the underlying topological structure remains unchanged. We extend methods from discrete Morse theory to this setting, establishing conditions under which chain complexes can be reduced while preserving the associated persistence module. Building on these results, we introduce "FilteredScythe", an algorithm that identifies Morse matchings compatible with all stages of the filtration and performs reductions using Schur complements, based on the exist "Scythe" algorithm. We prove the correctness of these reductions and establish bounds on the algorithm's time and space complexity.
Introduction
Computational Topology and Cosheaves
Homology and cohomology computations are the daily bread of Topological Data Analysis (TDA), and they appear in a wide variety of applications - sensor networks [14], distributed computing [20] and more (see the list brought in [12]). Persistent homology [6, 40] generalizes classical and static homology to dynamic situations, and allows examination of how topological features change across different scales. It is used to distinguish essential features from noise, it is stable against perturbations since it is less affected by changes or noises in the original input, and it allows us to encode complex geometric information into an algebraic and invariant object [9, 19, 39, 26, 28, 18]. These computations have many applications, such as image processing and computer vision [8], computational models in biology and chemistry [5, 35, 4], and data analysis in neuroscience [13].
In the last decade, an additional and powerful topological structure has joined them – Cellular Sheaves, which allow encoding constraints, local coefficients, and algebraic information that varies from place to place over a fixed topological space [11]. Among the promising applications, one can find machine learning [1, 34, 21], spectral signal processing [31], and even kinematics of structures and origami [10].
However, both computing persistent homologies and computing sheaf cohomologies are computationally very expensive. A significant breakthrough in dealing with this barrier was made possible thanks to the application of discrete Morse theory on the source complex [12, 29, 26, 28]. This technique allows reducing the topological space to a smaller but topologically equivalent space, so that the cost of these computations decreases.
At the same time, until now these approaches have focused on the filtration [38, 36], i.e., change over time, of the topological space (such as a classical Vietoris-Rips filtration on a point cloud) - and not in cases where precisely the geometry of the space is fixed but the local information sitting on it and the nature of the connections between the nodes change over time. For example, a sensor network, or a communication graph. However, it should be noted that [32] proposes a unifying framework for both types of filtration, but its focus is different from ours.
Since standard persistent homology is actually a private case of persistent homology on cosheaves obtained when the cosheaf is the constant cosheaf, it begs to use cosheaves to generalize the theory to dynamic systems where the information itself changes. To save on computational cost, a necessary step is adapting the tools of discrete Morse theory to this case.
Problem Formulation and Results
Our problem is optimizing the computation of the persistent homology of a cosheaf filtration over a fixed cell complex. We will do this using discrete Morse theory. Our input consists of a static topological skeleton and a sequence of cosheaves defining the evolution of the information on it along the filtration. Using our algorithm, Filtered_Scythe, we will locate an acyclic Morse pairing compatible with all time steps, and simultaneously compute the boundary matrices of the reduced complex (the homotopy-equivalent one), which allows an efficient and fast extraction of the persistence module.
First, let us define the parameters measuring the complexity of the complex and the filtration.
Let denote the cardinality of the cell complex (number of cells).
Let be the maximal number of cofaces for any cell, i.e., .
Let denote the maximal dimension of the stalks as vector spaces, which is also the maximal size of the extension matrices.
Assume that the pairing generated by the algorithm has critical cells of dimension , and define the remaining critical complex density measure as [26]; put .
Let be the matrix multiplication exponent.
Let be the number of filtration steps.
Notice that variables 1, 2, 3 and 6 are input parameters, 4 is an output parameter (depending on the efficiency of the Morse field pairing), and 5 is an algebraic property of operations on matrices.
Our central result gathers the costs of scanning and Schur complement operations.
Theorem 1.1. Let be a filtration of length of cosheaves over a fixed cell complex , and let , , , , , and be the parameters defined above. Under the queuing rules specified below and constant-time adjacency lookup, the time complexity to build the reduced complex and its dynamically updated matrices under the Filtered_Scythe algorithm is bounded by . The space complexity required to store the complex and its matrices across all filtration steps is bounded by .
While finding the absolute minimum number of critical cells is computationally prohibitive, the efficiency of our approach stems from the fact that even a near-optimal matching drastically lowers . Since the time complexity in Theorem 1.1 scales linearly with this density measure, reducing the size of the critical complex is the primary engine for accelerating the homology computation across the filtration steps.
The structure and design of the article, as well as the theoretical framework and methods, draw heavily upon the work presented in the groundbreaking articles [26, 12].
Chapter 2 includes the necessary background on sheaves, cosheaves, cosheaf filtration, and discrete Morse theory suitable for our needs.In Chapter 3 we will prove that a reduction of a chain complex using the critical elements is a chain itself and that it is chain-homotopy equivalent to the original chain. In the fourth chapter, we will provide an algorithm to perform the computation, prove its correctness, and calculate the memory and runtime complexity it requires, and thus prove the above Theorem 1.1; the last chapter will deal with possible directions for future research.
Background
In this part, we will review the required material regarding cellular sheaves and cosheaves [11, 12, 18, 28], persistence modules [16, 40, 18, 15, 29] and the algebraic version of discrete Morse theory [17, 33, 26, 29, 28, 7, 22], and we will adapt it to our needs.
(Co)sheaf Theory
Definition 2.1. (Cellular sheaf) A cellular complex with the partial order "face of" defines a poset for us. A cellular sheaf on it is a covariant functor . That is, the following hold:
(1). For every simplex , is a vector space.
(2) For every in there is a linear map . And the category axioms are preserved -
(1) For every , is the identity map on
(2) For every triplet it holds -
Definition 2.2. Cosheaf is the corresponding contravariant functor, which we will denote (’extension map’). So that it also assigns a vector space to every simplex, and the composition holds in it in the following way -
Since sheaves and cosheaves are functors, the collection of all (co)sheaves over any complex creates functor categories - . In such categories, the morphisms are defined as natural transformations [25, 30].
When we restrict ourselves to finite vector spaces these categories are equivalent (linearly dual). This is because we can define a dual functor between vector spaces, which reverses the directions of the morphisms. Thus, for every sheaf there exists a cosheaf obtained by point-wise taking of the dual space on each cell, and transposing the map. For every cell , we define and [11].
Since our target category is , from the definition of a natural transformation it follows that every point-wise component must be a morphism in the target category - a linear map.
Definition 2.3. (Morphism in the category ) In our case, for every , a morphism is a family of linear maps defined for every , such that for every it holds - .
In category theory we use a monomorphism to generalize the concept of injective. A morphism will be called a monomorphism, if for every cosheaf and for every pair of morphisms it holds that if then [30, 25]. Since is an abelian category, the functor category into it, , is also abelian. In an abelian category a morphism is a monomorphism iff it is a monomorphism in every component, meaning iff it is point-wise injective [37]. We will note now that the fact that the category is abelian is what allows us, formally, to define homology later on.
Definition 2.4. Monomorphism / Injective morphism (’embedding’) in the category is a morphism where each of its components is a monomorphism. Since the morphisms in the category are families of linear maps, this is equivalent to the fact that for every cell , .
Armed with the basic concepts we can transfer the concept of filtration from complexes to the cosheaves themselves. Thus, we can compute persistent homology based on evolving data of a fixed structure. We will define a filtration and build chain complexes, based on [28, 11].
Definition 2.5. (Filtration of a cosheaf) A filtration of is a sequence of cosheaves where equipped with an injective morphism between any two consecutive indices, meaning for every , there exists a morphism , such that we get -
Meaning for every and for every in the appropriate indices, is an injective linear map; that is, is isomorphic to a subspace of .
We will define a chain complex, similarly to our definition for regular sheaves.
Definition 2.6. (Chains over with -coefficients) For every dimension , the vector space of -chains of with -coefficients is the product -
Meaning the direct sum of all the costalks attached to the cells of dimension [12].
It is convenient to think of an element in as a block-column vector. Each block corresponds to a specific cell of dimension , and the content of the block is a vector in the space corresponding to the specific cell.
Recall the incidence coefficients of the complex [28, 18, 24]: we assume that the cells in are ordered such that for every -simplex there are faces (?) for every . Then, for every pair of cells we write -
Now we are able to define map operators between our chains:
As the transpose of the coboundary maps of the dual sheaf, matching the indices. Since we have already proven that the coboundary maps on sheaves indeed satisfy , then from duality also , as required [37, 28] - since the transpose does not change the incidence coefficients and the transpose of a composition equals the composition of the transposes in reverse order.
The spaces are composed of direct sums so that can be represented as a block matrix. In this matrix, each row corresponds to a cell of dimension and each column corresponds to a cell of dimension . The block at their intersection is the linear map
For convenience, we will denote this expression as . So that the sequence
creates a chain complex over .
Now, we can fully define a ’chain complex associated with the filtration’.
Definition 2.7. (Filtered chain complex) For a filtration of a cosheaf over a complex , we denote -
equipped with the family of injective morphisms where every is an injective linear map. Each such map is defined point-wise as a morphism of the cosheaf, meaning for every cell , where is a morphism . Thus, we obtain an embedding -
Since the maps are induced from the cosheaf morphism and these are natural transformations commuting with the extension maps for every cell and face. Since the boundary operator is
defined by the same extension maps, multiplied by scalar coefficients, the commutativity property is preserved and for every dimension it holds
Meaning, if we look at two concrete cells - cell of dimension and a face of it of dimension , it holds:
And we get this immediately from the fact that the morphism is a natural transformation. Therefore the definition is proper and this is indeed a chain complex morphism.
Definition 2.8. For every filtration level and for every dimension , we define the -th homology group of the complex as the quotient of the cycle space by the boundary space:
Persistence Modules
Now, we will turn to persistence modules. Recall that persistence modules are quite a simple object - of vector spaces and linear maps , where for every we define the transition map as the composition of the maps between them [28, 40, 18]. In categorical language, this is a functor from the poset category of the natural numbers with the natural order relation to the category of vector spaces.
The vector space of the persistence from to is the image of the transition map:
When we take our persistence module to be the homology groups (meaning, spaces) of the chain complex we built, we will get the persistence module of the cellular cosheaf: The inclusion maps we defined induce a sequence of homomorphisms between the corresponding homology groups. Since our filtration morphisms are chain morphisms, they map cycles to cycles and boundaries to boundaries, and therefore induce a linear map on the quotient spaces -
Now we will chain the spaces and the maps and we will obtain a homology persistence module for every dimension -
We will denote the composition of these homomorphisms from step to step (where ) as the map
Accordingly, we will define the space of the -th Persistent Homology Group from step to step to be:
This is exactly the subspace of homology classes in which were born at step or earlier, and have not yet died (meaning, have not yet become trivial or a boundary of a chain of dimension ) by step .
What do we actually have here? Let us stand on the difference between persistent homology on the space versus on the (co)sheaf. In persistent homology on the space the data determines the topology - the space changes as a function of time, and cells are added in each filtration. Here, on the other hand, what evolves is the information attached to the cells.
Thus, while in persistent homology on the space, the boundary matrix grows and changes with time (a cell whose incidence coefficient was zero before can now receive a real value, for example) - here its ’structural skeleton’ i.e - the incidence coefficients, is fixed, and what changes is the extension maps inside each block. Such, we have a matrix that as a block matrix looks identical - except the size of the blocks can grow as increases. This insight will help us in implementing the Morse algorithm in an efficient manner.
After we have precisely defined our topological objects, we would want to use a tool in discrete Morse theory. To do this, in the next subsection we will adapt the regular definitions to this case.
Morse Theory
In regular Morse theory, deleting a pair of cells connected to each other preserves the homology because it is a "deformation retraction" [17]. In the context of (co)sheaves, to ensure we do not lose topological-algebraic information in the process, we also require that the map be an isomorphism. Since, had the map been with a non-trivial kernel, the collapse could have produced false homology cycles; and if it were not surjective (meaning, a Cokernel exists), we would lose boundaries. The isomorphism ensures that the sub-complex we reduce is acyclic, and therefore the homology is preserved. The definitions below will rely heavily on [26].
Definition 2.9. (Cosheaf-compatible and filtration-compatible pairing). For a cell complex , a partial pairing is a collection of disjoint pairs such that is a codimension-one face of . The pairing is called acyclic if it does not contain closed paths. An acyclic partial pairing will be called -compatible if the extension map is an isomorphism for every pair .
Definition 2.10. An acyclic partial pairing will be called -compatible for a cosheaf filtration , if it is compatible for each step independently. Meaning, if for every and for every pair of cells it holds that
is an isomorphism.
Definition 2.11. (Critical cell on an -compatible with an acyclic partial pairing ) Given an -compatible acyclic partial pairing, a cell such that it does not participate in any pairing in will be called a critical cell.
We will denote the set of critical simplices as , since this is effectively the complementary set to the sets defining .
Later we will use this requirement to formally prove that the reduced chain is chain-homotopy equivalent to the original chain and thus the isomorphism is preserved also on the homology quotient spaces.
Definition 2.12. (Path, gradient path) A path of an -compatible acyclic partial pairing is a finite sequence of disjoint simplices on satisfying -
where . Such a path is a gradient path if additionally it holds that or is not a face of .
In regular Morse theory, the weight of a gradient path is computed as the product of the incidence numbers, since we only refer to the order of the cells (one can think of this as the constant sheaf).In contrast to classical Morse theory, the coefficients of a (co)sheaf over a cell are not merely scalars, but vector spaces (see Definition 2.6). Consequently, the connection between cells is represented by a linear map—a block in the boundary matrix. Therefore, the multiplicity of a gradient path is calculated as a composition of linear maps from the source space to the target space.
Definition 2.13. (Multiplicity) For every filtration level the multiplicity is a linear map defined
We emphasize that there is an inverse map here and then a regular map, alternately. For , this means .
Morse Theory for Cosheaf Filtration
Now, we can use these crispy definitions to construct a reduced chain complex and show that it indeed preserves the homological information of the original chain. The filtration on the cosheaf allows us to perform the reduction consistently across all steps of the persistence.
Formally, the proofs below are actually a private case of the Homological Perturbation Lemma [33, 7]. This lemma discusses a situation where we have a complex with zero homology (like a paired pair of cells) connected to the rest of the complex via additional boundary operators that prevent us from deleting the homologically-insignificant complex without losing information. It states that the trivial pair can be deleted from the system, provided that all the information that was supposed to flow through it is routed anew. We compute the linear maps of the paths bypassing the pair, and add them to the boundary operator of the remaining cells. Thus, the boundary operator composed of the maps of the corresponding pairs is invertible, so that the complex defined with respect to these pairs is contractible. This is actually the algebraic description of a deformation retraction mentioned above. In the proof itself we will use the algebraic technique, as developed by [17, 33, 24, 22], and in particular using block matrices, inspired by the elegant proof of [12], and we will use the connection to Schur complement from linear algebra, to clarify the process [19].
The Reduced Chain
For every filtration level , we will define -
Meaning - the chain defined only from the product of the cosheaves on the critical simplices of dimension .1 The inclusion morphisms of the filtration induce inclusion also between the reduced chain spaces, and allow us to generalize this naturally to .
Definition 3.1. (Boundary operator of a reduced complex) We define the boundary operator as a family of boundary maps, where for each level we define -
where for every , is defined point-wise for every pair of cells of consecutive dimensions in by -
where consists of paths with a codimension-one face of and a codimension-one face of ; the direct term is zero unless is a codimension-one face of .
The map is well defined, since we are guaranteed (from the complex being acyclic and finite) that there is a finite number of gradient paths, and each such multiplicity map is a legal composition of isomorphisms and extension maps. One can think of the map component between and as the block in the reduced boundary matrix.
We will show that algebraically, reduction of a Morse pair is equivalent to calculating the Schur complement on the pairing block in the original boundary matrix [19], and we will prove that this does not affect the boundary property.
Claim 3.2. This is a chain. Meaning, .
Proof. We will prove by induction on the number of paired pairs in the acyclic pairing . We will show that the operation of reducing a Morse pair, equivalent to computing the Schur complement of the pairing block, naturally preserves the chain property.
Base: If , then all simplices are critical, , and the boundary operator is exactly the original boundary operator satisfying the property.
Step: Let us assume the claim is true for an old pairing (we will denote it for simplicity as ), and we add a new matched pair , where and . Since is -compatible, at every filtration stage remains an iso’.
We decompose the old chain spaces into a direct sum of the new critical cells and the paired cells, at a typical filtration level
With respect to this decomposition (where the critical cells block appears first and the paired cell second), we can represent the original boundary operator as a block matrix
Where the components are defined by the reduction of the operator to the corresponding sub-spaces:
is the invertible block representing the map from to ; that is, the isomorphism.
is the column of blocks gathering the maps from to all the lower critical cells.
is the row of blocks gathering the maps from all the upper critical cells to .
is the sub-matrix gathering the direct boundary maps between the critical cells.
is defined as the sum of multiplicities of the gradient paths between the critical cells (Definition 3.1). In this induction step, the paths are divided into only two types:
Paths of length 1 - transition between critical cells, represented by .
Paths of length 3 - through the new pairing - start from a critical cell in , go down to - the block , go against the direction from the acyclic pairing from to , where this is an isomorphism represented by , and go down again to a critical cell in (the block ). The composition of these maps from right to left gives the expression .
Thus, is actually defined algebraically as a Schur complement -
Meaning, exactly the remaining operator after zeroing the row of and the column of in the block matrix. Since the pairing took place between dimensions and , the rest of the spaces did not change ( and also ). Therefore, the only operator compositions that might be non-zero are those involving the reduced dimension: The transition , and the transition . We will check one and the other will be symmetric to it.
The transition :
The old boundary operator splits into a block column vector with respect to the decomposition of -
Where the top block represents the image into the critical cells in . Therefore, we define the new reduced boundary operator to be: .
From the induction hypothesis it holds that . We will multiply the matrices -
Since is invertible, from the bottom equation we get . We will substitute,
Accordingly we obtained as desired
The transition is completely symmetric, except that here we operate with a block row vector.
As stated for all other dimensions, the operators did not change and therefore vanish directly from the induction hypothesis. Hence the new operator is a valid boundary operator, and the reduced sequence constitutes a chain complex as required.
Now that we have proven that is a well-defined chain complex for every step in the filtration, the final stage is to show that it preserves the homological information of the original complex.
Chain Equivalence
Theorem 3.3. (Chain-homotopy equivalence) For every step in the filtration, the Morse complex is chain-homotopy equivalent to the original complex . Moreover, the equivalence maps commute with the filtration morphisms, and therefore the persistence module of the Morse complex is isomorphic to the original module
Proof of Theorem 3.3. Let us look first at the base case where the pairing contains a single matched pair , where and . We will drop the filtration index throughout the first part of the proof for readability. We can do this since the pairing is -compatible, and therefore the block is isomorphic for every filtration level.
First, we will construct explicitly the equivalence and homotopy maps using the block matrix representation defined in Claim 3.2.
We will define the homotopy operator (an operator of degree on the original complex) such that it will act as a lift against the boundary direction through the invertible pairing.
And for every dimension .
Using and the original boundary operator , we will define the projection operator of the original complex onto itself as . Where in the two affected dimensions, its matrix representation is
In dimension , and therefore , so that
And in dimension , and therefore :
From the operator we will derive our equivalence maps relative to the reduced space. The projection map is obtained from restricting the output range of to the critical space, meaning taking the top block row
The inclusion map is obtained from restricting the input domain of to the critical space, taking the left block column
For the dimensions that were not affected by the pairing, the maps act as the identity map. To prove that these maps constitute a chain-homotopy equivalence, we must show two properties, presented in the following lemmas.
Lemma 3.4. (Identity on the reduced complex) The composition is the exact identity map on the reduced complex .
Proof. We will multiply the matrices of the affected dimensions.
For dimension :
For dimension :
Lemma 3.5. (The homotopy connection on the original complex) The composition is chain-homotopy equivalent to the identity on with respect to the original boundary operator ,
Proof. We will calculate the left side:
So that
We will calculate the right side. The homotopy contribution in dimension comes from only:
Overall the sides are exactly equal. A symmetric and identical proof holds for dimension , where the homotopy contribution comes from and produces the matrix
Lemma 3.6. (Generalization to any complex acyclic pairing) There exists a full chain-homotopy equivalence for the reduction of any acyclic partial pairing .
Proof. According to discrete Morse theory [17], every acyclic partial pairing induces a partial order relation (a directed acyclic graph - DAG) on its elements, defined by the direction of the gradient paths. From a basic combinatorial property of finite acyclic graphs, there always exists a minimal element in them - in other words, a matched pair from which no gradient paths leave to other pairs [24]. We will perform the reduction of the pairs by induction, step by step, according to a topological sort that will give us the minimal elements and upwards.
The requirement of acyclicity of the original pairing ensures that the reduction of a single pair (which updates the blocks , , of the boundary operator in the current step) only merges existing paths, and will never create a new circular gradient path (Self-loop) [24, 33].
Since we reduce the pairs according to the minimal order, pairs that have not yet been reduced are not part of a continuation path for a pair that has already been reduced. Therefore, updating the matrices / row reduction does not change the original values of the pairing maps that have not yet been handled. This fact ensures that the block of future pairs in the queue remains unchanged (), and therefore remains an invertible isomorphism throughout the entire process, which allows the continuation of the reduction.
Since a finite composition of chain-homotopy equivalences is itself a chain-homotopy equivalence [28, 27, 18], inductive application of Lemmas 3.4 and 3.5 over all the pairs in the pairing concludes after a finite number of steps. This sequence of compositions is well defined, and induces a global chain-homotopy equivalence that maps the entire original complex to the completely reduced complex.
End of the proof of the theorem (Isomorphism of the persistence modules):
We have shown that there exists a chain-homotopy equivalence for every single index step . Now we will prove that it is preserved along the filtration.
Since the pairing was defined as -compatible, the blocks are isomorphisms for every filtration level . The equivalence maps and are completely defined by compositions and sums of the boundary operator and of the extension maps and their inverses.
Since the cosheaf is a functor, the filtration morphisms (inclusions) are natural transformations. Therefore, the filtration morphisms commute with all the extension and boundary maps defining and . Algebraically, we get the commutative diagram
where and are the inclusion maps of the original and reduced complex, respectively. Since the homotopy equivalence commutes with the filtration functor, it is a filtered-chain-equivalence. As shown by [26], this equivalence induces a natural isomorphism on the persistent homology groups across all dimensions and indices. So that the persistence module of the reduced complex is isomorphic to the original module.
Algorithms
It is time To reap the wheat and bring in the sheaves :). We will use the proofs above to generate an algorithm that will allow us to reduce the chain complex in favor of optimizing the persistence module computation. Finding a perfect Morse matching is an NP-hard task [23], nearly as challenging as finding a soulmate in real life. Consequently, we shall follow the age-old advice of the elderly aunts: we settle. This compromise remains highly beneficial, as in most cases, it allows us to significantly reduce the number of critical cells and the resulting density measure . We will base ourselves on the algorithm Scythe [12] and we will adapt it to our needs. The central idea is a scan similar to that starts from the minimal cells. The moment it finds a valid pair, it performs the Schur complement reduction on the corresponding matrices. Thus the need to build a global and heavy is saved from us.
In the first stage, we will define a function that will check the compatibility of the pairing.
Algorithm: TryPairingAndCache
In: A cell and an active face of it , and the effective boundary maps .
Out: True/False, and caching matrices.
initialize Temp_Cache = empty collection
for each level to
if the matrix is NOT invertible
clear Temp_Cache
return False
else
// For Block
calculate and add to Temp_Cache
end if
end for
Cached = Temp_Cache; return True
The function receives two cells that can be a Morse pair, and checks if they are -compatible. We will require that the map be an iso’ for the entire length of the filtration; notice that we save the inverse map in the cache to ease the computations later. The correctness follows directly from Definition 2.10.
Since checking invertibility and calculating an inverse takes we will get .
Algorithm: ReducePair
In: A compatible pair that passed function 4.
Out: Modifies the active boundary graph and matrices (In-place).
for each cell in the current active graph
for each cell in the current active graph
if the incidence relation does not exist in the active graph
add relation to the active graph
end if
for each level to
Inverse_Block = Cached
replace by Inverse_Block
end for
end for
end for
remove and from the active boundary graph
The idea is that when is a valid pairing, we can reduce it. We create bypass paths for all the cells that went into and had to go out of , connecting them directly instead of routing through the paired cells. Because the original boundary map goes from dimension to , the bypass path from an upper neighbor to a lower neighbor flows through and . To prevent dimension mismatch, the composition of linear maps must be applied in the correct algebraic order (from right to left): first mapping from to , then applying the inverse pairing from to , and finally mapping from to . The bypass computation is performed for each filtration level separately using the inverse matrices stored in the cache.
The correctness stems from the fact that the update is exactly the Schur complement formula we proved in Claim 3.2. Since the update is performed for every in parallel, the equivalence is obtained from the Chain-Homotopy Equivalence Theorem (3.3).
The number of relevant cofaces of is bounded by (the maximal number of cells in a coboundary). The number of relevant faces is bounded by . For every pair we perform two matrix multiplications, for each of the filtration levels. In total we will get .
Algorithm: FilteredScythe In: The original complex and the boundary maps . Out: The reduced complex and updated effective boundary matrices.
01 initialize empty queue: Que
02 while there are non-critical active cells left in K
03 find a minimal non-critical active cell c in K
04 mark c as Critical
05 Que.Clear()
06 Que.Enqueue(c)
07 while Que is not empty
08 y = Que.Dequeue()
09 find all active non-critical lower neighbors x of y in the current boundary graph
10 if there is EXACTLY ONE such x, AND TryPairingAndCache(x, y, {F_i}) is True
11 // We found a valid Morse pair in the active graph!
12 Que.EnqueueAll(x_+ \ {y})
13 ReducePair(x, y, {F_i})
14 end if
15 // Propagate search upwards regardless of pairing
16 if y is active: Que.EnqueueAll(y_+)
17 end while
18 end while
19 return remaining active cells (which are K^c) and the fully reduced matrices.
For the complexity bound, within each outer iteration enqueue only itself or non-critical cells of dimension , each at most once; reset the enqueue flags when Que is cleared [12]. The numbers refer to this variant, which can leave more critical cells than unrestricted queuing. Neighbor sets and refer to the current active boundary graph and its effective signed blocks; initialize missing blocks to zero.
The algorithm implements a greedy approach right here, similar to , and scans the fixed complex from the minimal cells upwards. When it locates a cell with a single non-critical face , it checks the compatibility of the pairing throughout the filtration. If it is an -compatible pairing, the algorithm fixes locally immediately, and enters the neighbors affected by the change into the queue. The cells that will remain in at the end of the scan are exactly the critical cells.
The algorithm is correct since the scan implements the inductive process of our proofs, and satisfies the necessary conditions: The first is acyclicity - the ’single non-critical face’ requirement ensures that the paths are flowed in well-defined directions without cycles. In addition, the scan implements an implicit topological sort during the run. This sort ensures us that we do not change the extension matrices of faces belonging to pairings we have not yet checked - Lemma 3.6 and the Chain-Homotopy Equivalence Theorem (3.3).
To precisely evaluate the complexity, one must address the potential fill-in of the active boundary graph during reductions. While reducing a pair introduces new edges, the topological constraints of the Scythe algorithm inherently bound this density. A pairing is only executed when is the unique non-critical face of . This guarantees that any new incidence relations introduced by ReducePair involve lower neighbors that are already critical. Consequently, non-critical cells never acquire new upper neighbors during the process. The number of upper neighbors is thus strictly bounded by the original complex parameter , and is bounded by the number of critical cells in that dimension, .
Let count cancelled pairs with lower dimension , and let count original -cells and incidences between dimensions and . Since , bypass updates cost . The stated queuing rules allow at most candidate tests, each costing . Graph scanning costs ; selecting starting cells costs , and queue and deletion work obey the same combined bound. Thus the total time is .
The space complexity must account for the dense blocks generated by the Schur complements and the storage of the original operators across all filtration steps. Since the maximum number of critical lower neighbors is bounded by the total number of critical cells, the worst-case space complexity evaluates to for the initial maps, and for the dynamic fill-in and caching structures, with total peak storage including the input filtration maps.
Future Research
The application of discrete Morse theory on a cosheaf filtration opens the gate to many extension possibilities. Inspired by [6], it is natural to examine what happens in a multi-dimensional filtration, and how one can define a consistent Morse pairing over a family of cosheaves defined on a lattice of parameters; a similar direction is a hybrid model - where both the module and the cosheaf evolve over time. Additionally the local nature of the reduction operation on the blocks suggests a parallel implementation, similarly to [2, 3].
References
- [1]Anton Ayzenberg, Thomas Gebhart, German Magai, and Grigory Solomadin. Sheaf theory: from deep geometry to deep learning, 2025.arxiv.org/abs/2502.15476
- [2]Ulrich Bauer. Ripser: efficient computation of vietoris-rips persistence barcodes. Journal of Applied and Computational Topology, 5(3):391–423, 2021.DOI
- [3]Ulrich Bauer, Michael Kerber, and Jan Reininghaus. Persistence by parts: Multiscale feature detection via distributed persistent homology. In Proceedings of the thirtieth annual symposium on Computational geometry, pages 477–486. ACM, 2014.
- [4]Zixuan Cang and Guo-Wei Wei. Topologynet: Topology based deep convolutional and multi-task neural networks for biomolecular property predictions. PLoS Computational Biology, 13(7):e1005690, 2017.DOI
- [5]Zixuan Cang and Guo-Wei Wei. Integration of element specific persistent homology and machine learning for protein-ligand binding affinity prediction. International Journal for Numerical Methods in Biomedical Engineering, 34(2):e2914, 2018.DOI
- [6]Gunnar Carlsson and Afra Zomorodian. The theory of multidimensional persistence. Discrete & Computational Geometry, 42(1):71–93, 2009.
- [7]Jun Chen, Yuming Liu, and Guodong Zhou. Algebraic morse theory via homological perturbation lemma, 2025.arxiv.org/abs/2404.10165
- [8]James R Clough, Nicholas Byrne, Ilkay Oksuz, Veronica A Zimmer, Julia A Schnabel, and Andrew P King. A topological loss function for deep-learning based image segmentation using persistent homology. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(12):8766–8778, 2020.DOI
- [9]David Cohen-Steiner, Herbert Edelsbrunner, and John Harer. Stability of persistence diagrams. In Proceedings of the twenty-first annual symposium on Computational geometry, pages 263–271, 2005.
- [10]Zachary Cooperband, Robert Ghrist, and Jakob Hansen. A cosheaf theory of reciprocal figures: Planar and higher genus graphic statics. arXiv preprint arXiv:2311.12946, 2023.arxiv.org/abs/2311.12946
- [11]Justin Curry. Sheaves, cosheaves and applications, 2014.arxiv.org/abs/1303.3255
- [12]Justin Curry, Robert Ghrist, and Vidit Nanda. Discrete morse theory for computing cellular sheaf cohomology, 2015.
- [13]Yuri Dabaghian, Facundo Mémoli, Loren Frank, and Gunnar Carlsson. A topological paradigm for hippocampal spatial map formation using persistent homology. PLoS Biology, 10(1):e1001245, 2012.DOI
- [14]Vin de Silva and Robert Ghrist. Coordinate-free coverage in sensor networks with controlled boundaries via homology. The International Journal of Robotics Research, 25(12):1205–1222, 2006.DOI
- [15]Tamal K. Dey, Florian Russold, and Shreyas N. Samaga. Efficient algorithms for complexes of persistence modules with applications, 2024.arxiv.org/abs/2403.10958
- [16]Marc Fersztand, Emile Jacquard, Vidit Nanda, and Ulrike Tillmann. Harder–narasimhan filtrations of persistence modules. Transactions of the London Mathematical Society, 11(1), dec 2024.
- [17]Robin Forman. Morse theory for cell complexes. Advances in Mathematics, 134(1):90–145, 1998.DOI
- [18]Robert Ghrist. Elementary Applied Topology. CreateSpace, 1.0 edition, 2014.
- [19]Gregory F. Henselman-Petrusek. Matroids and Canonical Forms: Theory and Applications. PhD thesis, University of Pennsylvania, Philadelphia, PA, 2017. Supervisor: Robert W. Ghrist.
- [20]Maurice Herlihy and Nir Shavit. The topological structure of asynchronous computability. Journal of the ACM (JACM), 46(6):858–923, 1999.DOI
- [21]Chuan-Shen Hu. A sheaf-theoretic and topological perspective on complex network modeling and attention mechanisms in graph neural models, 2026.arxiv.org/abs/2601.21207
- [22]Michael Jöllenbeck and Volkmar Welker. Minimal resolutions via algebraic discrete Morse theory. Number 923 in Memoirs of the American Mathematical Society. American Mathematical Society, 2009.DOI
- [23]Michael Joswig and Marc E. Pfetsch. Computing optimal discrete Morse functions. Electronic Notes in Discrete Mathematics, 17:191–195, 2004.DOI
- [24]Dmitry Kozlov. Combinatorial Algebraic Topology, volume 21 of Algorithms and Computation in Mathematics. Springer Science & Business Media, 2008.
- [25]Saunders Mac Lane. Categories for the Working Mathematician, volume 5 of Graduate Texts in Mathematics. Springer-Verlag, 2nd edition, 1998.
- [26]Konstantin Mischaikow and Vidit Nanda. Morse theory for filtrations and efficient computation of persistent homology. Discrete & Computational Geometry, 50(2):330–353, 2013.
- [27]James R. Munkres. Elements of Algebraic Topology. Addison-Wesley, 1984.
- [28]Vidit Nanda. Computational algebraic topology (lecture notes). https://people.maths.ox.ac.uk/nanda/cat/TDANotes.pdf. Accessed: April 2026.
- [29]Vidit Nanda. Discrete Morse theory for filtrations and cell complexes. PhD thesis, University of Pennsylvania, Philadelphia, PA, 2012. Available at ScholarlyCommons.
- [30]Emily Riehl. Category Theory in Context. Aurora: Dover Modern Math Originals. Dover Publications, 2016.
- [31]Michael Robinson. Topological Signal Processing. Springer Berlin Heidelberg, 2014.DOI
- [32]Florian Russold. Persistent sheaf cohomology, 2022.
- [33]Emil Sköldberg. Morse theory from an algebraic viewpoint. Transactions of the American Mathematical Society, 358(1):115–129, 2006.DOI
- [34]Zhe Su, Xiang Liu, Layal Bou Hamdan, Vasileios Maroulas, Jie Wu, Gunnar Carlsson, and Guo-Wei Wei. Topological data analysis and topological deep learning beyond persistent homology – a review, 2025.arxiv.org/abs/2507.19504
- [35]Jacob Townsend, Christian P Micucci, John H Hymel, Vasileios Maroulas, and Konstantinos D Vogiatzis. Representation of molecular structures with persistent homology for machine learning applications in chemistry. Nature Communications, 11(1):3230, 2020.DOI
- [36]Xiaotian Wei and Guo-Wei Wei. Persistent sheaf laplacians. Foundations of Data Science, 2025.DOI
- [37]Charles A Weibel. An Introduction to Homological Algebra. Cambridge University Press, 1994.DOI
- [38]Karthik Yegnesh. Persistence and sheaves, 2017.arxiv.org/abs/1612.03522
- [39]Hee Rhang Yoon. Cellular Sheaves and Cosheaves for Distributed Topological Data Analysis. PhD thesis, University of Pennsylvania, Philadelphia, PA, 2018. Supervisor: Robert W. Ghrist.
- [40]Afra Zomorodian and Gunnar Carlsson. Computing persistent homology. Discrete & Computational Geometry, 33(2):249–274, 2005.