doc-src/Tutorial/Misc/Chain.thy
author paulson
Wed, 19 Apr 2000 11:09:59 +0200
changeset 8741 61bc5ed22b62
parent 5377 efb799c5ed3c
permissions -rw-r--r--
removal of less_SucI, le_SucI from default simpset

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