| Transitive binary relations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
in general (it might, or might not, hold). For example, that every equivalence relation is symmetric, but not necessarily antisymmetric, is indicated by All definitions tacitly require thehomogeneous relation betransitive: for all if and then |

Inmathematics, especiallyorder theory, apartial order on aset is an arrangement such that, for certain pairs of elements, one precedes the other. The wordpartial is used to indicate that not every pair of elements needs to be comparable; that is, there may be pairs for which neither element precedes the other. Partial orders thus generalizetotal orders, in which every pair is comparable.
Formally, a partial order is ahomogeneous binary relation that isreflexive,antisymmetric, andtransitive. Apartially ordered set (poset for short) is anordered pair consisting of a set (called theground set of) and a partial order on. When the meaning is clear from context and there is no ambiguity about the partial order, the set itself is sometimes called a poset.
The termpartial order usually refers to the reflexive partial order relations, referred to in this article asnon-strict partial orders. However some authors use the term for the other common type of partial order relations, the irreflexive partial order relations, also called strict partial orders. Strict and non-strict partial orders can be put into aone-to-one correspondence, so for every strict partial order there is a unique corresponding non-strict partial order, and vice versa.
Areflexive,weak,[1] ornon-strict partial order,[2] commonly referred to simply as apartial order, is ahomogeneous relation ≤ on aset that isreflexive,antisymmetric, andtransitive. That is, for all it must satisfy:
A non-strict partial order is also known as an antisymmetricpreorder.
Anirreflexive,strong,[1] orstrict partial order is a homogeneous relation < on a set that isirreflexive,asymmetric andtransitive; that is, it satisfies the following conditions for all
A transitive relation is asymmetric if and only if it is irreflexive.[3] So the definition is the same if it omits either irreflexivity or asymmetry (but not both).
A strict partial order is also known as astrict preorder.

Strict and non-strict partial orders on a set are closely related. A non-strict partial order may be converted to a strict partial order by removing all relationships of the form that is, the strict partial order is the set where is theidentity relation on and denotesset subtraction. Conversely, a strict partial order < on may be converted to a non-strict partial order by adjoining all relationships of that form; that is, is a non-strict partial order. Thus, if is a non-strict partial order, then the corresponding strict partial order < is theirreflexive kernel given byConversely, if < is a strict partial order, then the corresponding non-strict partial order is thereflexive closure given by:
Thedual (oropposite) of a partial order relation is defined by letting be theconverse relation of, i.e. if and only if. The dual of a non-strict partial order is a non-strict partial order,[4] and the dual of a strict partial order is a strict partial order. The dual of a dual of a relation is the original relation.
Given a set and a partial order relation, typically the non-strict partial order, we may uniquely extend our notation to define four partial order relations and, where is a non-strict partial order relation on, is the associated strict partial order relation on (theirreflexive kernel of), is the dual of, and is the dual of. Strictly speaking, the termpartially ordered set refers to a set with all of these relations defined appropriately. But practically, one need only consider a single relation, or, or, in rare instances, the non-strict and strict relations together,.[5]
The termordered set is sometimes used as a shorthand forpartially ordered set, as long as it is clear from the context that no other kind of order is meant. In particular,totally ordered sets can also be referred to as "ordered sets", especially in areas where these structures are more common than posets. Some authors use different symbols than such as[6] or[7] to distinguish partial orders from total orders.
When referring to partial orders, should not be taken as thecomplement of. The relation is the converse of the irreflexive kernel of, which is always a subset of the complement of, but is equal to the complement ofif, and only if, is a total order.[a]
Another way of defining a partial order, found incomputer science, is via a notion ofcomparison. Specifically, given as defined previously, it can be observed that two elementsx andy may stand in any of fourmutually exclusive relationships to each other: eitherx <y, orx =y, orx >y, orx andy areincomparable. This can be represented by a function that returns one of four codes when given two elements.[8][9] This definition is equivalent to apartial order on asetoid, where equality is taken to be a definedequivalence relation rather than set equality.[10]
Wallis defines a more general notion of apartial order relation as anyhomogeneous relation that istransitive andantisymmetric. This includes both reflexive and irreflexive partial orders as subtypes.[1]
A finite poset can be visualized through itsHasse diagram.[11] Specifically, taking a strict partial order relation, adirected acyclic graph (DAG) may be constructed by taking each element of to be a node and each element of to be an edge. Thetransitive reduction of this DAG[b] is then the Hasse diagram. Similarly this process can be reversed to construct strict partial orders from certain DAGs. In contrast, the graph associated to a non-strict partial order has self-loops at every node and therefore is not a DAG; when a non-strict order is said to be depicted by a Hasse diagram, actually the corresponding strict order is shown.

Standard examples of posets arising in mathematics include:
One familiar example of a partially ordered set is a collection of people ordered bygenealogical descendancy. Some pairs of people bear the descendant-ancestor relationship, but other pairs of people are incomparable, with neither being a descendant of the other.
In order of increasing strength, i.e., decreasing sets of pairs, three of the possible partial orders on theCartesian product of two partially ordered sets are (see Fig. 4):
All three can similarly be defined for the Cartesian product of more than two sets.
Applied toordered vector spaces over the samefield, the result is in each case also an ordered vector space.
See alsoorders on the Cartesian product of totally ordered sets.
Another way to combine two (disjoint) posets is theordinal sum[12] (orlinear sum),[13]Z =X ⊕Y, defined on the union of the underlying setsX andY by the ordera ≤Zb if and only if:
If two posets arewell-ordered, then so is their ordinal sum.[14]
Series-parallel partial orders are formed from the ordinal sum operation (in this context called series composition) and another operation called parallel composition. Parallel composition is thedisjoint union of two partially ordered sets, with no order relation between elements of one set and elements of the other set.
The examples use the poset consisting of theset of all subsets of a three-element set ordered by set inclusion (see Fig. 1).

There are several notions of "greatest" and "least" element in a poset notably:

As another example, consider the positiveintegers, ordered by divisibility: 1 is a least element, as itdivides all other elements; on the other hand this poset does not have a greatest element. This partially ordered set does not even have any maximal elements, since anyg divides for instance 2g, which is distinct from it, sog is not maximal. If the number 1 is excluded, while keeping divisibility as ordering on the elements greater than 1, then the resulting poset does not have a least element, but anyprime number is a minimal element for it. In this poset, 60 is an upper bound (though not a least upper bound) of the subset which does not have any lower bound (since 1 is not in the poset); on the other hand 2 is a lower bound of the subset of powers of 2, which does not have any upper bound. If the number 0 is included, this will be the greatest element, since this is a multiple of every integer (see Fig. 6).
Given two partially ordered sets(S, ≤) and(T, ≼), a function is calledorder-preserving, ormonotone, orisotone, if for all impliesf(x) ≼f(y).If(U, ≲) is also a partially ordered set, and both and are order-preserving, theircomposition is order-preserving, too.A function is calledorder-reflecting if for allf(x) ≼f(y) impliesIff is both order-preserving and order-reflecting, then it is called anorder-embedding of(S, ≤) into(T, ≼).In the latter case,f is necessarilyinjective, since implies and in turn according to the antisymmetry of If an order-embedding between two posetsS andT exists, one says thatS can beembedded intoT. If an order-embedding isbijective, it is called anorder isomorphism, and the partial orders(S, ≤) and(T, ≼) are said to beisomorphic. Isomorphic orders have structurally similarHasse diagrams (see Fig. 7a). It can be shown that if order-preserving maps and exist such that and yields theidentity function onS andT, respectively, thenS andT are order-isomorphic.[15]
For example, a mapping from the set of natural numbers (ordered by divisibility) to thepower set of natural numbers (ordered by set inclusion) can be defined by taking each number to the set of itsprime divisors. It is order-preserving: ifx dividesy, then each prime divisor ofx is also a prime divisor ofy. However, it is neither injective (since it maps both 12 and 6 to) nor order-reflecting (since 12 does not divide 6). Taking instead each number to the set of itsprime power divisors defines a map that is order-preserving, order-reflecting, and hence an order-embedding. It is not an order-isomorphism (since it, for instance, does not map any number to the set), but it can be made one byrestricting its codomain to Fig. 7b shows a subset of and its isomorphic image underg. The construction of such an order-isomorphism into a power set can be generalized to a wide class of partial orders, calleddistributive lattices; seeBirkhoff's representation theorem.
SequenceA001035 inOEIS gives the number of partial orders on a set ofn labeled elements:
| Elements | Any | Transitive | Reflexive | Symmetric | Preorder | Partial order | Total preorder | Total order | Equivalence relation |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 2 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 |
| 2 | 16 | 13 | 4 | 8 | 4 | 3 | 3 | 2 | 2 |
| 3 | 512 | 171 | 64 | 64 | 29 | 19 | 13 | 6 | 5 |
| 4 | 65,536 | 3,994 | 4,096 | 1,024 | 355 | 219 | 75 | 24 | 15 |
| n | 2n2 | 2n(n−1) | 2n(n+1)/2 | ∑n k=0k!S(n,k) | n! | ∑n k=0S(n,k) | |||
| OEIS | A002416 | A006905 | A053763 | A006125 | A000798 | A001035 | A000670 | A000142 | A000110 |
Note thatS(n,k) refers toStirling numbers of the second kind.
The number of strict partial orders is the same as that of partial orders.
If the count is made onlyup to isomorphism, the sequence 1, 1, 2, 5, 16, 63, 318, ... (sequenceA000112 in theOEIS) is obtained.
A poset is called asubposet of another poset provided that is asubset of and is a subset of. The latter condition is equivalent to the requirement that for any and in (and thus also in), if then.
If is a subposet of and furthermore, for all and in, whenever we also have, then we call the subposet ofinduced by, and write.
A partial order on a set is called anextension of another partial order on provided that for all elements whenever it is also the case that Alinear extension is an extension that is also a linear (that is, total) order. As a classic example, the lexicographic order of totally ordered sets is a linear extension of their product order. Every partial order can be extended to a total order (order-extension principle).[16]
Incomputer science, algorithms for finding linear extensions of partial orders (represented as thereachability orders ofdirected acyclic graphs) are calledtopological sorting.
Every poset (and everypreordered set) may be considered as acategory where, for objects and there is at most onemorphism from to More explicitly, lethom(x,y) = {(x,y)} ifx ≤y (and otherwise theempty set) and Such categories are sometimes calledposetal.
Posets areequivalent to one another if and only if they areisomorphic. In a poset, the smallest element, if it exists, is aninitial object, and the largest element, if it exists, is aterminal object. Also, every preordered set is equivalent to a poset. Finally, every subcategory of a poset isisomorphism-closed.
If is a partially ordered set that has also been given the structure of atopological space, then it is customary to assume that is aclosed subset of the topologicalproduct space Under this assumption partial order relations are well behaved atlimits in the sense that if and and for all then[17]
Aconvex set in a posetP is a subsetI ofP with the property that, for anyx andy inI and anyz inP, ifx ≤z ≤y, thenz is also inI. This definition generalizes the definition ofintervals ofreal numbers. When there is possible confusion withconvex sets ofgeometry, one usesorder-convex instead of "convex".
Aconvex sublattice of alatticeL is a sublattice ofL that is also a convex set ofL. Every nonempty convex sublattice can be uniquely represented as the intersection of afilter and anideal ofL.
Aninterval in a posetP is a subset that can be defined with interval notation:
Whenevera ≤b does not hold, all these intervals are empty. Every interval is a convex set, but the converse does not hold; for example, in the poset of divisors of 120, ordered by divisibility (see Fig. 7b), the set {1, 2, 4, 5, 8} is convex, but not an interval.
An intervalI is bounded if there exist elements such thatI ⊆[a,b]. Every interval that can be represented in interval notation is obviously bounded, but the converse is not true. For example, letP =(0, 1) ∪(1, 2) ∪(2, 3) as a subposet of the real numbers. The subset(1, 2) is a bounded interval, but it has noinfimum orsupremum in P, so it cannot be written in interval notation using elements of P.
A poset is calledlocally finite if every bounded interval is finite. For example, the integers are locally finite under their natural ordering. The lexicographical order on the cartesian product is not locally finite, since(1, 2) ≤ (1, 3) ≤ (1, 4) ≤ (1, 5) ≤ ... ≤ (2, 1).Using the interval notation, the property "a is covered byb" can be rephrased equivalently as
This concept of an interval in a partial order should not be confused with the particular class of partial orders known as theinterval orders.
So we can think of every partial order as really being a pair, consisting of a weak partial order and an associated strict one.
compare_elements(x,y): Comparex andy in the poset. Ifx <y, return −1. Ifx =y, return 0. Ifx >y, return 1. Ifx andy are not comparable, return None.
A comparison between two elements s, t in S returns one of three distinct values, namely s≤t, s>t or s|t.
A partially ordered set is conveniently represented by aHasse diagram...
Media related toHasse diagrams at Wikimedia Commons; each of which shows an example for a partial order