refactor(library/data/int/basic): put int.of_nat coercion in int namespace

This commit is contained in:
Jeremy Avigad 2015-06-29 21:00:42 +10:00
parent 130eb3f6d9
commit a54fb42f87

View file

@ -39,12 +39,13 @@ inductive int : Type :=
| neg_succ_of_nat : nat → int
notation `` := int
attribute int.of_nat [coercion]
definition int.of_num [coercion] [reducible] [constructor] (n : num) : :=
int.of_nat (nat.of_num n)
namespace int
attribute int.of_nat [coercion]
/- definitions of basic functions -/
definition neg_of_nat (m : ) : :=