
Transitive binary relations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() ![]() All definitions tacitly require the homogeneous relation be transitive: for all if and then |
In mathematics, especially order theory, a weak ordering is a mathematical formalization of the intuitive notion of a ranking of a set, some of whose members may be tied with each other. Weak orders are a generalization of totally ordered sets (rankings without ties) and are in turn generalized by (strictly) partially ordered sets and preorders.

I) representation as a strict weak order where is shown as an arrow from to ;
II) representation as a total preorder , shown using arrows;
III) representation as an ordered partition, with the sets of the partition as dotted ellipses and the total order on these sets shown with arrows.

There are several common ways of formalizing weak orderings, that are different from each other but cryptomorphic (interconvertable with no loss of information): they may be axiomatized as strict weak orderings (strictly partially ordered sets in which incomparability is a transitive relation), as total preorders (transitive binary relations in which at least one of the two possible relations exists between every pair of elements), or as ordered partitions (partitions of the elements into disjoint subsets, together with a total order on the subsets). In many cases another representation called a preferential arrangement based on a utility function is also possible.
Weak orderings are counted by the ordered Bell numbers. They are used in computer science as part of partition refinement algorithms, and in the C++ Standard Library.
Examples
In horse racing, the use of photo finishes has eliminated some, but not all, ties or (as they are called in this context) dead heats, so the outcome of a horse race may be modeled by a weak ordering. In an example from the Maryland Hunt Cup steeplechase in 2007, The Bruce was the clear winner, but two horses Bug River and Lear Charm tied for second place, with the remaining horses farther back; three horses did not finish. In the weak ordering describing this outcome, The Bruce would be first, Bug River and Lear Charm would be ranked after The Bruce but before all the other horses that finished, and the three horses that did not finish would be placed last in the order but tied with each other.
The points of the Euclidean plane may be ordered by their distance from the origin, giving another example of a weak ordering with infinitely many elements, infinitely many subsets of tied elements (the sets of points that belong to a common circle centered at the origin), and infinitely many points within these subsets. Although this ordering has a smallest element (the origin itself), it does not have any second-smallest elements, nor any largest element.
Opinion polling in political elections provides an example of a type of ordering that resembles weak orderings, but is better modeled mathematically in other ways. In the results of a poll, one candidate may be clearly ahead of another, or the two candidates may be statistically tied, meaning not that their poll results are equal but rather that they are within the margin of error of each other. However, if candidate is statistically tied with
and
is statistically tied with
it might still be possible for
to be clearly better than
so being tied is not in this case a transitive relation. Because of this possibility, rankings of this type are better modeled as semiorders than as weak orderings.
Axiomatizations
Suppose throughout that is a homogeneous binary relation on a set
(that is,
is a subset of
) and as usual, write
and say that
holds or is true if and only if
Strict weak orderings
Preliminaries on incomparability and transitivity of incomparability
Two elements and
of
are said to be incomparable with respect to
if neither
nor
is true. A strict partial order
is a strict weak ordering if and only if incomparability with respect to
is an equivalence relation. Incomparability with respect to
is always a homogeneous symmetric relation on
It is reflexive if and only if
is irreflexive (meaning that
is always false), which will be assumed so that transitivity is the only property this "incomparability relation" needs in order to be an equivalence relation.
Define also an induced homogeneous relation on
by declaring that
where importantly, this definition is not necessarily the same as:
if and only if
Two elements
are incomparable with respect to
if and only if
are equivalent with respect to
(or less verbosely,
-equivalent), which by definition means that both
are true. The relation "are incomparable with respect to
" is thus identical to (that is, equal to) the relation "are
-equivalent" (so in particular, the former is transitive if and only if the latter is). When
is irreflexive then the property known as "transitivity of incomparability" (defined below) is exactly the condition necessary and sufficient to guarantee that the relation "are
-equivalent" does indeed form an equivalence relation on
When this is the case, it allows any two elements
satisfying
to be identified as a single object (specifically, they are identified together in their common equivalence class).
Definition
A strict weak ordering on a set is a strict partial order
on
for which the incomparability relation induced on
by
is a transitive relation. Explicitly, a strict weak order on
is a homogeneous relation
on
that has all four of the following properties:
- Irreflexivity: For all
it is not true that
- This condition holds if and only if the induced relation
on
is reflexive, where
is defined by declaring that
is true if and only if
is false.
- This condition holds if and only if the induced relation
- Transitivity: For all
if
then
- Asymmetry: For all
if
is true then
is false.
- Transitivity of incomparability: For all
if
is incomparable with
(meaning that neither
nor
is true) and if
is incomparable with
then
is incomparable with
- Two elements
are incomparable with respect to
if and only if they are equivalent with respect to the induced relation
(which by definition means that
are both true), where as before,
is declared to be true if and only if
is false. Thus this condition holds if and only if the symmetric relation on
defined by "
are equivalent with respect to
" is a transitive relation, meaning that whenever
are
-equivalent and also
are
-equivalent then necessarily
are
-equivalent. This can also be restated as: whenever
and also
then necessarily
- Two elements
Properties (1), (2), and (3) are the defining properties of a strict partial order, although there is some redundancy in this list as asymmetry (3) implies irreflexivity (1), and also because irreflexivity (1) and transitivity (2) together imply asymmetry (3). The incomparability relation is always symmetric and it will be reflexive if and only if is an irreflexive relation (which is assumed by the above definition). Consequently, a strict partial order
is a strict weak order if and only if its induced incomparability relation is an equivalence relation. In this case, its equivalence classes partition
and moreover, the set
of these equivalence classes can be strictly totally ordered by a binary relation, also denoted by
that is defined for all
by:
for some (or equivalently, for all) representatives
Conversely, any strict total order on a partition of
gives rise to a strict weak ordering
on
defined by
if and only if there exists sets
in this partition such that
Not every partial order obeys the transitive law for incomparability. For instance, consider the partial order in the set defined by the relationship
The pairs
are incomparable but
and
are related, so incomparability does not form an equivalence relation and this example is not a strict weak ordering.
For transitivity of incomparability, each of the following conditions is necessary, and for strict partial orders also sufficient:
- If
then for all
either
or both.
- If
is incomparable with
then for all
, either (
) or (
) or (
is incomparable with
and
is incomparable with
).
Total preorders
Strict weak orders are very closely related to total preorders or (non-strict) weak orders, and the same mathematical concepts that can be modeled with strict weak orderings can be modeled equally well with total preorders. A total preorder or weak order is a preorder in which any two elements are comparable. A total preorder satisfies the following properties:
- Transitivity: For all
if
then
- Strong connectedness: For all
- Which implies reflexivity: for all
- Which implies reflexivity: for all
A total order is a total preorder which is antisymmetric, in other words, which is also a partial order. Total preorders are sometimes also called preference relations.
The complement of a strict weak order is a total preorder, and vice versa, but it seems more natural to relate strict weak orders and total preorders in a way that preserves rather than reverses the order of the elements. Thus we take the converse of the complement: for a strict weak ordering define a total preorder
by setting
whenever it is not the case that
In the other direction, to define a strict weak ordering < from a total preorder
set
whenever it is not the case that
In any preorder there is a corresponding equivalence relation where two elements and
are defined as equivalent if
In the case of a total preorder the corresponding partial order on the set of equivalence classes is a total order. Two elements are equivalent in a total preorder if and only if they are incomparable in the corresponding strict weak ordering.
Ordered partitions
A partition of a set is a family of non-empty disjoint subsets of
that have
as their union. A partition, together with a total order on the sets of the partition, gives a structure called by Richard P. Stanley an ordered partition and by Theodore Motzkin a list of sets. An ordered partition of a finite set may be written as a finite sequence of the sets in the partition: for instance, the three ordered partitions of the set
are
In a strict weak ordering, the equivalence classes of incomparability give a set partition, in which the sets inherit a total ordering from their elements, giving rise to an ordered partition. In the other direction, any ordered partition gives rise to a strict weak ordering in which two elements are incomparable when they belong to the same set in the partition, and otherwise inherit the order of the sets that contain them.
Representation by functions
For sets of sufficiently small cardinality, a fourth axiomatization is possible, based on real-valued functions. If is any set then a real-valued function
on
induces a strict weak order on
by setting
The associated total preorder is given by setting
and the associated equivalence by setting
The relations do not change when is replaced by
(composite function), where
is a strictly increasing real-valued function defined on at least the range of
Thus for example, a utility function defines a preference relation. In this context, weak orderings are also known as preferential arrangements.
If is finite or countable, every weak order on
can be represented by a function in this way. However, there exist strict weak orders that have no corresponding real function. For example, there is no such function for the lexicographic order on
Thus, while in most preference relation models the relation defines a utility function up to order-preserving transformations, there is no such function for lexicographic preferences.
More generally, if is a set,
is a set with a strict weak ordering
and
is a function, then
induces a strict weak ordering on
by setting
As before, the associated total preorder is given by setting
and the associated equivalence by setting
It is not assumed here that
is an injective function, so a class of two equivalent elements on
may induce a larger class of equivalent elements on
Also,
is not assumed to be a surjective function, so a class of equivalent elements on
may induce a smaller or empty class on
However, the function
induces an injective function that maps the partition on
to that on
Thus, in the case of finite partitions, the number of classes in
is less than or equal to the number of classes on
Related types of ordering
Semiorders generalize strict weak orderings, but do not assume transitivity of incomparability. A strict weak order that is trichotomous is called a strict total order. The total preorder which is the inverse of its complement is in this case a total order.
For a strict weak order another associated reflexive relation is its reflexive closure, a (non-strict) partial order
The two associated reflexive relations differ with regard to different
and
for which neither
nor
: in the total preorder corresponding to a strict weak order we get
and
while in the partial order given by the reflexive closure we get neither
nor
For strict total orders these two associated reflexive relations are the same: the corresponding (non-strict) total order. The reflexive closure of a strict weak ordering is a type of series-parallel partial order.
All weak orders on a finite set
Combinatorial enumeration
The number of distinct weak orders (represented either as strict weak orders or as total preorders) on an -element set is given by the following sequence (sequence A000670 in the OEIS):
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=0 k!S(n, k) | n! | ∑n k=0 S(n, k) | |||
OEIS | A002416 | A006905 | A053763 | A006125 | A000798 | A001035 | A000670 | A000142 | A000110 |
Note that S(n, k) refers to Stirling numbers of the second kind.
These numbers are also called the Fubini numbers or ordered Bell numbers.
For example, for a set of three labeled items, there is one weak order in which all three items are tied. There are three ways of partitioning the items into one singleton set and one group of two tied items, and each of these partitions gives two weak orders (one in which the singleton is smaller than the group of two, and one in which this ordering is reversed), giving six weak orders of this type. And there is a single way of partitioning the set into three singletons, which can be totally ordered in six different ways. Thus, altogether, there are 13 different weak orders on three items.
Adjacency structure
Unlike for partial orders, the family of weak orderings on a given finite set is not in general connected by moves that add or remove a single order relation to or from a given ordering. For instance, for three elements, the ordering in which all three elements are tied differs by at least two pairs from any other weak ordering on the same set, in either the strict weak ordering or total preorder axiomatizations. However, a different kind of move is possible, in which the weak orderings on a set are more highly connected. Define a dichotomy to be a weak ordering with two equivalence classes, and define a dichotomy to be compatible with a given weak ordering if every two elements that are related in the ordering are either related in the same way or tied in the dichotomy. Alternatively, a dichotomy may be defined as a Dedekind cut for a weak ordering. Then a weak ordering may be characterized by its set of compatible dichotomies. For a finite set of labeled items, every pair of weak orderings may be connected to each other by a sequence of moves that add or remove one dichotomy at a time to or from this set of dichotomies. Moreover, the undirected graph that has the weak orderings as its vertices, and these moves as its edges, forms a partial cube.
Geometrically, the total orderings of a given finite set may be represented as the vertices of a permutohedron, and the dichotomies on this same set as the facets of the permutohedron. In this geometric representation, the weak orderings on the set correspond to the faces of all different dimensions of the permutohedron (including the permutohedron itself, but not the empty set, as a face). The codimension of a face gives the number of equivalence classes in the corresponding weak ordering. In this geometric representation the partial cube of moves on weak orderings is the graph describing the covering relation of the face lattice of the permutohedron.
For instance, for the permutohedron on three elements is just a regular hexagon. The face lattice of the hexagon (again, including the hexagon itself as a face, but not including the empty set) has thirteen elements: one hexagon, six edges, and six vertices, corresponding to the one completely tied weak ordering, six weak orderings with one tie, and six total orderings. The graph of moves on these 13 weak orderings is shown in the figure.
Applications
As mentioned above, weak orders have applications in utility theory. In linear programming and other types of combinatorial optimization problem, the prioritization of solutions or of bases is often given by a weak order, determined by a real-valued objective function; the phenomenon of ties in these orderings is called "degeneracy", and several types of tie-breaking rule have been used to refine this weak ordering into a total ordering in order to prevent problems caused by degeneracy.
Weak orders have also been used in computer science, in partition refinement based algorithms for lexicographic breadth-first search and lexicographic topological ordering. In these algorithms, a weak ordering on the vertices of a graph (represented as a family of sets that partition the vertices, together with a doubly linked list providing a total order on the sets) is gradually refined over the course of the algorithm, eventually producing a total ordering that is the output of the algorithm.
In the Standard Library for the C++ programming language, the set and multiset data types sort their input by a comparison function that is specified at the time of template instantiation, and that is assumed to implement a strict weak ordering.
See also
- Comparability – Property of elements related by inequalities
- Preorder – Reflexive and transitive binary relation
- Weak component – Partition of vertices of a directed graph − the equivalent subsets in the finest weak ordering consistent with a given relation
References
- Roberts, Fred; Tesman, Barry (2011), Applied Combinatorics (2nd ed.), CRC Press, Section 4.2.4 Weak Orders, pp. 254–256, ISBN 9781420099836.
- Josuttis, Nicolai M. (2012), The C++ Standard Library: A Tutorial and Reference, Addison-Wesley, p. 469, ISBN 9780132977739.
- de Koninck, J. M. (2009), Those Fascinating Numbers, American Mathematical Society, p. 4, ISBN 9780821886311.
- Baker, Kent (April 29, 2007), "The Bruce hangs on for Hunt Cup victory: Bug River, Lear Charm finish in dead heat for second", The Baltimore Sun, archived from the original on March 29, 2015.
- Regenwetter, Michel (2006), Behavioral Social Choice: Probabilistic Models, Statistical Inference, and Applications, Cambridge University Press, pp. 113ff, ISBN 9780521536660.
- Flaška, V.; Ježek, J.; Kepka, T.; Kortelainen, J. (2007), Transitive Closures of Binary Relations I (PDF), Prague: School of Mathematics - Physics Charles University, p. 1, S2CID 47676001, archived from the original (PDF) on 2018-04-06, Lemma 1.1 (iv). Note that this source refers to asymmetric relations as "strictly antisymmetric".
- Such a relation is also called strongly connected.
- Ehrgott, Matthias (2005), Multicriteria Optimization, Springer, Proposition 1.9, p. 10, ISBN 9783540276593.
- Stanley, Richard P. (1997), Enumerative Combinatorics, Vol. 2, Cambridge Studies in Advanced Mathematics, vol. 62, Cambridge University Press, p. 297.
- Motzkin, Theodore S. (1971), "Sorting numbers for cylinders and other classification numbers", Combinatorics (Proc. Sympos. Pure Math., Vol. XIX, Univ. California, Los Angeles, Calif., 1968), Providence, R.I.: Amer. Math. Soc., pp. 167–176, MR 0332508.
- Gross, O. A. (1962), "Preferential arrangements", The American Mathematical Monthly, 69 (1): 4–8, doi:10.2307/2312725, JSTOR 2312725, MR 0130837.
- Roberts, Fred S. (1979), Measurement Theory, with Applications to Decisionmaking, Utility, and the Social Sciences, Encyclopedia of Mathematics and its Applications, vol. 7, Addison-Wesley, Theorem 3.1, ISBN 978-0-201-13506-0.
- Luce, R. Duncan (1956), "Semiorders and a theory of utility discrimination" (PDF), Econometrica, 24 (2): 178–191, doi:10.2307/1905751, JSTOR 1905751, MR 0078632.
- Velleman, Daniel J. (2006), How to Prove It: A Structured Approach, Cambridge University Press, p. 204, ISBN 9780521675994.
- Eppstein, David; Falmagne, Jean-Claude; Ovchinnikov, Sergei (2008), Media Theory: Interdisciplinary Applied Mathematics, Springer, Section 9.4, Weak Orders and Cubical Complexes, pp. 188–196.
- Ziegler, Günter M. (1995), Lectures on Polytopes, Graduate Texts in Mathematics, vol. 152, Springer, p. 18.
- Chvátal, Vašek (1983), Linear Programming, Macmillan, pp. 29–38, ISBN 9780716715870.
- Habib, Michel; Paul, Christophe; Viennot, Laurent (1999), "Partition refinement techniques: an interesting algorithmic tool kit", International Journal of Foundations of Computer Science, 10 (2): 147–170, doi:10.1142/S0129054199000125, MR 1759929.
Transitive binary relations vteSymmetricAntisymmetricConnectedWell foundedHas joinsHas meetsReflexiveIrreflexiveAsymmetricTotal SemiconnexAnti reflexiveEquivalence relationY Y Preorder Quasiorder Y Partial order Y Y Total preorder Y Y Total order YY Y Prewellordering YY Y Well quasi ordering Y Y Well ordering YYY Y Lattice Y YYY Join semilattice Y Y Y Meet semilattice Y YY Strict partial order Y YYStrict weak order Y YYStrict total order YY YYSymmetricAntisymmetricConnectedWell foundedHas joinsHas meetsReflexiveIrreflexiveAsymmetricDefinitions for all a b displaystyle a b and S displaystyle S neq varnothing aRb bRa displaystyle begin aligned amp aRb Rightarrow amp bRa end aligned aRb and bRa a b displaystyle begin aligned aRb text and amp bRa Rightarrow a amp b end aligned a b aRb or bRa displaystyle begin aligned a neq amp b Rightarrow aRb text or amp bRa end aligned minSexists displaystyle begin aligned min S text exists end aligned a bexists displaystyle begin aligned a vee b text exists end aligned a bexists displaystyle begin aligned a wedge b text exists end aligned aRa displaystyle aRa not aRa displaystyle text not aRa aRb not bRa displaystyle begin aligned aRb Rightarrow text not bRa end aligned Y indicates that the column s property is always true for the row s term at the very left while indicates that the property is not guaranteed in general it might or might not hold For example that every equivalence relation is symmetric but not necessarily antisymmetric is indicated by Y in the Symmetric column and in the Antisymmetric column respectively All definitions tacitly require the homogeneous relation R displaystyle R be transitive for all a b c displaystyle a b c if aRb displaystyle aRb and bRc displaystyle bRc then aRc displaystyle aRc A term s definition may require additional properties that are not listed in this table In mathematics especially order theory a weak ordering is a mathematical formalization of the intuitive notion of a ranking of a set some of whose members may be tied with each other Weak orders are a generalization of totally ordered sets rankings without ties and are in turn generalized by strictly partially ordered sets and preorders A weak order on the set a b c d displaystyle a b c d where b displaystyle b and c displaystyle c are of equal rank a displaystyle a is ranked below them and d displaystyle d is ranked above them I representation as a strict weak order lt displaystyle lt where x lt y displaystyle x lt y is shown as an arrow from x displaystyle x to y displaystyle y II representation as a total preorder displaystyle leq shown using arrows III representation as an ordered partition with the sets of the partition as dotted ellipses and the total order on these sets shown with arrows The 13 possible strict weak orderings on a set of three elements a b c displaystyle a b c The only total orders are shown in black Two orderings are connected by an edge if they differ by a single dichotomy There are several common ways of formalizing weak orderings that are different from each other but cryptomorphic interconvertable with no loss of information they may be axiomatized as strict weak orderings strictly partially ordered sets in which incomparability is a transitive relation as total preorders transitive binary relations in which at least one of the two possible relations exists between every pair of elements or as ordered partitions partitions of the elements into disjoint subsets together with a total order on the subsets In many cases another representation called a preferential arrangement based on a utility function is also possible Weak orderings are counted by the ordered Bell numbers They are used in computer science as part of partition refinement algorithms and in the C Standard Library ExamplesIn horse racing the use of photo finishes has eliminated some but not all ties or as they are called in this context dead heats so the outcome of a horse race may be modeled by a weak ordering In an example from the Maryland Hunt Cup steeplechase in 2007 The Bruce was the clear winner but two horses Bug River and Lear Charm tied for second place with the remaining horses farther back three horses did not finish In the weak ordering describing this outcome The Bruce would be first Bug River and Lear Charm would be ranked after The Bruce but before all the other horses that finished and the three horses that did not finish would be placed last in the order but tied with each other The points of the Euclidean plane may be ordered by their distance from the origin giving another example of a weak ordering with infinitely many elements infinitely many subsets of tied elements the sets of points that belong to a common circle centered at the origin and infinitely many points within these subsets Although this ordering has a smallest element the origin itself it does not have any second smallest elements nor any largest element Opinion polling in political elections provides an example of a type of ordering that resembles weak orderings but is better modeled mathematically in other ways In the results of a poll one candidate may be clearly ahead of another or the two candidates may be statistically tied meaning not that their poll results are equal but rather that they are within the margin of error of each other However if candidate x displaystyle x is statistically tied with y displaystyle y and y displaystyle y is statistically tied with z displaystyle z it might still be possible for x displaystyle x to be clearly better than z displaystyle z so being tied is not in this case a transitive relation Because of this possibility rankings of this type are better modeled as semiorders than as weak orderings AxiomatizationsSuppose throughout that lt displaystyle lt is a homogeneous binary relation on a set S displaystyle S that is lt displaystyle lt is a subset of S S displaystyle S times S and as usual write x lt y displaystyle x lt y and say that x lt y displaystyle x lt y holds or is true if and only if x y lt displaystyle x y in lt Strict weak orderings Preliminaries on incomparability and transitivity of incomparability Two elements x displaystyle x and y displaystyle y of S displaystyle S are said to be incomparable with respect to lt displaystyle lt if neither x lt y displaystyle x lt y nor y lt x displaystyle y lt x is true A strict partial order lt displaystyle lt is a strict weak ordering if and only if incomparability with respect to lt displaystyle lt is an equivalence relation Incomparability with respect to lt displaystyle lt is always a homogeneous symmetric relation on S displaystyle S It is reflexive if and only if lt displaystyle lt is irreflexive meaning that x lt x displaystyle x lt x is always false which will be assumed so that transitivity is the only property this incomparability relation needs in order to be an equivalence relation Define also an induced homogeneous relation displaystyle lesssim on S displaystyle S by declaring that x y is true if and only if y lt x is false displaystyle x lesssim y text is true quad text if and only if quad y lt x text is false where importantly this definition is not necessarily the same as x y displaystyle x lesssim y if and only if x lt y or x y displaystyle x lt y text or x y Two elements x y S displaystyle x y in S are incomparable with respect to lt displaystyle lt if and only if x and y displaystyle x text and y are equivalent with respect to displaystyle lesssim or less verbosely displaystyle lesssim equivalent which by definition means that both x y and y x displaystyle x lesssim y text and y lesssim x are true The relation are incomparable with respect to lt displaystyle lt is thus identical to that is equal to the relation are displaystyle lesssim equivalent so in particular the former is transitive if and only if the latter is When lt displaystyle lt is irreflexive then the property known as transitivity of incomparability defined below is exactly the condition necessary and sufficient to guarantee that the relation are displaystyle lesssim equivalent does indeed form an equivalence relation on S displaystyle S When this is the case it allows any two elements x y S displaystyle x y in S satisfying x y and y x displaystyle x lesssim y text and y lesssim x to be identified as a single object specifically they are identified together in their common equivalence class Definition A strict weak ordering on a set S displaystyle S is a strict partial order lt displaystyle lt on S displaystyle S for which the incomparability relation induced on S displaystyle S by lt displaystyle lt is a transitive relation Explicitly a strict weak order on S displaystyle S is a homogeneous relation lt displaystyle lt on S displaystyle S that has all four of the following properties Irreflexivity For all x S displaystyle x in S it is not true that x lt x displaystyle x lt x This condition holds if and only if the induced relation displaystyle lesssim on S displaystyle S is reflexive where displaystyle lesssim is defined by declaring that x y displaystyle x lesssim y is true if and only if y lt x displaystyle y lt x is false Transitivity For all x y z S displaystyle x y z in S if x lt y and y lt z displaystyle x lt y text and y lt z then x lt z displaystyle x lt z Asymmetry For all x y S displaystyle x y in S if x lt y displaystyle x lt y is true then y lt x displaystyle y lt x is false Transitivity of incomparability For all x y z S displaystyle x y z in S if x displaystyle x is incomparable with y displaystyle y meaning that neither x lt y displaystyle x lt y nor y lt x displaystyle y lt x is true and if y displaystyle y is incomparable with z displaystyle z then x displaystyle x is incomparable with z displaystyle z Two elements x and y displaystyle x text and y are incomparable with respect to lt displaystyle lt if and only if they are equivalent with respect to the induced relation displaystyle lesssim which by definition means that x y and y x displaystyle x lesssim y text and y lesssim x are both true where as before x y displaystyle x lesssim y is declared to be true if and only if y lt x displaystyle y lt x is false Thus this condition holds if and only if the symmetric relation on S displaystyle S defined by x and y displaystyle x text and y are equivalent with respect to displaystyle lesssim is a transitive relation meaning that whenever x and y displaystyle x text and y are displaystyle lesssim equivalent and also y and z displaystyle y text and z are displaystyle lesssim equivalent then necessarily x and z displaystyle x text and z are displaystyle lesssim equivalent This can also be restated as whenever x y and y x displaystyle x lesssim y text and y lesssim x and also y z and z y displaystyle y lesssim z text and z lesssim y then necessarily x z and z x displaystyle x lesssim z text and z lesssim x Properties 1 2 and 3 are the defining properties of a strict partial order although there is some redundancy in this list as asymmetry 3 implies irreflexivity 1 and also because irreflexivity 1 and transitivity 2 together imply asymmetry 3 The incomparability relation is always symmetric and it will be reflexive if and only if lt displaystyle lt is an irreflexive relation which is assumed by the above definition Consequently a strict partial order lt displaystyle lt is a strict weak order if and only if its induced incomparability relation is an equivalence relation In this case its equivalence classes partition S displaystyle S and moreover the set P displaystyle mathcal P of these equivalence classes can be strictly totally ordered by a binary relation also denoted by lt displaystyle lt that is defined for all A B P displaystyle A B in mathcal P by A lt B if and only if a lt b displaystyle A lt B text if and only if a lt b for some or equivalently for all representatives a A and b B displaystyle a in A text and b in B Conversely any strict total order on a partition P displaystyle mathcal P of S displaystyle S gives rise to a strict weak ordering lt displaystyle lt on S displaystyle S defined by a lt b displaystyle a lt b if and only if there exists sets A B P displaystyle A B in mathcal P in this partition such that a A b B and A lt B displaystyle a in A b in B text and A lt B Not every partial order obeys the transitive law for incomparability For instance consider the partial order in the set a b c displaystyle a b c defined by the relationship b lt c displaystyle b lt c The pairs a b and a c displaystyle a b text and a c are incomparable but b displaystyle b and c displaystyle c are related so incomparability does not form an equivalence relation and this example is not a strict weak ordering For transitivity of incomparability each of the following conditions is necessary and for strict partial orders also sufficient If x lt y displaystyle x lt y then for all z displaystyle z either x lt z or z lt y displaystyle x lt z text or z lt y or both If x displaystyle x is incomparable with y displaystyle y then for all z displaystyle z either x lt z and y lt z displaystyle x lt z text and y lt z or z lt x and z lt y displaystyle z lt x text and z lt y or z displaystyle z is incomparable with x displaystyle x and z displaystyle z is incomparable with y displaystyle y Total preorders Strict weak orders are very closely related to total preorders or non strict weak orders and the same mathematical concepts that can be modeled with strict weak orderings can be modeled equally well with total preorders A total preorder or weak order is a preorder in which any two elements are comparable A total preorder displaystyle lesssim satisfies the following properties Transitivity For all x y and z displaystyle x y text and z if x y and y z displaystyle x lesssim y text and y lesssim z then x z displaystyle x lesssim z Strong connectedness For all x and y displaystyle x text and y x y or y x displaystyle x lesssim y text or y lesssim x Which implies reflexivity for all x displaystyle x x x displaystyle x lesssim x A total order is a total preorder which is antisymmetric in other words which is also a partial order Total preorders are sometimes also called preference relations The complement of a strict weak order is a total preorder and vice versa but it seems more natural to relate strict weak orders and total preorders in a way that preserves rather than reverses the order of the elements Thus we take the converse of the complement for a strict weak ordering lt displaystyle lt define a total preorder displaystyle lesssim by setting x y displaystyle x lesssim y whenever it is not the case that y lt x displaystyle y lt x In the other direction to define a strict weak ordering lt from a total preorder displaystyle lesssim set x lt y displaystyle x lt y whenever it is not the case that y x displaystyle y lesssim x In any preorder there is a corresponding equivalence relation where two elements x displaystyle x and y displaystyle y are defined as equivalent if x y and y x displaystyle x lesssim y text and y lesssim x In the case of a total preorder the corresponding partial order on the set of equivalence classes is a total order Two elements are equivalent in a total preorder if and only if they are incomparable in the corresponding strict weak ordering Ordered partitions A partition of a set S displaystyle S is a family of non empty disjoint subsets of S displaystyle S that have S displaystyle S as their union A partition together with a total order on the sets of the partition gives a structure called by Richard P Stanley an ordered partition and by Theodore Motzkin a list of sets An ordered partition of a finite set may be written as a finite sequence of the sets in the partition for instance the three ordered partitions of the set a b displaystyle a b are a b displaystyle a b b a and displaystyle b a text and a b displaystyle a b In a strict weak ordering the equivalence classes of incomparability give a set partition in which the sets inherit a total ordering from their elements giving rise to an ordered partition In the other direction any ordered partition gives rise to a strict weak ordering in which two elements are incomparable when they belong to the same set in the partition and otherwise inherit the order of the sets that contain them Representation by functions For sets of sufficiently small cardinality a fourth axiomatization is possible based on real valued functions If X displaystyle X is any set then a real valued function f X R displaystyle f X to mathbb R on X displaystyle X induces a strict weak order on X displaystyle X by setting a lt b if and only if f a lt f b displaystyle a lt b text if and only if f a lt f b The associated total preorder is given by setting a b if and only if f a f b displaystyle a lesssim b text if and only if f a leq f b and the associated equivalence by setting a b if and only if f a f b displaystyle a sim b text if and only if f a f b The relations do not change when f displaystyle f is replaced by g f displaystyle g circ f composite function where g displaystyle g is a strictly increasing real valued function defined on at least the range of f displaystyle f Thus for example a utility function defines a preference relation In this context weak orderings are also known as preferential arrangements If X displaystyle X is finite or countable every weak order on X displaystyle X can be represented by a function in this way However there exist strict weak orders that have no corresponding real function For example there is no such function for the lexicographic order on Rn displaystyle mathbb R n Thus while in most preference relation models the relation defines a utility function up to order preserving transformations there is no such function for lexicographic preferences More generally if X displaystyle X is a set Y displaystyle Y is a set with a strict weak ordering lt displaystyle lt and f X Y displaystyle f X to Y is a function then f displaystyle f induces a strict weak ordering on X displaystyle X by setting a lt b if and only if f a lt f b displaystyle a lt b text if and only if f a lt f b As before the associated total preorder is given by setting a b if and only if f a f b displaystyle a lesssim b text if and only if f a lesssim f b and the associated equivalence by setting a b if and only if f a f b displaystyle a sim b text if and only if f a sim f b It is not assumed here that f displaystyle f is an injective function so a class of two equivalent elements on Y displaystyle Y may induce a larger class of equivalent elements on X displaystyle X Also f displaystyle f is not assumed to be a surjective function so a class of equivalent elements on Y displaystyle Y may induce a smaller or empty class on X displaystyle X However the function f displaystyle f induces an injective function that maps the partition on X displaystyle X to that on Y displaystyle Y Thus in the case of finite partitions the number of classes in X displaystyle X is less than or equal to the number of classes on Y displaystyle Y Related types of orderingSemiorders generalize strict weak orderings but do not assume transitivity of incomparability A strict weak order that is trichotomous is called a strict total order The total preorder which is the inverse of its complement is in this case a total order For a strict weak order lt displaystyle lt another associated reflexive relation is its reflexive closure a non strict partial order displaystyle leq The two associated reflexive relations differ with regard to different a displaystyle a and b displaystyle b for which neither a lt b displaystyle a lt b nor b lt a displaystyle b lt a in the total preorder corresponding to a strict weak order we get a b displaystyle a lesssim b and b a displaystyle b lesssim a while in the partial order given by the reflexive closure we get neither a b displaystyle a leq b nor b a displaystyle b leq a For strict total orders these two associated reflexive relations are the same the corresponding non strict total order The reflexive closure of a strict weak ordering is a type of series parallel partial order All weak orders on a finite setCombinatorial enumeration The number of distinct weak orders represented either as strict weak orders or as total preorders on an n displaystyle n element set is given by the following sequence sequence A000670 in the OEIS Number of n element binary relations of different types Elem ents Any Transitive Reflexive Symmetric Preorder Partial order Total preorder Total order Equivalence relation0 1 1 1 1 1 1 1 1 11 2 2 1 2 1 1 1 1 12 16 13 4 8 4 3 3 2 23 512 171 64 64 29 19 13 6 54 65 536 3 994 4 096 1 024 355 219 75 24 15n 2n2 2n n 1 2n n 1 2 n k 0 k S n k n n k 0 S n k OEIS A002416 A006905 A053763 A006125 A000798 A001035 A000670 A000142 A000110 Note that S n k refers to Stirling numbers of the second kind These numbers are also called the Fubini numbers or ordered Bell numbers For example for a set of three labeled items there is one weak order in which all three items are tied There are three ways of partitioning the items into one singleton set and one group of two tied items and each of these partitions gives two weak orders one in which the singleton is smaller than the group of two and one in which this ordering is reversed giving six weak orders of this type And there is a single way of partitioning the set into three singletons which can be totally ordered in six different ways Thus altogether there are 13 different weak orders on three items Adjacency structure The permutohedron on four elements a three dimensional convex polyhedron It has 24 vertices 36 edges and 14 two dimensional faces which all together with the whole three dimensional polyhedron correspond to the 75 weak orderings on four elements Unlike for partial orders the family of weak orderings on a given finite set is not in general connected by moves that add or remove a single order relation to or from a given ordering For instance for three elements the ordering in which all three elements are tied differs by at least two pairs from any other weak ordering on the same set in either the strict weak ordering or total preorder axiomatizations However a different kind of move is possible in which the weak orderings on a set are more highly connected Define a dichotomy to be a weak ordering with two equivalence classes and define a dichotomy to be compatible with a given weak ordering if every two elements that are related in the ordering are either related in the same way or tied in the dichotomy Alternatively a dichotomy may be defined as a Dedekind cut for a weak ordering Then a weak ordering may be characterized by its set of compatible dichotomies For a finite set of labeled items every pair of weak orderings may be connected to each other by a sequence of moves that add or remove one dichotomy at a time to or from this set of dichotomies Moreover the undirected graph that has the weak orderings as its vertices and these moves as its edges forms a partial cube Geometrically the total orderings of a given finite set may be represented as the vertices of a permutohedron and the dichotomies on this same set as the facets of the permutohedron In this geometric representation the weak orderings on the set correspond to the faces of all different dimensions of the permutohedron including the permutohedron itself but not the empty set as a face The codimension of a face gives the number of equivalence classes in the corresponding weak ordering In this geometric representation the partial cube of moves on weak orderings is the graph describing the covering relation of the face lattice of the permutohedron For instance for n 3 displaystyle n 3 the permutohedron on three elements is just a regular hexagon The face lattice of the hexagon again including the hexagon itself as a face but not including the empty set has thirteen elements one hexagon six edges and six vertices corresponding to the one completely tied weak ordering six weak orderings with one tie and six total orderings The graph of moves on these 13 weak orderings is shown in the figure ApplicationsAs mentioned above weak orders have applications in utility theory In linear programming and other types of combinatorial optimization problem the prioritization of solutions or of bases is often given by a weak order determined by a real valued objective function the phenomenon of ties in these orderings is called degeneracy and several types of tie breaking rule have been used to refine this weak ordering into a total ordering in order to prevent problems caused by degeneracy Weak orders have also been used in computer science in partition refinement based algorithms for lexicographic breadth first search and lexicographic topological ordering In these algorithms a weak ordering on the vertices of a graph represented as a family of sets that partition the vertices together with a doubly linked list providing a total order on the sets is gradually refined over the course of the algorithm eventually producing a total ordering that is the output of the algorithm In the Standard Library for the C programming language the set and multiset data types sort their input by a comparison function that is specified at the time of template instantiation and that is assumed to implement a strict weak ordering See alsoComparability Property of elements related by inequalities Preorder Reflexive and transitive binary relation Weak component Partition of vertices of a directed graph the equivalent subsets in the finest weak ordering consistent with a given relationReferencesRoberts Fred Tesman Barry 2011 Applied Combinatorics 2nd ed CRC Press Section 4 2 4 Weak Orders pp 254 256 ISBN 9781420099836 Josuttis Nicolai M 2012 The C Standard Library A Tutorial and Reference Addison Wesley p 469 ISBN 9780132977739 de Koninck J M 2009 Those Fascinating Numbers American Mathematical Society p 4 ISBN 9780821886311 Baker Kent April 29 2007 The Bruce hangs on for Hunt Cup victory Bug River Lear Charm finish in dead heat for second The Baltimore Sun archived from the original on March 29 2015 Regenwetter Michel 2006 Behavioral Social Choice Probabilistic Models Statistical Inference and Applications Cambridge University Press pp 113ff ISBN 9780521536660 Flaska V Jezek J Kepka T Kortelainen J 2007 Transitive Closures of Binary Relations I PDF Prague School of Mathematics Physics Charles University p 1 S2CID 47676001 archived from the original PDF on 2018 04 06 Lemma 1 1 iv Note that this source refers to asymmetric relations as strictly antisymmetric Such a relation is also called strongly connected Ehrgott Matthias 2005 Multicriteria Optimization Springer Proposition 1 9 p 10 ISBN 9783540276593 Stanley Richard P 1997 Enumerative Combinatorics Vol 2 Cambridge Studies in Advanced Mathematics vol 62 Cambridge University Press p 297 Motzkin Theodore S 1971 Sorting numbers for cylinders and other classification numbers Combinatorics Proc Sympos Pure Math Vol XIX Univ California Los Angeles Calif 1968 Providence R I Amer Math Soc pp 167 176 MR 0332508 Gross O A 1962 Preferential arrangements The American Mathematical Monthly 69 1 4 8 doi 10 2307 2312725 JSTOR 2312725 MR 0130837 Roberts Fred S 1979 Measurement Theory with Applications to Decisionmaking Utility and the Social Sciences Encyclopedia of Mathematics and its Applications vol 7 Addison Wesley Theorem 3 1 ISBN 978 0 201 13506 0 Luce R Duncan 1956 Semiorders and a theory of utility discrimination PDF Econometrica 24 2 178 191 doi 10 2307 1905751 JSTOR 1905751 MR 0078632 Velleman Daniel J 2006 How to Prove It A Structured Approach Cambridge University Press p 204 ISBN 9780521675994 Eppstein David Falmagne Jean Claude Ovchinnikov Sergei 2008 Media Theory Interdisciplinary Applied Mathematics Springer Section 9 4 Weak Orders and Cubical Complexes pp 188 196 Ziegler Gunter M 1995 Lectures on Polytopes Graduate Texts in Mathematics vol 152 Springer p 18 Chvatal Vasek 1983 Linear Programming Macmillan pp 29 38 ISBN 9780716715870 Habib Michel Paul Christophe Viennot Laurent 1999 Partition refinement techniques an interesting algorithmic tool kit International Journal of Foundations of Computer Science 10 2 147 170 doi 10 1142 S0129054199000125 MR 1759929