doc-src/Tutorial/Misc/Chain.thy
author wenzelm
Tue, 30 Oct 2001 13:43:26 +0100
changeset 11982 65e2822d83dd
parent 5377 efb799c5ed3c
permissions -rw-r--r--
lemma Least_mono moved from Typedef.thy to Set.thy;

Chain = List +
consts chain :: "('a => 'a => bool) * 'a list => bool"
recdef chain "measure (%(r,xs). length xs)"
    "chain(r, [])     = True"
    "chain(r, [x])    = True"
    "chain(r, x#y#zs) = (r x y & chain(r, y#zs))"
end