doc-src/Tutorial/Misc/natsum
author wenzelm
Thu, 22 Apr 2004 12:11:17 +0200
changeset 14653 0848ab6fe5fc
parent 5377 efb799c5ed3c
permissions -rw-r--r--
constdefs: proper order;

consts sum :: nat => nat
primrec
"sum 0 = 0"
"sum (Suc n) = Suc n + sum n"