doc-src/Tutorial/Misc/NatSum.thy
author wenzelm
Tue, 29 Aug 2000 20:12:35 +0200
changeset 9728 1546ad1c7839
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added antiquotation 'name' and option 'indent';

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