doc-src/Tutorial/Recdef/Sep1.thy
author berghofe
Tue, 07 Nov 2000 17:50:21 +0100
changeset 10415 e6d7b77a0574
parent 6100 40d66bc3e83f
permissions -rw-r--r--
moved rewriting functions from Drule to MetaSimplifier

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