A relation on is an order when it is reflexive, antisymmetric ( and imply ) and transitive. The order is total when any two elements are comparable, partial otherwise. An element is a greatest element of when for all ; greatest (and least) elements are unique when they exist.
Examples
Example 1.34
is totally ordered. is partially ordered as soon as has two elements: and are not comparable. The subset of has no greatest element, yet has an upper bound : the distinction between greatest elements and upper bounds returns, for , in Chapter 10.
Example 1.35 (Two orders on the grid )
On pairs of naturals, compare componentwise: when and (the product order). This is an order — each axiom is inherited coordinate by coordinate — but a partial one: and are incomparable. Now compare like a dictionary: when , or and (the lexicographic order). Transitivity requires a two-case check but holds, and any two pairs are now comparable: the order is total. The two orders rank the same set differently — though the product order says nothing — a reminder that an order is a structure one chooses, not a property of the set. Lexicographic comparison is also the standard trick for turning several sorting criteria into one.
Example 1.7 (Order of quantifiers)
The order of different quantifiers matters:
In the first statement may depend on ; in the second, one single must work for all . Two identical quantifiers, on the other hand, always commute.