doc-src/Tutorial/Recdef/Sep2.thy
author paulson
Mon, 04 Sep 2000 10:24:55 +0200
changeset 9824 c6eee0626d28
parent 6100 40d66bc3e83f
permissions -rw-r--r--
Converting HOL/ex/Primes.thy to new style, removing Primes.ML

Sep2 = Main +
consts sep :: 'a list => 'a => 'a list
recdef sep "measure length"
  "sep (x#y#zs) = (%a. x # a # sep zs a)"
  "sep xs       = (%a. xs)"
end