nLab total order

Total orders

Total orders

Idea

A total order or linear order or chain order on a set is a way of ordering its elements to say that some elements precede others, with the understanding that any two elements can be compared one way or the other.

Definitions

With a relation

Given a set SS, a total order or linear order or chain order on SS is a (binary) relation ≤\leq with the following properties:

  • reflexivity: for any element xx of SS, x≤xx \leq x;
  • transitivity: whenever x≤y≤zx \leq y \leq z, then x≤zx \leq z;
  • antisymmetry: whenever x≤y≤xx \leq y \leq x, then x=yx = y;
  • totality: for any xx and yy in SS, x≤yx \leq y or y≤xy \leq x.

A totally ordered set or toset or linearly ordered set or loset is a set equipped with a total order/linear order.

With a semigroup operation

A totally ordered set or toset or linearly ordered set or loset is a set SS equipped with a commutative and idempotent semigroup min:S×S→S\min:S \times S \to S such that for all a∈Sa \in S and b∈Sb \in S, min(a,b)=a\min(a, b) = a or min(a,b)=b\min(a, b) = b.

Relation to simplices

The category of finite nonempty totally ordered sets and order-preserving maps is called Δ\Delta, the simplex category.

The category of all finite totally ordered sets and order-preserving maps is called Δ a\Delta_a, the augmented simplex category.

Relation to pseudolattices

Due to the totality of the order relation ≤\leq, every pair of elements aa and bb has a join and meet, such that a∧b=aa \wedge b = a and a∨b=ba \vee b = b, or a∧b=ba \wedge b = b and a∨b=aa \vee b = a. This means that meets distribute over joins and joins distribute over meets, and additionally that both operations are associative, commutative, and idempotent, and so every total order is a pseudolattice, and every bounded total order is a lattice.

Relation to cotransitive partial orders

Definition

A cotransitive partial order or weakly linear partial order on a set SS is a partial order ≤\leq which satisfies cotransitivity/weak linearity:

  • for all x∈Sx \in S, y∈Sy \in S, and z∈Sz \in S, x≤zx \leq z implies that x≤yx \leq y or y≤zy \leq z.

Theorem

Cotransitive partial orders are total orders.

Proof

Cotransitivity of ≤\leq says that for all x∈Sx \in S and y∈Sy \in S, x≤xx \leq x implies that x≤yx \leq y or y≤xy \leq x, and reflexivity says that for all xx, x≤xx \leq x is always true. This implies that for all xx and yy, x≤yx \leq y or y≤xy \leq x is always true, which is precisely the condition of totality, hence that cotransitive partial order are total orders.

Theorem

Total orders are cotransitive partial orders.

Proof

Suppose that x≤yx \leq y or y≤xy \leq x. Then for all x≤zx \leq z and elements yy, by totality, we can decide whether

  1. y≤xy \leq x, thus y≤zy \leq z by transitivity.
  2. x≤yx \leq y and y≤zy \leq z
  3. z≤yz \leq y, thus x≤yx \leq y by transitivity.

In the first two cases, we have y≤zy \leq z, and in the second two cases, we have x≤yx \leq y. Thus, in all cases, we have x≤yx \leq y or y≤zy \leq z, and total orders are cotransitive.

Relation to strict total orders

A strict total order is much like a total order, except that it is based on an irreflexive relation <\lt.

Using excluded middle, one can move between strict total orders and total orders using negation; that is, the negation of a total order is a strict total order and vice versa. Actually one usually swaps the order too, as follows:

  • x≤yx \leq y iff y≮xy \nless x;
  • x<yx \lt y iff y≰xy \nleq x.

One often sees x<yx \lt y defined as x≤yx \le y but x≠yx \ne y; this is equivalent, but doesn't show the duality explicitly. Similarly, one often sees x≤yx \leq y defined as x<yx \lt y or x=yx = y; this is not even equivalent constructively, although it is classically.

In classical mathematics, the distinction between total orders and strict total orders is merely a terminological technicality, which is not always observed; more precisely, there is a natural bijection between the set of total orders on a given set SS and the set of strict total orders on SS, and one distinguishes them by their notation. In constructive mathematics, however, they are irreducibly different.

For more, including why strict total orders are more often useful in constructive mathematics, see strict total order.

Classifying topos

There is a classifying topos for inhabited linear orders. It is given by the category of cosimplicial sets, hence by the presheaf topos over the opposite category of the simplicial category.

For more see at classifying topos the section For (inhabited) linear orders.

References

Total orders are defined in the section of chapter 3 titled “Chains”:

Last revised on July 7, 2026 at 18:33:47. See the history of this page for a list of all contributions to it.