doc-src/Tutorial/Misc/natsum
author wenzelm
Thu, 28 Oct 1999 19:53:24 +0200
changeset 7967 942274e0f7a8
parent 5377 efb799c5ed3c
permissions -rw-r--r--
fixed deps;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5377
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     1
consts sum :: nat => nat
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     2
primrec
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     3
"sum 0 = 0"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     4
"sum (Suc n) = Suc n + sum n"