feat: add LawfulBEq Int instance

This commit is contained in:
Leonardo de Moura 2022-04-20 14:52:41 -07:00
parent 73076b855c
commit bb3fc358c9

View file

@ -170,4 +170,8 @@ protected def pow (m : Int) : Nat → Int
instance : HPow Int Nat Int where
hPow := Int.pow
instance : LawfulBEq Int where
eq_of_beq a b h := by simp [BEq.beq] at h; assumption
rfl a := by simp [BEq.beq]
end Int