doc-src/Tutorial/Misc/Chain.thy
author paulson
Thu, 17 Aug 2000 11:56:47 +0200
changeset 9634 61b57cc1cb5a
parent 5377 efb799c5ed3c
permissions -rw-r--r--
modified proofs: better rules for cancellation of common factors across comparisons

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