doc-src/Tutorial/Misc/Last.thy
author wenzelm
Tue, 30 Oct 2001 13:43:26 +0100
changeset 11982 65e2822d83dd
parent 5377 efb799c5ed3c
permissions -rw-r--r--
lemma Least_mono moved from Typedef.thy to Set.thy;

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