doc-src/Tutorial/Misc/Chain.thy
author wenzelm
Sun, 03 Oct 1999 15:51:38 +0200
changeset 7682 46de8064c93c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added Space, Comment token kinds (keep actual text); source: do not filter proper;

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