fix: PrefixTree WellFormed type

`β` is a parameter.
This commit is contained in:
Leonardo de Moura 2022-03-06 07:30:34 -08:00
parent 1450a86c4d
commit b105c006a5

View file

@ -64,7 +64,7 @@ partial def foldMatchingM [Monad m] (t : PrefixTreeNode α β) (cmp : αα
| some t => find ks t d
find k t init
inductive WellFormed (cmp : αα → Ordering) : PrefixTreeNode α β → Prop where
inductive WellFormed {β} (cmp : αα → Ordering) : PrefixTreeNode α β → Prop where
| emptyWff : WellFormed cmp empty
| insertWff {t : PrefixTreeNode α β} {k : List α} {val : β} : WellFormed cmp t → WellFormed cmp (insert t cmp k val)