doc-src/Tutorial/Misc/Sep.thy
author wenzelm
Thu, 28 Oct 1999 19:53:24 +0200
changeset 7967 942274e0f7a8
parent 5377 efb799c5ed3c
permissions -rw-r--r--
fixed deps;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5377
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     1
Sep = List +
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     2
consts sep :: "'a * 'a list => 'a list"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     3
recdef sep "measure (%(a,xs). length xs)"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     4
    "sep(a, [])     = []"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     5
    "sep(a, [x])    = [x]"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     6
    "sep(a, x#y#zs) = x # a # sep(a,y#zs)"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     7
end