doc-src/Tutorial/Misc/Ackermann.thy
author wenzelm
Sat, 02 Sep 2000 21:47:08 +0200
changeset 9799 038b018f86f5
parent 5377 efb799c5ed3c
permissions -rw-r--r--
'split' method: '(asm)' option; added 'slow', 'slowsimp', 'bestsimp' methods;

Ackermann = WF_Rel +
consts ack :: "nat * nat => nat"
recdef ack "measure(%m. m) ** measure(%n. n)"
"ack(0,n)         = Suc n"
"ack(Suc m,0)     = ack(m, 1)"
"ack(Suc m,Suc n) = ack(m,ack(Suc m,n))"
end