Shapes & spaces

Steenrod square calculator for simplicial cohomology classes

Evaluate Steenrod squares on ordered simplicial cocycles and reduce the resulting cohomology class.

Your numbers

Valid JSON. GF(2): list the input simplices with coefficient1. Facets expand to a globally vertex-ordered complex.
Valid JSON; preserve the shown array or object structure.

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

A list of mod-two Betti numbers records the dimensions of cohomology groups but omits many operations between them. Steenrod squares send a class of degree n to classes in higher degrees. Their values can distinguish structures that have identical dimensions in each degree.

THE FORMULAUse actual Medina-Mardones cup-i construction, not ordinary cup product for allk. For n-cocycle a, Sq^k[a]=[a cup_(n-k) a] for0<=k<=n; Sq^0 identity andk>n zero. Ordered simplex closure, mod2 boundary/cohomology matrices, exact cocycle validation/reduction. Formula on chains: Delta_i(x)=sum_{U subset{0..m}, |U|=m-i} d_{U^-}(x) tensor d_{U^+}(x), U^- indices u_j withu_j+j even, U^+ odd (j one-based); validate indexing directly against paper before coding; evaluating a⊗a only survives factors degree n. A naive all-subset approach must have explicit combinatorialworkcap. A CP² fixture with verified actual triangulation is mandatory for nontrivial Sq².

A worked example

With the prefilled inputs, isZeroClass = No. GF(2): list the input simplices with coefficient1. Facets expand to a globally vertex-ordered complex.

Good to know

GF(2) ordered-simplex cup-i formula,Sq^k[α]=[α cup_(p−k) α]. Vertex labels define global order. Sq0 identity; Sq1 relates to mod2 Bockstein; higher squares computed combinatorially,not inferred from dimensions.

What a Steenrod square adds

A list of mod-two Betti numbers records the dimensions of cohomology groups but omits many operations between them. Steenrod squares send a class of degree n to classes in higher degrees. Their values can distinguish structures that have identical dimensions in each degree.

The input must therefore describe a simplicial complex and a cocycle, not just a desired cohomology ring. Computing an operation from actual simplices provides a chain-level result that can be checked and then reduced to a cohomology class.

Steenrod square calculator for simplicial cohomology classesA higher square on the projective-plane generatordegree 2degree 4xx² ≠ 0Sq²H*(CP²; F₂) = F₂[x]/(x³), |x| = 2
Scroll across to see the full diagram.
The degree-two generator of CP² has Sq²x=x²≠0. This illustrates the verified cohomology relation, not an unverified drawn triangulation; a real simplicial fixture is still required.

Compare with the Simplicial cohomology cup product calculator over two elements. Compute highercup-ioperations and Sq^k onenteredclasses; ordinarycupproduct givesonlythetop square and cannotdeterminelowersquares.

Vertex order and cochain coordinates

GF(2): list the input simplices with coefficient1. Facets expand to a globally vertex-ordered complex.List the facets with distinct nonnegative integer vertex labels; the engine sorts labels to define a global vertex order and expands all nonempty faces. Enter the cocycle by listing the degree-p simplices whose coefficient is one. The calculator expands all faces before constructing cochain coordinates. A residue assigned to a simplex means its coefficient in that explicit ordered list.

The cochain must be closed under the mod-two coboundary. Reducing arbitrary data to something convenient would change the question. Missing faces, inconsistent vertex labels and vectors of the wrong length should be rejected before any square is evaluated.

The cup-i construction behind the answer

For an n-cocycle a, the operation Sq to the k is represented by a cup-(n-k) a. The ordinary cup product occurs in the top square k=n. Lower squares use different cup-i products and cannot all be replaced by the ordinary product.

A combinatorial diagonal formula splits faces according to indexed subsets of an ordered simplex. Parity conventions in those subsets must match the chosen formula exactly. The implementation returns the evaluated support and the support of a quotient representative, and checks that the output cochain is closed. These support lists are exact mod-two coordinate results, not a floating numerical approximation.

From a cochain to a cohomology class

The computed cochain lives in degree n+k. Its coordinates can be nonzero while its class vanishes, because a coboundary is zero in cohomology. Modular elimination removes that ambiguity and expresses the answer in the displayed target basis.

Changing the entered cocycle by a coboundary should preserve the resulting class. That gives a strong test of the operation on representatives. The dimensions of the source and target groups alone are insufficient to predict a square when the target is nonzero.

A genuinely higher-square example

For the degree-two generator x of the complex projective plane with mod-two coefficients, the top-square identity gives Sq squared of x equal to x times x. That product is its nonzero degree-four generator, so this example exercises a higher operation.

This is a mathematical higher-square identity rather than the default input fixture. The prefilled three-edge circle instead computes Sq to the zero on its nonzero degree-one class; its output remains the same class even if quotient reduction changes the supporting edge. The implemented cup-i formula supports higher indices directly instead of hard-coding a cohomology-ring identity.

Identities that catch indexing mistakes

The zeroth square is the identity, and squares with index greater than the class degree vanish. The top square agrees with the ordinary cup square. These identities are accessible checks across many complexes and catch several common face-indexing errors.

Over mod-two cohomology, the first square also agrees with the relevant Bockstein operation. Comparing those independently constructed answers gives another check. It does not mean that all higher operations are determined by an integer-matrix division procedure.

Bounds and honest failure states

Face expansion can be much larger than the entered maximal-simplex list. Caps must apply to expanded simplices, cochain dimensions and the combinatorial work performed by the cup-i formula. Reaching a cap must produce an unresolved result rather than an invented zero.

The release accepts at most one hundred facets, at most1024 expanded simplices, input degree zero through four and output degree at most six. The square index must lie between zero and the input degree; used cochain degrees are capped at two hundred coordinates, and coefficients are exactly in the field with two elements. It does not calculate integral Steenrod operations, characteristic classes of an unspecified bundle, or operations on a space supplied only by its name. Those require additional mathematical data and algorithms. GF(2) ordered-simplex cup-i formula,Sq^k[α]=[α cup_(p−k) α]. Vertex labels define global order. Sq0 identity; Sq1 relates to mod2 Bockstein; higher squares computed combinatorially,not inferred from dimensions.

A few questions, answered

Can I enter only Betti numbers?

No; the operation needs cochain-level information from a specified complex and class.

Why is the ordinary cup square insufficient?

It computes the top square only; the other indices require cup-i products.

Does zero target cohomology force a zero square?

Yes, although the intermediate cochain may still contain nonzero coordinates.

What does the prefilled circle check?

It checks Sq0 as the identity on a nonzero degree-one class, including reduction modulo coboundaries; it does not by itself certify a nontrivial Sq2 example.

Find your calculator

Start typing to explore the library.