Advanced maths

Dedekind MacNeille completion calculator for a finite poset

Construct the Dedekind–MacNeille completion of a finite poset as its closed lower cuts and show the canonical embedding.

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 displayed result list, not an original element label.
Zero-based identifier from the displayed result list, not an original element label.

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

Construct the Dedekind–MacNeille completion of a finite poset as its closed lower cuts and show the canonical embedding.

THE FORMULADM(P)={A⊆P : A=(A^upper)^lower}; meet(A,B)=A∩B, join(A,B)=closure(A∪B).

A worked example

A three-element antichain completes to five cuts: the empty set, three singleton cuts and the full set; two distinct singleton cuts meet at empty and join at full.

Good to know

1–12 elements and acyclic strict relations. Enumerates all lower cuts, limited to 128 completed cuts for full output. Canonical embedding, Hasse covers and selected meet/join; no truncated completion.

Add precisely the missing lattice elements

A finite poset may lack a common upper bound for two elements or may have several incomparable candidate bounds. A complete lattice requires every subset to have a meet and a join. The Dedekind–MacNeille completion embeds the original order into a complete lattice by adding closed cuts rather than arbitrarily choosing among missing bounds.

The completion does not simply take every subset of the original ground set. Its elements are particular subsets fixed by a closure operator defined from the original order. This often gives a much smaller lattice than the entire power set, while preserving the original comparisons through a canonical order embedding.

An antichain gains a bottom and a top∅012PClosed cuts = 5{0} ∧ {1} = ∅{0} ∨ {1} = POriginal antichain embeds
Scroll across to see the full diagram.
Three singleton cuts embed the antichain; empty and full cuts complete its missing meets and joins.

Compare this with the Integer partition dominance order calculator with meet and join. Construct the smallest complete lattice containing a supplied arbitrary poset, adding missing cut elements. Dominance order only finds meet and join within partitions of one fixed total and adds no completion elements.

Read lower and upper bound operations

For a subset A of original elements, A^upper is the set of elements lying above every member of A. Applying lower bounds to that family gives the elements below every common upper bound. A closed lower cut is a set A that equals this two-stage result.

Universal conditions over an empty family are important. Every element is an upper bound of the empty subset, and every element is a lower bound when the upper-bound family itself is empty. These conventions determine the bottom and top cuts correctly; replacing an empty family by an undefined result would break the completion construction.

Enumerate and order the closed cuts

The calculator forms transitive closure, checks that the entered relation is acyclic, and evaluates the bound closure for every subset within the small input limit. Subsets fixed by that closure are retained and ordered by inclusion. Hasse covers are then obtained by removing relations with an intermediate retained cut.

Each displayed cut has a numeric identifier and an explicit list of original labels. The identifiers are assigned by cardinality and then a deterministic subset order, so they are output references rather than the labels of original elements. When selecting cuts for a meet or join, use these new identifiers instead of assuming they coincide with your original poset labels.

The canonical embedding preserves comparisons

An original element p maps to its principal lower set, containing every x≤p. This set is always closed under the Dedekind–MacNeille operator. Moreover, p≤q exactly when the principal lower set of p is contained in the principal lower set of q, which proves that the map is an order embedding.

The output includes that embedding so you can distinguish original elements from genuinely added cuts. In a poset that is already a finite lattice, the construction adds no new abstract elements: every closed cut is a principal ideal. The representation changes from individual labels to closed subsets, but the original lattice structure is preserved.

Complete a three-element antichain

In the default antichain, each original label is comparable only with itself. The closed cuts are empty, {0}, {1}, {2}, and {0,1,2}. There are five elements in the completion, and the original three labels embed into the three singleton cuts.

Two distinct singleton cuts have empty intersection, so their meet is the new bottom. Their union has no common original upper bound, and taking lower bounds of that empty family produces the full set, so their join is the new top. The static diagram shows the added bottom and top surrounding the three incomparable original elements.

Compute meets and joins differently

The intersection of two closed cuts is already closed, so meet is ordinary set intersection. A union of closed cuts need not be closed. Join is therefore the closure of their union rather than the unmodified union; that extra step is essential even in the small antichain example.

These formulas also explain completeness beyond just pairs. Arbitrary intersections of closed cuts remain closed, and arbitrary joins are obtained by closing unions. The interface displays a selected binary meet and join for inspection, while the finite closed-cut construction supplies the full complete lattice within the supported output bound.

Recognize the scope and growth limits

Twelve original elements have at most 4096 subsets to examine, but the number of retained cuts can still be too large for a readable full lattice. This page rejects completions above its stated 128-cut display cap rather than quietly returning only a selection that might omit necessary bounds or break joins.

The input is a poset, not an arbitrary object-attribute context, and this page does not claim to perform a separate formal-concept-analysis workflow. It constructs a precise order-theoretic completion with original-label subsets. Interpretation of the added cuts as categories, states or concepts depends on what the original order meant in your application.

A few questions, answered

Why is the join not always set union?

A union of closed cuts need not itself be closed. The join is the bound closure of that union.

Where do original elements appear?

Each original p is embedded as its principal lower set {x:x≤p}; the output lists these cut identifiers.

What does an empty upper-bound family mean?

Its common lower bounds are all original elements, by the standard universal-quantifier convention.

Does the calculator truncate a large completion?

No. If the closed-cut count exceeds the display cap, it rejects the calculation instead of omitting lattice elements.

Find your calculator

Start typing to explore the library.