Erasing duplicates, keeping first occurrences #
Core List.eraseDups keeps the first occurrence of each entry, in order, and core proves that it
keeps every entry (List.mem_eraseDups). This file adds that the result is a duplicate-free
sublist, that it fixes exactly the duplicate-free lists, and that its length is the number of
distinct entries.
Main results #
@[simp]
The length of eraseDups is the number of distinct entries.