Hasse diagram of the set ofdivisors of 60, partially ordered by the relation " divides". The red subset has one greatest element, viz. 30, and one least element, viz. 1. These elements are alsomaximal and minimal elements, respectively, of the red subset.
Inmathematics, especially inorder theory, thegreatest element of a subset of apartially ordered set (poset) is an element of that is greater than every other element of. The termleast element is defineddually, that is, it is an element of that is smaller than every other element of
Let be apreordered set and let An element is said to beagreatest element of if and if it also satisfies:
for all
By switching the side of the relation that is on in the above definition, the definition of a least element of is obtained. Explicitly, an element is said to bealeast element of if and if it also satisfies:
for all
If is also apartially ordered set then can have at most one greatest element and it can have at most one least element. Whenever a greatest element of exists and is unique then this element is calledthe greatest element of. The terminologythe least element of is defined similarly.
If has a greatest element (resp. a least element) then this element is also calledatop (resp.abottom) of
Greatest elements are closely related toupper bounds.
Let be apreordered set and let Anupper bound of in is an element such that and for all Importantly, an upper bound of in isnot required to be an element of
If then is a greatest element of if and only if is an upper bound of inand In particular, any greatest element of is also an upper bound of (in) but an upper bound of in is a greatest element of if and only if itbelongs to In the particular case where the definition of " is an upper bound ofin" becomes: is an element such that and for all which iscompletely identical to the definition of a greatest element given before. Thus is a greatest element of if and only if is an upper bound ofin.
If is an upper bound ofin that is not an upper bound ofin (which can happen if and only if) then cannot be a greatest element of (however, it may be possible that some other elementis a greatest element of). In particular, it is possible for to simultaneouslynot have a greatest elementand for there to exist some upper bound ofin.
Even if a set has some upper bounds, it need not have a greatest element, as shown by the example of the negativereal numbers. This example also demonstrates that the existence of aleast upper bound (the number 0 in this case) does not imply the existence of a greatest element either.
Contrast to maximal elements and local/absolute maximums
In the above divisibility order, the red subset has two maximal elements, viz. 3 and 4, none of which is greatest. It has one minimal element, viz. 1, which is also its least element.
A greatest element of a subset of a preordered set should not be confused with amaximal element of the set, which are elements that are not strictly smaller than any other element in the set.
Let be apreordered set and let An element is said to be amaximal element of if the following condition is satisfied:
whenever satisfies then necessarily
If is apartially ordered set then is a maximal element of if and only if there doesnot exist any such that and Amaximal element of is defined to mean a maximal element of the subset
A set can have several maximal elements without having a greatest element. Like upper bounds and maximal elements, greatest elements may fail to exist.
In atotally ordered set the maximal element and the greatest element coincide; and it is also calledmaximum; in the case of function values it is also called theabsolute maximum, to avoid confusion with alocal maximum.[1] The dual terms areminimum andabsolute minimum. Together they are called theabsolute extrema. Similar conclusions hold for least elements.
Role of (in)comparability in distinguishing greatest vs. maximal elements
One of the most important differences between a greatest element and a maximal element of a preordered set has to do with what elements they are comparable to. Two elements are said to becomparable if or; they are calledincomparable if they are not comparable. Because preorders arereflexive (which means that is true for all elements), every element is always comparable to itself. Consequently, the only pairs of elements that could possibly be incomparable aredistinct pairs.In general, however, preordered sets (and evendirected partially ordered sets) may have elements that are incomparable.
By definition, an element is a greatest element of if for every; so by its very definition, a greatest element of must, in particular, be comparable toevery element in This is not required of maximal elements. Maximal elements of arenot required to be comparable to every element in This is because unlike the definition of "greatest element", the definition of "maximal element" includes an importantif statement. The defining condition for to be a maximal element of can be reworded as:
For allIF (so elements that are incomparable to are ignored) then
Example where all elements are maximal but none are greatest
Suppose that is a set containingat least two (distinct) elements and define a partial order on by declaring that if and only if If belong to then neither nor holds, which shows that all pairs of distinct (i.e. non-equal) elements in areincomparable. Consequently, can not possibly have a greatest element (because a greatest element of would, in particular, have to be comparable toevery element of but has no such element). However,every element is a maximal element of because there is exactly one element in that is both comparable to and that element being itself (which of course, is).[note 1]
In contrast, if apreordered set does happen to have a greatest element then will necessarily be a maximal element of and moreover, as a consequence of the greatest element being comparable toevery element of if is also partially ordered then it is possible to conclude that is theonly maximal element of However, the uniqueness conclusion is no longer guaranteed if the preordered set isnot also partially ordered. For example, suppose that is a non-empty set and define a preorder on by declaring thatalways holds for all Thedirected preordered set is partially ordered if and only if has exactly one element. All pairs of elements from are comparable andevery element of is a greatest element (and thus also a maximal element) of So in particular, if has at least two elements then has multipledistinct greatest elements.
A set can have at mostone greatest element.[note 2] Thus if a set has a greatest element then it is necessarily unique.
If it exists, then the greatest element of is anupper bound of that is also contained in
If is the greatest element of then is also a maximal element of[note 3] and moreover, any other maximal element of will necessarily be equal to[note 4]
Thus if a set has several maximal elements then it cannot have a greatest element.
When the restriction of to is atotal order ( in the topmost picture is an example), then the notions of maximal element and greatest element coincide.[note 6]
However, this is not a necessary condition for whenever has a greatest element, the notions coincide, too, as stated above.
If the notions of maximal element and greatest element coincide on every two-element subset of then is a total order on[note 7]
The least and greatest element of the whole partially ordered set play a special role and are also calledbottom (⊥) andtop (⊤), orzero (0) andunit (1), respectively.If both exist, the poset is called abounded poset.The notation of 0 and 1 is used preferably when the poset is acomplemented lattice, and when no confusion is likely, i.e. when one is not talking about partial orders of numbers that already contain elements 0 and 1 different from bottom and top.The existence of least and greatest elements is a specialcompleteness property of a partial order.
Further introductory information is found in the article onorder theory.
^Of course, in this particular example, there exists only one element in that is comparable to which is necessarily itself, so the second condition "and" was redundant.
^If and are both greatest, then and and hence byantisymmetry.
^If is the greatest element of and then Byantisymmetry, this renders ( and) impossible.
^If is a maximal element, then since is greatest, hence since is maximal.
^Only if: see above. —If: Assume for contradiction that has just one maximal element, but no greatest element. Since is not greatest, some must exist that is incomparable to Hence cannot be maximal, that is, must hold for some The latter must be incomparable to too, since contradicts's maximality while contradicts the incomparability of and Repeating this argument, an infinite ascending chain can be found (such that each is incomparable to and not maximal). This contradicts the ascending chain condition.
^Let be a maximal element, for any either or In the second case, the definition of maximal element requires that so it follows that In other words, is a greatest element.
^If were incomparable, then would have two maximal, but no greatest element, contradicting the coincidence.