How this calculation works
Compute the multiplicative structure of simplicial cohomology over GF(2), rather than stopping at Betti numbers. The calculator generates every face of an entered complex, finds cocycle representatives modulo coboundaries and expresses their cup products in a cohomology basis. The projective-plane default demonstrates a nonzero degree-one square that additive dimensions alone would not reveal.
δ:C^k→C^(k+1); H^k=kerδ/imδ; (a∪b)[v0,…,vp+q]=a[v0,…,vp] b[vp,…,vp+q] over GF(2).A worked example
For the six-vertex projective-plane triangulation, Betti=[1,1,1,0]. The H¹ representative has support {01,02,13,24,34}; its square has triangle support {013,024,134}. Adding δ of the edge cochain {02,13} yields the H² representative {012}; hence a²=b≠0.
Good to know
GF(2), dimension at most 3, 1–64 entered simplices, at most 128 generated nonempty faces, labels0–99. Original ordered simplicial Alexander–Whitney cup product, exact quotient coordinates and explicit basis-boundary invariance checks. Ordinary unreduced cohomology. No integral torsion or persistent ring.
Reference: Method reference (opens in a new tab) ↗
From maximal simplices to cochains
Each input row specifies a simplex by its distinct vertex labels, and all of its nonempty faces are generated automatically. Vertices are ordered by their numeric labels; this order determines the front and back faces used in the cochain-level product.
A degree-k cochain assigns a bit to each k-simplex. Addition is exclusive-or, so two copies cancel. These coefficients intentionally discard orientation signs and integer torsion information; a result over GF(2) should not be described as an integral cohomology ring.
Compare this with the Simplicial homology calculator from maximal simplices. Betti numbers alone cannot distinguish spaces with different cohomology ring products.
Separating cocycles and coboundaries
The coboundary operator evaluates a cochain on every codimension-one face of the next simplex and adds those bits. A cocycle lies in its kernel. A coboundary is the image of the preceding operator and represents the zero cohomology class.
The calculator first builds a basis for coboundaries and then extends it with cocycles. The extension vectors supply representative classes, while reduction against the combined basis determines when apparently different cochains define the same class.
Multiplying front and back faces
For a degree-p cochain a and degree-q cochain b, the Alexander–Whitney formula evaluates their product on an ordered simplex using a on its first p+1 vertices and b on its last q+1 vertices. The two faces share one vertex.
The product is computed on cochains before reducing modulo coboundaries. Its individual simplex values can depend on representative choices, but its cohomology class cannot. A raw support list is therefore different information from the displayed product coordinates in the quotient basis.
Reading the projective-plane example
The default ten-triangle complex has six vertices, fifteen edges and ten triangles. Over GF(2), its Betti numbers are 1, 1 and 1 in degrees zero, one and two. The degree-one representative a is supported on edges 01, 02, 13, 24 and 34.
The computed square a cup a is supported on triangles 013, 024 and 134. It differs from the chosen degree-two representative on triangle 012 by the coboundary of the edge cochain supported on 02 and 13, proving that its quotient coordinate is the nonzero generator.
Checking representative independence
For each displayed product, the implementation verifies that its cochain is closed. It also multiplies basis coboundaries on either side by the relevant cocycle representatives and checks that every resulting product reduces to zero in cohomology.
These checks target the reason a product descends to the quotient, rather than merely recomputing Betti numbers. They do not turn a chosen basis into a canonical labeling: a different valid elimination order can change representatives and table coordinates without changing the ring up to isomorphism.
Understanding degree zero and missing degrees
Ordinary unreduced cohomology is used. A connected nonempty complex has a one-dimensional degree-zero group whose constant-one class acts as the multiplicative identity. For disconnected complexes, degree zero instead records independent constant values on the components.
A product of degrees p and q lands in degree p+q. If that cohomology group vanishes, the product is zero even when the two factors are nonzero. Products above the complex dimension also vanish; this is not an omitted numerical approximation.
Keeping the bounded model in view
Use at most sixty-four entered simplices with one through four vertices each, and at most 128 generated nonempty faces. Labels range from zero through ninety-nine. Repeating a vertex within one simplex is rejected because it does not define an ordinary simplex.
The output describes the entered abstract simplicial complex. No geometric embedding, manifold recognition, persistent filtration or integral-ring computation is inferred from its labels. A user who identifies vertices or changes triangles is changing the space being studied, not merely improving its drawing.
A few questions, answered
Why use coefficients modulo two?
GF(2) gives exact binary arithmetic and removes orientation signs. It does not retain integral torsion information.
Does a nonzero class always have a nonzero square?
No. The product may vanish in the target degree; the projective-plane default is a specific nonzero example.
Can two different supports represent the same class?
Yes. Their difference can be a coboundary, which the quotient reduction removes.
Is the degree-zero class removed?
No. This is ordinary unreduced cohomology, so degree zero remains in the output.