doc-src/Tutorial/Misc/Sep.thy
author ballarin
Tue, 30 Sep 2003 15:10:26 +0200
changeset 14213 7bf882b0a51e
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Changed order of prems in finprod_cong. Slight speedup.

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