WorksMathematics
Algorithms and topological invariants for dynamic systems. IV. Topological Equivalence of Functions and Hamiltonian Dynamical Systems
Abstract
This is the fourth part of a series on algorithms and topological invariants for dynamical systems. We study the topological equivalence of smooth functions and of Hamiltonian flows on surfaces, and the discrete invariants, Reeb graphs and cell decompositions, that classify them. We recall the notions of topological equivalence and structural stability, introduce two equivalences of functions (with and without the order of the critical values) and show that simple Morse functions on closed orientable surfaces are classified by their Reeb graphs with vertex odering, while simple Hamiltonian flows are classified by Reeb graphs with marked edges. For the disc and for the sphere we obtain a recursive description and a generating function for the numbers of such trees, and compute the numbers of topologically non-equivalent simple Morse functions and Hamiltonian flows with a given number of saddles. We also describe functions with isolated, possibly degenerate, critical points by cell decompositions, and give an algorithm and computational results for functions with three critical points. In the first part (arXiv:2501.15657) we discussed the basic concepts of differential topology. In the second part (arXiv:2502.00506) we discussed the discrete topological structures used in the topological theory of dynamical systems. In the third part (arXiv:2502.09958) we constructed algorithms that recognize - and -manifolds in simplicial complexes and regular CW-complexes and determine the topological type of a -manifold (connectivity, orientability, genus, number of boundary components).
Introduction
Functions and vector fields on manifolds are studied up to topological equivalence by means of invariants of a discrete nature, i.e. objects that can be described by a finite set of integers. For a Morse function on a surface such an invariant is the Reeb graph, the space of connected components of the level sets; for a Hamiltonian flow with one degree of freedom it is the same graph, since the trajectories lie in the level sets of the Hamiltonian. Discrete invariants are useful if there are efficient algorithms to construct, compare and enumerate them, and the enumeration of all possible structures of a given complexity, for example of all topological types of functions with a given number of critical points, is itself a natural problem. Questions of this kind, in particular the number of topologically different Morse functions on a surface with a given number of critical points, were raised by V. I. Arnold and are the main subject of this part.
The classification of simple Morse functions on surfaces by Reeb graphs goes back to Kronrod and Reeb [17]; [72]; for further results, in particular for Hamiltonian systems with one degree of freedom (atoms and molecules) see the works of Fomenko, Sharko and their co-authors.
The first part Prishlyak (2025a) discusses the main structures used in the topology of manifolds: vector fields, dynamical systems, Morse functions, cell decompositions and the fundamental group. The second part Prishlyak (2025b) examines discrete structures that a computer can use for specification and manipulation. The third part Prishlyak (2025c) contains algorithms that determine the topological properties of simplicial complexes and regular cell complexes: connectivity, local planarity, orientability, the Euler characteristic, the genus and the topological type of a surface. These algorithms are used here to specify and recognize the cell decompositions associated with functions. Programs that enumerate and visualize the corresponding structures are available as open software Prishlyak and Ovtsynov [46]; Prishlyak [42].
We use two equivalence relations for functions. The first, (strong) equivalence, is the classical one: , where is a homeomorphism of the manifold and is an increasing homeomorphism of the line, so it keeps track of the order of all critical values. The second, level equivalence, only requires a homeomorphism that maps the components of the level sets of one function onto the components of the level sets of the other and preserves the direction of increase; it ignores the relative order of critical values on different branches. Level equivalence is the one that matches the topological equivalence of Hamiltonian flows, whose oriented trajectories are the (components of) level sets. For simple Morse functions on closed orientable surfaces the first equivalence is classified by Reeb graphs with the order of vertices, the second by oriented Reeb graphs, and the equivalence of flows (where the orientation of the surface may also change) by oriented Reeb graphs up to reversal of all orientations. For Reeb graphs that are trees, which is the case for the sphere and the disc, the last classification can be given in a particularly simple form, by trees with a marked edge at every vertex of degree three.
Structure of the paper. In § 2 we recall the topological equivalence of dynamical systems and diffeomorphisms, structural stability and the Kupka–Smale theorem, and give a survey of the classifications of Morse–Smale systems. § 3 is devoted to the equivalence of functions: stability, the local classification near non-degenerate critical points, the homotopy classification of Morse functions on surfaces, and a complete classification, up to equivalence, of functions on the circle and on the line with three or four extrema. In § 4 we define the Reeb graph and prove its basic properties for simple Morse functions, state the classification and realization theorems, introduce the level equivalence, and in Subsection 3.3 relate simple Morse functions to Hamiltonian flows and describe the encoding of the flows by marked trees.
§ 5 deals with Morse functions and flows on the 2-disc, where the Reeb graphs are rooted trees; we obtain a recurrence for the number of rooted Reeb trees with saddles and compute the numbers of functions and flows. In § 6 we count the Reeb graphs that are trees on the sphere: using Otter’s dissimilarity formula we express the generating function of the numbers of simple Morse functions through and obtain the numbers of Hamiltonian flows by Burnside’s lemma, with an algorithm for computing them.
In § 7 we consider functions with isolated critical points, the degenerate ones included. The topological structure of such a function is given by a cell decomposition of the surface whose 1-skeleton is formed by the critical levels. In Subsection 6.3 we treat the case of three critical points: a minimum, a maximum and a critical point whose level set is a bouquet of circles. These functions correspond to decompositions of a closed surface into two -gons glued along a bouquet of circles, which are described by signed permutations; we present an algorithm, a program that checks local planarity at the vertex and determines the classes with respect to the dihedral group acting on the numbering of the circles, and the resulting numbers of topologically non-equivalent functions on orientable and non-orientable surfaces. The last section contains the conclusions.
Topological Equivalence of Dynamical Systems
Throughout, is a closed (compact, without boundary) smooth manifold and . We denote by the space of vector fields on with the topology, and by the space of diffeomorphisms with the topology. Since is compact, every generates a flow , . The trajectory (orbit) of is the set , oriented by the direction of increasing time.
Definition 1. Two vector fields are called topologically (-smoothly, ) equivalent if there exists a homeomorphism (-diffeomorphism) that maps the trajectories of onto the trajectories of and preserves their orientation.
:::`
The map is not required to respect the time parametrization of the trajectories; if, in addition, for all , then is a topological conjugacy of the flows, which is a much stronger relation (for instance, it preserves the periods of closed trajectories). Topological equivalence is an equivalence relation: the inverse of and a composition of two equivalences are again equivalences.
Remark 1. Definition 1 can be modified, and which version is meant must be stated in every classification problem. One may additionally require that preserves the orientation of (when is oriented), or one may allow to map the oriented trajectories of either onto those of with the orientation preserved, or onto those of with the orientation of all trajectories reversed. The latter relation means that is equivalent to or to in the sense of Definition 1, and the corresponding classification is coarser in general.
Theorem 1. Palis and de Melo [26] Let be a topological equivalence between the fields . Then
is a singular point of if and only if is a singular point of ;
the trajectory is closed if and only if the trajectory is closed;
maps the -limit (-limit) set of the trajectory onto the -limit (-limit) set of the trajectory .
Definition 2. A vector field is called structurally stable (also robust; in the Russian literature, rough) if there exists a neighbourhood of in such that every is topologically equivalent to .
Remark 2. The notion of a rough system goes back to Andronov and Pontryagin, whose original definition additionally requires the equivalence to be close to the identity map when is close to . We use the definition above, in the form of Peixoto and Smale. The two notions are not always the same, and we shall say explicitly which one is used.
Definition 3. Two diffeomorphisms are called topologically conjugate if there exists a homeomorphism such that
It follows that for all , so maps the trajectories of onto the trajectories of , and a periodic point of onto a periodic point of of the same period. Moreover
where () is the set of limit points of the sequence as ().
Definition 4. A diffeomorphism is called structurally stable (also robust) if there exists a neighbourhood of in such that every is topologically conjugate to .
Recall that a subset of a topological space is residual if it contains a countable intersection of open dense sets. The critical elements of a vector field are its singular points and closed trajectories; for a diffeomorphism these are its periodic points. A singular point is hyperbolic if the linearization of the field at it has no eigenvalues of modulus 1, and a periodic point of period of a diffeomorphism is hyperbolic if at it has no eigenvalues of modulus 1.
Theorem 2 (Kupka–Smale). Palis and de Melo [26] Let be the set of vector fields (diffeomorphisms) that satisfy the following conditions:
all critical elements are hyperbolic;
the stable and unstable manifolds of the critical elements intersect transversally.
Then is residual in (respectively, in ).
Remark 3. The systems of Morse–Smale type, which are defined in the following chapters, are structurally stable. On closed orientable surfaces the converse holds (Peixoto): structurally stable vector fields are exactly the Morse–Smale fields, and they form an open and dense subset of . Structurally stable diffeomorphisms of the circle are also exactly the Morse–Smale diffeomorphisms, and they form an open dense subset of . In higher dimensions the situation is different: there are structurally stable systems that are not of Morse–Smale type (e.g. Anosov systems), and structurally stable systems are in general not dense in the space of all systems; see Palis and de Melo [26].
Historical remarks on topological classification
A complete topological invariant of a class of dynamical systems is a set of quantities (or algebraic objects) that coincide (are isomorphic) for topologically equivalent systems of the class and differ (are not isomorphic) for non-equivalent ones. By a topological classification of the class we mean the construction of a complete topological invariant, such that equivalence (isomorphism) of invariants can be checked effectively, together with a description of all values the invariant can take.
The topological classification of Morse–Smale vector fields on surfaces was first obtained for the sphere by E. A. Leontovich and A. G. Mayer, and for arbitrary closed surfaces by M. Peixoto [27], using graphs with marked cycles. A. G. Mayer and V. V. Sharko used Lyapunov functions for classification, H. Wong used -algebras, and G. Fleitas and E. Gyrik applied circles with marked points. Morse–Smale diffeomorphisms of closed surfaces were classified by I. Vlasenko and, independently, by S. Bonatti and R. Langevin.
On three-dimensional manifolds, G. Fleitas studied Morse–Smale systems without closed trajectories, and Ya. L. Umanskii and O. O. Prishlyak studied those with a finite number of heteroclinic trajectories between two-dimensional invariant manifolds. For Morse–Smale vector fields without singular points on , M. Wada classified all links that can be the sets of closed orbits of such fields. Similar questions for Smale systems (which, unlike Morse–Smale systems, have infinitely many critical elements) were considered by J. Franks, M. Sullivan and others.
Equivalence of Functions
Topological equivalence
Let be a smooth manifold of dimension and let be smooth functions.
Definition 5. The functions and are called topologically (-smoothly) equivalent if there exist homeomorphisms (-diffeomorphisms) and such that
They are called strongly equivalent if, in addition, preserves the orientation of the line, i.e. is increasing.
Both relations are equivalence relations. A homeomorphism of is monotone, so in the strong equivalence preserves the order of the values of the functions, while in the equivalence it either preserves or reverses it; in particular, and are always equivalent (take , ), but in general not strongly equivalent.
Remark 4. If is oriented, one can also require that preserves its orientation. Then there are several relations, according to whether and preserve or reverse the orientations of and of . Which of them is used is stated in every classification problem; the choice corresponds to the choice between the two kinds of equivalence of Hamiltonian flows considered in the next chapters. The term “conjugacy” is not used for functions, since it is reserved for the relation with the same on both sides (Definition 3).
Definition 6. Let be closed. A function is called topologically () stable if there exists a neighbourhood of in the space such that every is topologically (respectively, ) equivalent to .
Stability is closely related to the behaviour of the critical values, because is a homeomorphism of the whole line: it maps the critical values of to those of bijectively and preserves their coincidences. Consequently, a Morse function with two critical points on one level is not stable, since an arbitrarily small perturbation separates their values. In contrast, Morse functions whose critical values are pairwise distinct (simple Morse functions) are topologically stable in , .
Analogously to dynamical systems, the topological classification of a class of functions is the construction of a complete topological invariant, together with a description of all values it can take.
Local structure
Near a regular point every function is equivalent to a coordinate function (the implicit function theorem), so all germs of functions at regular points are equivalent, also in the sense.
Let be a non-degenerate critical point of of index . By the Morse lemma there is a local chart in which
It follows that two germs of functions at non-degenerate critical points and , of indices and , are locally equivalent (that is, for local homeomorphisms near and ) if and only if
in the case of strong equivalence ( increasing);
or in the case of equivalence ( of any orientation).
Sufficiency follows from the Morse lemma, since has index at the same point. Necessity holds because the index is determined by the local homology of the pair of sublevel sets, which is a topological invariant. On a surface () there are three types of non-degenerate critical points: a minimum (), a saddle () and a maximum (). Under strong equivalence they are pairwise non-equivalent; under equivalence a minimum and a maximum become equivalent, while a saddle remains a saddle.
For Morse functions the homeomorphisms in a neighbourhood of a critical point can be taken smooth, since the change of coordinates in the Morse lemma is smooth. In general this is not so, and there are many works in singularity theory on the possibility of reducing a function near a degenerate critical point to a polynomial by a smooth change of coordinates.
Global classification of functions on surfaces
The classification of functions on the sphere by trees goes back to G. Reeb and A. S. Kronrod. The global topological classification of Morse functions on surfaces was obtained by V. V. Sharko. A. T. Fomenko introduced atoms and molecules for the global classification of Morse functions on surfaces.
Homotopy of functions
Let be a closed manifold and . The space with the topology is a Fréchet space Sharko [73] (for finite the space is a Banach space). We denote by Morse the subspace of Morse functions. It is open in and locally path-connected, so its connected components coincide with its path components.
Definition 7. Two Morse functions are called Morse-homotopic if they belong to the same path component of Morse, i.e. if one of them can be deformed into the other continuously inside Morse.
(Ordinary homotopy would be a trivial notion here, since any two functions are homotopic.)
Let be a closed smooth surface. Denote by Morse the subspace of Morse consisting of the functions with minima and maxima.
S. V. Matveev and V. V. Sharko, independently and by different methods, proved that the sets Morse are the connected components of Morse, thereby obtaining a homotopy classification of Morse functions on surfaces. S. Maksymenko generalized these results to Morse maps of a surface to the circle: two such maps lie in the same component if and only if they are homotopic and have the same number of critical points of each index.
Example: functions on the circle and on the line
We classify, up the equivalences of Definition 5, smooth functions with three and four critical points on the circle and on the line . The critical points are not assumed to be non-degenerate, but we assume that there are finitely many of them. On the line we consider proper functions, i.e. as (functions with finite limits at infinity are discussed at the end).
Reduction to extrema. Let be a critical point of . Between two consecutive critical points a continuous function without local extrema is strictly monotone, so is strictly monotone on each arc between consecutive local extrema. If is not a local extremum (e.g. near ), then is a homeomorphism onto an interval near , and is invisible to topological equivalence. Hence the topological class of is determined by its local extrema only:
Proposition 1. Let or and let have finitely many critical points (and be proper if ). Write for the local extrema of in the order along , and for those of . Then and are strongly equivalent if and only if and, for a suitable homeomorphism of , the extrema and () have the same type (maximum or minimum) and the values are in the same order relation, with the same coincidences, as the values . and are equivalent if this holds for and or for and .
Proof. A homeomorphism preserves local extrema; if is increasing, it preserves their type, and if it is decreasing, it interchanges maxima and minima. Since is monotone, the order of the extremal values and their coincidences are preserved (reversed if is decreasing). Conversely, given the stated data, choose an increasing piecewise linear homeomorphism of that maps the extremal values of to those of and let be, on each arc between consecutive extrema, the map , where and are strictly monotone on the arc; on an unbounded arc this is again a homeomorphism onto the corresponding arc of , since and are proper. These maps agree at the extrema and define a homeomorphism of with . The case of and is reduced to this one.
The circle. Maxima and minima alternate along , so the number of local extrema is even, and a function with exactly three critical points has two extrema and one critical point which is not an extremum; by Proposition 1 it is equivalent to . This is the only class with two extrema, and the class with two extrema is also the only class of functions with four critical points two of which are not extrema.
Let have four local extrema, two maxima and two minima in the cyclic order . Between consecutive extrema is monotone, so each maximum value is larger than each minimum value, and the only free relations are those between and and between and . The rotation by two positions and the two reflections of the cyclic order that preserve the types of the extrema allow us to interchange and and, independently, and . Therefore a function with four extrema is determined up to strong equivalence by two yes/no data: whether and whether . We get four classes, represented by (both equalities hold), by (the maxima differ, the minima coincide), by (the minima differ, the maxima coincide), and by a generic small perturbation of (neither equality holds), where is small. Under equivalence the function interchanges the roles of maxima and minima, so the classes with exactly one equality coincide, and there are three classes.
The line. Let be proper. The extrema alternate, and the behaviour at infinity is determined by the type of the first and the last extremum. Reflecting , we may normalize the first extremum.
Three extrema. The sequence of types is ( at both ends) or ( at both ends). In each case the only free relation is between the two extrema of the same type: whether their values coincide (the two cases and are interchanged by the reflection). Hence there are classes of strong equivalence, and two classes of equivalence ( interchanges the two sequences of types). A function with three critical points has either three extrema (these classes) or one extremum and two critical points that are not extrema; the latter gives the two classes of , which coincide under equivalence.
Four extrema. The sequence of types is or , and the reflection interchanges them, so we may assume that the first extremum is a maximum. Denote the extrema, in the order along , by ; then . The free relations are those of with and of with with the inequalities; the other relations are forced. Listing all admissible weak orders of the four values we get eleven classes of strong equivalence, given in Table 1. The function followed by the reflection preserves the normalization and acts on this set of classes as an involution with five fixed points, so there are eight classes of equivalence.
| No. | order of the extremal values | equivalent to No. under |
| 1 | 1 | |
| 2 | 6 | |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 8 | |
| 6 | 2 | |
| 7 | 7 | |
| 8 | 5 | |
| 9 | 10 | |
| 10 | 9 | |
| 11 | 11 |
Table 1. Classes of proper functions on with four local extrema (in this order along the line); the rows are given up to the normalization of the first extremum.
A function on with four critical points may also have fewer than four extrema (two extrema and two other critical points, or none at all); these functions belong to the classes with two extrema (one class) and with no extrema (one class).
Non-proper functions. If has a finite limit at an end of , this limit has to be mapped by to the corresponding limit of the other function, so it enters the order pattern together with the extremal values (including its coincidence with some of them), and the number of classes grows quickly. We do not list them here.
Reeb Graph of Morse Functions on Surfaces
Let be a smooth function on a smooth manifold . We define an equivalence relation on : if and lie in the same connected component of the level set .
Definition 8. The Reeb graph of is the quotient space
with the quotient topology. Let be the projection. Since is constant on the classes of , it induces a continuous function with .
Thus the points of the Reeb graph are the connected components of the level sets of . For the functions considered below is a finite graph: its vertices are the images of the connected components of the critical levels that contain critical points, and its edges are the components of the complement of the vertices. The function is strictly monotone on each edge, and the direction of increase of orients every edge.
Definition 9. A function on a closed manifold is a Morse function if all its critical points are non-degenerate. A Morse function is called simple if its critical values are pairwise distinct, i.e. every critical level contains exactly one critical point.
(By the previous section, among Morse functions the topologically stable ones are exactly the simple ones.) In this section all surfaces are connected. For a simple Morse function the values of at the vertices are pairwise distinct, so if is a strict total order on the set of vertices. Every edge is oriented from its smaller endpoint to the larger one.
Lemma 1. Let be a simple Morse function on a closed surface .
is a finite connected graph, and each open edge has as its preimage in an open cylinder (on which is the coordinate on the interval).
A local extremum of is a vertex of valence 1: a source if it is a minimum and a sink if it is a maximum.
Let be the vertex of a saddle. If a neighbourhood of the singular component is orientable (in particular, if is orientable), then has valence 3 with one incoming and two outgoing edges, or two incoming and one outgoing edge; in particular, is neither a source nor a sink. If the neighbourhood is non-orientable, then has valence 2, with one incoming and one outgoing edge.
contains no directed cycles.
Proof. (1) Over an open edge the function has no critical points, so the gradient flow trivializes the preimage as a product of a regular level component (a circle) and an interval. (2) A non-degenerate extremum has a disc neighbourhood bounded by a level circle. (3) Let be the critical value and let be the component of containing the saddle. It retracts onto a figure eight, so . Its boundary consists of circles of and of , and both kinds are present, because near a saddle takes values both below and above . Hence has at least two boundary circles. An orientable surface with and at least two boundary circles is a pair of pants (three boundary circles: one below and two above, or two below and one above); a non-orientable one is a Möbius band with a hole (two boundary circles, one below and one above). (4) increases along the edges. □
Corollary 1. Let be a closed orientable surface of genus and a simple Morse function with saddles, extrema. Then has vertices and edges, and the first Betti number of is . In particular is even.
Proof. By Morse theory, . The degrees of the vertices are 3 at the saddles and 1 at the extrema, so , and . □
Theorem 3. Kronrod [17]; Reeb [72] Let be simple Morse functions on a closed orientable surface.
and are strongly equivalent (Definition 5) if and only if there is an isomorphism of graphs that preserves the order on the sets of vertices.
and are equivalent if and only if there is an isomorphism of graphs that either preserves or reverses the order on the sets of vertices (in the second case it reverses the orientations of all edges).
There is also a realization theorem.
Theorem 4. Kronrod [17]; Reeb [72] Let be a finite connected oriented graph such that
all vertices have valence 1 or 3;
the vertices of valence 3 are neither sinks nor sources;
contains no directed cycles.
Then every strict total order on the vertices of compatible with the orientation of the edges is realized by a simple Morse function on a closed orientable surface of genus , that is, there is a simple Morse function and an isomorphism that preserves the order.
Such a total order always exists, since an oriented graph without directed cycles has a topological ordering; hence every graph satisfying 1–3 is the Reeb graph of some simple Morse function.
Level equivalence
The order on the vertices in Theorem 3 records the relative position of the critical values of vertices that are not connected by a path in monotone along the orientation. The equivalence of Definition 5 sees this order because is a homeomorphism of the whole line. For Hamiltonian flows, whose trajectories are the components of the level sets, this information is irrelevant, so we also consider the following coarser relation.
Definition 10. Two functions , on a surface are called level equivalent if there is a homeomorphism that maps the connected components of the level sets of onto the connected components of the level sets of and preserves the direction of increase of the functions, i.e. induces a homeomorphism that maps oriented edges onto oriented edges.
Theorem 5. Two simple Morse functions on a closed orientable surface are level equivalent if and only if their Reeb graphs are isomorphic as oriented graphs, without any condition on the order of the vertices.
Proof. A level equivalence induces an isomorphism of oriented graphs. Conversely, let be an isomorphism of oriented graphs. The order of vertices induced from by is a strict total order on the vertices of compatible with the orientation. Choose a continuous function , strictly increasing along the edges, with the values at the vertices realizing this order. The function has the same level components as (they are the fibres of ), and by Theorem 3 (applied to and , whose Reeb graphs are now isomorphic as ordered graphs) there is a homeomorphism and a homeomorphism of with . This maps the level components of onto those of and preserves the direction of increase.
Remark 5. Level equivalence is strictly weaker than strong equivalence: two simple Morse functions with isomorphic oriented Reeb graphs need not be strongly equivalent. The smallest example occurs on the sphere with three saddles: take the tree with a middle saddle having two incoming edges, from the saddles and , and one outgoing edge to a maximum; let have a minimum and a maximum as the remaining neighbours, and two minima. The saddles and are not comparable along the orientation, and the orders and give two strongly non-equivalent functions (the tree has no automorphism exchanging and ). In the following sections the classes of simple Morse functions on the sphere are counted up to level equivalence, and the classes of Hamiltonian flows up to level equivalence and the simultaneous reversal of all orientations.
Non-orientable surfaces and surfaces with boundary
For closed non-orientable surfaces the Reeb graph does not contain complete information about the function: there exist topologically inequivalent functions with isomorphic Reeb graphs. By Lemma 1, the Reeb graph on a non-orientable surface may have vertices of valence 2 (one incoming and one outgoing edge). If the graph has such a vertex, the surface is non-orientable, and the graph determines its topological type, because the Euler characteristic is the number of extrema minus the number of saddles. If there are no such vertices and the graph is not a tree, the graph does not determine whether the surface is orientable: for example, on the torus and on the Klein bottle there are simple Morse functions with four critical points and isomorphic Reeb graphs (a minimum, two saddles joined by a double edge, a maximum). For a tree without vertices of valence 2 the surface is the sphere.
For compact surfaces with boundary the components of the preimages of regular values may be not only circles but also segments (with endpoints on the boundary), so the corresponding edges of the Reeb graph can be coloured in two colours.
Hamiltonian flows and Morse functions on surfaces
Let be an oriented smooth surface with an area form compatible with the orientation (for example, the area form of a Riemannian metric ). For a smooth function the Hamiltonian vector field is defined by
where is the contraction with . (With the opposite sign convention, , all trajectories are reversed, which amounts to replacing by .)
Lemma 2. Let be the Hamiltonian vector field of .
, so every trajectory lies in a level set of . The singular points of are exactly the critical points of .
If is a regular value, then every connected component of is a closed trajectory. Every connected component of a critical level is a union of trajectories: singular points and separatrices.
If with is another area form compatible with the orientation, then . Hence the oriented trajectories do not depend on the choice of the area form, in particular on the Riemannian metric.
Let be a regular point and let be a vector with . Then is a positively oriented basis. Hence the direction of the trajectory through is determined by the orientation of and the direction of increase of .
Proof. (1) The form is non-degenerate, so if and only if . (2) A compact connected one-dimensional level component without singular points is a circle that is a single trajectory. (3) gives . (4) .
Thus a Morse function on a closed oriented surface determines a Hamiltonian flow whose trajectories lie in the connected components of the level sets: the regular components are closed trajectories, and each component of a critical level is formed by a saddle (or an extremum) and its separatrices.
Definition 11. A Hamiltonian flow of a Morse function on a closed surface is called simple if every connected component of every critical level of contains exactly one critical point.
This is a property of the oriented trajectories only: no two saddles are joined by a separatrix. It does not require the critical values to be distinct. For such a flow the Reeb graph of satisfies the conditions of Theorem 4, so the flow is equivalent to the Hamiltonian flow of a simple Morse function with the same Reeb graph (Theorems 4 and 5); we can therefore assume that is simple.
Proposition 2. Let , be simple Morse functions on closed oriented surfaces , , and let , be their Hamiltonian flows (for any area forms).
and are topologically equivalent by an orientation-preserving homeomorphism if and only if the Reeb graphs and are isomorphic as oriented graphs. Equivalently, and are level equivalent (Definition 10) by an orientation-preserving homeomorphism.
and are topologically equivalent (by an arbitrary homeomorphism) if and only if is isomorphic to or to with all orientations reversed.
The proof uses the following lemma, which shows that the orientation of the surface carries no additional information.
Lemma 3. Let be a simple Morse function on a closed orientable surface . There is an orientation-reversing homeomorphism of with .
Sketch. By Lemma 1, is glued from standard pieces along level circles: discs at the extrema, cylinders over the edges and pairs of pants at the saddles. Each piece has an involution that preserves , reverses the orientation and acts on every boundary circle as a reflection. The gluing homeomorphisms of the boundary circles can be chosen to commute with these reflections. By Theorem 3 the glued surface with the glued function is equivalent to , and the involutions combine to a required .
Proof of Proposition 2. Let be a homeomorphism that maps oriented trajectories of onto oriented trajectories of . Then maps closed trajectories to closed trajectories and critical level components to critical level components (by Theorem 1), hence level components of onto level components of . By Lemma 2(4) the direction of a trajectory is given by the pair (orientation of the surface, direction of increase of ), and preserves this direction. Therefore either preserves both the orientation of the surface and the direction of increase, or reverses both. In the first case induces an isomorphism of oriented Reeb graphs, in the second case an isomorphism of onto with all orientations reversed. This proves the necessity in both statements.
Conversely, let be an isomorphism of oriented graphs. By Theorem 5 there is a level equivalence of and , and by Lemma 3 we may compose with and assume that preserves the orientation. By Lemma 2(4) it then maps oriented trajectories onto oriented trajectories (on a critical component maps the saddle to the saddle and the separatrices to separatrices, since the topological type of the point is preserved). If is isomorphic to with the orientations reversed, apply the same argument to and and then compose with in order to get an orientation-reversing map that reverses the direction of increase; it again preserves the direction of the trajectories.
Thus, if the equivalences are required to preserve the orientation of the surface (and the direction of trajectories, in the case of flows), then the classification of simple Morse functions up to level equivalence is the same as the classification of the corresponding Hamiltonian flows: both are given by oriented Reeb graphs up to isomorphism. If the orientation of the surface is allowed to change, the Hamiltonian flows are classified by oriented Reeb graphs up to isomorphism and the simultaneous reversal of all orientations.
Encoding by marked edges
For a general Morse function the orientation of the edges of the Reeb graph is induced by the direction of increase of the function. For simple Hamiltonian flows it is more convenient to use a different encoding, which does not depend on the choice of the direction. At each vertex of degree 3 (a saddle) exactly one of the three incident edges is directed differently from the other two (it is the only incoming edge or the only outgoing edge). We mark this edge at the vertex. A marked tree is a tree with vertices of degree 1 and 3 together with a choice of one marked edge at each vertex of degree 3 (an edge may be marked at one of its ends and not at the other). Two marked trees are isomorphic if there is an isomorphism of trees that maps marked edges to marked edges.
Proposition 3. Let be a tree with vertices of degree 1 and 3. For every marking of there are exactly two orientations of the edges of such that at every saddle the marked edge is directed oppositely to the other two incident edges (opposite with respect to the vertex: one is incoming and the other two are outgoing, or vice versa); these two orientations are reverse to each other. Consequently, isomorphism classes of marked trees with saddles correspond bijectively to isomorphism classes of oriented trees satisfying the conditions of Theorem 4 up to isomorphism and the simultaneous reversal of all orientations.
Proof. Fix an edge (for instance, the edge incident to the root) and one of its two orientations. The orientation of the other edges is then determined step by step along the tree. If an edge at a vertex has a known direction relative to (incoming or outgoing), then the directions of the two other edges at are determined by the rule: if is the marked edge, the two others are directed oppositely to it; if is not marked, then the other unmarked edge has the same direction as , and the marked edge has the opposite direction. The direction relative to the other end of an edge is the opposite one. Since has no cycles, the choices never conflict, and there are exactly two orientations (that differ by the choice at ), reverse to each other. At each saddle the result is neither a sink nor a source. Conversely, from an oriented tree the marking is recovered by marking at each saddle the edge directed differently from the other two. The maps are inverse to each other, and an isomorphism of marked trees carries the orientations to each other or to the reversed ones, which gives the bijection of the classes.
Remark 6. By Proposition 2, for trees (the Reeb graphs of functions on the sphere and on the disc) the classes of simple Hamiltonian flows up to equivalence correspond to marked trees up to isomorphism, and the classes of simple Morse functions up to level equivalence correspond to oriented trees up to isomorphism. The two counting problems are therefore the counting of marked trees and of oriented trees with saddles.
Simple Morse Functions and Hamiltonian Flows on the 2-Disk
To determine the number of topologically non-equivalent simple Hamiltonian flows, we count the Reeb graphs with a given number of vertices corresponding to saddle critical points.
We begin with the case of trees having vertices of degrees one and three, with one of the degree-one vertices distinguished as the root. Such trees correspond to Reeb graphs of Morse functions on the 2-disk, where the root represents the boundary fiber.
At each vertex of degree three, we mark one of the three incident edges. As explained in the previous section, this marking determines the orientation pattern of the three incident edges: the marked edge has the opposite orientation to the other two.
We orient the edges of the tree according to the following rules:
The edge incident to the root is directed away from the root.
If the marked edge at a saddle vertex is directed towards that vertex, the other two edges are directed away from it.
If the marked edge at a saddle vertex is directed away from that vertex, the other two edges are directed towards it.
Since the graph is a tree, these rules uniquely determine the orientation of all its edges. Indeed, starting with the edge incident to the root, we can successively determine the orientations of all edges adjacent to the already oriented ones. The process terminates when every edge of the tree has been oriented.
Lemma 4. The number of rooted Reeb trees with saddle vertices (vertices of type ), all other vertices being of type , can be computed using the following recursive formulas:
for even ,
and for odd ,
Proof. If , then the tree has no saddles. Such a graph is unique. It has two vertices and one edge connecting them. From now on, we assume that .
Consider the saddle closest to the root of a rooted tree with saddle points (vertices of type ) and other vertices of type . It is a vertex of degree 3. We cut the graph by . We obtain three connected components. One of them is the edge connecting to the root. The other two components ( and ) can be viewed as rooted Reeb graphs, where the root is . Let us assume that the number of vertices of is no fewer than the number of vertices of $B ().
Then there are three possibilities:
the marked edge to a vertex is ;
the marked edge belongs to ;
the marked edge belongs to .
Multiplying by 3 in formulas (2) and (3) is to indicate which subgraph with the marked edge is connected to.
If , then the number of graph vertices is different (), and cannot be isomorphic to . The number of non-isomorphic trees with saddles is equal to , and with saddles is equal to , so the total number of trees of this type is equal to . By considering all possible values of , we obtain formula (2).
If and , then we have similar products as in the case of . Let’s consider the case of in more detail. If edge is not marked, then we relabel the graphs so that the marked edge belongs to graph . Since each of the graphs can be chosen in ways, there are graphs of this type. If edge is marked, then two cases are possible: 1) graph is not isomorphic to graph , 2) graphs and are isomorphic. In the first case, we have non-isomorphic graphs, and in the second case, graphs. Summing everything together, we obtain formula (3). □
The results of the calculations of the number of Reeb rooted trees on are presented in Table 2.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
| 1 | 2 | 6 | 25 | 111 | 540 | 2736 | 14396 | 77649 |
Table 2. Numbers of rooted trees and simple Hamiltonian flows on
The results of the calculations of the number of simple Hamiltonian flows on are presented in Table 2.
Remark 7. Morse flows on the disc with holes, including those whose Reeb graphs are the trees counted above, can be encoded by codes, enumerated for given numbers of vertices and edges, and visualized with Prishlyak and Ovtsynov [46].
Reeb trees on the sphere
By a Reeb tree we mean a finite tree whose edges are oriented and whose vertices have degree 1 or 3, such that every vertex of degree 3 (a saddle) has one or two incoming edges (and hence two or one outgoing edges, respectively). The vertices of degree 1 are leaves: a leaf is a source (a minimum) if its edge is outgoing, and a sink (a maximum) if its edge is incoming. If has saddles, then has leaves, vertices and edges, and counting degrees gives , i.e.
Every orientation of a tree is acyclic, so it is induced by a function on the vertex set that increases along every edge. Hence every Reeb tree is the Reeb graph of a simple Morse function on (a function with distinct critical values is not required, since the Reeb graph does not depend on the order of the critical values on non-adjacent branches).
An isomorphism of Reeb trees is a graph isomorphism that maps every edge to an edge with the same orientation. A reversing isomorphism is a graph isomorphism that reverses the orientation of every edge. Let denote the tree with all orientations reversed (reversal turns sources into sinks and one-incoming saddles into two-incoming saddles, so is again a Reeb tree). Clearly if and only if there is a reversing isomorphism . A reversing automorphism of is called an anti-automorphism.
Let be the number of isomorphism classes of Reeb trees with saddles. These are the Reeb graphs of simple Morse functions on with saddles up to equivalence. Let be the number of classes of Reeb trees with saddles up to isomorphisms and reversing isomorphisms; these are the Reeb graphs of simple Hamiltonian flows on with saddles. Reversing all orientations is an involution on the set of classes, and is the number of its orbits.
Branches. A branch is a Reeb tree with a marked leaf (its root) together with the connecting edge incident to , considered up to isomorphisms preserving . (Equivalently, it is a Reeb tree with one half-open edge attached to the root; a branch with saddles is obtained from a “rooted Reeb tree” of the previous section by choosing the type of the root.) A branch is of type if is directed away from the attaching point, that is, the root is a sink of the branch, and of type otherwise. In other words, if a branch hangs on an edge , then the branch at the end has type and the branch at the end has type . Reversal of orientations is a bijection between branches of type and branches of type with the same number of saddles. By Lemma 1 their number is for each type (for the type of the root fixed). Put
Symmetric square. For a power series with non-negative integer coefficients that counts some objects, the series counting unordered pairs of such objects (equal objects allowed) is .
The recursion in generating-function form
Lemma 5. The series satisfies
This is equivalent to the recursion of Lemma 1.
Proof. Let be a branch of type with saddles. Its root is a leaf and the neighbouring vertex is a saddle, whose incoming edge is the connecting edge . The other two edges of lead to two sub-branches, which form an unordered pair. The saddle has one or two incoming edges, so at most one of the two other edges is incoming. A sub-branch has type if its edge is outgoing from and type if it is incoming. Hence the allowed pairs of types are and , and the pair is forbidden. The number of branches with saddles in total equals
where the first term counts pairs (symmetric square) and the second term counts pairs (types distinguish the two elements, so the pair is ordered). For the branch is a single leaf, which gives the term 1. Branches of type are treated in the same way (the forbidden pair is ), which gives the same series. Separating the coefficients of even and odd degree in (3), we get the two formulas of Lemma 1.
Theorem 6.
Equivalently,
Proof. The number . We use Otter’s dissimilarity theorem for trees: the number of isomorphism classes of trees equals the number of classes of vertex-rooted trees minus the number of classes of edge-rooted trees plus the number of classes of trees with an automorphism that interchanges the two ends of an edge. In our setting all isomorphisms preserve edge orientations, so no automorphism interchanges the ends of an edge, and the last term is zero. Thus , where and count the classes of vertex-rooted and edge-rooted Reeb trees with saddles.
Edge-rooted trees. Let be the marked edge. Cutting gives a branch at (of type ) and a branch at (of type ). An isomorphism preserves and its direction, so the two branches are determined independently, and the generating function is
Vertex-rooted trees. If the root is a leaf, then it is a source or a sink, and the rest of the tree is one branch, which gives . If the root is a saddle, then it carries an unordered triple of branches. The saddle has one or two outgoing edges, so the triple contains one or two branches of type (an outgoing edge gives a branch of type ). The triples of types and give each, and
By Lemma 5, , so
Hence , which is (4).
The number . By Burnside’s lemma applied to the reversal involution, , where is the number of classes with , i.e. of Reeb trees having an anti-automorphism . The map is an automorphism of the underlying tree, so it fixes the centre of (a vertex or an edge). We consider the cases.
A leaf cannot be fixed: it is the end of one edge, which would be mapped to itself with both ends fixed, but reverses its orientation.
A saddle cannot be fixed: permutes its three edges and maps incoming edges onto outgoing ones and vice versa, so the numbers of incoming and outgoing edges would be equal, which is impossible for degree 3.
The centre is an edge . Then and reverses it, so interchanges and . Hence the branch at is the reversal of the branch at . Conversely, for any branch of type the tree obtained by gluing to along an edge has an anti-automorphism. Such trees correspond bijectively to branches of type with saddles.
Therefore for even and for odd $n.
Remark 8. Equation (3) is of Pólya–Otter type, so one expects a square-root singularity and . We only observed this numerically: for . Since grows like , this suggests .
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
| 1 | 2 | 6 | 25 | 111 | 540 | 2736 | 14396 | 77649 | 427608 | ||||
| 1 | 2 | 4 | 14 | 48 | 198 | 853 | 3952 | 18971 | 94428 | 481898 | 2513964 | 13347066 | |
| 1 | 1 | 3 | 7 | 27 | 99 | 439 | 1976 | 9541 | 47214 | 241219 | 1256982 | 6674901 |
Table 3. Numbers of Reeb trees with saddles. The values of and for agree with a direct computer enumeration of all trees.
Topology of Functions with Isolated Critical Points on a Surface
Local Classification
Let be a closed smooth surface, and be a smooth function with a finite number of critical points. Due to the compactness of the surface, this condition is equivalent to each critical point being isolated.
Lemma 6. If is a regular value of the function , then consists of a finite number of circles. For any open set with a boundary that is transverse to , the intersection has a finite number of connected components.
Proof. By contradiction. Suppose contains an infinite number of circles. Then they partition the surface into an infinite number of regions, each containing a local minimum or maximum, which contradicts the finiteness of the number of critical points.
If has an infinite number of connected components, then there are also infinitely many intersection points . Thus, there exists a point that is a boundary point of the set . The derivatives of the function at the point along and are both equal to 0. Therefore, the point is critical. This contradicts the conditions of the lemma.
Lemma 7. For each critical point with critical value , there exists a neighborhood , in which
Here, is the cone over the union of 0-dimensional spheres, that is, the union of an even number of segments, which share a common point—the endpoint of each segment.
Figure 1. Critical level in the neighborhood of a critical point
Proof. Since is an isolated critical point, there exists a neighborhood that does not contain other critical points of the function . Let be the restriction of the function to the set . Then, on this set, the level curves of both functions coincide. Since is a regular value of the function , the preimage is a one-dimensional submanifold in , that is, a disconnected union of closed curves and open intervals.
Without loss of generality, we can assume that intersects transversally with and does not contain critical points. Similarly to Lemma 14.1, it can be shown that the intersection points are finite in number.
We restrict the neighborhood to a neighbourhood , the closure of which does not intersect with the circles and arcs where both ends lie on , and such that intersects transversally with and does not contain critical points. Then, consists of a union of closed arcs, at least one of whose ends coincides with the point . We show that none of these arcs form a loop (i.e., both ends do not coincide with the point ). By contradiction, suppose such an arc exists; then it bounds a two-dimensional disk, and the function takes a minimum or maximum value on it that is different from . Thus, there exists another critical point (or minimum or maximum) in that is different from the point . This contradicts the choice of the neighborhood .
Theorem 7. For every critical point (except local minima and maxima) there exists a neighborhood in which the function is conjugate to the function for some number .
The level curves of the function for are schematically depicted in Figure 2.
Figure 2. The stratification of the neighborhood of the critical level
We show that there is a finite number of arcs. Suppose, for contradiction, that there are infinitely many. We cut the surface along . Since cutting along each closed curve with endpoints on decreases the genus of the surface or increases the number of connected components, we obtain an infinite number of connected components. On each connected component, there exists a point of local minimum or maximum. This contradicts the finiteness of the number of critical points on the surface . The resulting contradiction proves that the critical level in the vicinity of the critical point is a union of a finite number of arcs with a common endpoint.
We show that the number of arcs is even. We call the components of the set with positive regions, and the components with negative regions. Each arc lies on the boundary of both a positive and a negative region. These regions alternate. Thus, there are an equal number of regions of each type, and the total number of regions, as well as arcs, is even.
Proof. See Prishlyak [64].
Corollary 1. If , then there exists a neighborhood of the critical point in which the function is conjugate to a function without critical points.
Remark. Similarly to the proof of the theorem, it can be shown that for every local minimum (maximum), there exists a neighborhood where the function is conjugate to the function
Definition 12. We call the Poincaré index of the critical point of the function as the Poincaré index of its gradient field for some Riemannian metric.
Consequence 2. Let be an isolated critical point of the function , and be a critical point of the function . The functions and are topologically equivalent in some neighborhoods of these points that do not contain other critical points if and only if they have the same Poincaré indices, .
Remark. For critical points on a surface, . For the function , the Poincaré index .
Global Classification
Let be a smooth closed surface and be a smooth function with isolated critical points and critical values such that if . By Theorem 1, the preimage of each critical value is homeomorphic to a graph in union with closed curves. The edges of the graph and the closed curves are smoothly embedded 1-manifolds. On each closed curve, we fix a point, thereby transforming this curve into a loop with a distinguished vertex.
Let denote the graph (possibly disconnected) that geometrically coincides with the preimage of the critical value of the function . The vertices of the graph are the critical points and the distinguished points.
Definition 13. The surface together with the embedded graphs is called the diagram of the function .
Definition 14. Two diagrams are called isomorphic if there exists a homeomorphism of the surfaces that maps graphs to graphs, and vertices of the graphs to vertices, preserving the order of the graphs.
Theorem 8. Two functions with isolated critical points on closed surfaces are topologically equivalent if and only if their diagrams are isomorphic.
Proof. Necessity. If there is a given homeomorphism of the surface that connects, then it maps critical levels to critical levels and thus defines an isomorphism of diagrams.
Sufficiency. Let the diagrams of two functions be isomorphic. Then there exists a homeomorphism of the surface that maps critical levels to critical levels. We cut the surface along the critical levels. We obtain surfaces that are homeomorphic to cylinders . Then the homeomorphism induces homeomorphisms of the obtained cylinders. We replace these homeomorphisms with homeomorphisms that map the levels of the function to levels proportionally to the value of the function between two critical values and coincide with the original on each of the bases of the cylinders. Since the constructed homeomorphisms coincide on the boundaries, they define the sought homeomorphism of the surface. □
Let be the diagram of the function with isolated critical points on the surface . Each cylinder with bases on the graphs , defines one cycle corresponding to the base of the cylinder on these graphs. The cycle on is called the upper cycle, and on — the lower cycle. In this case, local minima and maxima correspond to cycles consisting of a single vertex. It is worth noting that each edge is contained in only one upper and only one lower cycle.
Definition 15. A distinguishing graph is a graph partitioned into subgraphs , on which cycles are highlighted that are divided into two groups — upper and lower, and a one-to-one correspondence is defined between the lower cycles from and the upper cycles from , . In this case, each edge is contained in only one upper and one lower cycle, and each isolated vertex forms one upper or lower cycle.
An isomorphism of distinguishing graphs is an isomorphism of graphs such that subgraphs are mapped to subgraphs, upper cycles to upper cycles, lower cycles to lower cycles, and there is also a correspondence preserved between upper and lower cycles.
Every function with isolated special points on a closed surface defines a unique distinguishing graph, up to isomorphism.
Theorem 9. Two functions are topologically conjugate if and only if their distinguishing graphs are isomorphic.
Proof. Necessity. If the functions are topologically conjugate, then their diagrams are isomorphic. The restriction of this isomorphism to the graph defines an isomorphism of distinguishing graphs.
Sufficiency. Suppose the distinguishing graphs are isomorphic. We construct an isomorphism of diagrams. By construction, each pair of upper and lower cycles, related by a one-to-one correspondence , corresponds to some cylinder . Thus, a correspondence between cylinders is established. We construct homeomorphisms between the cylinders in such a way that their restrictions to the upper and lower bases coincide with the restrictions of the graph isomorphisms to the corresponding cycles. Since these homeomorphisms coincide on the boundaries, they define a homeomorphism of the surface and, consequently, an isomorphism of diagrams. □
Now we investigate the question of when a distinguishing graph defines a function with isolated special points on a closed surface. Two edges , incident to a common vertex , are called adjacent for the vertex if there exists a cycle in the distinguishing graph that contains the fragment or .
Theorem 10. A distinguishing graph defines a function with isolated special points on a closed surface if and only if for any two edges incident to a common vertex, there exists a sequence of edges in which each subsequent edge is adjacent to the previous one at that vertex.
Proof. The necessity directly follows from the construction. We prove the sufficiency. The conditions of the theorem guarantee that after attaching cylinders to the graph, we obtain a closed surface. We construct a function on it. For this, we set , and for the cylinder with bases on and , we have
In this way, at the vertices of the graph, the cylinders are attached such that the function coincides with the function in the corresponding coordinate system. □】【。
Remark 9. The cell decompositions and rotation systems used in this section can be enumerated and visualized with Prishlyak [44]; chord diagrams with one cycle, which describe one-vertex embeddings, with Prishlyak [41]; the corresponding handle decompositions with Prishlyak [42].
Functions with three critical points
For a function with three critical points, one of them is a local minimum, another is a local maximum, and the third one is the vertex of a bouquet of circles, which is a critical level of the function. According to the previous sections, the topological structure of such a function is determined by the following cell decomposition of the surface: the 1-skeleton is a bouquet of circles with the vertex , one 2-cell contains the maximum point, and the other 2-cell contains the minimum point. Below we describe all such cell decompositions by means of signed permutations.
Encoding. Both 2-cells are -gons whose sides are glued to the circles of by linear homeomorphisms, and every circle of lies on the boundary of both 2-cells (each circle is covered exactly once by each polygon). Number the sides of the first -gon cyclically along its boundary by . This numbers the circles of and orients them (the orientation of the -th circle is the one induced from the side of the first polygon). Now traverse the boundary of the second -gon, starting from the side that is glued to the circle , in the direction in which this circle is passed along its orientation. Writing down the numbers of the circles in the order of traversal, and attaching the sign if the circle is passed along its orientation and otherwise, we obtain a signed permutation
There are such words, and the word determines the cell complex uniquely: it is obtained from by attaching the first -gon along and the second one along .
Local planarity at the vertex. The complex is a closed surface if and only if the vertex has a neighborhood homeomorphic to a disc, i.e. if the link of is a single circle (at the interior points of the edges and the 2-cells the surface condition holds automatically). The link is the graph defined as follows. Its vertices are the ends (tail and head) of the circles. Its edges are the corners of the two polygons:
the first polygon gives the corners joining with , (indices modulo );
for two consecutive entries of the second word (cyclically), the corner joins the end of the circle at which we leave it (the head if , the tail if ) with the end of the circle at which we enter it (the tail if , the head if ).
Every end of every circle belongs to exactly two corners, one in each polygon, so is a 2-regular graph, i.e. a disjoint union of cycles. Hence is a surface if and only if is connected. This is checked in linear time with a union–find structure.
The resulting surface. If is connected, is a closed connected surface with one vertex, edges and two faces, so
The surface is orientable if and only if all signs are . Indeed, an orientation of is a choice of orientations of the two -gons such that every circle is traversed in opposite directions by the induced boundary orientations. The circle is traversed by the first polygon along its orientation, and by the second one with the sign , so a compatible choice exists if and only if all the signs of are equal, that is, all (the first polygon is then oriented counterclockwise and the second one clockwise). Consequently an orientable surface occurs only for odd and has genus , while a non-orientable one has crosscaps. For orientable surfaces the number of admissible words is the number of -cycles such that is again a -cycle for ; by a classical result it equals for odd (and for even ). We have used it as a test of the program below.
Equivalence. The numbering of the first polygon depends on the choice of the first side and the direction of traversal. Changing them by an element of the dihedral group gives another word that describes the same cell decomposition. Explicitly, for the rotation by the circle gets the number (mod ) and the signs stay the same; for the reflection the circle gets the number (mod ) and all the orientations of the circles are reversed, so all signs change. After such a renumbering the second word is cyclically shifted so that it starts with the circle ; if the sign of this entry is , the boundary of the second polygon is read in the opposite direction (the order of the entries is reversed and all signs are changed), which makes the first sign equal to again. Two words are equivalent if they are in the same -orbit. Equivalence classes correspond to the topologically different cell decompositions with the distinguished maximum and minimum cells.
Algorithm. The program below enumerates all words with , , keeps those for which is connected, and splits them into orientable and non-orientable ones. For every kept word that has not been met yet, its whole -orbit (normalized as above) is put into a set of visited words, and the counter of classes is increased by one. The running time is , which is feasible up to .
import sys
from itertools import permutations, product
def link_is_circle(word, k):
"""word = [(edge, sign), ...], edges 0..k-1, sign = +1/-1.
Returns True iff the link of the vertex is connected (one cycle)."""
parent = list(range(2 * k)) # node 2i = tail of loop i, 2i+1 = head
def find(x):
while parent[x] != x:
parent[x] = parent[parent[x]]
x = parent[x]
return x
def union(a, b):
parent[find(a)] = find(b)
for i in range(k): # corners of the first polygon
union(2 * i + 1, 2 * ((i + 1) % k))
for j in range(k): # corners of the second polygon
(e, s), (e2, s2) = word[j], word[(j + 1) % k]
leave = 2 * e + (1 if s > 0 else 0) # end of loop e where we leave
enter = 2 * e2 + (0 if s2 > 0 else 1) # end of loop e2 where we enter
union(leave, enter)
return len({find(x) for x in range(2 * k)}) == 1
def normalize(word):
"""Start at edge 0; if it carries sign -, read the boundary backwards."""
i = [e for e, _ in word].index(0)
w = word[i:] + word[:i]
if w[0][1] < 0:
w = [(0, 1)] + [(e, -s) for e, s in reversed(w[1:])]
return tuple(w)
def dihedral_orbit(word, k):
"""All words obtained by renumbering the first polygon (D_k action)."""
for r in range(k):
yield normalize([((e - r) % k, s) for e, s in word]) # rotation
yield normalize([((-e - r) % k, -s) for e, s in word]) # reflection
def count(k):
"""Returns (orientable words, orientable classes,
nonorientable words, nonorientable classes)."""
seen = set()
ow = oc = nw = nc = 0
for perm in permutations(range(1, k)):
order = (0,) + perm
for signs in product((1, -1), repeat=k - 1):
word = tuple(zip(order, (1,) + signs))
if not link_is_circle(word, k):
continue
orientable = all(s > 0 for _, s in word)
if orientable: ow += 1
else: nw += 1
if word not in seen:
seen.update(dihedral_orbit(list(word), k))
if orientable: oc += 1
else: nc += 1
return ow, oc, nw, nc
if __name__ == "__main__":
for k in range(1, int(sys.argv[1]) + 1):
print(k, 3 - k, *count(k), flush=True)
Results. The numbers of admissible words and of equivalence classes are given in Table 4. For orientable surfaces the numbers of classes 1, 1, 4, 25 () and for non-orientable ones 1, 1, 4 () agree with the direct count.
| orientable words | orientable classes | non-orientable words | non-orientable classes | ||
| 1 | 2 | 1 | 1 | 0 | 0 |
| 2 | 1 | 0 | 0 | 1 | 1 |
| 3 | 0 | 1 | 1 | 3 | 1 |
| 4 | 0 | 0 | 20 | 4 | |
| 5 | 8 | 4 | 140 | 20 | |
| 6 | 0 | 0 | 1348 | 125 | |
| 7 | 180 | 25 | 14924 | 1136 | |
| 8 | 0 | 0 | 198144 | 12504 |
Table 4. Cell decompositions of closed surfaces with one vertex, edges and two faces: admissible signed permutations and their -classes.
Literature Review
Classical textbooks on dynamical systems, structural stability and Morse–Smale systems include Katok and Hasselblatt [15]; Meiss [22]; Palis and de Melo [26].Morse theory is presented in Milnor [23]; Prishlyak [33]. Simplicial complexes, Euler characteristics and homology groups are fundamental concepts of homology theory Hatcher [8]; Prishlyak [34]. Regular cell complexes and discrete Morse functions are discussed in discrete Morse theory Forman [5]. SLW-graphs were introduced in Prishlyak [59]. Rotation systems are one of the core concepts of topological graph theory Peixoto [27]; Gross and Tucker [6]; Mohar and Thomassen [24], and the enumeration of chord diagrams is covered in Kadubovskyi et al. [14].
The Reeb graph, the space of connected components of the level sets of a function, was introduced by G. Reeb Reeb [72] for Morse functions, and A. S. Kronrod Kronrod [17] studied the structure of the level sets of continuous functions of two variables, which for functions on the sphere leads to trees (the Kronrod–Reeb tree). These works contain the classification of simple Morse functions by Reeb graphs and the realization theorem for graphs, which we use in § 4. A. T. Fomenko and A. V. Bolsinov developed the invariants of integrable Hamiltonian systems with one degree of freedom and of Morse functions on surfaces in terms of atoms and molecules, that is, Reeb graphs with additional marking of the vertices Bolsinov and Fomenko [2]. V. V. Sharko obtained the global topological classification of Morse functions on surfaces and studied the algebraic and topological aspects of functions on manifolds Sharko [73].
The structures considered in this series are accompanied by open software. Morse flows on the 2-disc with holes can be specified by codes and enumerated and visualized with the program Prishlyak and Ovtsynov [46]; handle decompositions of surfaces given by rotation systems are drawn in Prishlyak [42], and Morse–Smale (MS), SN and SC flows and their bifurcations are visualized from rotation-system codes in Prishlyak [43]. Rotation systems of cell-embedded graphs are enumerated, encoded and visualized in Prishlyak [44], and one-cycle signed chord diagrams in Prishlyak [41].
Topological properties of functions and vector fields have been studied in many works. Among them, we would like to highlight the works of the Kyiv topological school: textbooks Prishlyak [33, 34, 36] (2023), scientific articles by the author on function topology Prishlyak [53, 29, 56, 60, 32, 64, 65]; Prishlyak and Tereschenko [49], vector fields Prishlyak [28, 30, 63, 67, 68, 70], and other geometric objects Prishlyak [54, 59, 55], as well as the works of his students: K. Myshchenko Prishlyak and Mischenko (2007); N. Budnytska Budnyts’ka and Prishlyak (2008); D. Lychak Lychak and Prishlyak (2009); A. Bondarenko Bondrenko and Prishlyak (2012); O. Vyatychainova Prishlyak and Vyatchaninova (2013); Bohdana Hladysh Hladysh and Prishlyak (2016); Hladysh and Prishlyak (2017, 2019); Prishlyak et al. (2023a); A. Prus Prishlyak and Prus (2017, 2020); Prishlyak et al. (2021); V. Kiosak Kiosak et al. (2021); S. Bilun Bilun and Prishlyak (2002); Prishlyak et al. (2023b)V. Liskevich Liskevych and Prishlyak (2013); I. Ivaniuk Ivaniuk and Prishlyak (2014); Ivanyuk and Prishlyak (2015), Ovtsynov and Prishlyak (2024), D. Skotchko Prishlyak and Skotchko (2016), M. Loseva Losieva and Prishlyak (2016); Prishlyak and Loseva (2019, 2020), Z. Kybalko Kybalko et al. (2018), K. Khatamian Hatamian and Prishlyak (2020).
Software availability
The programs related to this paper are archived on Zenodo with permanent DOIs: the viewer and enumerator of Morse flow codes on the 2-disc with holes Prishlyak and Ovtsynov [46], the Smale handle decomposition viewer for surfaces (also available online at https://prishlyak.github.io/smale-handle-viewer/) Prishlyak [42], the visualizer of MS, SN and SC flows and their bifurcations Prishlyak [43], the enumeration and visualization of rotation-system codes of cellular graph embeddings Prishlyak [44] and of one-cycle signed chord diagrams Prishlyak [41].
Conclusion
We studied the topological equivalence of smooth functions and of Hamiltonian flows on surfaces and the discrete invariants that classify them. The main results are the following.
We distinguished two equivalence relations for functions: the strong equivalence with an increasing , which keeps track of the order of all critical values, and the level equivalence, which only requires the components of the level sets to be mapped onto each other with the direction of increase preserved. Simple Morse functions on closed orientable surfaces are classified by Reeb graphs with the order of vertices up to the first relation and by oriented Reeb graphs up to the second; the second is the equivalence that corresponds to Hamiltonian flows. Simple Hamiltonian flows are classified by oriented Reeb graphs up to isomorphism and the simultaneous reversal of all orientations, and for trees by trees with one marked edge at every vertex of degree three. We also gave a complete classification of functions with three and four extrema on the circle and on the line.
For the disc we obtained the recurrence for the number of rooted Reeb trees with saddles, equivalently the equation for its generating function.
For the sphere the generating function of the numbers of simple Morse functions with saddles up to level equivalence is , and the number of Hamiltonian flows is , where for even and for odd . The first values for are
Numerically the ratio approaches approximately 6 (it equals 5.98 for ), which is consistent with the square-root singularity expected for equations of this type; we did not prove the asymptotics.
For functions with isolated, possibly degenerate, critical points we described the topological structure by cell decompositions of the surface. For functions with three critical points (a minimum, a maximum and a critical point whose level set is a bouquet of circles) we gave an algorithm based on signed permutations and computed the numbers of classes with respect to the dihedral group : 1, 1, 4, 25 for on the orientable surfaces (genus 0, 1, 2, 3) and 1, 1, 4 for on the non-orientable ones.
Further directions. Several questions remain open. The first one is the exact asymptotics of and (the radius of convergence of and the constant in ). The second is the enumeration of the classes of simple Morse functions up to strong equivalence, i.e. of Reeb trees with the order of the critical values, which is finer than the counts given here. The third is the enumeration of Reeb graphs with cycles, for orientable surfaces of positive genus, by the same combination of rooted trees and Burnside’s lemma, and of functions on non-orientable surfaces, where the Reeb graph is not a complete invariant. Finally, it would be natural to extend the computations for functions with isolated critical points beyond three critical points and to compare the numbers obtained with those arising from the enumeration problems for Morse functions considered earlier in the literature.
Declaration of generative AI use
During the preparation of this work the author used the large language model Claude (Anthropic, Claude Sonnet 5.5, via the claude.ai web interface, November 2026) as a tool for the following tasks: drafting and editing the English text of the abstract, the introduction, the conclusion and parts of Sections on topological equivalence, Reeb graphs and Hamiltonian flows; and writing auxiliary Python programs that enumerate trees and check the formulas by direct enumeration for small numbers of saddles. The numerical results given in the paper were obtained by programs, and the formulas were compared with independent enumeration. The author reviewed, corrected and verified all the AI-assisted text, code and references, and takes full responsibility for the content of the publication. The AI tool is not an author of this work. The software cited in this paper was written by the author.
References
References
- [2]A. V. Bolsinov and A. T. Fomenko. Integrable Hamiltonian systems. CRC Press, February 2004. ISBN 9780203643426. doi:10.1201/9780203643426.DOI
- [5]R. Forman. Morse theory for cell complexes. Advances in Mathematics, 134(1):90–145, March 1998. ISSN 0001-8708. doi:10.1006/aima.1997.1650.DOI
- [6]J. Gross and T. Tucker. Topological graph theory. Wiley, 1987. ISBN 0471049263.
- [8]A. Hatcher. Algebraic topology. Cambridge University Press (CUP), June 2002. URL https://pi.math.cornell.edu/~hatcher/AT/AT.pdf.
- [14]O. Kadubovskyi, A. Stiopkin, and A. Kyrychenko. On the number of non-equivalent two-color chord O-diagrams of genus 2. Collection of Scientific Papers of the Faculty of Physics and Mathematics of DDPU,, 11:18–33, 2021. ISSN 2413-2667. doi:10.131865/2413-26672415-3079112021234823.
- [15]Anatole Katok and Boris Hasselblatt. Introduction to the modern theory of dynamical systems. Cambridge University Press, April 1995. ISBN 9780511809187. doi:10.1017/CBO9780511809187.
- [17]A. Kronrod. Functions of two variables. Russian Mathematical Surveys, 5:24–134, 1950.
- [22]James Meiss. Differential dynamical systems. Society for Industrial and Applied Mathematics, January 2017. ISBN 9781611974645. doi:10.1137/1.9781611974645.DOI
- [23]John Milnor. Morse theory. Princeton University Press, December 1963. ISBN 9781400881802. doi:10.1515/9781400881802.
- [24]B. Mohar and C. Thomassen. Graphs on surfaces. Johns Hopkins University Press, 2001.
- [26]J. Palis and W. de Melo. Geometric theory of dynamical systems. An introduction. Springer-Verlag, New York-Berlin,, 1982. xii+198 p.
- [27]M. Peixoto. On the classification of flows of 2-manifolds. Dynamical Systems (Proc. Symp. Univ. of Bahia, Salvador, Brasil, 1971), pages 389–419, 1973.
- [28]A. Prishlyak. Vector fields with given set of singular points. Ukr. Mat. Zh., 49(10):1373–1384, 1997a.DOI
- [29]A. Prishlyak. Morse-Smale vector fields with a finite number of special trajectories on 3-manifolds. Dokl. Nats. Akad. Nauk Ukrainy, 6:43–47, 1998.
- [30]A. Prishlyak. Gradient like morse-smale dynamical systems on 4-manifolds. Mat. studii, 16(1):99–104, 2001a.DOI
- [32]A. Prishlyak. Conjugacy of Morse functions on 4-manifolds. Russian Mathematical Surveys, 56(1):170–171, 2001c. doi:10.1070/RM2001v056n01ABEH000370.DOI
- [33]A. Prishlyak. Morse theory. Kyiv University, 2002a.
- [34]A. Prishlyak. Foundations of modern topology. Kyiv University, 2006. URL https://www.researchgate.net/publication/364355863_Osnovni_sucasnoi_topologii.
- [36]A. Prishlyak. Manifold topology. Kyiv University, 2015. URL http://www.mechmat.univ.kiev.ua/wp-content/uploads/2018/03/topolog_pryshljak.pdf.
- [41]A. Prishlyak. One-cycle signed chord diagrams. Computer software, 2026b. URL https://doi.org/10.5281/zenodo.23084341.
- [42]A. Prishlyak. Smale handle decomposition viewer for surfaces (via rotation systems). Computer software, 2026c. URL https://doi.org/10.5281/zenodo.23879705. Online version: https://prishlyak.github.io/smale-handle-viewer/.
- [43]A. Prishlyak. Visualizer of MS, SN and SC flows and their bifurcations from a rotation-system code. Computer software, 2026d. URL https://doi.org/10.5281/zenodo.23764761.
- [44]A. Prishlyak. Rotation-system codes: enumeration and visualization of cellular graph embeddings. Computer software, 2026e. URL https://doi.org/10.5281/zenodo.23040153.
- [46]A. Prishlyak and I. Ovtsynov. Viewer and enumerator of morse flow codes on the 2-disk with holes. Computer software, 2026. URL https://doi.org/10.5281/zenodo.24293352.
- [49]A. Prishlyak and V. Tereschenko. Reeb graph of the heigh function on a planar polygon. Bulletin of Taras Shevchenko National University of Kyiv. Physics and Matematic, 79(2):34–38, 2024. doi:10.17721/1812-5409.2024/2.9.
- [53]A. O. Prishlyak. Minimal morse functions on a pair of manifolds. Ukrainian Mathematical Journal, 45(1):160–161, jan 1993. doi:10.1007/bf01060251.DOI
- [54]A. O. Prishlyak. Minimal handle decomposition of smooth simply connected five-dimensional manifolds. Ukrainian Mathematical Journal, 46(12):1907–1913, dec 1994. doi:10.1007/bf01063175.DOI
- [55]A. O. Prishlyak. Isomorphisms of combinatorial block decompositions of three-dimensional manifolds. Ukrainian Mathematical Journal, 51(4):636–638, apr 1999a. doi:10.1007/bf02591766.DOI
- [56]A. O. Prishlyak. On topologically equivalent morse functions on 3-manifold. Methods Funct. Anal. Topology, 5(3):49–53, 1999b. ISSN 1029-3531. URL http://mfat.imath.kiev.ua/article/?id=103.
- [59]A.O. Prishlyak. On graphs embedded in a surface. Russian Mathematical Surveys, 52(4):844, 1997b. doi:10.1070/RM1997v052n04ABEH002074.DOI
- [60]A.O. Prishlyak. Conjugacy of morse functions on surfaces with values on a straight line and circle. Ukrainian Mathematical Journal, 52(10):1623–1627, 2000. doi:10.1023/A:1010461319703.DOI
- [63]A.O. Prishlyak. Morse–smale vector fields without closed trajectories on 3 -manifolds. Mathematical Notes, 71(1):230–235, 2002d. doi:10.1023/A:1013963315626.DOI
- [64]A.O. Prishlyak. Topological equivalence of smooth functions with isolated critical points on a closed surface. Topology and its Applications, 119(3):257–267, 2002e. doi:10.1016/S0166-8641(01)00077-3.DOI
- [65]A.O. Prishlyak. Regular functions on closed three-dimensional manifolds. Dopov. Nats. Akad. Nauk Ukr. Mat. Prirodozn. Tekh. Nauki, 8:21–24, 2003a.
- [67]A.O. Prishlyak. Topological classification of m-fields on two-and three-dimensional manifolds with boundary. Ukrainian Mathematical Journal, 55(6):966–973, 2003c.DOI
- [68]A.O. Prishlyak. Complete topological invariants of morse–smale flows and handle decompositions of 3-manifolds. Fundamentalnaya i Prikladnaya Matematika, 11(4):185–196, 2005.
- [70]A.O. Prishlyak and K.I. Mischenko. Classification of noncompact surfaces with boundary. Methods of Functional Analysis and Topology, 13(1):62–66, 2007.
- [72]G. Reeb. Sur les points singuliers d’une forme de Pfaff complètement intégrable ou d’une fonction numérique. Comptes Rendus de l’Académie des Sciences, 222:847—849, 1946.
- [73]V.V. Sharko. Functions on manifolds. Algebraic and topological aspects., volume 131 of Translations of Mathematical Monographs. American Mathematical Society, Providence, RI, 1993.DOI

