doc-src/Tutorial/Misc/Chain.thy
author berghofe
Tue, 11 Mar 2003 14:13:20 +0100
changeset 13855 644692eca537
parent 5377 efb799c5ed3c
permissions -rw-r--r--
addsplits / delsplits no longer ignore type of constant.

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