doc-src/Tutorial/Misc/Chain.thy
author wenzelm
Fri, 05 Feb 1999 21:11:41 +0100
changeset 6249 8bb90076cc7c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Session.use_dir: check parent;

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