doc-src/Tutorial/Misc/Sep2.thy
author berghofe
Tue, 07 Nov 2000 17:50:21 +0100
changeset 10415 e6d7b77a0574
parent 5377 efb799c5ed3c
permissions -rw-r--r--
moved rewriting functions from Drule to MetaSimplifier

Sep2 = List +
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