doc-src/Tutorial/Misc/Chain.thy
author oheimb
Tue, 07 Jan 2003 18:08:17 +0100
changeset 13774 77a1e723151d
parent 5377 efb799c5ed3c
permissions -rw-r--r--
corrected swallowing of newlines after end-of-ignore (improved)

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