previous up next
Go backward to Example
Go up to Top
Go forward to Hasse Diagrams
RISC-Linz logo

Example

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

w <= n u : <=> n = 0 \/ w0 < u0 \/ (w0 = u0 /\  w <= n-1 u)
is a total order.
"back" < 4 "bare" < 4 "base" < 4 "bear" < 4 "bend" < 4 "care"

Compare letters in the order of their positions.


Author: Wolfgang Schreiner
Last Modification: January 18, 2000

previous up next