doc-src/Tutorial/Misc/GCD.thy
author paulson
Mon, 04 Sep 2000 10:24:55 +0200
changeset 9824 c6eee0626d28
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Converting HOL/ex/Primes.thy to new style, removing Primes.ML

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