doc-src/Tutorial/Misc/GCD.thy
author paulson
Mon, 24 Nov 2003 15:33:07 +0100
changeset 14266 08b34c902618
parent 5377 efb799c5ed3c
permissions -rw-r--r--
conversion of integers to use Ring_and_Field; new lemmas for Ring_and_Field

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