doc-src/Tutorial/Misc/Chain.thy
author paulson
Fri, 18 Sep 1998 16:04:44 +0200
changeset 5509 c38cc427976c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Now defines "int" as a linear order; basic derivations moved to IntDef

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