Advanced maths

Second group cohomology calculator over a prime field

Compute degree-two group cohomology for a small finite group acting trivially on a prime field.

Your numbers

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 degree-two group cohomology for a small finite group acting trivially on a prime field. The calculation builds the normalized cocycle equations, forms the coboundary image and returns representatives of the quotient, making the distinction between cocycles and cohomology classes explicit.

THE FORMULAf(b,c)−f(ab,c)+f(a,bc)−f(a,b)=0; δu(a,b)=u(a)+u(b)−u(ab); H²=Z²/B², with trivial action.

A worked example

For C2={e,g} over GF(2), the only normalized variable is f(g,g). Both 0 and1 satisfy every cocycle equation, while every normalized coboundary has value0. Thus dim H²(C2,GF(2))=1, represented by f(g,g)=1.

Good to know

Validated groups order≤8; p in2,3,5,7; trivial action on the additive coefficient field. Normalized cochains only. Exact modular bases and quotient representatives; no nontrivial module actions, integral coefficients or projective-unitary multiplier claims.

The coefficient action is part of the problem

Group cohomology depends on both the group and its action on the coefficient module. Here every group element acts as the identity on the additive field GF(p), so all coefficients use ordinary modular addition.

This assumption is fixed and visible. Replacing it with a sign action or a matrix action changes the cocycle equations and can change the dimension. A prime field input alone does not specify an arbitrary group representation.

Second group cohomology calculator over a prime field worked exampleNormalized cohomology: C2 over GF(2)Only coordinate: f(g,g)01Z² = {0,1}B² = {0}H² = Z²/B²dimension = 1
Scroll across to see the full diagram.
For C2={e,g} over GF(2), the only normalized variable is f(g,g). Both 0 and1 satisfy every cocycle equation, while every normalized coboundary has value0. Thus dim H²(C2,GF(2))=1, represented by f(g,g)=1.

Compare this with the Simplicial homology calculator from maximal simplices. Homology of a supplied simplicial complex is not a group 2-cocycle or extension calculation.

Normalized cochains reduce the variables

A normalized two-cochain vanishes whenever either argument is the identity. For a group of order n, this leaves (n−1)² coordinates, indexed by ordered pairs of nonidentity elements.

The identity is discovered from the operation table. Pair order matters in nonabelian groups, and the coordinate labels should remain visible alongside each basis vector so that a returned list of field elements can be interpreted as an actual function.

Associativity becomes a linear equation

For a trivial action, a two-cocycle satisfies f(b,c)−f(ab,c)+f(a,bc)−f(a,b)=0 for every triple. Every equation is linear in the normalized pair coordinates, so modular row reduction computes the full kernel.

This equation is also the associativity condition for multiplication on the central extension defined by f. The finite list of triple equations supplies an exact check for every returned representative rather than a numerical residual.

Quotienting the coboundaries

Changing the chosen section of an extension changes its cocycle by δu(a,b)=u(a)+u(b)−u(ab). These coboundaries form a subspace of the cocycles and must be factored out before reporting H².

The implementation starts with a basis for B², then adjoins cocycles that increase its span. The newly added vectors represent a basis of Z²/B². Their coordinates depend on the chosen basis; the quotient dimension does not.

A nontrivial class for C2 over GF2

There is one nonidentity pair (g,g), and any value on that pair satisfies the normalized cocycle condition. In characteristic two the coboundary value 2u(g) vanishes, so the quotient has dimension one.

The zero class gives the split extension C2×C2, while the representative with f(g,g)=1 gives C4 under the standard additive central-extension construction. This interpretation illustrates the class without claiming classification of arbitrary unlabeled total groups.

Changing the prime can kill the group

For a cyclic group Cn with trivial coefficients A, H² is A/nA. Consequently, with A=GF(p), the dimension is one if p divides n and zero otherwise.

For C2 over GF(3), multiplication by two is invertible, so every normalized cocycle is a coboundary. A zero H² result means all classes vanish under the stated action and coefficients; it does not mean that the group itself is trivial.

Validation and interpretation limits

Fixtures compare cyclic orders one through eight across four primes with the independent cyclic formula. The Klein four group over GF(2) gives dimension three, checking a case beyond a single cyclic parameter.

The result describes equivalence classes of central extensions with the given kernel identification and quotient data. It does not automatically merge extensions whose total groups happen to be abstractly isomorphic, and it does not compute higher cohomology rings.

A few questions, answered

Is this simplicial cohomology?

No. It uses the group bar-cochain equations from the multiplication table, with a specified coefficient action.

Why is the action fixed to trivial?

It defines a clear finite scope and central extensions. Nontrivial actions require different terms in the differential.

Can the basis change after relabeling elements?

Yes. Coordinate bases may change, while the quotient dimension remains invariant.

Does dimension d mean d cohomology classes?

No. Over GF(p), dimension d means p^d classes. The displayed d vectors are basis representatives.

Find your calculator

Start typing to explore the library.