doc-src/Tutorial/Misc/Chain.thy
author wenzelm
Fri, 17 Mar 2000 16:30:45 +0100
changeset 8499 8958ece3bbdf
parent 5377 efb799c5ed3c
permissions -rw-r--r--
old_symbol_source: include header;

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