doc-src/Tutorial/Misc/Chain.thy
author wenzelm
Mon, 14 Aug 2000 18:47:32 +0200
changeset 9605 60d8c954390f
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added 'declare' command; moved tactic emulations; tuned; renamed "res_inst_tac' etc. to 'rule_tac' etc.; tuned;

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