Erasure of duplicates in a list #
This file proves basic results about list.erase_dup
(definition in data.list.defs
).
erase_dup l
returns l
without its duplicates. It keeps the earliest (that is, rightmost)
occurrence of each.
Tags #
duplicate, multiplicity, nodup, nub
@[simp]
theorem
list.erase_dup_cons_of_mem'
{α : Type u}
[decidable_eq α]
{a : α}
{l : list α}
(h : a ∈ l.erase_dup) :
@[simp]
@[simp]
@[simp]
theorem
list.erase_dup_cons_of_not_mem
{α : Type u}
[decidable_eq α]
{a : α}
{l : list α}
(h : a ∉ l) :
@[protected]
@[simp]