Enter your values
Ranks must be compatible with the dimensions and βk ≥ 0. These checks do not verify actual boundary matrices or prove ∂² = 0 for a particular complex.
What is a simplicial homology calculator?
Simplicial homology measures holes in a simplicial complex by comparing cycles with boundaries. For a chain group Cₖ, the Betti number is βₖ = dim Cₖ − rank(∂ₖ) − rank(∂ₖ₊₁), where ∂ₖ maps k-simplices to their (k−1)-dimensional boundaries.
Important terms
- Chain group Cₖ
- The vector space generated by the k-simplices of a complex; its dimension is the number of k-simplices.
- Boundary map ∂ₖ
- A linear map from Cₖ to Cₖ₋₁ that sends each simplex to its oriented boundary.
- Betti number βₖ
- The dimension of homology Hₖ; it counts independent k-dimensional holes over the chosen coefficient field.
- Boundary rank
- The rank of ∂ₖ, equal to the dimension of its image in Cₖ₋₁.
When this method is useful
- Derive homology ranks from chain dimensions and boundary-map ranks.
- Check introductory simplicial-homology examples for circles, disks, and spheres.
- Verify the Euler characteristic from both simplex counts and Betti numbers.
Formula and variables
- Cₖ
- chain group generated by the k-simplices
- ∂ₖ
- boundary map Cₖ → Cₖ₋₁
- βₖ
- k-th Betti number, dim Hₖ
- χ
- Euler characteristic
The kernel of ∂ₖ is the cycle space. Boundaries from dimension k+1 form a subspace of those cycles because ∂ₖ∂ₖ₊₁ = 0. Subtracting the dimension of boundaries from the dimension of cycles gives βₖ. By rank-nullity, dim ker ∂ₖ = dim Cₖ − rank ∂ₖ, yielding the displayed formula.
Domain note: This tool checks nonnegative integer dimensions, possible boundary-map rank bounds, and nonnegative resulting Betti numbers. It does not accept boundary matrices and therefore cannot verify the chain condition ∂ₖ∂ₖ₊₁ = 0 or certify that supplied ranks arise from a particular simplicial complex. The coefficient field can affect homology when torsion is present; use ranks and Betti numbers over the same field.
How to use this calculator
- 1
Enter dim Cₖ, the number of k-simplices, for each consecutive dimension beginning at k = 0.
- 2
Enter rank(∂ₖ) for each boundary map from Cₖ to Cₖ₋₁; ∂₀ is set to rank zero.
- 3
For each dimension, subtract the incoming and outgoing boundary ranks from dim Cₖ to obtain βₖ.
- 4
Compare the alternating sum of simplex counts with the alternating sum of Betti numbers; both must equal χ.
Step-by-step examples
Example 1
Problem: Find the Betti numbers of a triangular loop with 3 vertices and 3 edges, where rank(∂₁) = 2.
Substitution: β₀ = 3 − 0 − 2 = 1; β₁ = 3 − 2 − 0 = 1.
Result: (β₀, β₁) = (1, 1), and χ = 3 − 3 = 1 − 1 = 0.
The connected loop has one independent component and one independent one-dimensional hole.
Example 2
Problem: A filled triangle has 3 vertices, 3 edges, 1 face, and boundary ranks 2 and 1.
Substitution: β₀ = 3 − 0 − 2 = 1; β₁ = 3 − 2 − 1 = 0; β₂ = 1 − 1 − 0 = 0.
Result: Betti sequence (1, 0, 0), with χ = 1.
Filling the loop with a 2-simplex removes its one-dimensional hole.
Example 3
Problem: The tetrahedron boundary has 4 vertices, 6 edges, 4 faces, and boundary ranks 3 and 3.
Substitution: β₀ = 4 − 0 − 3 = 1; β₁ = 6 − 3 − 3 = 0; β₂ = 4 − 3 − 0 = 1.
Result: Betti sequence (1, 0, 1), with χ = 2.
The boundary is a triangulated 2-sphere: it is connected and encloses one two-dimensional homology class.
Rules, edge cases, and related ideas
Cycles minus boundaries leave holes
A k-cycle is a chain with zero boundary. A cycle that is itself the boundary of a higher-dimensional chain does not represent a hole; the quotient of cycles by boundaries is Hₖ.
The Euler sums must agree
Alternating ranks of chain groups and homology groups have the same Euler characteristic because ranks of adjacent boundary maps cancel in the alternating sum.
Edge cases and limitations
- For dimension zero, rank(∂₀) is zero by convention.
- The highest entered dimension has no outgoing boundary map in this finite input, so that rank is set to zero.
- A boundary rank cannot exceed either adjacent chain-group dimension.
- If boundary ranks around Cₖ sum to more than dim Cₖ, the implied Betti number would be negative and the input is rejected.
Understand the result
The Betti sequence summarizes independent homology classes by dimension. β₀ counts connected components; β₁ counts independent loops; β₂ counts enclosed two-dimensional cycles in a three-dimensional setting. The Euler characteristic provides a useful consistency invariant, but it cannot uniquely identify a space.
Common mistakes
- Confusing the number of k-simplices with the dimension of Hₖ; these are different quantities.
- Entering rank(∂ₖ) under the wrong dimension: it maps Cₖ to Cₖ₋₁.
- Forgetting that βₖ counts cycles modulo boundaries, not all cycles.
- Assuming compatible ranks alone prove ∂² = 0; actual boundary maps are needed to verify that condition.
Frequently asked questions
How do I calculate a Betti number from boundary ranks?
Use βₖ = dim Cₖ − rank(∂ₖ) − rank(∂ₖ₊₁). This follows from rank-nullity and the fact that boundaries are contained in cycles when ∂² = 0.
What is rank(∂₁) for a connected graph?
For a graph with v vertices and c connected components, rank(∂₁) = v − c over a field. A connected graph therefore has rank v − 1.
Does the calculator verify boundary matrices?
No. It checks dimension and rank bounds and calculates implied Betti numbers. It does not construct matrices or test that consecutive boundary maps compose to zero.
Why does Euler characteristic work as a check?
For a finite chain complex, the alternating sum of chain-group dimensions equals the alternating sum of homology dimensions: χ = Σ(−1)ᵏ dim Cₖ = Σ(−1)ᵏβₖ.