doc-src/Tutorial/Recdef/Sep1.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).

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