doc-src/Tutorial/Misc/Sep.thy
author paulson
Thu, 26 Aug 1999 11:34:17 +0200
changeset 7360 7d3136b9af08
parent 5377 efb799c5ed3c
permissions -rw-r--r--
more Join rules including AC-rules

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