Advanced maths

Relative simplicial homology calculator for a complex and subcomplex

Compute relative simplicial homology of a finite complex and a verified subcomplex over a small prime field.

Your numbers

One simplex per row; all nonempty faces are added automatically.
One subcomplex simplex per row; faces are added. Use none for the empty subcomplex.
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

Compute relative simplicial homology of a finite complex and a verified subcomplex over a small prime field. Construct quotient-chain boundaries, return relative Betti numbers and check boundary-square and Euler identities.

THE FORMULAC_d(K,L)=C_d(K)/C_d(L); β_d=dim C_d−rank∂d−rank∂(d+1)

A worked example

A filled triangle relative to its boundary has Betti numbers0,0,1,0 over F3. All boundary vertices and edges vanish in the quotient, leaving its single triangle as a relative2-cycle.

Good to know

Finite abstract complexes with≤32 input simplices,≤4 vertices per simplex,≤96 expanded faces; labels0–99. Prime field2–13. Empty subcomplex allowed through none; nonempty ambient complex required. Unreduced homology, no integer torsion, singular chains, geometric intersection inference or long exact sequence maps.

Compare a space with a subspace

Relative homology studies chains of a complex K while treating chains contained in a chosen subcomplex L as zero. A chain whose ordinary boundary lies entirely inside L becomes a relative cycle. This is why a filled disk can contribute a relative two-dimensional class even though its ordinary second homology vanishes.

The input must describe a genuine subcomplex, not simply a set of coordinates drawn inside another shape. This calculator uses abstract vertex-labeled simplices. It checks inclusion after expanding all faces, so a subcomplex edge must actually occur as a face in the ambient combinatorial complex before the quotient is constructed.

The boundary disappears in the quotientK \ L021boundary edges belong to L
Scroll across to see the full diagram.
The filled triangle remains while its three edges and vertices lie in the subcomplex.

Compare this with the Simplicial homology calculator from maximal simplices. Compute homology of the quotient chain complex C(K)/C(L),not absolute homology of K alone.

Describe complexes by their simplices

Enter one simplex per row using distinct integer vertex labels. Faces are added automatically, so a row with three vertices supplies the triangle, its three edges and its three vertices. You can enter maximal simplices only, or include redundant faces without changing the represented complex or the result.

Use none for an empty subcomplex. The ambient complex must be nonempty. Vertex order in an input row is normalized by sorting labels; this establishes one consistent orientation for boundary matrices. Repeated labels inside a simplex are rejected rather than interpreted as a degenerate singular simplex in a different chain theory.

Form the quotient-chain basis

In each dimension, the quotient-chain basis contains precisely those ambient simplices that do not belong to the subcomplex. The usual alternating boundary is formed, then any face lying in L is deleted from that boundary. Removing a face here means setting its quotient coordinate to zero, rather than forgetting its ambient existence.

Subcomplex inclusion ensures that this deletion defines a valid chain complex. The program checks consecutive quotient-boundary products and requires exact zero modulo the selected prime. That identity is central: without it, incoming boundaries might fail to be cycles, and subtracting their ranks would not compute a homology group at all.

Follow the triangle relative to its boundary

The default ambient complex is one filled triangle. Its subcomplex consists of all three boundary edges and therefore all three vertices. In the quotient, the dimensions of chain groups in degrees zero and one are both zero, while the two-chain group has the triangle as its single basis vector.

The triangle's boundary lies in the subcomplex, so its quotient boundary is zero. No three-simplex exists to make that triangle a relative boundary. Thus the relative Betti numbers are0,0,1,0. This is a relative fundamental class, and its presence should not be confused with an unfilled hole in the original disk.

Read ranks and the Euler check

The result lists quotient bases, chain dimensions, boundary matrices and boundary ranks alongside the relative Betti sequence. In degree d, subtract the outgoing and incoming ranks from the quotient-chain dimension. All arithmetic is performed in the selected prime field, so signs and rank reductions follow that characteristic exactly.

The alternating sum of quotient-chain dimensions must equal the alternating sum of relative Betti numbers. This is checked as an additional certificate, separately from boundary-square zero. For the default pair both sums are one. The Euler identity summarizes the ranks globally but cannot replace the more detailed differential checks or the subcomplex-inclusion requirement.

Use limiting pairs as sanity checks

When L is empty, relative homology becomes ordinary unreduced homology of K. A connected filled triangle then has Betti sequence1,0,0,0. When L equals K, every quotient-chain group vanishes and every relative Betti number is zero. These two extremes are useful for checking a custom complex before studying an intermediate subcomplex.

Relative H0 can vanish even when the ambient space is nonempty. For a connected component that meets the subcomplex, its ordinary zero-dimensional class is removed in the relative theory. The default disk-boundary pair illustrates this behavior, so a displayed relative H0 of zero is not evidence that the ambient complex contains no vertices.

Keep coefficient and geometric claims bounded

Betti numbers over a prime field describe dimensions of vector spaces. They do not recover integral torsion groups, and changing the prime can change the answer for some complexes. Preserve the field choice with the complex and subcomplex data when reproducing a calculation or comparing it with a textbook integral-homology example.

The calculator does not infer intersections from geometric drawings or construct a triangulation of overlapping polygons. It also does not compute the connecting maps in the long exact sequence of a pair. Its scope is the explicitly supplied finite quotient-chain complex, with all automatically expanded faces kept inside the stated resource limits.

A few questions, answered

Why can a filled triangle have relative H2?

Its boundary becomes zero when the full boundary subcomplex is quotiented out.

Does none mean reduced homology?

No. It means the empty subcomplex, giving ordinary unreduced homology.

Can I enter a subcomplex vertex absent from K?

No. Every expanded subcomplex face must occur in K.

Does this recover integer torsion?

No. It returns vector-space dimensions over the selected prime field.

Find your calculator

Start typing to explore the library.