doc-src/Tutorial/Recdef/Sep1.thy
author paulson
Mon, 24 Nov 2003 15:33:07 +0100
changeset 14266 08b34c902618
parent 6100 40d66bc3e83f
permissions -rw-r--r--
conversion of integers to use Ring_and_Field; new lemmas for Ring_and_Field

Sep1 = Main +
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