doc-src/Tutorial/Misc/Chain.thy
author nipkow
Wed, 02 Sep 1998 16:52:06 +0200
changeset 5425 157c6663dedd
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Added function upto to List. Had to rearrange loading sequence because now List uses Recdef.

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