{{short description|Reflexive and transitive binary relation}} {{About|binary relations|the graph vertex ordering|depth-first search|purchase orders for unreleased products|pre-order|other uses}} {{Redirect|Quasiorder|irreflexive transitive relations|strict order}}

{{stack|{{Binary relations}}}}

[[File:Preorder.png|thumb|''x R y'' defined by ''x''//4≤''y''//4 is a preorder on the natural numbers. It corresponds to the equivalence relation ''x E y'' defined by ''x''//4=''y''//4. The set of equivalence classes is partially ordered, and thus can be shown as a Hasse diagram (depicted).]]

In mathematics, especially in order theory, a '''preorder''' or '''quasiorder''' is a binary relation that is reflexive and transitive. The name {{em|preorder}} is meant to suggest that preorders are ''almost'' partial orders, but not quite, as they are not necessarily antisymmetric.

A natural example of a preorder is the divides relation "x divides y" between integers. This relation is reflexive as every integer divides itself. It is also transitive. But it is not antisymmetric, because e.g. <math>1</math> divides <math>-1</math> and <math>-1</math> divides <math>1</math>, but <math>-1</math> is not equal to <math>1</math>. It is to this preorder that "least" refers in the phrase "least common multiple" (in contrast, using the natural order on integers, e.g. <math>4</math> and <math>6</math> have the common multiples <math>24</math>, <math>12</math>, <math>0</math>, <math>-12</math>, <math>-24</math>, ..., but no least one).

Preorders are closely related to equivalence relations and (non-strict) partial orders. Both of these are special cases of a preorder: an antisymmetric preorder is a partial order, and a symmetric preorder is an equivalence relation. Moreover, a preorder on a set <math>X</math> can equivalently be defined as an equivalence relation on <math>X</math>, together with a partial order on the set of equivalence class, cf. picture. Like partial orders and equivalence relations, preorders (on a nonempty set) are never asymmetric.

A preorder can be visualized as 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. 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.

A preorder is often denoted <math>\,\lesssim\,</math> or <math>\,\leq\,</math>.

== Definition ==

A binary relation <math>\,\lesssim\,</math> on a set <math>X</math> is called a '''{{em|preorder}}''' or '''{{em|quasiorder}}''' if it is reflexive and transitive; that is, if it satisfies: #Reflexivity: <math>a \lesssim a</math> for all <math>a \in X,</math> and #Transitivity: if <math>a \lesssim b \text{ and } b \lesssim c \text{ then } a \lesssim c</math> for all <math>a, b, c \in X.</math>

A set that is equipped with a preorder is called a '''preordered set''' (or '''proset''').<ref>For "proset", see e.g. {{citation|last1=Eklund|first1=Patrik|last2=Gähler|first2=Werner|doi=10.1002/mana.19901470123|journal=Mathematische Nachrichten|mr=1127325|pages=219–233|title=Generalized Cauchy spaces|volume=147|year=1990}}.</ref>

==Preorders as partial orders on partitions==

Given a preorder <math>\,\lesssim\,</math> on <math>X</math> one may define an equivalence relation <math>\,\sim\,</math> on <math>X</math> by <math display=block>a \sim b \quad \text{ if } \quad a \lesssim b \; \text{ and } \; b \lesssim a.</math> The resulting relation <math>\,\sim\,</math> is reflexive since the preorder <math>\,\lesssim\,</math> is reflexive; transitive by applying the transitivity of <math>\,\lesssim\,</math> twice; and symmetric by definition.

Using this relation, it is possible to construct a partial order on the quotient set <math>X / \sim</math> of the equivalence, by defining <math>[x] \leq [y]</math> if <math>x \lesssim y.</math> That this is well-defined, meaning that it does not depend on the particular choice of representatives <math>x</math> and <math>y</math>, follows from the definition of <math>\,\sim\,</math>.

Conversely, from any partial order on a partition of a set <math>X,</math> it is possible to construct a preorder on <math>X</math> itself. There is a one-to-one correspondence between preorders and pairs (partition, partial order).

{{em|Example}}: Let <math>X</math> be the set of all (valid or invalid) sentences in some subfield of mathematics, like geometry. Define <math>p \Leftarrow q</math> if <math>p</math> is a logical consequence of <math>q</math>. Then <math>\Leftarrow</math> is a preorder on <math>X</math>: every sentence <math>p</math> can be proven from itself (reflexivity), and if <math>p</math> can be proven from <math>q</math>, and <math>q</math> from <math>r</math>, then <math>p</math> can also be proven from <math>r</math> (transitivity). The corresponding equivalence relation is usually denoted <math>p \Leftrightarrow q</math>, and defined as <math>p \Leftarrow q</math> and <math>q \Leftarrow p</math>; in this case <math>p</math> and <math>q</math> are called "logically equivalent". The equivalence class of a sentence <math>p</math> is the set of all sentences <math>q \in X</math> that are logically equivalent to <math>p</math>; formally: <math>[p] = \{ q \mid p \Leftrightarrow q \}</math>. The preordered set <math>(X, \Leftarrow)</math> is a directed set: given two sentences <math>p, q \in X</math>, their logical conjunction <math>p \wedge q</math>, pronounced "both <math>p</math> and <math>q</math>", is a common upper bound of them, since <math>p</math> is a consequence of <math>p \wedge q</math>, and so is <math>q</math>. The partially ordered set <math>\left(X / \Leftrightarrow, \Leftarrow\right)</math> is hence also a directed set. See Lindenbaum–Tarski algebra for a related example.

==Relationship to strict partial orders==

{{anchor|Strict preorder}} If reflexivity is replaced with irreflexivity (while keeping transitivity) then we get the definition of a strict partial order on <math>X</math>. For this reason, the term '''{{em|strict preorder}}''' is sometimes used for a strict partial order. That is, this is a binary relation <math>\,<\,</math> on <math>X</math> that satisfies: <ol> <li>Irreflexivity or anti-reflexivity: {{em|not}} <math>a < a</math> for all <math>a \in X;</math> that is, <math>\,a < a</math> is {{em|false}} for all <math>a \in X,</math> and</li> <li>Transitivity: if <math>a < b \text{ and } b < c \text{ then } a < c</math> for all <math>a, b, c \in X.</math></li> </ol>

===Strict partial order induced by a preorder===

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

===Preorders induced by a strict partial order===

Using the construction above, multiple non-strict preorders can produce the same strict preorder <math>\,<,\,</math> so without more information about how <math>\,<\,</math> was constructed (such as knowledge of the equivalence relation <math>\,\sim\,</math> for instance), it might not be possible to reconstruct the original non-strict preorder from <math>\,<.\,</math> Possible (non-strict) preorders that induce the given strict preorder <math>\,<\,</math> include the following: * Define <math>a \leq b</math> as <math>a < 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><</math>" through reflexive closure; in this case the equivalence is equality <math>\,=,</math> so the symbols <math>\,\lesssim\,</math> and <math>\,\sim\,</math> are not needed. * Define <math>a \lesssim b</math> as "<math>\text{ not } b < a</math>" (that is, take the inverse complement of the relation), which corresponds to defining <math>a \sim b</math> as "neither <math>a < b \text{ nor } b < a</math>"; these relations <math>\,\lesssim\,</math> and <math>\,\sim\,</math> are in general not transitive; however, if they are then <math>\,\sim\,</math> is an equivalence; in that case "<math><</math>" is a strict weak order. The resulting preorder is connected (formerly called total); that is, a total preorder.

If <math>a \leq b</math> then <math>a \lesssim b.</math> The converse holds (that is, <math>\,\lesssim\;\; = \;\;\leq\,</math>) if and only if whenever <math>a \neq b</math> then <math>a < b</math> or <math>b < a.</math>

==Examples==

<!-- This example is not from graph theory but it could be explained earlier in the article. * (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. -->

===Graph theory===

* The reachability relationship in any directed graph (possibly containing cycles) gives rise to a preorder, where <math>x \lesssim 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 {{nowrap|(''x'', ''y'')}} with <math>x \lesssim 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 is also a preorder.

===Computer science=== In computer science, one can find examples of the following preorders. * Asymptotic order causes a preorder over functions <math>f: \mathbb{N} \to \mathbb{N}</math>. The corresponding equivalence relation is called asymptotic equivalence. * Polynomial-time, many-one (mapping) and Turing reductions are preorders on complexity classes. * Subtyping relations are usually preorders.<ref>{{cite book |last=Pierce |first=Benjamin C. |author-link=Benjamin C. Pierce |date=2002 |title=Types and Programming Languages |title-link=Types and Programming Languages |location=Cambridge, Massachusetts/London, England |publisher=The MIT Press |pages=182ff |isbn=0-262-16209-1}}</ref> * Simulation preorders are preorders (hence the name). * Reduction relations in abstract rewriting systems. * The encompassment preorder on the set of terms, defined by <math>s \lesssim t</math> if a subterm of ''t'' is a substitution instance of ''s''. * Theta-subsumption,<ref>{{cite journal |last=Robinson | first=J. A. |title=A machine-oriented logic based on the resolution principle |journal= Journal of the ACM|volume=12 |number=1 |pages=23–41 |year=1965 | doi=10.1145/321250.321253 | s2cid=14389185 |doi-access=free }}</ref> which is when the literals in a disjunctive first-order formula are contained by another, after applying a substitution to the former.

===Category theory===

* A category with at most one morphism from any object ''x'' to any other object ''y'' is a preorder. Such categories are called thin. Here the objects correspond to the elements of <math>X,</math> and there is one morphism for objects which are related, zero otherwise. In this sense, categories "generalize" preorders by allowing more than one relation between objects: each morphism is a distinct (named) preorder relation. * Alternately, a preordered set can be understood as an enriched category, enriched over the category <math>2 = (0 \to 1).</math>

===Other=== Further examples: * Every finite topological space gives rise to a preorder on its points by defining <math>x \lesssim 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>x \lesssim y</math> if <math>f(x) \lesssim f(y),</math> where ''f'' is a function into some preorder. * The relation defined by <math>x \lesssim 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.

Example of a total preorder: * Preference, according to common models.<ref>{{Citation |last1=Hansson |first1=Sven Ove |title=Preferences |date=2024 |encyclopedia=The Stanford Encyclopedia of Philosophy |editor-last=Zalta |editor-first=Edward N. |url=https://plato.stanford.edu/entries/preferences/ |access-date=2025-03-16 |edition=Winter 2024 |publisher=Metaphysics Research Lab, Stanford University |last2=Grüne-Yanoff |first2=Till |editor2-last=Nodelman |editor2-first=Uri}}</ref>

==Constructions==

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

'''Left residual preorder induced by a binary relation'''

Given a binary relation <math>R,</math> the complemented composition <math>R \backslash R = \overline{R^\textsf{T} \circ \overline{R}}</math> forms a preorder called the left residual,<ref>In this context, "<math>\backslash</math>" does not mean "set difference".</ref> where <math>R^\textsf{T}</math> denotes the converse relation of <math>R,</math> and <math>\overline{R}</math> denotes the complement relation of <math>R,</math> while <math>\circ</math> denotes relation composition.

==Related definitions==

If a preorder is also antisymmetric, that is, <math>a \lesssim b</math> and <math>b \lesssim a</math> implies <math>a = b,</math> then it is a partial order.

On the other hand, if it is symmetric, that is, if <math>a \lesssim b</math> implies <math>b \lesssim a,</math> then it is an equivalence relation.

A preorder is total if <math>a \lesssim b</math> or <math>b \lesssim a</math> for all <math>a, b \in X.</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.

==Uses== Preorders play a pivotal role in several situations: * Every preorder can be given a topology, the Alexandrov topology; and indeed, every preorder on a set is in one-to-one correspondence with an Alexandrov topology on that set. * Preorders may be used to define interior algebras. * Preorders provide the Kripke semantics for certain types of modal logic. * Preorders are used in forcing in set theory to prove consistency and independence results.<ref>{{citation | last = Kunen | first = Kenneth | title = Set Theory, An Introduction to Independence Proofs | publisher = Elsevier | publication-place = Amsterdam, the Netherlands | series = Studies in logic and the foundation of mathematics | volume = 102 | year = 1980 }}.</ref>

==Number of preorders== {{Number of relations}}

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: {{unordered list | for <math>n = 3:</math> * 1 partition of 3, giving 1 preorder * 3 partitions of {{nowrap|2 + 1}}, giving <math>3 \times 3 = 9</math> preorders * 1 partition of {{nowrap|1 + 1 + 1}}, giving 19 preorders

I.e., together, 29 preorders. | for <math>n = 4:</math> * 1 partition of 4, giving 1 preorder * 7 partitions with two classes (4 of {{nowrap|3 + 1}} and 3 of {{nowrap|2 + 2}}), giving <math>7 \times 3 = 21</math> preorders * 6 partitions of {{nowrap|2 + 1 + 1}}, giving <math>6 \times 19 = 114</math> preorders * 1 partition of {{nowrap|1 + 1 + 1 + 1}}, giving 219 preorders

I.e., together, 355 preorders. }}

==Interval== For <math>a \lesssim b,</math> the interval <math>[a, b]</math> is the set of points ''x'' satisfying <math>a \lesssim x</math> and <math>x \lesssim b,</math> also written <math>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>(a, b)</math>. The extra intervals are all empty.

Using the corresponding strict relation "<math><</math>", one can also define the interval <math>(a, b)</math> as the set of points ''x'' satisfying <math>a < x</math> and <math>x < b,</math> also written <math>a < x < b.</math> An open interval may be empty even if <math>a < b.</math>

Also <math>[a, b)</math> and <math>(a, b]</math> can be defined similarly.

==See also== * Partial order – preorder that is antisymmetric * Equivalence relation – preorder that is symmetric * Total preorder – preorder that is total * Total order – preorder that is antisymmetric and total * Directed set * Category of preordered sets * Prewellordering * Well-quasi-ordering

== Notes == <references />

==References==

* Schmidt, Gunther, "Relational Mathematics", Encyclopedia of Mathematics and its Applications, vol. 132, Cambridge University Press, 2011, {{isbn|978-0-521-76268-7}} * {{Citation | last = Schröder | first = Bernd S. W. | title = Ordered Sets: An Introduction | place = Boston | publisher = Birkhäuser | year = 2002 | isbn = 0-8176-4128-9 }}

{{Order theory}}

Category:Properties of binary relations Category:Order theory