doc-src/Tutorial/Misc/Chain.thy
author berghofe
Tue, 07 Nov 2000 17:50:21 +0100
changeset 10415 e6d7b77a0574
parent 5377 efb799c5ed3c
permissions -rw-r--r--
moved rewriting functions from Drule to MetaSimplifier

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