doc-src/Tutorial/Misc/Chain.thy
author berghofe
Wed, 10 Jul 2002 18:37:51 +0200
changeset 13341 f15ed50d16cf
parent 5377 efb799c5ed3c
permissions -rw-r--r--
- Moved abs_def to drule.ML - elim_defs now takes a boolean argument which controls the automatic expansion of theorems mentioning constants whose definitions are eliminated

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