doc-src/Tutorial/Misc/Chain.thy
author wenzelm
Wed, 29 Sep 1999 13:54:31 +0200
changeset 7640 6b7daae5d316
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added witness_sorts, univ_witness; removed nonempty_sort;

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