doc-src/Tutorial/Misc/natsum
author wenzelm
Thu, 27 Jul 2000 18:25:01 +0200
changeset 9451 5c25ed3c10a0
parent 5377 efb799c5ed3c
permissions -rw-r--r--
begin_theory: store *copy* of initial theory;

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