A relation ≤ is said to be a linear ordering if the following three statements hold:
Given objects which are related via a linear relationship,
they may be ordered
such that
. If two or more objects
are equal, the ordering is not unique.
A relation < is said to be a strict linear ordering if the following two statements hold:
If two m-tuplets
where each
comes from a linearly ordered set, then the relationship
if and only if there exists some value
where
such that
for
and
. Equality occurs if all entries
are equal.
The most common lexicographical ordering is that on strings of characters: "cap" < "cat" < "cup" < "cut" < "map" < "mat". In general, a space is considered to greater than any character and therefore "mat" < "match" < "pat".