doc-src/Tutorial/Misc/Chain.thy
author oheimb
Tue, 20 Feb 2001 18:47:27 +0100
changeset 11165 3b69feb7d053
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added image_cong to default congs of 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