Lexicographic order works like dictionary ordering. Compare the first elements; if they differ, the smaller element determines the order. If they match, discard them and compare the rest. If one sequence runs out of elements first, it is smaller.
Early positions carry infinite weight: a difference at position overrides any agreement at all later positions.
Recursive Characterisation
Let and where denotes the head and the tail. Then:
Examples
Mismatch at first position
because . The elements after position 1 are irrelevant.
Prefix rule
. The first two elements match and the first sequence is a strict prefix.