doc-src/Tutorial/Misc/GCD.thy
author ballarin
Fri, 29 Aug 2003 15:40:11 +0200
changeset 14175 dbd16ebaf907
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Method rule_tac understands Isar contexts: documentation.

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