Example. Examples of preorders [00JY]
Preorders are everywhere in both general mathematics and computer science.
- The real numbers equipped with their inequality relation form a preorder \mathbb {R},\leq . The converse relation {\mathopen {}\left (\mathbb {R},\geq \right )\mathclose {}} of course also forms a preorder. This example can be specialised to different classes of numbers, such as integers or naturals.
- Subsets with their inclusion and containment relations form preorders {\mathopen {}\left (\mathcal {P}(A),\subseteq \right )\mathclose {}} and {\mathopen {}\left (\mathcal {P}(A),\supseteq \right )\mathclose {}}. This example can be specialised to other examples that have additional structure, such as the preorder \mathcal {P}_f(A) of finite subsets of a given set A, or the preorder \mathcal {O}(X) of open sets of a topological space X.
- A slightly more nontrivial example is furnished by the preorder {\mathopen {}\left (\mathbb {Z},{\mid }\right )\mathclose {}} of the integers and the divisibility relation, where m\mid n if and only if \exists k:\mathbb {Z}\mathpunct {.} m k = n: indeed, we certainly have n divides n, and if l divides m and m divides n, then l divides m.
The first example above happen to be total orders (meaning that the underlying directed graph is connected): so {\mathopen {}\left (\mathcal {P}{\mathopen {}\left (A\right )\mathclose {}},\subseteq \right )\mathclose {}} and {\mathopen {}\left (\mathbb {Z},{\mid }\right )\mathclose {}} are example of non-total preorders.
All the examples we have seen so far are, furthermore, partial orders: a preorder is a partial order when we have a \sqsubseteq b \land b \sqsubseteq a if and only if a=b. In fact, there are arguably very few useful preorders that are not partial orders, and it is always possible to replace a preorder by an equivalent partial order; we do not pursue this here.