doc-src/Tutorial/Misc/GCD.thy
author wenzelm
Mon, 17 May 1999 21:36:11 +0200
changeset 6666 be06ed5d0b4c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
cleaned comments; ThyInfo.finalize_all renamed to ThyInfo.finish; added remove_thy;

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