# Dedekind–MacNeille completion

In order-theoretic mathematics, the **Dedekind–MacNeille completion** of a partially ordered set (also called the **completion by cuts** or **normal completion**)[1] is the smallest complete lattice that contains the given partial order. It is named after Holbrook Mann MacNeille whose 1937 paper first defined and constructed it, and after Richard Dedekind because its construction generalizes the Dedekind cuts used by Dedekind to construct the real numbers from the rational numbers.

## Order embeddings and lattice completions

A partially ordered set consists of a set of elements together with a binary relation *x* ≤ *y* on pairs of elements that is reflexive (*x* ≤ *x* for every *x*), transitive (if *x* ≤ *y* and *y* ≤ *z* then *x* ≤ *z*), and antisymmetric (if both *x* ≤ *y* and *y* ≤ *x* hold, then *x* = *y*). The usual numeric orderings on the integers or real numbers satisfy these properties; however, unlike the orderings on the numbers, a partial order may have two elements that are *incomparable*: neither *x* ≤ *y* nor *y* ≤ *x* holds. Another familiar example of a partial ordering is the inclusion ordering ⊆ on pairs of sets.

If S is a partially ordered set, a *completion* of S means a complete lattice L with an order-embedding of S into L.[2] The notion of a complete lattice means that every subset of elements of L has infimum and supremum; this generalizes the analogous properties of the real numbers. The notion of an order-embedding enforces the requirements that distinct elements of S must be mapped to distinct elements of L, and that each pair of elements in S has the same ordering in L as they do in S. The extended real number line (real numbers together with +∞ and −∞) is a completion in this sense of the rational numbers: the set of rational numbers {3, 3.1, 3.14, 3.141, 3.1415, 3.14159, ...} does not have a rational least upper bound, but in the real numbers it has the least upper bound π.

A given partially ordered set may have several different completions. For instance, one completion of any partially ordered set S is the set of its downwardly closed subsets ordered by inclusion. S is embedded in this (complete) lattice by mapping each element x to the lower set of elements that are less than or equal to x. The result is a distributive lattice and is used in Birkhoff's representation theorem. However, it may have many more elements than are needed to form a completion of S.[3] Among all possible lattice completions, the Dedekind–MacNeille completion is the smallest complete lattice with S embedded in it.[4]

## Definition

For each subset A of a partially ordered set S, let *A*^{u} denote the set of upper bounds of A; that is, an element x of S belongs to *A*^{u} whenever x is greater than or equal to every element in A. Symmetrically, let *A*^{l} denote the set of lower bounds of A, the elements that are less than or equal to every element in A. Then the Dedekind–MacNeille completion of S consists of all subsets A for which

- (
*A*^{u})^{l}=*A*;

it is ordered by inclusion: *A* ≤ *B* in the completion if and only if *A* ⊆ *B* as sets.

An element x of S embeds into the completion as its principal ideal, the set ↓_{x} of elements less than or equal to x. Then (↓_{x})^{u} is the set of elements greater than or equal to x, and ((↓_{x})^{u})^{l} = ↓_{x}, showing that ↓_{x} is indeed a member of the completion.[5] It is straightforward to verify that the mapping from x to ↓_{x} is an order-embedding.

An alternative definition of the Dedekind–MacNeille completion that more closely resembles the definition of a Dedekind cut is sometimes used.[6] In a partially ordered set S, define a *cut* to be a pair of sets (*A*,*B*) for which *A*^{u} = *B* and *A* = *B*^{l}. If (*A*,*B*) is a cut then *A* satisfies the equation (*A*^{u})^{l} = *A*, and conversely if (*A*^{u})^{l} = *A* then (*A*,*A*^{u}) is a cut. Therefore, the set of cuts, partially ordered by inclusion on the lower set of the cut (or the reverse of the inclusion relation on the upper set), gives an equivalent definition of the Dedekind–MacNeille completion.

With the alternative definition, both the join and the meet operations of the complete lattice have symmetric descriptions: if (*A _{i}*,

*B*) are the cuts in any family of cuts, then the meet of these cuts is the cut (

_{i}*L*,

*L*

^{u}) where

*L*= ∩

_{i}

*A*, and the join is the cut (

_{i}*U*

^{l},

*U*) where

*U*= ∩

_{i}

*B*.

_{i}## Examples

If **Q** is the set of rational numbers, viewed as a totally ordered set with the usual numerical order, then each element of the Dedekind–MacNeille completion of **Q** may be viewed as a Dedekind cut, and the Dedekind–MacNeille completion of **Q** is the total ordering on the real numbers, together with the two additional values ±∞.[7] The construction of the real numbers from the rational numbers is an example of the Dedekind completion of a totally ordered set, and the Dedekind–MacNeille completion generalizes this concept from total orders to partial orders.

If S is an antichain (a set of elements no two of which are comparable) then the Dedekind–MacNeille completion of S consists of S itself together with two additional elements, a bottom element that is below every element in S and a top element that is above every element in S.[8]

If O is any finite set of objects, and A is any finite set of unary attributes for the objects in O, then one may form a partial order of height two in which the elements of the partial order are the objects and attributes, and in which *x* ≤ *y* when x is an object that has attribute y. For a partial order defined in this way, the Dedekind–MacNeille completion of S is known as a concept lattice, and it plays a central role in the field of formal concept analysis.

## Properties

The Dedekind–MacNeille completion of a partially ordered set S is the smallest complete lattice with S embedded in it, in the sense that, if L is any lattice completion of S, then the Dedekind–MacNeille completion is a partially ordered subset of L.[4] When S is finite, its completion is also finite, and has the smallest number of elements among all finite complete lattices containing S.

The partially ordered set S is join-dense and meet-dense in the Dedekind–MacNeille completion; that is, every element of the completion is a join of some set of elements of S, and is also the meet of some set of elements in S.[9] The Dedekind–MacNeille completion is characterized among completions of S by this property.

The Dedekind–MacNeille completion of a Boolean algebra is a complete Boolean algebra; this result is known as the **Glivenko–Stone theorem**, after Valery Ivanovich Glivenko and Marshall Stone.[10] Similarly, the Dedekind–MacNeille completion of a residuated lattice is a complete residuated lattice.[11] However, the completion of a distributive lattice need not itself be distributive, and the completion of a modular lattice may not remain modular.[12]

The Dedekind–MacNeille completion is self-dual: the completion of the dual of a partial order is the same as the dual of the completion.[13]

The Dedekind–MacNeille completion of S has the same order dimension as does S itself.[14]

In the category of partially ordered sets and monotonic functions between partially ordered sets, the complete lattices form the injective objects for order-embeddings, and the Dedekind–MacNeille completion of S is the injective hull of S.[15]

## Algorithms

Several researchers have investigated algorithms for constructing the Dedekind–MacNeille completion of a finite partially ordered set. Because the Dedekind–MacNeille completion may be exponentially larger than the partial order it comes from,[16] it is necessary to measure the time bounds for such algorithms both in terms of the number n of elements of the input partial order, but also in terms of the number c of elements of its completion, and sometimes also in terms of additional measures of the complexity of the input and output. The format in which the output lattice is represented may also affect the running time of its construction algorithms; for instance, if it is represented as a logical matrix specifying the result of a comparison between each pair of lattice elements, the output size is Θ(*c*^{2}) and this will be a lower bound on the time for a construction algorithm.

### Constructing the set of cuts

Ganter & Kuznetsov (1998) describe an incremental algorithm, in which the input partial order is built up by adding one element at a time; at each step, the completion of the smaller partial order is expanded to form the completion of the larger partial order. In their method, the completion is represented by an explicit list of cuts. Each cut of the augmented partial order, except for the one whose two sets intersect in the new element, is either a cut from the previous partial order or is formed by adding the new element to one or the other side of a cut from the previous partial order, so their algorithm need only test pairs of sets of this form to determine which ones are cuts. The time for using their method to add a single element to the completion of a partial order is *O*(*cnw*) where w is the width of the partial order, that is, the size of its largest antichain. Therefore, the time to compute the completion of a given partial order is *O*(*cn*^{2}*w*) = O(*cn*^{3}).

As Jourdan, Rampon & Jard (1994) observe, the problem of listing all cuts in a partially ordered set can be formulated as a special case of a simpler problem, of listing all maximal antichains in a different partially ordered set. If P is any partially ordered set, let Q be a partial order whose elements contain two copies of P: for each element x of P, Q contains two elements *x*_{0} and *x*_{1}, with *x _{i}* <

*y*if and only if

_{j}*x*<

*y*and

*i*<

*j*. Then the cuts in P correspond one-for-one with the maximal antichains in Q: the elements in the lower set of a cut correspond to the elements with subscript 0 in an antichain, and the elements in the upper set of a cut correspond to the elements with subscript 1 in an antichain. Jourdan et al. describe an algorithm for finding maximal antichains that, when applied to the problem of listing all cuts in P, takes time

*O*(

*c*(

*nw*+

*w*

^{3})), an improvement on the algorithm of Ganter & Kuznetsov (1998) when the width w is small. Alternatively, a maximal antichain in Q is the same as a maximal independent set in the comparability graph of Q, or a maximal clique in the complement of the comparability graph, so algorithms for the clique problem or the independent set problem can also be applied to this version of the Dedekind–MacNeille completion problem.

### Constructing the covering graph

The transitive reduction or covering graph of the Dedekind–MacNeille completion describes the order relation between its elements in a concise way:
each neighbor of a cut must remove an element of the original partial order from either the upper or lower set of the cut, so each vertex has at most n neighbors. Thus, the covering graph has c vertices and at most *cn*/2 neighbors, a number that may be much smaller than the *c*^{2} entries in a matrix that specifies all pairwise comparisons between elements. Nourine & Raynaud show how to compute this covering graph efficiently; more generally, if B is any family of sets, they show how to compute the covering graph of the lattice of unions of subsets of B. In the case of the Dedekind–MacNeille lattice, B may be taken as the family of complement sets of principal ideals, and the unions of subsets of B are complements of the lower sets of cuts. The main idea for their algorithm is to generate unions of subsets of B incrementally (for each set in B, forming its union with all previously generated unions), represent the resulting family of sets in a trie, and use the trie representation to test certain candidate pairs of sets for adjacency in the covering relation; it takes time *O*(*cn*^{2}). In later work, the same authors showed that the algorithm could be made fully incremental (capable of adding elements to the partial order one at a time) with the same total time bound.[17]

## Notes

- Davey & Priestley (2002, p. 166); Siegfried & Schröder (2003, p. 119).
- Siegfried & Schröder (2003), definition 5.3.1, p. 119.
- Carpineto, Claudio; Romano, Giovanni (2004),
*Concept data analysis: theory and applications*, John Wiley and Sons, p. 10, ISBN 978-0-470-85055-8. - Bishop (1978); Siegfried & Schröder (2003), Theorem 5.3.8, p. 121.
- MacNeille (1937), Lemma 11.8, p. 444; Davey & Priestley (2002), Lemma 3.9(i), p. 166.
- This is the definition originally used by MacNeille (1937), for instance.
- Davey & Priestley (2002), Example 7.44(1), p. 168; Siegfried & Schröder (2003), Example 5.3.3(2), p. 120.
- Davey & Priestley (2002), Example 7.44(2), p. 168.
- Siegfried & Schröder (2003), Proposition 5.3.7, p. 121.
- Birkhoff (1995), Theorem 27, p. 130.
- Gabbay, Shehtman & Skvortsov (2009).
- Cotlar (1944); Funayama (1944).
- Birkhoff (1995).
- This result is frequently attributed to an unpublished 1961 Harvard University honors thesis by K. A. Baker, "Dimension, join-independence and breadth in partially ordered sets". It was published by Novák (1969).
- Banaschewski & Bruns (1967).
- Ganter & Kuznetsov (1998).
- Nourine & Raynaud (2002).

## References

- Banaschewski, B.; Bruns, G. (1967), "Categorical characterization of the MacNeille completion",
*Archiv der Mathematik*,**18**: 369–377, doi:10.1007/BF01898828, MR 0221984. - Birkhoff, Garrett (1995), "VI.9 Completion by Cuts",
*Lattice Theory*, Colloquium Publications,**25**(3rd ed.), American Mathematical Society, pp. 126–128, ISBN 978-0-8218-1025-5. - Bishop, Alan A. (1978), "A universal mapping characterization of the completion by cuts",
*Algebra Universalis*,**8**(3): 349–353, doi:10.1007/bf02485405, MR 0469839. - Cotlar, Mischa (1944), "A method of construction of structures and its application to topological spaces and abstract arithmetic",
*Univ. Nac. Tucumán. Revista A.*,**4**: 105–157, MR 0014062. - Davey, B. A.; Priestley, Hilary A. (2002), "7.38 The Dedekind–MacNeille completion",
*Introduction to Lattices and Order*(2nd ed.), Cambridge University Press, p. 166, ISBN 978-0-521-78451-1, Zbl 1002.06001. - Funayama, Nenosuke (1944), "On the completion by cuts of distributive lattices",
*Proc. Imp. Acad. Tokyo*,**20**: 1–2, doi:10.3792/pia/1195573210, MR 0014063, Zbl 0063.01484. - Gabbay, Dov M.; Shehtman, Valentin; Skvortsov, Dimitrij (2009), "3.4.12 The Dedekind–MacNeille completion of a residuated lattice",
*Quantification in Nonclassical Logic, Volume 1*, Studies in logic and the foundations of mathematics,**153**, Elsevier, pp. 177–178, ISBN 978-0-444-52012-8, Zbl 1211.03002. - Ganter, Bernhard; Kuznetsov, Sergei O. (1998), "Stepwise construction of the Dedekind-MacNeille completion",
*Proc. 6th Int. Conf. Conceptual Structures: Theory, Tools and Applications (ICCS98)*, Lecture Notes in Computer Science,**1453**, Springer-Verlag, pp. 295–302, doi:10.1007/BFb0054922, MR 1673860, Zbl 0928.06004. - Jourdan, Guy-Vincent; Rampon, Jean-Xavier; Jard, Claude (1994), "Computing on-line the lattice of maximal antichains of posets",
*Order*,**11**(3): 197–210, doi:10.1007/BF02115811, MR 1308475, Zbl 0814.06004. - MacNeille, H. M. (1937), "Partially ordered sets",
*Trans. Amer. Math. Soc.*,**42**(3): 416–460, doi:10.2307/1989739, JFM 63.0833.04, MR 1501929, Zbl 0017.33904. - Nourine, Lhouari; Raynaud, Olivier (1999), "A fast algorithm for building lattices",
*Information Processing Letters*,**71**(5–6): 199–204, doi:10.1016/S0020-0190(99)00108-8, MR 1726978, Zbl 0998.06005. - Nourine, Lhouari; Raynaud, Olivier (2002), "A fast incremental algorithm for building lattices",
*Journal of Experimental and Theoretical Artificial Intelligence*,**14**(2): 217–227, doi:10.1080/09528130210164152, Zbl 1022.68027. - Novák, Vítězslav (1969), "Über eine Eigenschaft der Dedekind-MacNeilleschen Hülle",
*Math. Ann.*,**179**: 337–342, doi:10.1007/BF01350778, MR 0240010. - Siegfried, Bernd; Schröder, Walter (2003), "5.3 Embeddings/The Dedekind/MacNeille Completion",
*Ordered Sets: An Introduction*, Birkhäuser, pp. 119–122, ISBN 978-0-8176-4128-3.