doc-src/Tutorial/Recdef/Sep2.thy
author berghofe
Wed, 10 Jul 2002 18:39:15 +0200
changeset 13342 915d4d004643
parent 6100 40d66bc3e83f
permissions -rw-r--r--
expand_proof now also takes an optional term describing the proposition of the theorem to be expanded (to avoid problems with different theorems having the same names).

Sep2 = Main +
consts sep :: 'a list => 'a => 'a list
recdef sep "measure length"
  "sep (x#y#zs) = (%a. x # a # sep zs a)"
  "sep xs       = (%a. xs)"
end