author | oheimb |
Wed, 12 Nov 1997 12:34:43 +0100 | |
changeset 4206 | 688050e83d89 |
parent 3842 | b55686a7b22c |
child 4359 | 6f2986464280 |
permissions | -rw-r--r-- |
(* Title: HOL/Hoare/Arith2.thy ID: $Id$ Author: Norbert Galm Copyright 1995 TUM More arithmetic. Much of this duplicates ex/Primes. *) Arith2 = Divides + constdefs cd :: [nat, nat, nat] => bool "cd x m n == x dvd m & x dvd n" gcd :: [nat, nat] => nat "gcd m n == @x.(cd x m n) & (!y.(cd y m n) --> y<=x)" pow :: [nat, nat] => nat (infixl 75) "m pow n == nat_rec (Suc 0) (%u v. m*v) n" fac :: nat => nat "fac m == nat_rec (Suc 0) (%u v.(Suc u)*v) m" end