doc-src/Tutorial/Recdef/last
author webertj
Wed, 26 May 2004 18:03:52 +0200
changeset 14807 e8ccb13d7774
parent 6100 40d66bc3e83f
permissions -rw-r--r--
major code change: refute can now handle any Isabelle term, adds certain axioms automatically, and can handle inductive datatypes (but not yet recursion over them)

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