doc-src/Tutorial/Misc/Last.thy
author wenzelm
Thu, 30 Sep 1999 23:31:13 +0200
changeset 7668 80c310e76c46
parent 5377 efb799c5ed3c
permissions -rw-r--r--
removed ProofContext.declare_thm;

Last = List +
consts last :: 'a list => 'a
recdef last "measure (%xs. length xs)"
    "last [x]      = x"
    "last (x#y#zs) = last (y#zs)"
end