Advanced maths

Discrete Morse acyclic matching calculator for a simplicial complex

Search the face poset of a finite simplicial complex for an acyclic discrete Morse matching.

Your numbers

One simplex per row; all nonempty faces are added automatically.
Coset enumeration counts allocated rows, including later merged rows. Morse matching counts visited search states. Exhaustion returns an explicitly unresolved result.
Use the bounded integer specified in the limits.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Search the face poset of a finite simplicial complex for an acyclic discrete Morse matching. Return matched face pairs, critical cells, a directed-acyclicity certificate and Morse inequalities, with optimality stated only when exhaustive search completes.

THE FORMULAcritical cells = total simplices−2×matched pairs; βk≤mk and Σ(−1)^k mk=χ(K)

A worked example

The three-edge triangle boundary admits two vertex-edge pairs, leaving one critical vertex and one critical edge. Its critical counts1,1,0,0 match its Betti counts and are globally optimal when the bounded search finishes.

Good to know

At most40 nonempty expanded simplices; listed simplices≤32, vertices per simplex≤4, labels0–99. Search cap1–200000 states, prime2–13 for homology checks. Objective minimizes total critical cells. Exhaustion returns a valid incumbent with unresolved optimality. No geometric collapse, perfect matching or global optimum claim after exhaustion.

Reduce combinatorial complexity with a matching

Discrete Morse theory pairs cells with incident cells one dimension higher, leaving unmatched cells as critical. For a simplicial complex, these pairs live in its face poset. A matching can encode a much smaller cell description, but it must satisfy an acyclicity condition to carry the required topological meaning.

The objective used here is to minimize the total number of critical cells across all dimensions. It does not prioritize a particular dimension or optimize a geometric mesh quality measure. Two matchings with equal total size can leave different critical cells, and either can be a valid answer to this stated combinatorial objective.

Two pairs leave the circle’s essential cells011202012two matched pairs; two critical cells
Scroll across to see the full diagram.
Matched upward face relations leave one critical vertex and one critical edge.

Compare this with the Simplicial homology calculator from maximal simplices. Find a bounded optimal acyclic face-poset matching and critical-cell counts,rather than only Betti numbers.

Expand the face poset exactly

Supply simplices by integer vertex labels, one row per simplex. Every nonempty face is added automatically. The face poset therefore includes vertices, edges, triangles and tetrahedra that occur in the listed complex. Its cover relations connect each simplex to its codimension-one cofaces rather than to all higher containing simplices indiscriminately.

The empty simplex is excluded, so the calculation uses ordinary unreduced cell counts and homology. This matters for the critical vertex of a connected complex. A matching cannot pair that last vertex with an empty face under these conventions, even if an augmented or reduced chain-complex convention would organize the bookkeeping differently.

Test the acyclic matching condition

No simplex may occur in more than one selected pair. Orient every unselected cover relation downward, from a higher simplex to its face, and reverse every selected pair upward. The matching is acyclic exactly when the resulting directed graph contains no directed cycle. A topological-sort test supplies this certificate.

Pair disjointness alone is insufficient. Pairing each vertex of a polygon to the next edge could create a directed loop even though each cell appears only once. The acyclicity check rejects such a selection, preventing an overoptimistic reduction that would incorrectly eliminate the circle's essential one-dimensional topology from the critical-cell count.

Understand the bounded search

The search considers possible face-coface pairs and keeps only selections that remain disjoint and acyclic. A simple upper bound on how many additional pairs can fit prunes branches that cannot improve the incumbent. Every saved incumbent is independently checked before its matching and critical cells are returned as a valid certificate.

A completed search certifies the minimum total critical-cell count within this face poset. Reaching the state cap instead returns the best valid matching discovered so far and explicitly marks optimality unresolved. The incumbent can still be useful, but search effort and a plausible count do not turn an unfinished computation into a proof of global optimality.

Follow the simplicial circle example

The default complex is a triangle boundary, with three vertices and three edges but no two-simplex. Two vertex-edge pairs can be chosen without a directed cycle. These consume four cells, leaving one unmatched vertex and one unmatched edge. The returned counts are therefore1,1,0,0 by dimension.

Its homology over the selected field has one component and one independent cycle. The matching meets both Betti lower bounds, so two critical cells cannot be improved. Pairing the remaining vertex and edge as well would produce the forbidden cyclic orientation, which explains combinatorially why the essential circle class prevents a zero-critical-cell result.

Read the Morse inequality checks

The number of critical k-cells must be at least the kth Betti number over the selected prime field. Strong Morse inequalities compare alternating partial sums, and the full alternating sum agrees with the Euler characteristic. The calculator checks these relations in addition to the directed acyclicity test rather than presenting cell counts without topological cross-checks.

These inequalities are necessary consistency checks, not a substitute for constructing the matching. Matching the Betti numbers in every dimension gives a perfect Morse count over that coefficient field, but a matching with larger counts can still be valid. Different fields may produce different homology lower bounds even though the combinatorial matching itself does not change.

Avoid stronger geometric conclusions

The output certifies pairs in an abstract face poset and their directed acyclicity. It does not claim that the exact supplied geometric realization collapses through a listed sequence of free-face removals. An acyclic matching is a broader discrete Morse certificate, and translating it into other constructions requires the appropriate theorem and additional bookkeeping.

The forty-cell bound limits the exponential search, while the explicit state cap makes resource use predictable. Start with a small complex whose ordinary homology is understood, then inspect the returned pairs and critical cells. Preserve the full simplex list and unresolved-or-complete status when sharing a result, since omitting that status could overstate what the bounded search established.

A few questions, answered

What is optimized?

The total number of unmatched nonempty simplices across all dimensions.

Does a search cap invalidate the matching?

No. The saved matching is valid, but its global optimality remains unresolved.

Are disjoint face pairs enough?

No. Reversing matched cover edges must also yield a directed acyclic graph.

Does this prove a geometric collapse?

No. It certifies an acyclic face-poset matching without claiming a specific free-face collapse sequence.

Find your calculator

Start typing to explore the library.