How this calculation works
A vector may be closed after reducing every coefficient modulo a prime even when its integral coboundary is not zero. The Bockstein operation measures that obstruction. Dividing the integral coboundary by the prime produces a cocycle one degree higher.
For integer cochain differential D:C^q->C^{q+1} with D_next D=0 and prime p, validate input mod-p cocycle a. Choose integer representatives0..p-1, compute w=D a, require divisibility byp, set b=w/p modp. Prove D_next b=0 exactly and reduce b modulo im(D modp) using modular RREF. Beta represented in H^{q+1}(C;F_p) is the connecting map for 0->Z/p->Z/p²->Z/p->0; equivalently integral connecting map then reduction. Odd-p Beta²=0; mod2 Beta=Sq1. Include whole Hq basis only if quotient basis is explicitly computed.A worked example
With the prefilled inputs, isZeroClass = No. coboundaries[i] has rows C^(i+1),columns C^i; integer entries and integer delta²=0.
Good to know
Connecting map for0→Z/p→Z/p²→Z/p→0;lift c to integers and reduce δc/p modulo p and coboundaries. A quotient representative depends on ordered input bases.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
A cocycle can hide an integral obstruction
A vector may be closed after reducing every coefficient modulo a prime even when its integral coboundary is not zero. The Bockstein operation measures that obstruction. Dividing the integral coboundary by the prime produces a cocycle one degree higher.
The result is a cohomology class, not simply the divided vector. Two output vectors differing by an ordinary coboundary represent the same answer. This distinction lets the calculator separate a nonzero coordinate vector from a genuinely nontrivial obstruction class.
Compare with the Simplicial cohomology cup product calculator over two elements. Compute the connecting map for0→Z/p→Z/p²→Z/p→0fromintegerdifferentials; mod2cupproductdoesnot recovercoefficientextensionoperations.
Integer matrices and prime coefficients
coboundaries[i] has rows C^(i+1),columns C^i; integer entries and integer delta²=0.Enter integer cochain matrices with the degree increasing from source to target. The product of consecutive matrices must be zero over the integers. Supplying matrices known only modulo p loses the information needed for the division step and cannot define this calculation reliably.
The input class is a vector of residues matching the source degree. Before lifting it, the calculator checks that it is a cocycle modulo p. A vector outside the cocycle space is an invalid class, even if a later quotient calculation happens to produce convenient coordinates.
Lifting, dividing and reducing
Choose the ordinary integer representatives from zero through p minus one. Multiplying by the integer differential gives a vector whose coordinates are divisible by p because the original residue vector was closed. Divide exactly before performing any further modular reduction.
The next differential annihilates the divided vector, since consecutive integral differentials compose to zero. Row reduction over the prime field then removes its coboundary component. The displayed quotient coordinates depend on a chosen cohomology basis, while triviality of the class does not.
Why the lift does not change the class
A second integer lift differs from the first by p times an integer vector. Its divided coboundary therefore changes by the ordinary differential of that vector. This is a coboundary after reduction, so the cohomology class is unchanged.
The same reasoning explains why adding a coboundary to the entered representative does not alter the operation on cohomology. These are useful implementation checks: changing a lift or representative should change intermediate vectors only in the ways predicted by the quotient construction.
A one-coordinate example at prime three
Consider a cochain differential given by multiplication by 3, followed by a zero differential. Modulo 3 the first differential vanishes, so the residue vector containing 1 is a cocycle. Its integer lift has coboundary 3.
Dividing by 3 gives 1 in the next degree. There are no nonzero incoming coboundaries modulo 3 in that example, so the resulting class is nonzero. Replacing the differential by multiplication by 9 changes the divided vector to 3 and the reduced Bockstein becomes zero.
Reading representative and class outputs
The output includes the divided integral coboundary, its reduction modulo p and a representative after removing incoming coboundaries. These are different stages of the construction. A nonzero divided vector may still become zero in the cohomology quotient, so the is-zero-class result is the relevant summary for the entered class.
This release computes one supplied cocycle class at a time, rather than an entire cohomology-map matrix. It supports primes two, three and five, positive coordinate dimensions at most ten and integral matrix entries with magnitude at most one million. Coordinates use the entered ordered bases, so a quotient representative need not equal the original vector even when it represents the same class.
Relation to other cohomology operations
With mod-two coefficients the first Steenrod square agrees with this Bockstein. Higher Steenrod squares need extra cochain operations and cannot be recovered by repeatedly dividing arbitrary integer matrices. For odd primes, this connecting operation still exists without becoming a square of degree two.
The bounded problem is an algebraic cochain calculation. It does not reconstruct an integral complex from a mod-p matrix, choose a triangulation automatically, or infer that a coordinate basis is a canonical topological basis. Those inputs must be supplied or justified separately. Connecting map for0→Z/p→Z/p²→Z/p→0;lift c to integers and reduce δc/p modulo p and coboundaries. A quotient representative depends on ordered input bases.
A few questions, answered
Why are integer differentials needed?
Reduction modulo p discards the multiples of p that the operation must divide before reducing again.
Is a nonzero output vector always a nonzero class?
No; it must also survive quotienting by the incoming coboundaries.
Does the choice of lift matter?
It changes the divided vector by a coboundary, leaving its cohomology class unchanged.
Is this the same as every Steenrod square?
Only the first square over mod-two coefficients; higher squares require additional cochain operations.