Advanced maths

Finite semigroup congruence lattice calculator with quotient multiplication tables

Enumerate every two-sided congruence of a small finite semigroup and construct well-defined quotient tables.

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

Enumerate every two-sided congruence of a small finite semigroup and construct well-defined quotient tables.

THE FORMULAa~b ⇒ xa~xb and ax~bx for every x; quotient multiplication is [a][b]=[ab].

A worked example

For min on {0,1,2}, the congruences are 0|1|2, 01|2, 0|12 and 012: four in total.

Good to know

Associative multiplication tables with 1–8 elements. Enumerate Bell-number set partitions and test a~b⇒xa~xb andax~bx for everyx; complete exact congruence count/refinement Hasse edges, selected quotient table. Show≤256 relations with explicit list truncation while preserving count. No one-sided congruences or abstract presentations.

Start with an associative table

Enter a square multiplication table labeled zero through n−1, for one through eight elements. Every cell must name an element of the same set. The operation need not be commutative and need not have an identity, but it must be associative; all triples are checked before congruences are enumerated.

Associativity is a structural condition, not a display preference. A nonassociative table may still have compatible equivalence relations, but those belong to a different algebraic input model. The selected congruence index chooses which valid quotient to display after enumeration; it does not restrict the search to a guessed relation.

Finite semigroup congruence lattice with quotient multiplication tables exampleCongruence lattice of minimum on {0,1,2}01201 | 20 | 120 | 1 | 2Upward means coarser equivalence
Scroll across to see the full diagram.
For min on {0,1,2}, the congruences are 0|1|2, 01|2, 0|12 and 012: four in total.

Compare this with the Finite semigroup Green relations calculator from an operation table. Enumerate equivalence relations compatible with left and right multiplication and construct all quotient semigroups. Green classes compare generated ideals and need not be congruences; the existing lattice-congruence page requires a lattice order and compatibility with meet/join, not multiplication.

Require compatibility on both sides

A congruence is an equivalence relation compatible with multiplication. Whenever a and b lie in one block, multiplying them on the left by any x must produce related results, and multiplying on the right must also produce related results. Both tests matter when the semigroup is noncommutative.

An arbitrary partition need not pass these conditions. If compatibility fails, choosing different representatives of one quotient class can change the product class, so a quotient table would not be well defined. The calculator retains exactly those partitions for which every representative choice leads to the same block product.

Enumerate the finite lattice

Generate canonical set partitions using restricted-growth labels and test two-sided compatibility. At eight elements there are 4,140 partitions, making complete enumeration feasible. The discrete relation and universal relation always pass. Order valid relations by refinement: a finer relation splits blocks that a coarser relation has merged.

Hasse edges join comparable relations with no valid congruence strictly between them. These are cover edges, not all refinement comparisons. A diagram using every comparable pair would obscure the lattice structure. The complete count is retained even if the interface limits the displayed relation list to 256 entries; truncating presentation does not make the enumeration partial.

Check the three-element chain semilattice

The default operation is minimum on the ordered set 0<1<2. Its congruence blocks must be intervals. The discrete partition, {0,1}|{2}, {0}|{1,2} and the universal partition pass. The remaining partition {0,2}|{1} fails: multiplying equivalent 0 and 2 by 1 gives 0 and 1, which are not equivalent.

Thus there are exactly four congruences. The two intermediate relations are incomparable, with the discrete relation below each and the universal relation above each. Selecting {0,1}|{2} gives a two-element quotient whose multiplication again behaves as minimum, supplying a concrete check that representative choice does not alter the result.

Read the quotient with block labels

A quotient element is a whole congruence class, not one privileged original element. To form a cell, choose representatives a and b, multiply in the original table, then find the class containing ab. Compatibility ensures that any other representatives from those same classes yield that same class.

The illustration shows the four-relation diamond for the default example. Its vertical direction records refinement rather than cardinality of the original semigroup, which stays three throughout. The quotient has one element per block, so moving toward a coarser relation decreases quotient size while increasing the number of original elements identified with one another.

Distinguish congruences from related relations

A left congruence checks only multiplication on the left, and a right congruence checks only the right. Those weaker objects can differ from two-sided congruences and do not automatically support a semigroup quotient with the same multiplication rule. This page deliberately checks both sides.

Likewise, an ideal is a subset with an absorption property, whereas a congruence partitions the entire set. A subsemigroup is closed under multiplication but need not define an equivalence relation. Similar-looking small examples should not blur these definitions. The returned compatibility checks concern the supplied complete multiplication table, not an abstract presentation with unverified relations.

Verify a chosen relation directly

To audit a quotient, list its blocks and check each original pair of equivalent elements against every possible multiplier on each side. Then build its table twice using different representative choices. Agreement is a useful transparent demonstration, although the full compatibility test already establishes representative independence for all choices.

For comparisons, retain the original element labels and the canonical block listing. Two quotient tables may be isomorphic while coming from different congruences of the original semigroup. Counting quotient isomorphism types would therefore answer a different question from counting congruences. The full lattice keeps those distinct identifications visible rather than collapsing them by abstract quotient shape. The refinement direction should remain explicit whenever the lattice is exported as an image.

A few questions, answered

Why is associativity checked first?

The declared input is a semigroup; nonassociative tables belong to a different algebraic problem.

Are left congruences included?

Only relations that also pass right compatibility are retained.

Does truncating the list change the count?

No. The count and refinement computation remain exact.

Why can different representatives be used?

Congruence compatibility guarantees their products land in the same quotient class.

Find your calculator

Start typing to explore the library.