- inner : Quotient Raw.Setoid
Instances For
def
Trie.ofRaw
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
(t : Raw α β)
:
Trie α β
Instances For
Equations
Instances For
@[instance_reducible]
instance
Trie.instEmptyCollection
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
:
EmptyCollection (Trie α β)
Equations
- Trie.instEmptyCollection = { emptyCollection := Trie.empty }
def
Trie.depth
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
(t : Trie α β)
:
Equations
- t.depth = Quotient.lift Trie.Raw.depth ⋯ t.inner
Instances For
@[simp]
theorem
Trie.option_map_ofRaw_get1?_eq_of_equiv
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
{a b : Raw α β}
{k : α}
(h₁ : a.Equiv b)
:
def
Trie.get1?
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
(t : Trie α β)
(k : α)
:
Equations
- t.get1? k = Quotient.lift (fun (t : Trie.Raw α β) => Option.map Trie.ofRaw (t.get1? k)) ⋯ t.inner
Instances For
def
Trie.eqComp
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
[hb : DecidableEq β]
(t₁ t₂ : Trie α β)
:
Instances For
theorem
Trie.eq_iff_eqComp
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
{t₁ t₂ : Trie α β}
[hb : DecidableEq β]
:
@[instance_reducible]
instance
Trie.instDecidableEq
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
[hb : DecidableEq β]
:
DecidableEq (Trie α β)
Equations
- x✝¹.instDecidableEq x✝ = decidable_of_bool (x✝¹.eqComp x✝) ⋯
def
Trie.val
{α : Type u_3}
{β : Type u_4}
[ha₁ : DecidableEq α]
[ha₂ : Hashable α]
(t : Trie α β)
:
Option β
Equations
- t.val = Quotient.lift Trie.Raw.val ⋯ t.inner