Go backward to Example Go up to Top Go forward to Hasse Diagrams |
Let <= be a total order on an alphabet A, let Wn := Nn -> A be the set of all words with n letters, and let
w := such u: exists n in N: w in Wn /\ u in Wn-1 /\ forall i in Nn-1: ui = wi+1
The lexicographic order <= n subset Wn x Wn defined as
is a total order.
w <= n u : <=> n = 0 \/ w0 < u0 \/ (w0 = u0 /\ w <= n-1 u)
"back" < 4 "bare" < 4 "base" < 4 "bear" < 4 "bend" < 4 "care"
Compare letters in the order of their positions.