Preorder

From HandWiki
Short description: Reflexive and transitive binary relation


Hasse diagram of the preorder x R y defined by x//4≤y//4 on the natural numbers. Due to the cycles, R is not anti-symmetric. If all numbers in a cycle are considered equivalent, a partial, even linear, order[1] is obtained. See first example below.

In mathematics, especially in order theory, a preorder or quasiorder is a binary relation that is reflexive and transitive. Preorders are more general than equivalence relations and (non-strict) partial orders, both of which are special cases of a preorder: an antisymmetric (or skeletal) preorder is a partial order, and a symmetric preorder is an equivalence relation.

The name preorder comes from the idea that preorders (that are not partial orders) are 'almost' (partial) orders, but not quite; they are neither necessarily antisymmetric nor asymmetric. Because a preorder is a binary relation, the symbol [math]\displaystyle{ \,\leq\, }[/math] can be used as the notational device for the relation. However, because they are not necessarily antisymmetric, some of the ordinary intuition associated to the symbol [math]\displaystyle{ \,\leq\, }[/math] may not apply. On the other hand, a preorder can be used, in a straightforward fashion, to define a partial order and an equivalence relation. Doing so, however, is not always useful or worthwhile, depending on the problem domain being studied.

In words, when [math]\displaystyle{ a \leq b, }[/math] one may say that b covers a or that a precedes b, or that b reduces to a. Occasionally, the notation ← or → or [math]\displaystyle{ \,\lesssim\, }[/math] is used instead of [math]\displaystyle{ \,\leq. }[/math]

To every preorder, there corresponds a directed graph, with elements of the set corresponding to vertices, and the order relation between pairs of elements corresponding to the directed edges between vertices. The converse is not true: most directed graphs are neither reflexive nor transitive. In general, the corresponding graphs may contain cycles. A preorder that is antisymmetric no longer has cycles; it is a partial order, and corresponds to a directed acyclic graph. A preorder that is symmetric is an equivalence relation; it can be thought of as having lost the direction markers on the edges of the graph. In general, a preorder's corresponding directed graph may have many disconnected components.

Formal definition

Consider a homogeneous relation [math]\displaystyle{ \,\leq\, }[/math] on some given set [math]\displaystyle{ P, }[/math] so that by definition, [math]\displaystyle{ \,\leq\, }[/math] is some subset of [math]\displaystyle{ P \times P }[/math] and the notation [math]\displaystyle{ a \leq b }[/math] is used in place of [math]\displaystyle{ (a, b) \in \,\leq. }[/math] Then [math]\displaystyle{ \,\leq\, }[/math] is called a preorder or quasiorder if it is reflexive and transitive; that is, if it satisfies:

  1. Reflexivity: [math]\displaystyle{ a \leq a }[/math] for all [math]\displaystyle{ a \in P, }[/math] and
  2. Transitivity: if [math]\displaystyle{ a \leq b \text{ and } b \leq c \text{ then } a \leq c }[/math] for all [math]\displaystyle{ a, b, c \in P. }[/math]

A set that is equipped with a preorder is called a preordered set (or proset).[2] For emphasis or contrast to strict preorders (defined next), a preorder may also be referred to as a non-strict preorder.

If reflexivity is replaced with irreflexivity (while keeping transitivity) then the result is called a strict preorder; explicitly, a strict preorder on [math]\displaystyle{ P }[/math] is a homogeneous binary relation [math]\displaystyle{ \,\lt \, }[/math] on [math]\displaystyle{ P }[/math] that satisfies the following conditions:

  1. Irreflexivity or Anti-reflexivity: not [math]\displaystyle{ a \lt a }[/math] for all [math]\displaystyle{ a \in P; }[/math] that is, [math]\displaystyle{ \,a \lt a }[/math] is false for all [math]\displaystyle{ a \in P, }[/math] and
  2. Transitivity: if [math]\displaystyle{ a \lt b \text{ and } b \lt c \text{ then } a \lt c }[/math] for all [math]\displaystyle{ a, b, c \in P. }[/math]

A binary relation is a strict preorder if and only if it is a strict partial order. By definition, a strict partial order is an asymmetric strict preorder, where [math]\displaystyle{ \,\lt \, }[/math] is called asymmetric if [math]\displaystyle{ a \lt b \text{ implies } \textit{ not } \ b \lt a }[/math] for all [math]\displaystyle{ a, b. }[/math] Conversely, every strict preorder is a strict partial order because every transitive irreflexive relation is necessarily asymmetric. Although they are equivalent, the term "strict partial order" is typically preferred over "strict preorder" and readers are referred to the article on strict partial orders for details about such relations. In contrast to strict preorders, there are many (non-strict) preorders that are not (non-strict) partial orders.

Related definitions

If a preorder is also antisymmetric, that is, [math]\displaystyle{ a \leq b }[/math] and [math]\displaystyle{ b \leq a }[/math] implies [math]\displaystyle{ a = b, }[/math] then it is a partial order.

On the other hand, if it is symmetric, that is, if [math]\displaystyle{ a \leq b }[/math] implies [math]\displaystyle{ b \leq a, }[/math] then it is an equivalence relation.

A preorder is total if [math]\displaystyle{ a \leq b }[/math] or [math]\displaystyle{ b \leq a }[/math] for all [math]\displaystyle{ a, b \in P. }[/math]

The notion of a preordered set [math]\displaystyle{ P }[/math] can be formulated in a categorical framework as a thin category; that is, as a category with at most one morphism from an object to another. Here the objects correspond to the elements of [math]\displaystyle{ P, }[/math] and there is one morphism for objects which are related, zero otherwise. Alternately, a preordered set can be understood as an enriched category, enriched over the category [math]\displaystyle{ 2 = (0 \to 1). }[/math]

A preordered class is a class equipped with a preorder. Every set is a class and so every preordered set is a preordered class.

Examples

Graph theory

  • (see figure above) By x//4 is meant the greatest integer that is less than or equal to x divided by 4, thus 1//4 is 0, which is certainly less than or equal to 0, which is itself the same as 0//4.
  • The reachability relationship in any directed graph (possibly containing cycles) gives rise to a preorder, where [math]\displaystyle{ x \leq y }[/math] in the preorder if and only if there is a path from x to y in the directed graph. Conversely, every preorder is the reachability relationship of a directed graph (for instance, the graph that has an edge from x to y for every pair (x, y) with [math]\displaystyle{ x \leq y }[/math]). However, many different graphs may have the same reachability preorder as each other. In the same way, reachability of directed acyclic graphs, directed graphs with no cycles, gives rise to partially ordered sets (preorders satisfying an additional antisymmetry property).
  • The graph-minor relation in graph theory.

Computer science

In computer science, one can find examples of the following preorders.

Other

Further examples:

  • Every finite topological space gives rise to a preorder on its points by defining [math]\displaystyle{ x \leq y }[/math] if and only if x belongs to every neighborhood of y. Every finite preorder can be formed as the specialization preorder of a topological space in this way. That is, there is a one-to-one correspondence between finite topologies and finite preorders. However, the relation between infinite topological spaces and their specialization preorders is not one-to-one.
  • A net is a directed preorder, that is, each pair of elements has an upper bound. The definition of convergence via nets is important in topology, where preorders cannot be replaced by partially ordered sets without losing important features.
  • The relation defined by [math]\displaystyle{ x \leq y }[/math] if [math]\displaystyle{ f(x) \leq f(y), }[/math] where f is a function into some preorder.
  • The relation defined by [math]\displaystyle{ x \leq y }[/math] if there exists some injection from x to y. Injection may be replaced by surjection, or any type of structure-preserving function, such as ring homomorphism, or permutation.
  • The embedding relation for countable total orderings.
  • A category with at most one morphism from any object x to any other object y is a preorder. Such categories are called thin. In this sense, categories "generalize" preorders by allowing more than one relation between objects: each morphism is a distinct (named) preorder relation.

Example of a total preorder:

Uses

Preorders play a pivotal role in several situations:

Constructions

Every binary relation [math]\displaystyle{ R }[/math] on a set [math]\displaystyle{ S }[/math] can be extended to a preorder on [math]\displaystyle{ S }[/math] by taking the transitive closure and reflexive closure, [math]\displaystyle{ R^{+=}. }[/math] The transitive closure indicates path connection in [math]\displaystyle{ R : x R^+ y }[/math] if and only if there is an [math]\displaystyle{ R }[/math]-path from [math]\displaystyle{ x }[/math] to [math]\displaystyle{ y. }[/math]

Left residual preorder induced by a binary relation

Given a binary relation [math]\displaystyle{ R, }[/math] the complemented composition [math]\displaystyle{ R \backslash R = \overline{R^\textsf{T} \circ \overline{R}} }[/math] forms a preorder called the left residual,[6] where [math]\displaystyle{ R^\textsf{T} }[/math] denotes the converse relation of [math]\displaystyle{ R, }[/math] and [math]\displaystyle{ \overline{R} }[/math] denotes the complement relation of [math]\displaystyle{ R, }[/math] while [math]\displaystyle{ \circ }[/math] denotes relation composition.

Preorders and partial orders on partitions

Given a preorder [math]\displaystyle{ \,\lesssim\, }[/math] on [math]\displaystyle{ S }[/math] one may define an equivalence relation [math]\displaystyle{ \,\sim\, }[/math] on [math]\displaystyle{ S }[/math] such that [math]\displaystyle{ a \sim b \quad \text{ if and only if } \quad a \lesssim b \; \text{ and } \; b \lesssim a. }[/math] The resulting relation [math]\displaystyle{ \,\sim\, }[/math] is reflexive since the preorder [math]\displaystyle{ \,\lesssim\, }[/math] is reflexive; transitive by applying the transitivity of [math]\displaystyle{ \,\lesssim\, }[/math] twice; and symmetric by definition.

Using this relation, it is possible to construct a partial order on the quotient set of the equivalence, [math]\displaystyle{ S / \sim, }[/math] which is the set of all equivalence classes of [math]\displaystyle{ \,\sim. }[/math] If the preorder is denoted by [math]\displaystyle{ R^{+=}, }[/math] then [math]\displaystyle{ S / \sim }[/math] is the set of [math]\displaystyle{ R }[/math]-cycle equivalence classes: [math]\displaystyle{ x \in [y] }[/math] if and only if [math]\displaystyle{ x = y }[/math] or [math]\displaystyle{ x }[/math] is in an [math]\displaystyle{ R }[/math]-cycle with [math]\displaystyle{ y }[/math] In any case, on [math]\displaystyle{ S / \sim }[/math] it is possible to define [math]\displaystyle{ [x] \leq [y] }[/math] if and only if [math]\displaystyle{ x \lesssim y. }[/math] That this is well-defined, meaning that its defining condition does not depend on which representatives of [math]\displaystyle{ [x] }[/math] and [math]\displaystyle{ [y] }[/math] are chosen, follows from the definition of [math]\displaystyle{ \,\sim.\, }[/math] It is readily verified that this yields a partially ordered set.

Conversely, from any partial order on a partition of a set [math]\displaystyle{ S, }[/math] it is possible to construct a preorder on [math]\displaystyle{ S }[/math] itself. There is a one-to-one correspondence between preorders and pairs (partition, partial order).

Example: Let [math]\displaystyle{ S }[/math] be a formal theory, which is a set of sentences with certain properties (details of which can be found in the article on the subject). For instance, [math]\displaystyle{ S }[/math] could be a first-order theory (like Zermelo–Fraenkel set theory) or a simpler zeroth-order theory. One of the many properties of [math]\displaystyle{ S }[/math] is that it is closed under logical consequences so that, for instance, if a sentence [math]\displaystyle{ A \in S }[/math] logically implies some sentence [math]\displaystyle{ B, }[/math] which will be written as [math]\displaystyle{ A \Rightarrow B }[/math] and also as [math]\displaystyle{ B \Leftarrow A, }[/math] then necessarily [math]\displaystyle{ B \in S }[/math] (by modus ponens). The relation [math]\displaystyle{ \,\Leftarrow\, }[/math] is a preorder on [math]\displaystyle{ S }[/math] because [math]\displaystyle{ A \Leftarrow A }[/math] always holds and whenever [math]\displaystyle{ A \Leftarrow B }[/math] and [math]\displaystyle{ B \Leftarrow C }[/math] both hold then so does [math]\displaystyle{ A \Leftarrow C. }[/math] Furthermore, for any [math]\displaystyle{ A, B \in S, }[/math] [math]\displaystyle{ A \sim B }[/math] if and only if [math]\displaystyle{ A \Leftarrow B \text{ and } B \Leftarrow A }[/math]; that is, two sentences are equivalent with respect to [math]\displaystyle{ \,\Leftarrow\, }[/math] if and only if they are logically equivalent. This particular equivalence relation [math]\displaystyle{ A \sim B }[/math] is commonly denoted with its own special symbol [math]\displaystyle{ A \iff B, }[/math] and so this symbol [math]\displaystyle{ \,\iff\, }[/math] may be used instead of [math]\displaystyle{ \,\sim. }[/math] The equivalence class of a sentence [math]\displaystyle{ A, }[/math] denoted by [math]\displaystyle{ [A], }[/math] consists of all sentences [math]\displaystyle{ B \in S }[/math] that are logically equivalent to [math]\displaystyle{ A }[/math] (that is, all [math]\displaystyle{ B \in S }[/math] such that [math]\displaystyle{ A \iff B }[/math]). The partial order on [math]\displaystyle{ S / \sim }[/math] induced by [math]\displaystyle{ \,\Leftarrow,\, }[/math] which will also be denoted by the same symbol [math]\displaystyle{ \,\Leftarrow,\, }[/math] is characterized by [math]\displaystyle{ [A] \Leftarrow [B] }[/math] if and only if [math]\displaystyle{ A \Leftarrow B, }[/math] where the right hand side condition is independent of the choice of representatives [math]\displaystyle{ A \in [A] }[/math] and [math]\displaystyle{ B \in [B] }[/math] of the equivalence classes. All that has been said of [math]\displaystyle{ \,\Leftarrow\, }[/math] so far can also be said of its converse relation [math]\displaystyle{ \,\Rightarrow.\, }[/math] The preordered set [math]\displaystyle{ (S, \Leftarrow) }[/math] is a directed set because if [math]\displaystyle{ A, B \in S }[/math] and if [math]\displaystyle{ C := A \wedge B }[/math] denotes the sentence formed by logical conjunction [math]\displaystyle{ \,\wedge,\, }[/math] then [math]\displaystyle{ A \Leftarrow C }[/math] and [math]\displaystyle{ B \Leftarrow C }[/math] where [math]\displaystyle{ C \in S. }[/math] The partially ordered set [math]\displaystyle{ \left(S / \sim, \Leftarrow\right) }[/math] is consequently also a directed set. See Lindenbaum–Tarski algebra for a related example.

Preorders and strict preorders

Strict preorder induced by a preorder

Given a preorder [math]\displaystyle{ \,\lesssim, }[/math] a new relation [math]\displaystyle{ \,\lt \, }[/math] can be defined by declaring that [math]\displaystyle{ a \lt b }[/math] if and only if [math]\displaystyle{ a \lesssim b \text{ and not } b \lesssim a. }[/math] Using the equivalence relation [math]\displaystyle{ \,\sim\, }[/math] introduced above, [math]\displaystyle{ a \lt b }[/math] if and only if [math]\displaystyle{ a \lesssim b \text{ and not } a \sim b; }[/math] and so the following holds [math]\displaystyle{ a \lesssim b \quad \text{ if and only if } \quad a \lt b \; \text{ or } \; a \sim b. }[/math] The relation [math]\displaystyle{ \,\lt \, }[/math] is a strict partial order and every strict partial order can be constructed this way. If the preorder [math]\displaystyle{ \,\lesssim\, }[/math] is antisymmetric (and thus a partial order) then the equivalence [math]\displaystyle{ \,\sim\, }[/math] is equality (that is, [math]\displaystyle{ a \sim b }[/math] if and only if [math]\displaystyle{ a = b }[/math]) and so in this case, the definition of [math]\displaystyle{ \,\lt \, }[/math] can be restated as: [math]\displaystyle{ a \lt b \quad \text{ if and only if } \quad a \leq b \; \text{ and } \; a \neq b \quad\quad (\text{assuming } \lesssim \text{ is antisymmetric}). }[/math] But importantly, this new condition is not used as (nor is it equivalent to) the general definition of the relation [math]\displaystyle{ \,\lt \, }[/math] (that is, [math]\displaystyle{ \,\lt \, }[/math] is not defined as: [math]\displaystyle{ a \lt b }[/math] if and only if [math]\displaystyle{ a \lesssim b \text{ and } a \neq b }[/math]) because if the preorder [math]\displaystyle{ \,\lesssim\, }[/math] is not antisymmetric then the resulting relation [math]\displaystyle{ \,\lt \, }[/math] would not be transitive (consider how equivalent non-equal elements relate). This is the reason for using the symbol "[math]\displaystyle{ \lesssim }[/math]" instead of the "less than or equal to" symbol "[math]\displaystyle{ \leq }[/math]", which might cause confusion for a preorder that is not antisymmetric since it might misleadingly suggest that [math]\displaystyle{ a \leq b }[/math] implies [math]\displaystyle{ a \lt b \text{ or } a = b. }[/math]

Preorders induced by a strict preorder

Using the construction above, multiple non-strict preorders can produce the same strict preorder [math]\displaystyle{ \,\lt ,\, }[/math] so without more information about how [math]\displaystyle{ \,\lt \, }[/math] was constructed (such knowledge of the equivalence relation [math]\displaystyle{ \,\sim\, }[/math] for instance), it might not be possible to reconstruct the original non-strict preorder from [math]\displaystyle{ \,\lt .\, }[/math] Possible (non-strict) preorders that induce the given strict preorder [math]\displaystyle{ \,\lt \, }[/math] include the following:

  • Define [math]\displaystyle{ a \leq b }[/math] as [math]\displaystyle{ a \lt b \text{ or } a = b }[/math] (that is, take the reflexive closure of the relation). This gives the partial order associated with the strict partial order "[math]\displaystyle{ \lt }[/math]" through reflexive closure; in this case the equivalence is equality [math]\displaystyle{ \,=, }[/math] so the symbols [math]\displaystyle{ \,\lesssim\, }[/math] and [math]\displaystyle{ \,\sim\, }[/math] are not needed.
  • Define [math]\displaystyle{ a \lesssim b }[/math] as "[math]\displaystyle{ \text{ not } b \lt a }[/math]" (that is, take the inverse complement of the relation), which corresponds to defining [math]\displaystyle{ a \sim b }[/math] as "neither [math]\displaystyle{ a \lt b \text{ nor } b \lt a }[/math]"; these relations [math]\displaystyle{ \,\lesssim\, }[/math] and [math]\displaystyle{ \,\sim\, }[/math] are in general not transitive; however, if they are then [math]\displaystyle{ \,\sim\, }[/math] is an equivalence; in that case "[math]\displaystyle{ \lt }[/math]" is a strict weak order. The resulting preorder is connected (formerly called total); that is, a total preorder.

If [math]\displaystyle{ a \leq b }[/math] then [math]\displaystyle{ a \lesssim b. }[/math] The converse holds (that is, [math]\displaystyle{ \,\lesssim\;\; = \;\;\leq\, }[/math]) if and only if whenever [math]\displaystyle{ a \neq b }[/math] then [math]\displaystyle{ a \lt b }[/math] or [math]\displaystyle{ b \lt a. }[/math]

Number of preorders

Number of n-element binary relations of different types
Elem­ents Any Transitive Reflexive Preorder Partial order Total preorder Total order Equivalence relation
0 1 1 1 1 1 1 1 1
1 2 2 1 1 1 1 1 1
2 16 13 4 4 3 3 2 2
3 512 171 64 29 19 13 6 5
4 65,536 3,994 4,096 355 219 75 24 15
n 2n2 2n2n n
k=0
 
k! S(n, k)
n! n
k=0
 
S(n, k)
OEIS A002416 A006905 A053763 A000798 A001035 A000670 A000142 A000110

As explained above, there is a 1-to-1 correspondence between preorders and pairs (partition, partial order). Thus the number of preorders is the sum of the number of partial orders on every partition. For example:

  • for [math]\displaystyle{ n = 3: }[/math]
    • 1 partition of 3, giving 1 preorder
    • 3 partitions of 2 + 1, giving [math]\displaystyle{ 3 \times 3 = 9 }[/math] preorders
    • 1 partition of 1 + 1 + 1, giving 19 preorders
    I.e., together, 29 preorders.
  • for [math]\displaystyle{ n = 4: }[/math]
    • 1 partition of 4, giving 1 preorder
    • 7 partitions with two classes (4 of 3 + 1 and 3 of 2 + 2), giving [math]\displaystyle{ 7 \times 3 = 21 }[/math] preorders
    • 6 partitions of 2 + 1 + 1, giving [math]\displaystyle{ 6 \times 19 = 114 }[/math] preorders
    • 1 partition of 1 + 1 + 1 + 1, giving 219 preorders
    I.e., together, 355 preorders.

Interval

For [math]\displaystyle{ a \lesssim b, }[/math] the interval [math]\displaystyle{ [a, b] }[/math] is the set of points x satisfying [math]\displaystyle{ a \lesssim x }[/math] and [math]\displaystyle{ x \lesssim b, }[/math] also written [math]\displaystyle{ a \lesssim x \lesssim b. }[/math] It contains at least the points a and b. One may choose to extend the definition to all pairs [math]\displaystyle{ (a, b) }[/math] The extra intervals are all empty.

Using the corresponding strict relation "[math]\displaystyle{ \lt }[/math]", one can also define the interval [math]\displaystyle{ (a, b) }[/math] as the set of points x satisfying [math]\displaystyle{ a \lt x }[/math] and [math]\displaystyle{ x \lt b, }[/math] also written [math]\displaystyle{ a \lt x \lt b. }[/math] An open interval may be empty even if [math]\displaystyle{ a \lt b. }[/math]

Also [math]\displaystyle{ [a, b) }[/math] and [math]\displaystyle{ (a, b] }[/math] can be defined similarly.

See also

Notes

  1. on the set of numbers divisible by 4
  2. For "proset", see e.g. Eklund, Patrik; Gähler, Werner (1990), "Generalized Cauchy spaces", Mathematische Nachrichten 147: 219–233, doi:10.1002/mana.19901470123 .
  3. Pierce, Benjamin C. (2002). Types and Programming Languages. Cambridge, Massachusetts/London, England: The MIT Press. pp. 182ff. ISBN 0-262-16209-1. 
  4. Robinson, J. A. (1965). "A machine-oriented logic based on the resolution principle". ACM 12 (1): 23–41. doi:10.1145/321250.321253. https://dl.acm.org/doi/pdf/10.1145/321250.321253. 
  5. Kunen, Kenneth (1980), Set Theory, An Introduction to Independence Proofs, Studies in logic and the foundation of mathematics, 102, Amsterdam, the Netherlands: Elsevier .
  6. In this context, "[math]\displaystyle{ \backslash }[/math]" does not mean "set difference".

References

  • Schmidt, Gunther, "Relational Mathematics", Encyclopedia of Mathematics and its Applications, vol. 132, Cambridge University Press, 2011, ISBN 978-0-521-76268-7
  • Schröder, Bernd S. W. (2002), Ordered Sets: An Introduction, Boston: Birkhäuser, ISBN 0-8176-4128-9