turned translation for 1::nat into def.
introduced 1' and replaced most occurrences of 1 by 1'.
1 (* Title: HOL/NatBin.thy
3 Author: Lawrence C Paulson, Cambridge University Computer Laboratory
4 Copyright 1999 University of Cambridge
6 Binary arithmetic for the natural numbers
8 This case is simply reduced to that for the non-negative integers
11 theory NatBin = IntPower
14 instance nat :: number ..
18 "number_of v == nat (number_of v)"
19 (*::bin=>nat ::bin=>int*)
22 neg_number_of_bin_pred_iff_0:
23 "neg (number_of (bin_pred v)) = (number_of v = (0::nat))"
25 use "nat_bin.ML" setup nat_bin_arith_setup