Advanced maths

Finite lattice congruence calculator with quotient lattices

Enumerate every finite-lattice congruence, order them by refinement and construct a selected quotient lattice.

Your numbers

Use an integer within the calculator’s stated finite bounds.
One strict zero-based pair per row; use none for an antichain. Transitive closure is added automatically.
Zero-based identifier from the complete congruence or ideal list; start with 0 to inspect its enumeration.

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 finite-lattice congruence, order them by refinement and construct a selected quotient lattice.

THE FORMULAx≡y implies x∧z≡y∧z and x∨z≡y∨z for every z; quotient operations act on congruence classes.

A worked example

The default four-element chain has 8 congruences. Selected congruence 1 has blocks {0,1,2} and {3}, producing a two-element chain quotient.

Good to know

Finite lattice with 1–8 elements, entered as strict order pairs. Validates all binary meets/joins, enumerates set partitions and checks both operation compatibilities. Up to 256 congruences displayed; selected quotient index is zero-based.

Collapse elements without breaking lattice operations

A lattice congruence is an equivalence relation that respects both meet and join. If two elements are treated as equivalent, meeting or joining them with any third element must preserve that equivalence. Only then do the equivalence classes inherit well-defined lattice operations independent of which representative is chosen.

An arbitrary set partition need not satisfy these requirements. Grouping visually similar elements or merging one convenient pair may force additional identifications elsewhere in the lattice. This calculator enumerates all compatible partitions so you can inspect valid collapses and their quotient structures rather than assuming every partition defines a quotient lattice.

One quotient of a four-element chain0123ABB = {3}A = {0,1,2}8 congruences in all
Scroll across to see the full diagram.
Merging the consecutive block {0,1,2} leaves a two-element chain quotient.

Compare this with the Set partition rank and unrank calculator with restricted growth strings. Select the equivalence relations compatible with both meet and join and build the quotient lattices. Ranking unrestricted set partitions does not test algebraic compatibility or compute quotient operations.

First check that the input is a lattice

Enter strict precedence pairs on zero-based labels. Transitive closure is computed, then every pair is checked for a unique greatest lower bound and a unique least upper bound. A poset that lacks either operation is rejected; the calculator does not automatically complete it or invent missing elements.

The relation may be specified by Hasse covers, with additional implied pairs also permitted. Label order does not impose a chain. If your intended diagram has a bottom, top and branching elements, its precedence pairs must encode those relationships explicitly, because the quotient computation depends on the actual meet and join tables determined by the order.

Generate partitions and test compatibility

Restricted-growth labels enumerate set partitions without repeating every possible naming of their blocks. For each partition, the program checks all equivalent x,y and all z against both lattice operations. Because meet and join are commutative, these one-coordinate compatibility checks also ensure compatibility when both arguments are replaced by equivalent representatives.

Every accepted partition is a congruence. The list is ordered deterministically, and its identifiers are used to select one quotient for display. A separate refinement relation compares congruences: a finer congruence makes fewer identifications, while a coarser one merges larger blocks. The resulting inclusion-style diagram describes the congruence lattice.

Inspect the four-element chain example

The default chain is 0<1<2<3. A lattice congruence on a finite chain partitions it into consecutive intervals, because compatibility cannot identify two endpoints while leaving an intermediate element separated. Each of the three gaps between consecutive labels can either remain a block boundary or be removed.

There are therefore 2³=8 congruences. In the displayed enumeration, selected index 1 merges {0,1,2} and leaves {3} separate. Its quotient has two ordered elements, with meet choosing the lower block and join choosing the upper block. The example provides both a closed-form count and an easily checked quotient table.

Why quotient operations are well defined

To compute the meet of two quotient classes, choose one representative from each, meet those representatives in the original lattice, and return the class containing the result. Join is constructed in the same way. The compatibility tests guarantee that choosing different representatives cannot change the resulting class.

This representative independence is what an unchecked partition can fail. If two purportedly equivalent elements lead to different result blocks after a meet or join, the proposed quotient has no unambiguous operation table. Such a partition is excluded rather than repaired by choosing whichever representative happens to appear first.

Interpret refinement and extreme congruences

Every lattice has an identity congruence whose blocks are singletons and a universal congruence containing one block. The identity quotient preserves the original lattice, while the universal quotient has one element. Other congruences, when present, lie between these extremes and describe intermediate operation-preserving collapses.

A congruence cover in the output is a refinement step with no accepted congruence strictly between its endpoints. It is not necessarily the act of merging only one visibly adjacent pair of original elements. One local identification can force a larger closure of equivalent pairs, so inspect the actual displayed blocks instead of guessing from the drawing alone.

Keep the algebraic scope explicit

The computation concerns meet and join in one finite lattice. It does not enumerate arbitrary universal-algebra congruences for a different operation signature, and it does not use numerical approximation. The small eight-element bound permits a complete partition search, with an additional limit on the number of displayed congruences for readable output.

The selected quotient describes exact structural equivalence, not similarity clustering or a data-driven reduction criterion. If an application imposes extra labels, distinguished elements or additional operations, those constraints can forbid some otherwise valid lattice congruences. They must be checked separately before interpreting a quotient as an allowed simplification of that application.

A few questions, answered

Can any partition define a quotient lattice?

No. It must preserve both meet and join so that quotient operations are independent of representatives.

What if my poset is not a lattice?

The input is rejected when any pair lacks a unique meet or join; no completion is silently added.

Why are there eight congruences on the default chain?

A four-element chain has three gaps, each independently kept or removed as an interval-block boundary.

What do finer and coarser mean?

A finer congruence distinguishes more elements; a coarser congruence merges larger equivalence classes.

Find your calculator

Start typing to explore the library.