Total order
In mathematics, a total order (also called a linear order) is a binary relation on a set that is reflexive, antisymmetric, transitive, and total, meaning that for any two elements in the set, one precedes the other or they are equal.[1] This structure extends a partial order by requiring comparability between every pair of distinct elements, ensuring a linear arrangement without incomparable pairs.[2] The strict variant, denoted by <, is irreflexive, transitive, and total (trichotomous). Total orders appear ubiquitously in mathematics and its applications; for instance, the natural numbers \mathbb{N} under the standard \leq relation form a total order, as do the integers \mathbb{Z} and real numbers \mathbb{R}.[2] In this framework, every finite nonempty subset has both a least and greatest element, and finite total orders are well-ordered, isomorphic to initial segments of the ordinals.[1] Key properties include the absence of cycles and the ability to represent the order via a Hasse diagram as a single chain.[2] Beyond pure mathematics, total orders underpin concepts in computer science, such as sorting algorithms, where they enable efficient ordering of data structures like lists or arrays.[3] They also facilitate scheduling tasks by providing a consistent linear precedence.[3] In set theory and order theory, total orders relate to chains and well-orders.[1]Definitions and Variants
Non-strict total order
A non-strict total order, also known as a total order or linear order, is a binary relation \leq on a set X that is reflexive, antisymmetric, transitive, and total.[4] This means that for every pair of elements in X, they are comparable under \leq, allowing for the possibility that x \leq y and y \leq x if and only if x = y.[4] The axioms defining a non-strict total order on a set X are as follows:- Reflexivity: For all x \in X, x \leq x.[4]
- Antisymmetry: For all x, y \in X, if x \leq y and y \leq x, then x = y.[4]
- Transitivity: For all x, y, z \in X, if x \leq y and y \leq z, then x \leq z.[4]
- Totality: For all x, y \in X, either x \leq y or y \leq x.[4]