Manuscript Offprint
arXiv:2610.31391Bridging persistence of discrete and continuous 1D maps: Total variation, permutation equivalence, and diagonal affine transformations
Abstract
Fundamental to the field of topological signal processing (TSP) is the persistence diagram (PD), or barcode, of a signal, which gives noise-resistant measures of topologically significant features as distinct from noise. Existing literature proves that the total persistence computed from these diagrams is equal to the total variation, for certain continuous signals on compact domains. We provide a closed formula for this shared quantity, and generalize to all continuous and discrete functions on bounded domains, and to certain functions on non-compact 1D manifolds. Extending the identification of continuous and discrete persistence, we investigate the similarities of functions with the same PDs, and prove that, for any n, the persistence diagram can be calculated as a function of the sequence of critical values; we compute these formulas for . Finally, we examine which function transformations cause predictable changes in the PD of the transformed function, characterizing affine and linear transformations.
1 Introduction (2)
2 Contributions (3)
3 Domains, Level Sets, and Persistence (3)
3.1 Discrete and Continuous Maps
3.2 Domains, Genericity, and Critical Points
3.3 Level sets
3.4 Persistence Diagrams
4 Total Variation and Total Persistence (7)
4.1 Computation and Comparison
4.2 Formula Derivation
4.3 Circular Domains
4.4 Non-Separating Functions
4.5 Discrete Functions
4.6 Non-Tame Functions
5 Permutation Equivalence (17)
5.1 Permutation Theorem
5.2 Persistence Diagram Computation
5.3 Persistence Diagram Preimage
6 Signal Transformations (25)
6.1 Diagonal Affine Transformation Theorem
6.2 Function Addition
6.3 Integration and Differentiation
7 Conclusions and Further Directions (34)
A Lemmas (35)
B Generalizing Equivalence Domain (38)
B.1 Formula Derivation Proof
B.2 Non-Separating Functions
B.3 Discrete Functions
B.4 Functions on the Circle
B.5 Non-Tame Functions
B.6 Open and Unbounded Domains
C Persistence Diagram Computed Examples (50)
D Diagonal Affine Transformation Cases (53)
E Direct Computation (56)
E.1 PD Preimage Illustrations
E.2 Computed PD Flowcharts
1 Introduction
Repeated measurement of a quantity over time yields a collection of data which is variously called a signal or time series. Applications of these time series include biology, physiology [3]; gene expression [6]; microphone readings, EEGs, neural activation [2]; and financial markets [5], among many others. In many cases, the data has a “shape” which conveys some information on the underlying mechanisms that generated it. Sublevel persistent homology allows us to easily identify and characterize these underlying shapes, and distinguish them from the noise. Depending on the domain, this characterization can be rather complicated; for example, point clouds of arbitrary dimension have many different types of filtrations, such as the Čech complex or the Vietoris-Rips complex [7, p.27-28]. However, the case of one-dimensional signals is much simpler.
When working with 1D simplicial homology, we use the elder rule to pair up local minima and local maxima, and consequently most of the “significant” variation (that is, not noise) is concentrated in relatively few pairs, while there are other (typically more numerous) pairs which have a smaller absolute difference in critical value, which correspond to finer details of a signal, which often have less significance or are more attributable to noise. These pairings are graphed in two dimensions (birth time, death time) in a figure called a persistence diagram, which is the primary object of inquiry of this paper. Each pairing has a persistence equal to the amount of time it exists for – the absolute difference of its coordinates– and the persistence diagram has a total persistence equal to the sum of the persistence of all of its points.
A previous result from Biswas et al. equates the total persistence with the total variation of the function: that is, the total amount of change the signal undergoes in the y-direction [3]. They demonstrate that this equality holds for continuous functions defined on compact intervals, which are tame and separating, meaning that all critical points have unique critical values . Biswas et al. call such functions generic. While they reason that Cohen-Steiner's stability condition [4] implies that any non-separating function can be arbitrarily approximated by a separating function, we use a framework inspired by Belton and Essl [2] to directly evaluate persistence at non-separating functions, without the need for such approximation.
Moreover, we directly compute the total variation and total persistence as a weighted alternating sum of the sequence of critical values of the function, and we extend this formula to apply to functions with infinite critical points, and even to certain functions on noncompact 1D manifolds. We also extend the equivalence and apply the formula to discrete time series, arguing that the same tools can be applied to examine persistence of discrete or continuous signals.
Building upon this, we establish that the persistence diagram of a function is fully determined by its sequence of critical values, and that any two functions with the same sequence of ordinal critical values in the function will have the same ordinal critical values paired in the persistence diagram. We call this result the Permutation Theorem. We then describe the persistence diagram of a function in terms of this sequence, which relies upon a consistent and calculable but unpredictable permutation function, which has been computed up to n = 6. Additionally, we characterize two operations under which, when applied to a permutation of a given length, the persistence diagram is invariant, and conjecture that any two permutations with the same persistence diagram can be connected by a sequence of these operations.
Our final section describes the changes to the persistence diagram of a function when the function undergoes various transformations. First, we fully characterize the changes to a function's persistence diagram when it undergoes a diagonal affine transformation—that is, any combination of vertical or horizontal translations, scalings, and reflections. Looking at other transformations, we try to characterize the set of functions with a particular persistence diagram. With this in mind, we use the stability condition of Cohen-Steiner et al. to examine the conditions under which the addition of two functions can be seen in the persistence diagram of the first function. Finally, we show that the success with characterizing the effects of diagonal affine transformations cannot be extended to all linear transformations, as there is nothing in general that can be said comparing the persistence diagrams of a function and its derivative or antiderivative, or their discrete analogs.
Biswas et al. extend this result to compact geometric networks, but this is of less interest in this context of 1D signals
Biswas et al. later define a function on the circle to be generic if “there is no non-empty open interval along which is constant, so all critical points are isolated, and the values of these critical points are distinct”. The implication in this definition is not completely sound, because there exist some functions, such as the continuous extension of to , which are nonconstant yet for which not all critical points are isolated (namely, ).
5.1 We prove that the persistence diagram is determined completely by the relative ordering of the sequence of critical values.
5.2 We further characterize the persistence diagram of a signal as determined by the relative values of the sequence of local extremum values. We write each of these ordinal sequences as a permutation, and compute the formulas for the persistence diagrams for small , though we do not have a general formula for larger n.
5.3 We characterize two operations on the ordering of critical points which preserve persistence diagrams (reversal and persistence transposition), and conjecture that all functions with the same persistence diagram can be connected by a sequence of such transformations.
6.1 We completely characterize the effects on the persistence diagrams of diagonal affine transformations upon a signal or time series.
6.2 We show that there is no general rule for the effect of adding two functions under their persistence diagrams, but found specific conditions under which this effect can be characterized.
6.3 We prove that there is no meaningful general relationship between the persistence diagram of a [discrete, continuous] function, and the persistence diagram of its [difference, derivative] or [summation, integral]. We show this by demonstrating that any two functions can be connected by a series of [differences, derivatives], [summations, integrals], and function changes which do not affect the persistence diagram.
3 Domains, Level Sets, and Persistence
3.1 Discrete and Continuous Maps
The terms signal and time series are often used interchangeably to refer to one dimensional functions, which typically track a single response variable as it changes over time. We refer to functions whose domain is disconnected as discrete; for simplicity, the domain is typically assumed to be the set of integers , which we will denote . Conversely, we refer to continuous functions as those which meet the traditional real analysis definition of continuity: At each point , for all , there exists a such that, given any in the neighborhood of , then . For a continuous function , points for which there exist points in the domain of , for sufficiently small , are called interior points; points for which only one of or are defined are called boundary points. On the other hand, if is a discrete function, we call a point for which is defined a boundary point if either or fails to exist for all . Conversely, is an interior point of if there exist such that , and exist. We note that if the domain of a discrete function is , then the point is a boundary point if and only if or .
3.2 Domains, Genericity, and Critical Points
For the purposes of this paper, the domain of a continuous function will be either , the unit interval, or , the unit circle. While the former domain has boundary points at 0 and 1 (or more generally, and , the smallest and largest values), a function defined on the circle has no boundary points, and so every point is an interior point. We will only consider functions which are bounded; that is, circles and finite intervals.
Just as in calculus, we define the set of critical points of a continuous function f to be the set of points for which the derivative of f is either zero or undefined. Thus, all boundary points are critical points, and most signals will also have interior critical points. However, when examining either persistence or variation, we only care about those critical points at which the derivative actually changes sign, and not a degenerate or saddle point, at which the derivative reaches a local maximum or minimum at zero, and thus reaches it without changing sign. Therefore, unless otherwise specified, we will use the term critical point to refer only to local extrema, at which the sign of actually changes [or alternatively, only exists on one side, as all boundary points are local extrema]; that is, we will disregard inflection points. The local extrema will be classified as local maxima or local minima according to the direction of the sign change. The global maximum or minimum of a function is the maximal maximum or the minimal minimum, respectively.
For a discrete function, we define the critical points in terms of differences, not derivatives: That is, a point is a critical point of a discrete function f if
or if either or does not exist.
For a given critical point , we refer to the -value as the critical value associated with the critical point. Because each has exactly one point associated with it, we will simply refer to as the point, and as the value, to distinguish them. Extremum, maximum, and minimum technically refer to the critical value, but can sometimes refer to the point itself when it is clear from the context, such as for generic functions.
Following the example of Biswas et al. [3], we will define a generic function as a function with a bounded domain, and whose critical points are all isolated and distinct in value. Thus, as we are assuming a bounded domain, we will call a function non-generic if it fails to be either tame or separating: that is, if has an infinite number of critical points (which could be all isolated, or include a horizontal segment), or has multiple distinct critical points with the same critical value.
We will use the convention that a critical point has coordinates : that is, . We will sometimes still write out as for clarity, especially when multiple functions are involved. When we want the levels to be sorted, we will denote as the th critical value, such that .
3.3 Level sets

Figure 1: The sublevel set and superlevel set illustrated for some value .
Let be a smooth , tame Morse function; that is, is an infinitely differentiable function with finitely many critical points in a bounded interval, which each have unique critical values. Given this function , and an interval , the interval level set of with respect to is . In particular, if , this is a sublevel set; if , it is a superlevel set. If is a singleton, then we call the level set of at . The sublevel and superlevel sets of a function are shown in Figure 1.
As our function is defined on a finite interval , the extreme value theorem tells us that range of is bounded on a closed interval, which we will call . We shall assume is a finite interval from this point forward, unless indicated otherwise, and therefore that there exist and . With this in mind, we will notate the sublevel sets
If has critical values, then we can write and ; we use the former notation to emphasize that the extrema are global.
and superlevel sets , for all values .
To characterize the sublevel persistence of a function , we must characterize the sublevel sets of every level . A standard result [7, Theorem 1.3] in topological data analysis says that whenever an interval contains no critical points of a tame Morse function , then its sublevel set is diffeomorphic to ; that is, smoothly homeomorphic in both directions.
As our function f meets these criteria, we can partition the set of all non-critical points in the range of f into finitely many open intervals within which the sublevel sets of all closed intervals are diffeomorphic, and within which the superlevel sets of all closed intervals are diffeomorphic.
Therefore, to characterize the sublevel sets of a function f up to homeomorphism (or in fact diffeomorphism), one need only characterize these intervals, and of course the critical points which separate them.
Furthermore, at a non-boundary critical point, the sublevel set of the critical value of is diffeomorphic to the sublevel set of for sufficiently small ; the superlevel set of is likewise diffeomorphic to the superlevel set of . This is a consequence of the fact that the sublevel and superlevel sets take over an interval which includes (that is, closed at least on the side of ).
Therefore, to characterize the level sets of points in between critical values , it suffices to compute the sublevel set of at and the superlevel set of at . Repeating this process for all critical points, we complete the task of characterizing the sublevel and superlevel sets of the range of by computing merely the sublevel and superlevel sets of its critical points.
We have reduced our task, the characterization of the persistence of a function, to a finite number of calculations. However, we still wish to find an effective way to visualize the differences between the directional level sets at (and therefore between) various critical points, which is not always easy to do. This is the purpose of the persistence diagram. A persistence diagram will show topological features, identifying longer-lasting signals which often represent physically meaningful phenomena, as opposed to shorter-lived features, which are more likely due to noise. In particular, the sublevel persistence will track zero-dimensional features, which are connected components of the sublevel sets. The superlevel persistence, conversely, will track one-dimensional features (that is, loops), when the points in the superlevel set are identified with one another, shown in Figure 2.
3.4 Persistence Diagrams
The first type of persistence diagram, the ordinary persistence diagram, displays the sublevel persistence of the function at various points . In particular, we track the 0-dimensional homology– that is, the number of connected components of the curve's level sets as we increase from to . As we are looking at the evolution of sublevel sets of from to , we will imagine a slider starting at ; that is, where . As increases, the interval grows continuously, and so too does , until . This continuous growth allows us to imagine as a sort of “time”, and, when working with sublevel persistence, we describe points in contained in as being reached “sooner” and points in but not being reached “later” if . Because superlevel persistence begins at and moves towards , when speaking of superlevel persistence the above terminology applies when .
With this framework, at each non-boundary critical point of , we track the birth or death of a topological feature: A feature is “born” at a critical point if it does not exist before the critical point is reached, and exists after; a feature similarly “dies” if it exists (distinctly) before reaching a critical point, but merges with another feature upon reaching the critical point. By convention, when two features meet, the “older” feature (that is, the feature which was born before the other) continues on, while the “younger” dies; this convention is called the elder rule. We will use the notation to denote the connected sublevel component which was born at , and if dies at a critical point with value . A capital likewise signifies loops in the superlevel persistence.
The birth and death times of each topological feature are recorded and plotted as an ordered pair. The birth times are plotted on the x axis, and the death times on the y axis. Accordingly, in the ordinary
(a)

(b)
(c)
Figure 2: In the superlevel persistence, we identify (“pinch” together) all parts (in orange) of the domain mapped above the dotted L line, and we count the number of loops this creates in the portion of the domain mapped below the level L (in blue). Any part of the function below the line L which does not create a loop (a “tail”) is disregarded.

Figure 3: The left figure maps the signal y over time x. The right side is the persistence diagram Dgm(f). On the left, blue dots = local minima, red diamonds = local maxima, and green circles = boundary points. On the right, pink star = Ess(f), green dots = Ord(f), and orange squares = Rel(f).
persistence diagram, which tracks sublevel persistence, all the points are plotted above the line x = y, as the birth time of every point precedes its death time.
The relative persistence diagram tracks the relative persistence of superlevel sets of and therefore considers as varies from to . Instead of tracking connected components, the superlevel persistence tracks the number of loops created when all of the points in the superlevel set are identified with one another, or “pinched together”, as seen in Figure 2. This is tracked similarly to the sublevel persistence: Whenever the superlevel set reaches a new local maximum, a new loop is “born”, with one exception we will explain momentarily. When an interior local minimum is reached, two loops join, and the younger one “dies”; like in sublevel persistence, no deaths occur at boundary points. The one exception which distinguishes the computation of superlevel persistence from that of sublevel persistence is that, when is defined on an interval, the first maximum reached does not birth a connected loop, and therefore the global maximum is not represented in superlevel persistence. A consequence of this is that the number of loops which superlevel persistence will count at a given level will always be one less than the number of connected components present in the superlevel set whenever is an interval; conversely, when , the unit circle, then the number of loops counted will be equal to the number of connected components.
Analogous to the sublevel persistence, as we are moving from to , a “later” time of death is associated with a lesser value of . Thus, when we plot the birth times against the death times of superlevel features, the death time is less than the birth time, and so every point is plotted below the dashed diagonal line, on which the birth time equals the death time.
Finally, the essential persistence diagram displays those features which are born and do not die. On intervals, this consists of a single point at ; on circles, as there is an inherent loop in the structure, the essential persistence diagram contains an additional point at .
When these three persistence diagrams are combined, we have our extended persistence diagram, which we will denote as , with the ordinary, relative, and essential diagrams labeled , , and , respectively. Figures 3 and 4 illustrate a continuous function f on the left, and its extended persistence diagram on the right. On the left side, the graph of f labels local minima with blue dots, and local maxima with red squares, and and are circles in green. On the right, Dgm(f) shows with orange points, with lime green squares, and with pink stars. Finally, the horizontal green lines on the right show the values for which there is no point in or , which are precisely the critical values which occur at the boundary points on the left.
4 Total Variation and Total Persistence

Figure 4: Sample signal (L) and persistence diagram (R). The odd number of critical points creates an asymmetry in the number of points in and . The green, horizontal sparsely-dashed lines at and represent the invisibility of and to the superlevel relative persistence, as they are endpoints.
The variation of a real-valued map is a way to quantify the amount a function fluctuates in a given section. In particular, when f is a one dimensional, piecewise differentiable continuous map on a compact interval, it is absolutely continuous , and its variation is the integral of its absolute derivative:
The total variation of a function f is simply the variation of all of M (the domain of :
The total variation can be thought of as the “total distance traveled” by a point moving along the y-axis according to the signal. This sum can be computed by partitioning the integral at the critical points, breaking it into monotonic segments which can be evaluated directly, as seen in Figure 5.
The total persistence of a function is the sum of the persistence of all of its features, as represented by points on the (extended) persistence diagram. In particular, the persistence of a point on Dgm(f) is the
A function is absolutely continuous if, for any there exists a such that, for any finite sequence of disjoint intervals , within the domain of , whenever the sum of their length
the net displacement over those intervals
Formally, total variation is defined more generally as the supremum among all partitions, of the sum of the variation on each partition of the domain [1, p.126]. However, the integral formulation holds whenever f is absolutely continuous (see Section 4.6), which will be assumed unless specified, including for every signal outside Section 4.6 and the corresponding Appendices B.5-B.6.

Figure 5: The total variation can be calculated by breaking the interval into monotonic segments at the critical points, and taking the difference of the endpoint values.
absolute difference between its death and birth time– that is, the duration for which it persists. This gives us a formula for the total persistence:
4.1 Computation and Comparison
A central result of Biswas et al. [3, Corollary 4.6] was the equation of total variation and total persistence. Though this identity was previously known for functions whose domains were circles [6], Biswas et al. extend it to geometric networks. Based on their definition, the interval should be seen as a special case of embedded geometric network with two degree-one vertices.
We show that, given the sequence of critical values, the total variation can be computed as
the weighted alternating sum of the critical values. When the first critical point is a local minimum, the sum will be nonnegative, and the absolute value signs are superfluous. This formula motivates the later Permutation Theorem (Theorem 1), which will confirm that the total persistence, and in fact the entire persistence diagram from which it is calculated, is completely determined by the sequence of critical values.
4.2 Formula Derivation
Consider a generic function , with critical points .
Without loss of generality, assume that . This proof relies upon the computation of total variation and the total persistence, which are identical between and (see Appendix A.1). Alternatively, if , switch “odd” for “even” throughout the following proofs.
First, observe that the function is monotonic between any two consecutive critical points. Therefore, between any two such points ,
That is, two critical points with no other critical point between them in the x direction.

Figure 6: The persistence of each point in Dgm(f) is shown, with as green circles, as orange squares, and as a magenta star.
Thus, we can decompose our interval into the intervals between its critical points, as seen in Figure 5. With our assumption from earlier, since the critical points are indexed by their coordinate, we know that even-indexed points are local maxima, and odd-indexed points are local minima. This means that every has the form , and so we have that
which simplifies to
| Sublevel: | Birth | Death | Birth | ifOdd | +Death |
| Superlevel: | * | Birth | Death | ifEven | -Birth |
| Total: | 1 | 2 | 2 | 1 | * |
Table 1: This table shows how many times a point in Dgm(f) appears at each critical value of . The right boundary critical value has one birth, located in the sublevel persistence if is odd, or in the superlevel persistence if is even. The parity of the first three columns depends on the assumption. More detail can be found in Appendix 4.
As we see in Figure 6, the total persistence of can be similarly broken down into differences of critical values . Because we are still assuming , odd-indexed critical points are local minima, and even-indexed points are local maxima. For more explanation of this process, see Appendix 4.
Under this assumption, Table 1 summarizes the contributions of each critical point to the persistence diagram Dgm(f). As before, since each local maximum is greater than the local minimum with which it is paired, the formula
reduces to
By harnessing the alternating nature of critical points, we can directly compute the total variation of f to be
By counting the birth times and death times, we get that the total persistence of f is
As these sums are identical, we have that . ■
4.3 Circular Domains
Many signal applications are periodic or modeled with Fourier series, and are therefore often expressed more naturally as functions on the circle than on an (arbitrary) interval. When is a function on the circle , then the equality holds, but the proof is different from the interval case.
Since there are non boundary points, every point is an interior point, and so each local minimum corresponds to a birth in the sublevel half of , and a death in the superlevel half, and vice versa for each local maximum. Additionally, when we are on the circle, all non-global extrema will meet the essential component before the essential component ends. Therefore, the only points at and on are in the essential diagram; there are no “additional” points.
Furthermore, in superlevel persistence, there is a loop created when the global maximum is reached, because the line itself is connected. This loop persists for the entire duration of the superlevel persistence, and so there is a point in created during the superlevel persistence, namely at .
Because every critical value corresponds to both a birth and a death, the persistence diagram is symmetric, as the only sources of asymmetry were the births associated with boundary points, and the consequent extra death at the global maximum. This symmetry is also a corollary of Biswas's Theorem 3.2 [3].
We will model this function by considering a function on the interval, and identifying the boundary points and with one another.
Therefore, for a function , the total persistence
Similarly, we can compute the total variation by simply setting to yield
If is even, then are not an actual critical point, and so their sum contributions cancel out. Conversely, if is odd, then is a true critical point, and so is recovered in the sum. Combining these results,
The absolute values account for the cases when the assumption does not hold; that is, when the left endpoint is a local maximum.

Figure 7: A simple nonseparating signal, where . In the persistence diagram, the shared level has two births and two deaths, a consequence of the shared points both being interior points and nonglobal extrema.
4.4 Non-Separating Functions
As Biswas showed, for any continuous, generic function. Inspired by Belton et al. [2], we will extend this finding to nongeneric functions, and then to discrete domains. Specifically, we will first relax the separability requirement, and we will address non-tame functions in section 4.6.
Recall that a continuous function is generic if there are finitely many critical values, and if all critical points have distinct values; that is, is tame and separating. One appeal of the separating restriction is that it guarantees that the elder rule is always unambiguous, because whenever two components meet, the distinct critical levels at which they were born cannot be the same. We will next examine functions which are tame but not separating.
When we get rid of this restriction, if two components and meet, where , then there is no way to adjudicate which point's component survives. It is equally possible that dies and survives, or that survives and dies.
However, in a persistence diagram, components are not graphed by their x-values, but by their y-values. Since , the persistence diagram will graph two points in the column c: one at the level at which and meet, and one at which that merged component dies (or at if it is the essential component). Thus, the assignment of seniority to or to is arbitrary, and the persistence diagram produced either way is identical. A simple example of this can be seen in Figure 7, and we can see in Figure 8 that even a multiplicity of overlaps, which creates many potential combinations of birth and death component choices, will only create one persistence diagram.
One aspect of persistence diagrams of nongeneric functions is that they can feature multiple points at the same coordinates (or alternatively, points with multiplicity greater than one), as seen in Figure 9. However, the equality of total persistence and total variation is still maintained, as one can easily see that the total variation and total persistence in Figure 9 is .
Another aspect present in non-generic functions is horizontal segments, which Belton calls “flats” [2]. Given , the interval is a horizontal segment of if, for all , is constant. Because every point in a flat horizontal segment is a critical point, and there are uncountably infinitely many points in any interval of positive width, any function with any flat segment is neither tame nor separating, and therefore is not generic.
Horizontal segments are treated much the same as multiple isolated critical points: for each segment, one point in the segment is arbitrarily chosen to name the component k which continues on from the shared critical value until its death, and a point is plotted at those coordinates irrespective of the choice of component, as seen in Figure 10.
However, just like regular critical points, not all horizontal segments are plotted in the persistence diagram, but only those which contribute any persistence; that is, local maxima and minima. If the function

Figure 8: An example of a highly non-separating function. The critical points and share a critical value, as do the pairs , ; , ; and , . The three critical points at , , and all share a critical value as well.

Figure 9: Another very non-separating function, specifically a (shifted) cosine wave. The repeated maxima and minima create multiple points in , at and , which are slightly dispersed for visibility.
is only increasing or only decreasing both before and after the horizontal interval, then we say the segment is monotone, and it does not appear in . Indeed, in Figure 10, the horizontal segment at is monotone, as the function is increasing both before and after it, and so no points occur in the row or column of in . More formally, a segment is called monotone on a function if is constant on the interval, and, for arbitrarily small ,
A corollary of this definition is that a monotone horizontal segment cannot contain a boundary point. Note that this definition is specific to the continuous case; with discrete functions, non-constant segments can also be monotone.
We can now prove that the total persistence and total variation of continuous functions remain equal even among non-separating functions, with the only limitation being a finite number of critical points and horizontal segments (as this is sufficient to guarantee finite variation); that is, f must have a reduction which is tame.

Figure 10: A non-separating signal with a horizontal component. The horizontal segment at is a monotone, and so it has no extrema, and thus no contribution to . The horizontals at and , conversely, are a minimum and maximum, respectively, and function accordingly.
Let be a continuous function with finitely many critical points and horizontal segments, which is not necessarily generic. First, if our function has any horizontal segments, we can create another function by “shrinking” all horizontal segments to points; for more details, see Corollary 9.1 of Lemma 9. We can show that this function has the same total persistence and total variation, so we can show by simply showing that .
The motivation for using is that all critical points are isolated, and so we can apply the same counting methods to as we could to our generic functions in earlier sections. As a consequence, we can assume from here on out that has only isolated critical points, with the understanding that we will substitute for should this prove not to be the case.
Because there are finitely many critical points, there are in particular finitely many local extrema, which we will denote . That is, we are disregarding any degenerate critical points, such as inflection points. We still know that is monotonic between all local extrema, so we can compute as before:
The counting argument summarized in Table 1 applies identically to our non-separating function, and for the same reason, our total persistence reduces to
which is equal to . ■
4.5 Discrete Functions
Now, let be a discrete function, from a finite set to the real numbers. We will show that , by way of showing that there exists a continuous function with identical total persistence and total variation to , such that .

Figure 11: A discrete function (left), and its linear interpolation (right). The grey squares denote a non-extremum, or additional points in a horizontal flat extremum. For example, the local maximum at could be moved to 4, and the local maximum at could be moved to 8 or 9.
In particular, let be a linear interpolation of : that is, ,
First, observe that if is not a local extremum, then . Therefore, in the sum
we can replace each such with , resulting in
The result of this can be seen in the total variation shown in the right side of Figure 12, with regard to the discrete function g and its linear interpolation f in Figure 11.
Similarly, we observe that only the local extrema contribute any persistence to . Because the pairing of local extrema is identical between and , their persistence diagrams will be identical, and follows.
Because we know is a continuous function with finitely many isolated critical points and horizontal segments, . As we have equated each of these totals with their counterpart in , we have , so , and we are done.
4.6 Non-Tame Functions
All of the generalization so far have assumed that has a finite number of local extrema; that is, that is tame. However, this is not always the case; when is continuous, even some functions on a compact domain have infinite oscillations in over a (bounded) sub-interval within . For example, the function
In fact, any interpolation which is monotonic between every pair of adjacent critical points will suffice; a linear interpolation was just chosen for ease of computation.

Figure 12: The total persistence (L) and variation (R) of functions g (and equivalently, its linear interpolation f), from Figure 11. The points in the persistence diagram (L) do not depend on the choice of maxima and minima in Figure 11.
is continuous, and has (nondegenerate) critical points whenever its derivative,
equals zero, which happens with increasing frequency as , and in fact an infinite number of times in the neighborhood of . However, because of the term, since
we know that
In other words, because the contribution to of each critical point goes to zero as the points get closer to zero, the infinite sum of their total variation is convergent, and so the total variation is finite.
While compact continuous functions can fail to be tame, non-tame functions can also exist if the domain is not compact. When is an open (or clopen) interval, total variation and total persistence are only defined when the limits of exist at all endpoints. In this case, each is evaluated as though it were continuously extended to the , the closure of its domain, as total persistence and total variation of and the extended can be shown to be equal; see Proposition 5 in Appendix B.6 for more details.
The final, most general, way a function can fail to be tame is if its domain is unbounded, and such functions can be either continuous or discrete. As in the case of the open interval, the functions must be asymptotically convergent; in any direction in which is unbounded, this means that must exist.
Indeed, if such an unbounded function is tame, it can be transformed into a (tame) function on an open interval by an infinite sequence of partial positive horizontal scalings, under which total variation, total persistence, and the persistence diagram are invariant; for details and proof, see Corollary 8.2.1 in Appendix D. Namely, for a function and constants , we define
More generally, a function on an unbounded domain may have infinitely many critical points; that is, not be tame. If such a function is discrete, it must have bounded variation; that is,
This condition is necessary and sufficient for the calculation of total variation and total persistence.
Conversely, so long as the function f is absolutely continuous, we can show that its total persistence is still equal to its total variation; see the proof of Theorem 6 in Appendix B.6 for more explanation.
Absolute continuity is important here is because it is necessary and sufficient [8, Thm. 7.20, p. 148] to evaluate an arbitrary
as
without which the formulation of tVar(f) as
does not hold (see Theorem 6). Absolute continuity allows us to evaluate the general formulation of total variation [1, p.126, def. 4.3.2]
as
However, absolute continuity is not required for to hold; for example, the Cantor function (see [1, sec. 4.5.3, p. 136]) has total persistence and total variation equal to one, but is not absolutely continuous, as
Thus, in the continuous case, bounded variation is necessary and sufficient for total variation and total persistence to exist, but it is not sufficient for the convenient formulation
merely necessary. Absolute continuity is necessary and sufficient for this formula to hold, but merely sufficient (not necessary) for total variation and total persistence to exist and to be calculable.
In Theorem 6, we generalize the formula for total variation and total persistence to
where
and
We note that the absolute continuity condition does not require that be defined over a bounded domain. If is defined on the real line or a half-line, total variation can still be computed as long as approaches a limit as . For more detail, see Appendix B.6.
5 Permutation Equivalence
5.1 Permutation Theorem
For any two continuous functions on the interval, we let denote the th local extremum of , and denote the th local extremum of . In this section, and are indexed separately, such that . We may assume without loss of generality that critical points of and are isolated; if not, we can substitute and as explained in Corollary 9.1 in Appendix B. Furthermore, although these proofs will use discrete functions for simplicity, as we showed in Section 4.5 the persistence diagrams of continuous functions and the discrete sequence of its critical points are identical, so all of these results will hold for continuous functions on the interval as well.
The object of this section is to show that the property shown in (1) is sufficient to conclude that the ordering of critical values in the persistence diagrams and are identical. That is, if, say, the second smallest and second largest critical values of are paired in , then the second smallest and second largest critical values of will be paired in . Although this is a sufficient condition, it is not necessary, as we will show in Section 5.3.
First, we show that the condition in (1) implies that the ordinal sequence of critical values matches between f and F. That is, if, say, the critical value of the fourth critical point of f is the global maximum of f, then the corresponding critical value of the fourth critical point of F will be the global maximum of F.
Lemma 1. Let functions f and F have n critical points. Suppose that,
That is, there exists a single permutation on elements, such that permuting the sequences of critical values of and by will produce two monotonically increasing sequences. If and are generic, this permutation will be unique, and the monotonicity will be strict.
Then
Proof. We suppose first that , and we want to show that .
First, we note (1) directly implies that
as is the only condition under which and .
Next, applying (1) to each pair of points which includes in either position, we can produce the set of indices whose value . Let us define
the set of indices of the preimage of the next-greatest critical level. We once again apply (1) to , where each and . Using (2), we can see that , by simply comparing all pairs of indices in .
We will use this as a base case, and construct an inductive argument to continue this process additional steps to construct .
Suppose we are given a set , containing the indices of all for which . As above, we define
and apply (1) to , where each and . From this, we get that .
When we iterate this process until , we can partition into sets , each of which correspond to a unique critical level less than . As , the set of all indices with critical values less than , is partitioned into precisely sets , which each correspond to a distinct critical level less than , we know that is greater than precisely critical values , and thus .
As there is no inherent distinction between and , the same argument shows that if , then , and we are done.
Corollary 1.1. A critical point is a local minimum [maximum] of f if and only if is a local minimum [maximum] of F.
Proof. By Lemma 1, when they exist,
and
As these determine whether a critical point is a local minimum or maximum, and will both be either a local minimum or a local maximum.
Lemma 2. Let functions f and F have n critical points. Suppose that,
That is, there exists a permutation on elements, such that permuting the sequences of critical values of and by will produce one monotonically increasing sequence and one monotonically decreasing sequence. If and are generic, this permutation will be unique (up to which sequence is permuted to increase and which to decrease), and the monotonicity will be strict.
Then
and, by the symmetry between f and F,
Proof. We suppose first that , and we want to show that .
we repeat the proof of Lemma 1 under the substitution , which is valid since (3) plays the role of (1) under this substitution. This yields that .
We switch and and repeat to yield the forward implication for the second statement. Then for each statement, we substitute with , which yields the backwards implication for each statement, as .
Finally, we can show that the condition in (1) implies this ordinal equality of and .
Theorem 1 (Permutation Theorem). Let functions f and F have n critical points. Suppose that
Then,
Moreover,
However, the converse is false.
Proof. First, to provide a counterexample for the converse implication, we can define two functions with three critical points, given by the mappings
we have that
However, clearly
yet
contradicting our initial condition (4). Thus, merely having the same persistence diagram does not mean that two functions have the same ordering of critical values.
Ess(f): First, let us suppose that a point , for two integers . Then, as is a function on the interval, must equal one, and must equal , the number of unique critical levels of , which equals if and only if is generic; this makes the only point in .
As noted in (2), the equality of any two indices
follows from the assumed condition (4). From here, it is straightforward to show that has the same number of unique critical levels as , and therefore that is the sole point in Ess(). Thus, (5) holds for Ess.
Ord(f): Next, let us suppose that . Because death times occur after birth times, we know that .
We will employ an inductive argument, to show that the sequence of subsets of critical values of f and F will be born and die at the same points. More precisely, we want to show that
First, consider and ; that is, when . By Lemma 1, the indices must be identical; that is, if , then . As these are the only points in the respective sublevel sets, the dual implication (6) holds for .
Because the image under any function of the critical points includes any critical values, we know that the set does not contain any critical points. Therefore, we only need to check as it reaches critical levels to verify that the dual implication (6) holds over all .
Now, suppose that (6) holds for all . To assess whether it holds on , we need only look at what changes at the point itself.
If is non-separating, then a level may have one or multiple local minima and one or more local maxima.
Minimum Suppose has at least one local minimum. Then, a new connected component of the sublevel set of will be born at every point in . Similarly, at a new connected component will be born at in the sublevel set of . By Lemma 1, these levels will have the same inverse. That is, . Therefore, the sublevel sets of each function will include all of the components in the previous (respective) sublevel set, plus one born at each or which is the inverse of or . As this will result in the same set of indices added to the respective previous sublevel sets, which were equal by assumption, the equality in (6) will continue to hold over all of .
Maximum Now, suppose contains at least one local maximum.
Each local maximum adds to a connected component on one of its sides, and this causes the death of the younger connected component whenever there is a component on the other side; that is, when is an interior point. The connected components will be those born at the nearest points from each side of .
However, this can be observed directly from the set of critical points in the previous sublevel set : The rightmost component (when it exists, for ) can be observed as starting at and including every until one reaches the maximal such that every
This connected component shall be named for .
The leftmost component (for ) can similarly be shown to include a set of consecutively indexed critical points, starting from , and continuing sequentially downwards until the smallest for which
and will likewise be named for the minimal critical value in the set.
Finally, for each point we will compare these two set minima. The component with the larger set minimum (if a second component exists), is said to die at , and the component with the smaller minimum, subsumes the other and the which connects it. If these components have equal birth times, then the choice of which component dies and which lives is arbitrary, as they are not distinguished in apart from by birth and death time. This means, for each point , we add a point to born at , and which dies at ; that is, the point .
However, because (6) held for , we know that the set of critical points in this set has precisely the same indices as the corresponding set for , and so the same two components merge, and the component(s) which die at has the same ind(ices) as the component(s) which die at . Therefore, if (6) holds for the sublevel sets of and , it must also hold for and .
Therefore, by induction, we have that (6) holds for all .
In particular, whenever a local maximum is reached at some or , the points and in the respective persistence diagrams will have the same indices.
Rel(f): Because the duality between ordinary and relative persistence provides that Rel(f) can be computed by negating Ord(-f), we apply the result above to Ord(-f) to prove it for Rel(f); see Lemma 3 in Appendix A.1 for details.
Thus, we have shown that the sublevel sets (and by duality, the superlevel sets as well) for f and F will contain critical points with precisely the same indices. Furthermore, we have shown that this process is sufficient to compute the locations of points on the persistence diagram. Therefore, if we compute the persistence diagrams of f and F, they will be the same, the points will have the same pairs of indices, and so we show (5), as desired.
Corollary 1.1. Let functions f and F have n critical points. Suppose that
Then,
Moreover,
However, the converse is false.
Proof. As in the previous case, because and are continuous functions with isolated critical points, and , where is again the number of distinct critical values of , or equivalently of .
The proof for , and thus also for , is identical to the Ord section of the previous Theorem 1, with the single change that the index of each is replaced by . As this does not affect the adjacency of any two points, the same argument will result in the same conclusion: As the sublevel sets are traced, each time a local maximum is reached in (or equivalently in ), the points and are added to and , respectively; as points added always have the same coordinates, (7) is reached for Ord, and then Rel by duality.
The (incorrect) converse statement, that two functions which have the same persistence diagram must have reversed critical value orderings, can be shown by identifying for any non-symmetric function ; that is, a function of critical points for which there exists some positive integer such that .
5.2 Persistence Diagram Computation
Because we have established that any two functions with the same sequence of ordinal critical values, will have the same ordinal pairings in their persistence diagram, one may want to extrapolate to compute the persistence diagram, again up to ordinal numbers, of an arbitrary permutation.
Let a generic function on the interval have (distinct) isolated local extrema, , where and . Define and - that is, the preimage and image (respectively) of the nondegenerate critical points of -such that .
Then, we define a discrete bijection by , for all . For clarity, we will notate the discrete restriction of to its set of critical points as . We note, as shown in Section 4.5, that , as is a (monotonic) interpolation of by definition.
Finally, since we wish to move between the sets X, Y and their indices within the set, we will define by , and by . Because each critical value is unique in Y (and obviously in X too, as h is a function), we know that and are bijections. The relationships between these sets and functions is illustrated in Figure 13.
We wish to characterize a function , such that, for all , the point .
Because is generic, there is exactly one point in each column of for every point in , and so is well-defined. As is the global maximum level, there is no point in in its column, because it is not recorded by the relative superlevel persistence.
The image of g will always be
that is, the set of critical levels which are the global maximum, or which correspond to interior critical points of h. This set will have n - 2 elements if the local maximum is an interior point, and n - 1 elements if it is a boundary point.

Figure 13: The continuous function is filtered down to its critical points, and the indices of the paired and are used to create the discrete function . The pairing map is used to generate the set of indices of the paired critical values in , for which an index exists for every . is the restriction of to its critical points, and .
The essential class is identical for all functions on the interval, namely . It remains to characterize and :
We let and , indexed such that and ; that is, the sets of local minimum and maximum values (not necessarily respectively). We define constants , and . Finally, we define sets
• ,
• ;
• , and
• ,
as the restrictions of A and B to interior (i) and nonglobal ( ) critical points, respectively.
Suppose that the first critical point of is a local minimum, meaning that is the set of interior local minima, and the set of interior local maxima. Then, there exist (bjective) permutations maps and specific to (or equivalently, ) such that
and
Conversely, if the first critical point of f is a local maximum, then the formulas are reversed, because of the duality of Ord and Rel. In other words, we have
and

Figure 14: Functions and have switched values for and , but are otherwise identical. Per Proposition 1, this swap does not change the persistence diagram: Neither nor are boundary points, and , and likewise for .
There is not currently a known formula for and in general, but it has been computed for at least , as shown in Appendix C. The current computations of and apply to all generic discrete (or continuous) functions on the interval with finitely many critical points. Future research may attempt to calculate cases for , or else to generalize to functions on the circle, or on other domains.
5.3 Persistence Diagram Preimage
Another way to attempt to characterize the types of functions which share a persistence diagram, is to try to find connections from the bottom up. In general, when n is not small (n >> 5 or so), a persistence diagram will correspond to multiple ordinal permutations.
Proposition 1 (Swap). Let be a discrete time series. Suppose there exists an such that
• if is a local maximum, then .
• if is a local minimum, then .
Then we define a “persistence transposition” such that .
Let . Then, .
Proof. We will prove the equality of these persistence diagrams by construction. Because the critical values themselves are not changed, and each have one essential point at .
We assume, without loss of generality, that , as otherwise the functions are identical, and so therefore must their persistence diagrams be.
We further assume, without loss of generality, that is a local minimum. If it is a local maximum, then we consider instead -f and -h, for which is a local minimum; see Lemma 3 in Appendix A.1 for details.
To construct and , we gradually increase our sublevel set threshold . Let us call , and . For , and are identical, so their persistence diagrams are, too. Each has a component born at and , which do not die before , because it is less than and . In each case, as the components meet at , the component

Figure 15: A swap does not preserve the persistence diagram, because the local maximum , meaning is not a persistence transposition on or . The brown evenly [purple unevenly] dotted lines and translucent [outlined] local maxima correspond to the translucent [outlined] points in Dgm.
born at must die there, because each component born at and has not merged with any external components, and so the component born at is younger.
Then, the component born at , which at contains all of , continues until it dies. Because the diagrams so far of and are identical, and the function signals are identical for , the component born at will die at the same point in and . Thus, each diagram will have points at , and , for some . If is the global minimum (after accounting for any tiebreaking rules, if and are non-separating), then is the essential point; otherwise both points are in Ord.
Finally, we will examine Rel. As before, for , the superlevel relative persistence will be identical between and , and so too will their diagrams be. Upon reaching , a new component will be born; we know is not the global maximum because .
The superlevel component born at will die at , and then the components which include and will meet at . Because and are identical outside of , the age of each of the two components at will be identical between and . As before, because they cannot merge with any older components, the younger of the two components will die at . Thus, both Dgm() and Dgm() will have points at and , for some .
Since the two functions are otherwise identical, all other points will be the same in the two persistence diagrams. Thus, we have shown that .
Proposition 2. Let functions be discrete time series.
Then, if and can be connected by a finite combination of persistence transpositions and reversals.
Proof. is a persistence transposition if it meets the conditions of Proposition 1.
If , the equivalence of their persistence diagrams is trivial. If is the reversal of , their persistence diagrams are identical, as shown in Proposition 8.3. Finally, if and can be connected by a finite number of persistence transpositions or reversals, we can create a sequence of functions , such that , and every are separated by one persistence transpositions or reversal. By Propositions 1 and 8.3, each , meaning by transitivity.
Conjecture 1 (Persistence Diagram Preimage). If are discrete time series such that , then and can be connected by a finite combination of persistence transpositions and reversals.
We must show that if , then and can be connected by a finite number of persistence transpositions and reversals.
To show this condition is implied, we will prove the contrapositive. We suppose that and cannot be expressed as a combination of persistence transpositions and reversals. We must show that this implies that .
First, we can assume that the (multi)sets of critical values of f and h are the same, as if these multisets differ, then the persistence diagrams will have different multisets of birth and death times, and therefore will not be equal.
We can also assume that the (multi)sets and are equal, as the critical value associated with each boundary point only appears a single time (as a birth, unless it is the global maximum) in the persistence diagram, unlike interior points which appear twice. If the function is non-separating, the boundary point will still be noticed because each appears once, while every other point appears twice.
We further assume, without loss of generality, that , as when this is not the case, we substitute , the reversal of , as we know . Thus we know that, for each , and are both local maxima, or both local minima.
Finally, we assume, again without loss of generality, that the (multi)sets of local maxima and local minima are the same between and . If this were not the case, then the sets of births in Ord or Rel would differ, meaning .
From here, we observe that, because f and h have the same sets of local minima and local maxima, there exists a permutation which permutes the sequence of local extrema of f to the sequence of local extrema of h. Furthermore, as permutations, these can be decomposed into a product adjacency transpositions.
Because and cannot be written as a finite combination of persistence transpositions and reversals, every adjacency decomposition of will contain at least one swap which is not a persistence transposition (or a reversal).
If a decomposition contains either or , then the set of boundary points will change, and therefore so will the persistence diagram (assuming that or , understanding that otherwise the swap would not change anything).
If a decomposition does not contain either or , it must contain at least one , for which , yet which is not a persistence transposition. Since the only additional requirement for a persistence transposition is that be less prominent (extreme) than and , it must be that is more prominent than at least one of these. That is, if is a local minimum [maximum], then is less [greater] than at least one of and .
However, the mere presence of a non-persistence transposition between two functions does not guarantee that their persistence diagrams are not equal. For example, letting , consider and . Though the swap that separates them, , is not a persistence transposition, , and indeed
Several example preimages are illustrated in Appendix E.1, with their corresponding persistence transposition connections.
6 Signal Transformations
It is not obvious that any formula, such as those developed in Section 5.2, would be more computationally efficient than simply computing the critical values. However, the fact that the critical points depend solely on F (the function restricted to local extremum points) and not on h (the original function) can be used to show that the persistence diagram is generally invariant to horizontal transformations, and qualitatively invariant to global vertical transformations which respect ordering. A more complete summary of the effects of such transformations is the subject of the next section.
6.1 Diagonal Affine Transformation Theorem
The simplest transformations to characterize are diagonal affine transformations: that is, transformations that can be decomposed into some number of (horizontal or vertical) translations, scalings, or reflections. When a function undergoes a diagonal affine transformation, we can completely characterize any resulting change to the function's persistence diagram:
Theorem (Diagonal Affine Transformation). The effect of diagonal affine transformations upon total persistence, total variation, and the persistence diagram of a function f on the interval can be summarized as follows:
-
Total variation, total persistence, and persistence diagrams are invariant under horizontal shifts, horizontal scaling, and horizontal reflection.
-
Total variation and total persistence are invariant under vertical shifts, while the persistence diagram will be shifted diagonally.
-
Vertical scaling will scale the persistence diagram, the total variation, and the total persistence, by the (positive) scaling constant.
-
Total persistence and total variation are invariant under vertical reflection. Furthermore, each point in Ord and Rel is reflected through the origin, while the point in Ess is reflected across the anti-diagonal line.
The proof of each of these cases can be found in Appendix D, where it is labeled as Theorem 6.1.
6.2 Function Addition
Many function transformations benefit from the characteristic of linearity—that is, the sum of the transformed functions is the transformation of the sum of the functions. This makes tools like differentiation, integration, and Fourier series immensely powerful. However, the transformation from signal to persistence diagram does not have this property. In general, the persistence diagram of the sum of two functions does not bear any resemblance to the persistence diagrams of either or , because there is no additive structure on the space of persistence diagrams. Indeed, even the sets of local extrema of are different in general from either or , because , which neither requires nor is guaranteed by either or alone being zero.
If we assume and have critical points in the same places, then we know that the set of critical points , but may also have more critical points if at a given ; since the critical points of and are the same, the signs will switch in the same places, and so either or for all .
If we further assume that , then at last we know that . However, we will still have, in general, no relation between the sets of critical values of , , and .
There are still some conditions under which persistence diagrams can be ‘added’ in some sense. For example, if g is a constant function or a scalar multiple of f, the persistence diagram of can be computed according to the corresponding transformation in Theorem 6.1 (Propositions 8.4 through 8.6).
Furthermore, persistence diagrams can be "added" for functions g with a small enough range, as a consequence of the stability condition (see [4]). That is, the bottleneck distance
is bounded from above by the norm of the difference between two functions, . [4]
In particular, given the set of local extrema (points) of , define . Note that is a non-separating function.
This is not always a requirement to characterize the persistence diagram, but it generally is for nonconstant g.
Proposition 3 (Addition and Stability). Let be a function, and be a discrete function which takes the values of the function restricted to the set of local extrema of .
Then, if there exists a function g on the same domain, such that
and
then
Proof. If is not generic, then , and so no such exists, and the implication is vacuously true. Thus, when is generic, is a bijection, and so is well-defined. Moreover, by the Permutation Theorem (Theorem 1), and will have the same persistence diagram.
Because
if
then
by the definition of .
By genericity, we know that if , . Therefore, as the same implication above holds for , we have that
and therefore, by Theorem 1, .
However, because we know that the signs of f and g are the same, we know that they have the same set of critical points, and as they have the same sign between critical points, has every critical point of f and g and no more.
As we showed for Theorem 1, and have the same ordering of critical points. Therefore, we know that for every critical point , if , then . As a result, for every , . The unique critical point such that can be written as , giving us our decomposition of , as desired:
6.3 Integration and Differentiation
Another very common transformation we wish to examine is differentiation and integration. In some applications, it is easier to indirectly measure some desired characteristic (for example, position or velocity of an object) by measuring another quantity, and calculating the desired characteristic by computing derivatives or antiderivatives (in this example, acceleration).
We will show that there cannot exist a nontrivial invariant of a function , which is invariant under summation / integration, difference / differentiation, the persistence diagram replacement function . In particular, for any two functions , there exists a sequence of these three functions such that .
We start with the mathematically simpler case of discrete data. In discrete calculus, the analogs of differentiation and integration are differences and sums. Then, because any continuous function can be

Figure 16: The relationship between the persistence diagrams of a function and its sum or integral . The dashed lines represent the preimage of the non-injective function Dgm, as in Section 5.3.

Figure 17: An example discrete function , with its persistence diagram. The colored boxes represent the contribution of each point to the running total, which is calculated as in Figure 18.
formulated as an interpolation of discrete points, we will build the differential and integral cases from the discrete case.
Let , be a (uniformly sampled) discrete function, with a summation function
We will examine the effects of summation and differences simultaneously, by comparing f and F to functions which share persistence diagrams with them.
The principal difficulty of characterizing any relationship between and is the many-to-one (non-injective) characteristic of the Dgm function, and that its inverse is therefore one-to-many. Thus, naïvely writing
is not meaningful, as it is set-valued, not any specific function.
Generally, when working with non-injective functions and their inverses, it can be helpful to try to work with equivalence classes, which are sets that are built up from equivalence relations. Given a set A of elements (in this case, discrete 1-D signal functions like ), we define an equivalence relation on each pair of elements , such that the following axioms are satisfied:
-
Identity: ,
-
Symmetry: , and
This implies that f and g have the same sets of critical points, in addition to having identical parity between them.

Figure 18: is the running summation of the function f in Figure 17. The colored boxes represent the difference function between consecutive values, which traces out the function f.

Figure 19: The function was created such that (see Figure 17). As with , the boxes denote the running sum, shown in Figure 20.
- Transitivity: if and , then , .
From this equivalence relation, we can construct equivalence classes , which collectively partition the set , and for which, given , .
One obvious candidate for an equivalence relation would be to define the equivalence relation ~ such that discrete functions . In this case, we can label each equivalence class by the persistence diagram which all of its elements share.
For example, we consider an arbitrary function , as shown in Figure 17. The highlighted boxes show the contribution to the running sum , seen in Figure 18 with . The colored boxes in Figure 18 represent the difference function of , which is shown in Figure 17 as .
If we define , then we can identify as the class of functions for which . The next step is to see whether these equivalence classes are robust under summations or differences. That is, if , do we know whether, taking the summations and of and respectively, it follows that ? What about the differences?
As it turns out, the persistence diagram is preserved under neither sequence of operations. To show summation, we define a function such that , as seen in Figure 19. Inspection confirms that the persistence diagrams are identical between Figures 19 and 17.
Next, we wish to calculate by taking the running sum of the values in . We compute this running sum and inspect the persistence diagram, and see in Figure 20 that the persistence diagram is different from in Figure 18; note especially the difference in scaling in the former diagram.
A similar process can be performed for differences. We define function such that , as seen in Figure 21.

Figure 20: The function is the running sum of the function , as seen in Figure 19. Contrast the persistence diagram with in Figure 18.

Figure 21: Similarly, is a function created such that . The colored boxes trace out the function , created by taking the first difference of (see Figure 22).

Figure 22: The function is created as the difference of (see Figure 21), and the colored boxes of trace out . Contrast with , seen in Figure 17.
In Figure 21, we take the first difference between consecutive entries of , and compute . We compute the persistence diagram and compare to . Though some of the features are the same, such as the points at and , other points have moved, as seen in Figure 22. The persistence diagrams do not even have the same number of points.
The key takeaway from this exercise is that neither summation nor differences preserve the equivalence relation , as originally defined, viz. .
Still, this does not mean that these equivalence classes must correspond to individual persistence diagrams. The equivalence classes could, in principle, partition the set of persistence diagrams into a number of classes, with some defining characteristic which any function f shares with every function g which it can reach through a sequence of the above operations. If this defining characteristic were invariant under both the summation / difference operations, and the persistence diagram operations, then two functions for which these characteristics differed would never be able to be transformed into one another by any sequence of the above operations.
However, no such characteristic exists with more than one possible class (that is, which is non-trivial). We can show that no non-trivial equivalence relation is invariant under both Dgm() and either summation or differences. In particular, we will show that, for any two discrete signals , there exists a sequence of operations among , and which connects to , where the function takes on the value of an arbitrary function such that . If we can connect any two specific functions and by a sequence of these four functions, we know at the minimum that they are identified under any equivalence relation which would be invariant under these four operations. Since we will show this for all discrete functions, then we have shown that there are no non-trivial functions for which , and therefore that identifies every function in the same equivalence class, and is therefore a trivial equivalence relation.
6.3.1 Calculus Connection Theorem
Theorem 2 (Calculus Connection). Let and be two discrete functions, expressed as row vectors and , .
Then, there exists a sequence of operations of the following types, such that their composition .
- . The dimension of can be arbitrary, but the multiset equality must hold, as .
Proof. Let and be arbitrary functions, .
We note that each of these operations is invertible: , , and . Therefore, it suffices to find a function to which we connect both and to show that and are connected to each other.
First, suppose one (or both) of and are negative or zero. Then, we define
and
Next, suppose . Again, we replace with
and so .
We will define and . Because , it follows that as well, meaning that holds.
Because repeated iterations of on a function or is just a sum of sums, we can compute the th sum of as
where the sum of anything evaluates to zero if .
In particular, for an arbitrarily large , we know that is the first non-zero entry of , and the terms after that will be polynomial in , whose leading coefficient will be proportional to :
Therefore, since , we can choose a sufficiently large such that .
Let us take the maximum of such , defined for the functions and , respectively. Then, and are all positive for any which comes after the first nonzero entry of each. We denote and .
For the next step, we want to ensure that the sum of all entries of and are equal. Let denote the grand sum of : that is, the sum of every value at every in the domain of . Then, we compare and . We will add additional monotone points (that is, those which are not local extrema) to at least one of the functions , to bring their grand sums to be equal.
We suppose that , as otherwise we are done with this step. Let . We wish to add points to F and G such that the sum of the points added to G exceeds that of the points to F by precisely d.
Because , we know there is at least one index for which . Because , this means that there is at least one point for which either or .
We detour into number theory. Without loss of generality, we declare that . Let , , and (though any index would work for ).
Because , we know that and are relatively prime, since and . Thus, any integer greater than can be written as a non-negative linear combination of and ; that is, as , for . In particular, regardless of the value of , since , we know that, for a sufficiently large , that , and therefore such that .
With these numbers in mind, we can create
and
Because each function and is formed by simply inserting points into and (respectively) which respect monotonicity, and therefore do not create any additional local extrema, we know that and , by Theorem 1.
Finally, because by construction, the final point of and will be the same. Furthermore, because and are strictly nonnegative, and will be monotonically increasing, so
Thus, we can construct a chain
Figure 23: Because a chain of invertible operations connects and to a common function, eg. , we know that and are connected to each other.
of invertible operations which connects any and .
Corollary 2.1. Let and . Then, there exists a sequence of operations of the following types, such that their composition .
Proof. Let and be discrete functions with real-valued outputs. We define and , and thus and , identically to the proof for Theorem 2. and are calculated in the same way. We define , and identically to above, but because we are working with real numbers, and are not necessarily integers. However, because , we can choose a sufficiently large such that such that , for . We define , such that is located between and .
Then, we create
and
This is sufficient to show that , and the rest of the proof continues identically.
Corollary 2.2. Let there be continuous functions , with finitely many critical points on . Then, there exists a sequence of operations of the following types, such that their composition .
Proof. By Theorem 1, if has local extrema, and has local extrema, then we can construct discrete functions and such that is the th critical value of , and is the th critical value of . In particular, these discrete functions will have the same persistence diagram as the continuous functions from which they were created. Thus, the continuous case reduces to the equivalence shown in 2.1.
Future work can examine whether a meaningful invariant characteristic can exist among a restriction of the above operations; for example, by requiring that summations / integrations alternate with differences / derivatives, or by requiring summations / integrals to start at zero, rather than another constant. However, merely bounding from above the number of operations cannot serve as an invariant, because transitivity is required within every equivalence class created.
7 Conclusions and Further Directions
The equation of the total variation and the total persistence of a function gives us another way to view the pairing of points in the persistence diagram algorithm: We are divvying up the finite amount of total variation between pairs of local minima and local maxima, and we are searching for those pairs which are allotted a significant proportion of this fixed quantity; these pairs in turn correspond to the large-scale features in the signal, whereas other pairs with less persistence correspond to much less total variation in the signal, and are therefore much more likely to be noise, or otherwise negligible.
While not a novel realization, the generalization of this equivalence beyond Biswas' generic continuous functions implies that this relation is fundamental to persistence, and not merely an artifact of certain "niceness" assumed in the function or its domain.
This generalization extends even beyond the realm of continuous functions, to discrete signals, or time series. In the existing literature, papers tend to focus on one or the other of these settings. However, we have shown that many results and tools can be used in either setting with equal facility.
In this vein, we have further abstracted the process of computing the persistence diagram to the minimal information required to compute it; that is, the sequence of critical values. Additionally, any such sequences with the same relative orderings will have the persistence diagrams that pair the same ordinal critical values. Our work on signal transformations likewise unified the continuous and discrete settings.
Further directions of research in this field are numerous. For example, one could further interrogate Conjecture 1, which claims that any discrete time series with identical persistence diagrams can be connected by a sequence of persistence transpositions and possibly a reversal. While Section 5.2 calculated the permutations and only up to , further work could calculate the permutations for longer signals, or prove the existence or non-existence of a general form for larger . Finally, one could examine other signal transformations and their changes under persistence diagrams. Could it be that only affine transformations result in a consistent change in persistence diagrams?
8 References
References
[1] Krishna B. Athreya and S.N. Lahiri, editors. Measure Theory and Probability Theory. SpringerLink. Springer Science+Business Media, LLC, New York, NY, 2006. ISBN 9780387354347. Textbook for graduate students.
[2] Robin Belton and Georg Essl. Discrete level set persistence for finite discrete functions. Foundations of Data Science, 10(0):113–157, 2026. ISSN 2639-8001. doi: 10.3934/fods.2025022.
[3] Ranita Biswas, Sebastiano Cultrera di Montesano, Herbert Edelsbrunner, and Morteza Saghafian. Geometric characterization of the persistence of 1d maps. Journal of Applied and Computational Topology, 6 2023. ISSN 2367-1734. doi: 10.1007/s41468-023-00126-9.
[4] David Cohen-Steiner, Herbert Edelsbrunner, and John Harer. Stability of persistence diagrams. In Proceedings of the twenty-first annual symposium on Computational geometry, SoCG05, pages 263–271. ACM, 6 2005. doi: 10.1145/1064092.1064133.
[5] Luiz Carlos de Jesus, Francisco Fernández-Navarro, and Mariano Carbonero-Ruz. Enhancing financial time series forecasting through topological data analysis. Neural Computing and Applications, 37(9): 6527–6545, January 2025. ISSN 1433-3058. doi: 10.1007/s00521-024-10787-x.
[6] Mary-Lee Dequéant, Sebastian Ahnert, Herbert Edelsbrunner, Thomas M. A. Fink, Earl F. Glynn, Gaye Hattem, Andrzej Kudlicki, Yuriy Mileyko, Jason Morton, Arcady R. Mushegian, Lior Pachter, Maga Rowicka, Anne Shiu, Bernd Sturmfels, and Olivier Pourquié. Comparison of pattern detection methods in microarray time series of the segmentation clock. PLOS ONE, 3(8):1–9, 08 2008. doi:10.1371/journal.pone.0002856. URL https://doi.org/10.1371/journal.pone.0002856.
[7] Tamal Krishna Dey and Yusu Wang. Computational Topology for Data Analysis. Cambridge University Press, Cambridge, UK, 2022. ISBN 978-1-009-09698-9. doi: 10.1017/9781009099783.
[8] Walter Rudin. Real and Complex Analysis. McGraw-Hill international editions. McGraw-Hill, New York, NY [u.a.], 3 edition, 1987. ISBN 9780071002769. Literaturverz. S. 405 - 406.
A Lemmas
A.1 Negation Lemmas
Lemma 3. For a generic function , and critical values ,
•
•
•
Proof. First, as we are on the interval, , and .
In the discrete case, the statements for and are precisely Belton's [2, Theorem 3.14], and the proof for the continuous case is essentially the same:
Negation reverses the filtration order and swaps minima with maxima, so ordinary persistence of f becomes the relative persistence of -f. Substituting -f for f then yields the final equivalence.
Lemma 4. For any generic function ,
and
Proof. The first equality,
is apparent, and
follows from the equivalences established in Lemma 3:
A.2 Other Lemmas
Lemma 5. Let be a piecewise function with bounded variation. Then, is absolutely continuous.
Proof. Let . Because has bounded variation, we know that its limits
and
exist. Furthermore,
so by definition.
Therefore, there exists a such that , and thus
Thus, there exists such that
Because is piecewise , the Extreme Value Theorem tells us that is bounded on the compact interval . Let us define
Then, we can choose . Let be a collection of disjoint intervals within , such that the sum of the intervals' lengths
We will split the set of intervals in into those which are within and those outside of , splitting any intervals which straddle . Thus, we define
and
such that , and
First, we consider . We consider
Because the intervals in are disjoint, we continue
Furthermore, as K is chosen so that
it follows that integrating over that
Thus, since , we know
Lemma 6. Let be a piecewise function, and be an interval (possibly unbounded) within which there is no nontrivial subinterval such that is constant on .
Then the set of local extrema has a set of accumulation points for which is nowhere dense in .
Proof. Clearly, if C does not have any accumulation points, the statement is vacuously true. Thus, we assume A is nonempty.
Suppose, for sake of contradiction, that there was an interval over which is nowhere constant, such that . Because the set of points at which is discontinuous is finite, we can assume without loss of generality that this interval is fully .
For every point , there is an infinite sequence of critical points such that every is a critical point; that is, . However, because is continuous, because converges to as , then
Thus, for all . But then must be constant on , because if there were two points such that , then the Mean Value Theorem would imply the existence of a point such that , which contradicts the fact that .
But , so the fact that is constant on contradicts our assumption. Therefore, no such interval of accumulation points of local extrema can exist.
This implies that , the complement of A in , is dense in , because if it were not, that would imply the existence of an -neighborhood around some point within which there were no non-accumulation points, which we just showed is impossible.
To show that A is nowhere dense in I, we must prove that
Because A is the set of accumulation points of C, it must be a closed set in .
Therefore its complement is an open set in , meaning that around every point there exists a -ball contained within .
Thus, we consider . Because no interval contains just points in , there exists some point . As is an open set in , is an open set in , and so there exists some such that . Finally, because , it follows that , as desired.
37
□
Lemma 7. Let be defined on an open interval . If either and does not exist, then does not have bounded variation.
Proof. If one limit (WLOG ) did not exist, there exists a monotonic sequence for which each and . This is because, if there were no such sequence, then for every monotonic sequence in converging to , would be convergent to some limit ; if two sequences converged to different limits then a nonconvergent sequence could be made by interleaving them, and if all converged to some limit , then would exist and equal .
This means that , there are infinite subsequences and of such that every and every .
Because we and are (infinite) subsequences of , we can construct a final sequence such that is monotonically decreasing towards , and such that whenever is odd but whenever is even. Because is a subsequence of , we know that
Since, for small enough , , we have that the partial sum
is unbounded as , and therefore that the sum
is infinite.
However, as passes through every point in , we know that
and therefore that is unbounded, as desired.
B Generalizing Equivalence Domain
B.1 Formula Derivation Proof
Proposition 4. Let f be a generic continuous function with n critical points. Then, the total variation and total persistence are equal, and can be calculated to be
Proof. The calculation of total variation proceeds straightforwardly from
Recall Table 1 summarizes the contributions of each critical point to the total persistence of as follows: As we vary from to , every time we reach a local minimum, a new feature is born. Because [by assumption], local minima exist at and for every odd , since local minima and maxima alternate. Therefore, a feature is born in either or (in the case of ) whenever an odd-indexed critical value is reached.
| Sublevel: Superlevel: | Birth * | Death Birth | Birth Death | ifOdd ifEven | +Death -Birth |
| Total: | 1 | 2 | 2 | 1 | * |
Now, let us consider , the even-indexed local maxima. If a point is an interior point (that is, not a boundary point ), then as , two components in approach one another, and at , the younger component dies. Therefore, there is a death in at every interior even-indexed critical value .
Furthermore, when the global maximum is reached, an additional death occurs in . If the global maximum is at a boundary point, then this will be the only death at the critical value, but if the global maximum is at an interior point, then there will be two deaths which occur at the critical value: the second youngest point will die at this critical value, and a corresponding point will be created in , and the youngest point will die, creating a point in .
The same argument works in the other direction, when considering superlevel persistence and points in . A point is born in or (in the case of the global maximum) at every besides the local maximum; a point dies in at every interior . However, because the interval is not itself a loop, there is no point in during the superlevel persistence; this is why there is no point associated with the global maximum in the superlevel persistence. This balances out the “extra” death at the global maximum which occurs during the sublevel persistence.
From our definition, we have that the total persistence is
However, we know that every point in contains exactly one local minimum and one local maximum. Furthermore, the critical value of a local minimum is always less than the critical value of the local maximum with which it is paired, as a point must be born before it dies. Therefore every persistence contribution has the form .
We know that every interior point is associated with one point in the sublevel persistence, and every local interior point (that is, not a global extremum) is associated with one point in the superlevel persistence. We know that boundary point is associated with only one point in : either in sublevel persistence if the boundary point is a minimum or the global maximum, or in superlevel if it is a nonglobal maximum.
As all local maxima are added and all local minima subtracted, by commutativity we have that
As Biswas showed, for any continuous, generic function. We first wish to show that this identity still holds for continuous non-separating functions.
Recall that a continuous function is generic if are critical points have distinct values (and therefore there are no nonisolated critical points or horizontal segments). One appeal of this restriction is that it guarantees that the elder rule is always unambiguous, because there must always be an elder of two (or more) critical points.
When we get rid of this restriction, if we have a meeting between two components and , where , then there is no way to adjudicate which point survives the meeting. It is equally possible that dies and survives, or that survives and dies.
However, in a persistence diagram, components are not graphed by their -values, but by their -values. Since , the persistence diagram will graph two points in the column : one at the level at which and meet, and one at which that merged component dies (or at if it is the essential component). Thus, though the assignment of seniority to and is arbitrary, the persistence diagram produced is in any event identical.
When more than two critical points share a y-level, it can be helpful to think of there being created a (total) “ordering” for each shared y level, which determines which component survives a meeting between any two points.
Let denote a strict total ordering of the values y of each critical point of f, which is a refinement of the (not strict) ordering imposed on the critical values by the ordering of . We will show that the persistence diagram created for f is completely independent of any of these “persistence orderings” .
B.2 Non-Separating Functions
Lemma 8. Let be a continuous, non-separating function, with two critical points such that . Suppose the components born at these critical points and meet at a level . Then the persistence diagram does not depend on which component survives the meeting and continues past .
Proof. Since we know that and meet, we know that and must be the same type of extremum. Suppose first they are local minima. If is determined to survive past , then will have one point at , and one at , where is the point at which the merged component created from and dies.
Conversely, if is determined to survive past , then will have points at and . However, since , these are the same pairs of points. The column at will have points at levels and ; if , then these points will be coincident.
The argument repeats in much the same manner if and are instead local maxima. If , then there will only be a point at , as the number of loops created at will always be one less than the number of points there, so long as the function is defined on the interval , and not the circle .
Lemma 9. If a non-separating continuous function f has a horizontal segment on the interval at level l, the persistence diagram does not depend on which point c is chosen to represent a connected component born there. In other words, the persistence diagram does not depend on the persistence ordering of the points in .
Proof. First, suppose the horizontal segment is monotone: that is, neither nor is an endpoint of , and for sufficiently small . Then, in neither sublevel nor superlevel persistence does any point in the horizontal segment birth a new topological feature. Therefore, there can be no ambiguity in the persistence diagram, and the equality is trivial.
Next, suppose the horizontal segment is a minimum. That is, , if they exist. Then, one point in the interval will continue beyond . However, as the component born includes all of immediately from the point of its birth, regardless of choice of , the local maximum with which it pairs cannot vary with choice of .
Therefore, the interval will be represented in by one point at , regardless of the choice of c.
Finally, suppose the horizontal segment is a maximum. That is, , if they exist. Then none of these points contribute to , or indeed , but rather .
In the case that , our proof mirrors the minimum case exactly.
If , then exactly one point at this level must be chosen to survive to the end. This is similar to the essential component in sublevel persistence, except that it does not contribute any persistence, because superlevel persistence tracks 1-D loops, not connected components.
If our interval is the entirety of , then the entire interval will contribute no persistence. If the levelset has at least one other point , then the interval will contribute no persistence if and only if none of the other points in are chosen to be the “original component” which survives until the end. Otherwise, one point in will contribute persistence, where is the level at which the component born at the interval merges with the component born at which was decided to survive it.
Corollary 9.1. Let us define an equivalence relation on , the domain of . Let if is constant on .
Let be the function created by collapsing all flat intervals in to a single point. Then, .
Furthermore, follows from the fact that the variation of a horizontal segment is zero.
Lemma 10. Let a non-separating continuous function have finitely many critical points at a level . Suppose and are two persistence orderings of the critical points of , which differ only at . Then the persistence diagrams and generated by the respective orderings are the same.
Proof. This follows from Lemma 8 by induction. In particular, any two (finite) orderings are separated by a finite number of swaps, each of which preserve a unique by Lemma 8.
Theorem 3. A (not necessarily generic) continuous function with finitely many isolated critical points and horizontal segments, has a persistence diagram which does not depend on the persistence ordering of points at any level.
Proof. Let and be two persistence orderings of . We must show that the persistence diagrams and are the same.
First, we will compute , as shown in Corollary 9.1. This gives us that
and so it remains to show that
Because all horizontal segments have been collapsed to isolated critical points (or non-critical points), we know that has finitely many critical points. It follows that there are finitely many levels with multiple critical points, each of which has finitely many critical points.
Therefore, a finite number of applications of the procedure in Lemma 10 shows that , and recovers the uniqueness of .
Corollary 3.1. Let be a continuous function with finitely many critical points, which is not necessarily generic. Then the total variation , the total persistence, which can be computed as
Proof. First, as in the generic case, we will assume without loss of generality that . We know that because there are finitely many points, and therefore they are isolated.
As above, is monotonic between any two consecutively indexed critical points. Thus, our computation of variation is unchanged, and we find
To compute from , we refer to the earlier Table 1. Because the difference is computed
| Sublevel: | Birth | Death | Birth | ifOdd | +Death |
| Superlevel: | Birth | Death | ifEven | -Birth | |
| Total: | 1 | 2 | 2 | 1 |
identically, regardless of the pairings, we recover the same summation:
Thus,
Corollary 3.2. Let be a function with finitely many critical points and horizontal segments, which is not necessarily generic. Then the total variation and total persistence are equal and can be calculated as
Proof. Compute , as shown in Corollary 9.1. As and , we need only compute . However, has finitely many critical points, and so the equality follows from Theorem 3.
B.3 Discrete Functions
Theorem 4. Let be a discrete function, which maps from a finite set of natural numbers to the real numbers. Let a piecewise differentiable function be the linear interpolation of the points of : that is, ,
Then, and .
Proof. By definition,
As f is monotonic between critical points, of which the set of points in g is a superset, we know that
where is the sequence of consecutively distinct critical points: that is, the set of critical points which excludes any additional points in a constant interval, because the total variation within a constant interval is zero.
Furthermore, note that, on any interval over which is monotonic, for any ,
Therefore, as is indeed monotonic over every interval between critical points, we can take every point in , and add it to the sum
without changing the overall total. Eventually, we will arrive at
and as the sum is unchanged, we will have shown that
To show that , we claim that .
To show this, note that the persistence diagram depends only on the locations of local extrema. Interpolation does not create or destroy any isolated extrema, and any discrete horizontal segment just becomes a continuous horizontal segment, in both cases represented by an arbitrary point within the range, which in any event has an identical critical value, and so is displayed identically in the persistence diagram.
Because the discrete function g and its linear interpolation f have identical extrema (modulo the arbitrary choice given by horizontal segments), their persistence diagrams are identical, and their total persistence are thus equal.
Note that this is not restricted to a linear interpolation f of g, and would work equally for any interpolation of g which remained (strictly) monotonic between all critical points.
Corollary 4.1. Let be a finite discrete function. Then , which can be computed as
Proof. Apply Theorem 4 and then Corollary 3.2 to the resulting interpolation function.
B.4 Functions on the Circle
Lemma 11. Let be a continuous function (not necessarily generic) on the circle, with finite isolated critical points. Then, are simply
Proof. Suppose has distinct critical points (such that, when written out, ).
Recalling Section 4.3, we have that
twice the alternating sum of all critical points.
Furthermore, as there are no boundary points and no horizontal segments, every critical point is a local minimum or local maximum. Thus, every critical point is represented in any representation of as one birth and one death, with one point born at each of and being arbitrarily chosen to represent the essential class, which is now symmetric.
Therefore, is simply
the alternating sum of all critical points.
Corollary 11.1. Let us define an equivalence relation on . For a function , let if is constant on .
Let be the function created by collapsing all flat intervals in to a single point. Then, and .
Proof. Because all horizontal segments in are interior segments, this is a special case proven in Lemma 9, and a direct analog to Corollary 3.2.
Corollary 11.2. Let be a continuous function (not necessarily generic) on the circle, with finite isolated critical points and horizontal segments. Then, .
Proof. From f, construct as in Corollary 11.1. Then apply Lemma 11.
Theorem 5. Let be a discrete function (not necessarily generic) on the circle (that is, ), with finite isolated critical points and horizontal segments. Then, are computed as
Proof. Let us define a linear interpolation of the points in . The same argument in Theorem 4 demonstrates that and . Finally, Corollary 11.2 of Lemma 11 gives us that , completing the proof.
B.5 Non-Tame Functions
Theorem 6 (Section 4.6). If f is an absolutely continuous function defined on a compact interval, then , which can be computed as a weighted sum of critical values.
Proof. As before, we can assume WLOG that all local extrema of are isolated, by the process in Corollary 9.1, as (and thus ) and are unaffected by “shrinking” the horizontal sections.
Suppose that has finitely many local extrema. Then equality of and is proven in Section 4.2 if is an interval, or else in Section B if is defined on a circle.
Thus, we suppose next that f has infinitely many local extrema. We first consider the case when f defined on the interval,
First, as is absolutely continuous, [8, Thm. 7.20, p. 148], meaning
For any partition of f we have that
and so we know that
and therefore that f has bounded variation.
Furthermore, the absolute continuity of f means that an arbitrary
evaluates to
Because the total variation is bounded (12), we can take the sum
where is a finite partition of the domain.
Let us define as a partition of which contains an at every local extremum of within . Let us define as the partition , with chosen such that is minimized. For every , let us define define the partition
where
For every , let be a refinement of [that is, the set of points in the boundaries of the partition of is a proper subset of the boundary points of ]. Then, the total variation over ,
will be less than that over ,
by no more than the sum of the variation over all non-monotonic intervals, which for sufficiently high N includes only intervals with infinitely many critical points. However, because the sum (14) is convergent, the sum (13) will increase arbitrarily close to (14), meaning that , the supremum of the partial sums Q, is at least (14).
However, since is absolutely continuous and monotone on every in , by [8, Thm. 7.20, p. 148] we can rewrite each of the absolute differences as
and reorder the terms such that
Then, for all , all but finitely many monotonic intervals contribute less than to the total variation on ; that is, we can take a partition of intervals for which , which will always have a finite number of terms, and the sum
can be made arbitrarily close to
by choosing a sufficiently small . Thus, the supremum
of this set will be precisely
just as in the finite case.
Because is monotonic between local extrema, we can partition this sum into segments between each critical point :
which we know is a convergent sum because of bounded variation. As before, we know that each local maximum is greater than the adjacent local minima, so the local maximal values are added each time they show up, and the local minimal values are subtracted. Recalling the derivations before, we note that the boundary points appear once and all interior points appear twice, and so letting and , we have that the total variation is
More succinctly, if we define
and as the set of interior (nondegenerate) critical points, then
consistent with the formula in 4.2.
Similarly, even in the infinite case the pairing of critical points continues as shown in Table 1:
| Sublevel: | Birth | Death | Birth | ifOdd | +Death |
| Superlevel: | Birth | Death | ifEven | -Birth | |
| Total: |
As before, boundary points appear once and interior points appear twice, every absolute value taken is the difference between a local maximum and a local minimum, the local maximum always has the greater value and is therefore added against the subtracted local minimum, and we evaluate the convergent infinite sum to arrive at
and so , as desired.
When is defined on the circle, there are no boundary points and , and the same pairing of (interior) critical points as for the interval case yields
where the local minimum is treated analogously to the local maximum, just as in Section 4.3. Therefore, if we let
we can express the total persistence and total variation of as
□
Though sufficient, absolute continuity is not necessary for total persistence to equal total variation; for example, the Cantor function [1, 4.5.3, p. 136] is not absolutely continuous, yet has total variation and total persistence of 1.
B.6 Open and Unbounded Domains
Proposition 5. Let be a bounded absolutely continuous function defined on the open interval , such that and exist. Then, define , the limit of the persistence diagrams of the closed intervals contained in the domain of , . Then, and , where the continuous extension of is defined as
Proof. First, as f is absolutely continuous,
as they differ only by the integral of two constants, which is zero. As F is an absolutely continuous function on a compact interval, Theorem 6 characterizes as
which is therefore and thus also .
It remains to show that . For sufficiently small , let us define . By construction, agrees with on .
Let us define as an extension of to :
As and , we have that
which goes to zero as by continuity.
Cohen-Steiner et al. [4] gives us the stability condition of persistence diagrams. That is, sufficiently close functions will have arbitrarily close persistence diagrams. Symbolically, we get
where the bottleneck distance
represents the maximum distance between a matched pair of points in the optimal pairing of points in the two persistence diagrams. That this distance goes to zero as goes to zero means that the persistence diagrams of and converge; that is, as . Therefore, as was defined as the persistence diagram of as , it remains to show that .
However, is an extension of by a constant line (on each side). As discussed in Corollary 9.1, a horizontal segment is invisible to persistence, and so , and .
Proposition 6. Let be a piecewise (continuously differentiable) function on with bounded variation. Then we can compute a sequence of functions
such that
and
Proof. First, the absolute continuity of follows from its bounded variation and the fact that it is piecewise ; for the proof of this, see Lemma 5.
For every , we can construct a piecewise continuous function such that
By an analogous argument to Lemma 9, just with a function defined on rather than , we can invoke Corollary 9.1 to create a piecewise continuous function , such that .
Although both total variation and persistence diagrams can be computed on piecewise (absolutely) continuous functions, we can also monotonically perturb to make it absolutely continuous.
First, we distinguish between two types of asymptotes of such functions . For each limit (for example, at ), we call the asymptote of (positive) oscillatory if it crosses the asymptote () infinitely many times; that is, if for any threshold , there exists some such that . Conversely, we call the asymptote (positive) non-oscillatory if there exists such that , . The same characterizations apply analogously for the asymptote at negative . Clearly, if , each asymptote is either oscillatory or non-oscillatory.
In particular, is either negative oscillatory or negative non-oscillatory. If is negative oscillatory, then by continuity we can choose a sufficiently small such that and
for an arbitrarily small . Conversely, if is negative non-oscillatory, then we choose a sufficiently small such that
-
-
M is not an accumulation point of local extrema, and
-
.
First, by the definition of a limit there exist infinitely many points that fulfill the first criterion, including all points on the interval for some sufficiently small . Because the set of accumulation points of local extrema is nowhere dense wherever is non-constant , it is easy to find a point which fulfills the second criterion.
Finally, given a point which fulfills the first two criteria, we can find a point that fulfills the third by applying the Intermediate Value Theorem to on for some . Because , the first criterion is also fulfilled for . If is an accumulation point of local extrema, we can choose instead any point within the -ball centered around . For small enough , the first and third criteria are preserved from (as is assumed continuous for sufficiently small ), and there will exist many choices of which are not accumulation points of local extrema, per Lemma 6.
See Lemma 6.
We choose N with the same (or symmetric) criteria, depending on whether f is positive oscillatory or positive non-oscillatory.
If (or equivalently, ) is oscillatory, we do not need to do anything. If is non-oscillatory, we choose some sufficiently small that , . We make a similar choice of if is positive non-oscillatory, and we define
Because (and thus ) is monotonic on and by construction, is a monotonic perturbation of which neither creates nor destroys critical points (as it is a linear interpolation), and therefore does not change either [using the supremum formulation if is not continuous] or .
Finally, because is constant on and again on , we replicate the arguments of Lemma 9 and Corollary 9.1, but applied to the setting where the domain of is . We define a function as in that example, and argue that and . Tracing back the chain of equivalences, we get that
and that can likewise be calculated from , an absolutely continuous function on a compact interval.
It remains to equate the total variation and persistence diagrams of with those of f. First, because f has bounded variation, we know that
meaning that
and thus that
Because
we get that
as and .
Similarly, by the definition of a limit, we get that
as and . Thus, by the stability condition of Cohen-Steiner et al. [4], as
the maximum distance between the persistence diagrams goes to zero, by the Squeeze Theorem, as and .
Because the difference between the total variations of f and , and the difference between the persistence diagrams of f and , vanish as M and N go to their respective infinities, we can write
and
which is a function of the ordering of all of the (possibly infinite) critical points of f over .
Corollary 6.1. Let be a piecewise function defined on a real half-line (ray); that is, either or , for some .
Then we can compute a sequence of functions
or
such that
and
Proof. We repeat the same proof as for Proposition 6, with focus only on the respective positive or negative asymptote.
Theorem 7. If f is an absolutely continuous 1-D signal on a bounded domain, or a piecewise 1-D signal with bounded variation on an unbounded domain, then , and can be expressed as
Proof. We know that the limits and both exist, by the contrapositive of Lemma 7, and so we can meaningfully calculate for the open interval , as per Lemma 5, by substituting , where the boundary points are defined as the respective one-sided limits. After this substitution, we can assume WLOG that is not defined on a bounded open interval, but on the closed interval, a circle, or an unbounded domain.
The unbounded real line case is the conclusion of 6, and closed rays are 6.1. For open rays, we know that the limit point exists on the side of the finite boundary (by Lemma 7, where BV is known by assumption), and so the finite open boundary is equated to the corresponding closed ray defined over the open ray's closure in the exact fashion of Proposition 5.
Finally, this equation is known for the compact domain (interval or circle) by Theorem 6.
C Persistence Diagram Computed Examples
In Section 5.2, we express the persistence diagram of any discrete function by pairing its critical values together. In particular, we show that, for all discrete functions with a particular critical points, there are permutations and on elements such that and are given by the formulas in Equations (8) - (11).
Recalling the values
and
and the sets
•
•
• , and
•
as the restrictions of and to interior and nonglobal critical points, respectively, the following equations compute the persistence diagrams of , depending on permutations and :
If the first critical point of h is a local minimum, then we have
and
Conversely, if the first critical point of h is a local maximum, then the formulas are reversed, because of the duality of Ord and Rel, giving us
and
These formulas hold for all functions with critical points, where the first critical point is a local minimum or local maximum respectively. For the following computations, we will combine the maps and into one function , as defined above. That is, for an image of a signal described by a continuous function (or equivalently, a discrete function ), we wish to compute
or equivalently, letting ,
such that
That is,
• When , .
• When , and .
• When , . If is a local minimum, then and . If is a local maximum, then and .
– Because each set has one element, both are the identity map.
n=5 If is a local minimum, we have that has only one element, and is therefore trivial. However, is not, and can take one of two values, the identity or the nonidentity .
In particular, we can show
The latter two conditions reflect that, when , one will always have that and . The latter part of the former conditions reflect that when is a local maximum, and .
If is a local maximum, then
n=6 Suppose first that is a local minimum. Then, A is the set of local minima, and B is the set of local maxima. Then,
and
When is a local maximum, we can simply reindex the coordinates by , creating a new function with an identical persistence diagram, but a first local minimum. The new and are computed accordingly.
Flowcharts summarizing the calculation of persistence diagrams in the n = 5 and n = 6 cases are shown in Appendix E.2.
When , at least one of the s will have at least possible values, so the complexity grows on the order of , and quickly becomes too large to concisely enumerate.
This is a permutation, not a matrix. Thus e maps and each to themselves, and d maps them to each other.
D Diagonal Affine Transformation Cases
This section gives the full proof of the Diagonal Affine Transformation Theorem, from Section 6.1.
Theorem 8 (Diagonal Affine Transformation Theorem). The effect of affine transformations upon total persistence, total variation, and the persistence diagram of a function f on the interval can be summarized as follows:
-
Total variation, total persistence, and persistence diagrams are invariant under horizontal shifts, horizontal scaling, and horizontal reflection.
-
Total variation and total persistence are invariant under vertical shifts, while the persistence diagram will be shifted diagonally.
-
Vertical scaling will scale the persistence diagram, the total variation, and the total persistence, by the (positive) scaling constant.
-
Total persistence and total variation are invariant under vertical reflection. Furthermore, each point in Ord and Rel is reflected through the origin, while the point in Ess is reflected across the anti-diagonal line.
Let be a continuous function with finitely many isolated critical points, on the set . Remembering that equality of Dgm implies equality of tPer, we will address each of these cases in turn:
Proposition 8.1. Total variation, total persistence, and persistence diagrams are invariant under a horizontal shift.
Proof. Let us define , for some constant . , so
From the definition of , we know that the th critical point of , . Thus, since the ordering and value of critical points are unchanged, we have that , which means
and therefore that .
Proposition 8.2. Total variation, total persistence, and the persistence diagram are invariant under positive horizontal scaling.
Proof. Let , for some . Then , and so we can take
Next, let us substitute , meaning . This gives us
Because horizontal scaling does not change the order, we know that the ith critical point of h is
the scaled ith critical point of f. As , we know that
and thus, by Theorem 1, that .
Corollary 8.2.1. Total variation, total persistence, and the persistence diagram are invariant under partial positive horizontal scaling.
Proof. A partial horizontal scaling is defined as a horizontal scaling that affects only a sub-interval of the domain.
Given constants , consider functions . Because , is precisely the case of Proposition 8.2, we assume WLOG that ; if this is not the case, we can reflect our signal by Proposition 8.3.
We will scale the interval by a factor . Because both quantities and the persistence diagram are invariant under a horizontal shift, per Proposition 8.1, we can assume without loss of generality that the left endpoint is held constant.
Thus, we define as
By the chain rule, we compute
and so
Substituting , and therefore , we get
Because , the ordering of critical points is unchanged. As the critical values are also unchanged, the sequence of critical values of and are the same, and the equivalence of and , and thus also of , follow from Theorem 1.
Proposition 8.3. Total variation, total persistence, and the persistence diagram are invariant under horizontal reflection.
Proof. Because any horizontal reflection can be decomposed into a horizontal reflection about the y-axis and a horizontal translation, we will suppose, without loss of generality, that .
Using the substitution , we evaluate
Furthermore, as the order of critical points is reversed, we have that
so Corollary 1.1 gives us that
the equality of the persistence diagrams follows then from the fact that f and h have the same set of critical values.
Proposition 8.4. Total variation and total persistence are invariant under a vertical shift, and the persistence diagram is translated diagonally.
Proof. Let us define , for some constant . First, we can directly evaluate total variation to get that
as . Furthermore, as c is a constant added to f, neither the position nor the relative ordering of critical points are changed. Thus, , and thus , and
is trivial. By Theorem 1,
meaning
and so Dgm(h) is a diagonal translation of Dgm(f) by c in each direction, as both birth and death times are translated by c. As Dgm is merely translated,
Proposition 8.5. Vertical scaling will scale the persistence diagram, the total variation, and the total persistence by the (positive) scaling constant.
Proof. Let , for some constant . As , we find
As c > 0, the ordering is preserved, and so the implication (4) holds. Therefore, Theorem 1 provides that
By the definition of , we get that each , and so
meaning Dgm(h) is equal to Dgm(f) scaled by c. Finally,
Proposition 8.6. Total persistence and total variation are invariant under vertical reflection. Points in the ordinary and relative persistence diagrams are reflected through the origin, while the essential point is mapped instead to .
Proof. Because any vertical reflection can be decomposed into a vertical reflection about the x-axis and a vertical translation, we will consider . Because ,
is apparent. The persistence diagram changes according to Lemma 3 in Appendix A.1. Thus,
Proposition 8.7. Let have finitely many isolated critical points. Next, let be defined by
Then, and .
Proof. First, we undergo a horizontal scaling by , for which we repeat the proof for Proposition 8.2. Then, because is isomorphic to , the persistence diagram and total variation will be the same between identical functions on those domains, as no critical points are created or destroyed, and no critical values are changed.
Corollary 8.7.1. If is a rotation, horizontal or vertical reflection, vertical shift, or vertical scaling of , then the total variation, total persistence, and persistence diagrams of and will vary in accordance with the analogous transformation in Theorem 8.
Proof. We define h analogously to f, then compare f and h via Theorem 8.
Proposition 8.8. Let g be a discrete function, and G be the (discrete) function g under an affine transformation. Then, the persistence diagrams of g and G will be related as per Theorem 8.
Proof. In Section 4.5, we show that the persistence diagram of any function is the same as that of its linear (or otherwise monotonic-respecting) interpolation. Let and be such interpolations of and , respectively. Then, Theorem 8 relates the persistence diagrams of and , and thus also of and .
E Direct Computation
As discussed in the introduction, qualitative changes to the sublevel and superlevel sets only occur at critical levels, specifically the levels of local extrema. Therefore, two functions with the same sequence of extrema will have the same persistence diagram, and therefore the persistence diagram is invariant to changes between critical values which respect monotonicity (so as to not create or change any extrema), as seen in Figure 24.
A consequence of this is that the persistence diagram is completely determined by the sequence of local extrema, and so a logical endeavor is to try to find a closed formula for the persistence diagram of a function with a certain sequence of critical values.
E.1 PD Preimage Illustrations
We show example preimages, with the connecting persistence transpositions shown. A dotted line and denotes a swap which is not a persistence transposition. The black and blue colors denote functions which are reversals of one another.
The preimage of Dgm = , with connections shown:

Figure 24: The functions in purple and green share the same sequence of local extrema, and so their persistence diagrams are identical.

The preimage of Dgm = {(1, 8), (2, 7), (3, 6), (4, 5), (5, 4), (6, 3), (7, 2), (8, 1)}, with connections shown:

E.2 Computed PD Flowcharts
Let be a generic function on the interval with five local extrema, at , with local extrema at levels . Then, the persistence diagram can be computed as follows:

Conversely, let be a generic function on the interval with six local extrema, at , at levels . With and denoting the global minimum and maximum, respectively, we label the other (nonglobal) minima as , and the other maxima y^_< < y^>. Referring to Table 2 for specific Ord and Rel values, the persistence diagram can be computed with the following flowchart, split among the following two figures:

Second half:

| Number | Dgm() Contribution | Number | Dgm() Contribution |
|---|---|---|---|
| ① | ⑤ | ||
| ② | ⑥ | ||
| ③ | ⑦ | ||
| ④ | ⑧ |
Table 2: P6 Flowchart Legend. Note that and are the interior local minima, and and are the interior local maxima.