chore: add coercion for new frontend

This commit is contained in:
Leonardo de Moura 2020-10-16 15:39:00 -07:00
parent 5e0121c8dc
commit e3e89b4945

View file

@ -22,6 +22,7 @@ attribute [extern "lean_nat_to_int"] Int.ofNat
attribute [extern "lean_int_neg_succ_of_nat"] Int.negSucc
instance : HasCoe Nat Int := ⟨Int.ofNat⟩
instance : Coe Nat Int := ⟨Int.ofNat⟩
namespace Int
protected def zero : Int := ofNat 0