chore: add coercion for new frontend
This commit is contained in:
parent
5e0121c8dc
commit
e3e89b4945
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue