doc-src/Tutorial/Recdef/Sep1.thy
author wenzelm
Thu, 04 Oct 2001 15:20:40 +0200
changeset 11670 59f79df42d1f
parent 6100 40d66bc3e83f
permissions -rw-r--r--
proof by cases and induction on types and sets (used to be specific for HOL);

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