doc-src/Tutorial/Recdef/Sep1.thy
author wenzelm
Sat, 01 Jul 2000 19:49:20 +0200
changeset 9226 cbe6144f0f15
parent 6100 40d66bc3e83f
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6100
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     1
Sep1 = Main +
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     2
consts sep :: "'a * 'a list => 'a list"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     3
recdef sep "measure (%(a,xs). length xs)"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     4
  "sep(a, x#y#zs) = x # a # sep(a,y#zs)"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     5
  "sep(a, xs)     = xs"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     6
end