doc-src/Tutorial/Misc/GCD.thy
author wenzelm
Tue, 25 Jul 2000 00:02:52 +0200
changeset 9434 d2fa043ab24f
parent 5377 efb799c5ed3c
permissions -rw-r--r--
do nat pass theory value, but sg_ref;

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