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