src/HOL/Hoare/Arith2.thy
author berghofe
Fri Jul 24 13:03:20 1998 +0200 (1998-07-24)
changeset 5183 89f162de39cf
parent 4359 6f2986464280
child 8791 50b650d19641
permissions -rw-r--r--
Adapted to new datatype package.
     1 (*  Title:      HOL/Hoare/Arith2.thy
     2     ID:         $Id$
     3     Author:     Norbert Galm
     4     Copyright   1995 TUM
     5 
     6 More arithmetic.  Much of this duplicates ex/Primes.
     7 *)
     8 
     9 Arith2 = Power +
    10 
    11 constdefs
    12   cd      :: [nat, nat, nat] => bool
    13   "cd x m n  == x dvd m & x dvd n"
    14 
    15   gcd     :: [nat, nat] => nat
    16   "gcd m n     == @x.(cd x m n) & (!y.(cd y m n) --> y<=x)"
    17 
    18 consts fac     :: nat => nat
    19 
    20 primrec
    21   "fac 0 = Suc 0"
    22   "fac(Suc n) = (Suc n)*fac(n)"
    23 
    24 end