proposition: Lemma uniquize_idempotent {A} (beq : A -> A -> bool) (ls : list A) : uniquize beq (uniquize beq ls) = uniquize beq ls.
proof: Proof. induction ls as [|x xs IHxs]; simpl; trivial. destruct (Equality.list_bin beq x (uniquize beq xs)) eqn:H; simpl; rewrite ?IHxs, ?H; reflexivity. Qed.
imports: Fiat.Common.Coq__8_4__8_5__Compat Coq.ZArith.ZArith Coq.Lists.List Coq.Lists.SetoidList Coq.Bool.Bool Fiat.Common Fiat.Common.List.Operations Fiat.Common.Equality Fiat.Common.List.FlattenList Fiat.Common.LogicFacts