feat(library/init/data/rbmap/basic): add RBMap.empty

This commit is contained in:
Leonardo de Moura 2019-04-23 09:14:54 -07:00
parent cac080f504
commit 7c0f3aef5b

View file

@ -148,8 +148,11 @@ def RBMap (α : Type u) (β : Type v) (lt : αα → Bool) : Type (max u v)
@[inline] def mkRBMap (α : Type u) (β : Type v) (lt : αα → Bool) : RBMap α β lt :=
⟨leaf, WellFormed.leafWff lt⟩
@[inline] def RBMap.empty {α : Type u} {β : Type v} {lt : αα → Bool} : RBMap α β lt :=
mkRBMap _ _ _
instance (α : Type u) (β : Type v) (lt : αα → Bool) : HasEmptyc (RBMap α β lt) :=
⟨mkRBMap α β lt⟩
RBMap.empty
namespace RBMap
variables {α : Type u} {β : Type v} {σ : Type w} {lt : αα → Bool}