doc-src/Tutorial/Misc/NatSum.thy
author paulson
Mon, 23 Oct 2000 16:24:52 +0200
changeset 10294 2ec9c808a8a7
parent 5377 efb799c5ed3c
permissions -rw-r--r--
the Sets chapter and theories

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