doc-src/Tutorial/Recdef/Sep1.thy
author berghofe
Fri, 31 Aug 2001 16:29:18 +0200
changeset 11534 0494d0347f18
parent 6100 40d66bc3e83f
permissions -rw-r--r--
Proof of True_implies_equals is stored with "open" derivation to facilitate simplification of proof terms.

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