Equations
- Int.instInhabitedInt = { default := Int.ofNat 0 }
Equations
- Int.negOfNat _fun_discr = match _fun_discr with | 0 => 0 | Nat.succ m => Int.negSucc m
Equations
- Int.subNatNat m n = match n - m with | 0 => Int.ofNat (m - n) | Nat.succ k => Int.negSucc k
@[defaultInstance 1000]
Equations
- Int.instNegInt = { neg := Int.neg }
@[extern lean_nat_abs]
Equations
- Int.natAbs m = match m with | Int.ofNat m => m | Int.negSucc m => Nat.succ m