feat(library/init/core): add has_beq type class

This commit is contained in:
Leonardo de Moura 2019-03-07 07:10:06 -08:00
parent 67b01cddd0
commit 79521e7e49

View file

@ -351,6 +351,7 @@ class has_mod (α : Type u) := (mod : ααα)
class has_modn (α : Type u) := (modn : α → nat → α)
class has_le (α : Type u) := (le : αα → Prop)
class has_lt (α : Type u) := (lt : αα → Prop)
class has_beq (α : Type u) := (beq : αα → bool)
class has_append (α : Type u) := (append : ααα)
class has_andthen (α : Type u) (β : Type v) (σ : out_param $ Type w) := (andthen : α → β → σ)
class has_union (α : Type u) := (union : ααα)
@ -389,6 +390,7 @@ prefix - := has_neg.neg
infix <= := has_le.le
infix ≤ := has_le.le
infix < := has_lt.lt
infix == := has_beq.beq
infix ++ := has_append.append
infix ; := andthen
notation `∅` := has_emptyc.emptyc _