doc-src/Tutorial/Misc/Chain.thy
author berghofe
Mon, 11 Jun 2001 19:21:13 +0200
changeset 11371 1d5d181b7e28
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Fixed bug in function rebuild.

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