doc-src/Tutorial/Misc/GCD.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;

GCD = WF_Rel +
consts gcd :: "nat*nat => nat"
recdef gcd "measure ((%(m,n).n))"
  simpset "simpset() addsimps [mod_less_divisor]"
    "gcd (m, n) = (if n=0 then m else gcd(n, m mod n))"
end