doc-src/Tutorial/Misc/Chain.thy
author paulson
Tue, 16 May 2000 14:04:29 +0200
changeset 8876 f797816932d7
parent 5377 efb799c5ed3c
permissions -rw-r--r--
reverted to old proof of dominoes_tile_row, given new treatment of #2+...

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