Definition eqarefl := (@Equivalence_Reflexive _ _ eqA_equiv).Definition eqatrans := (@Equivalence_Transitive _ _ eqA_equiv).Definition eqasym := (@Equivalence_Symmetric _ _ eqA_equiv).Ltac inv := invlist InA; invlist sort; invlist lelistA; invlist NoDupA.(** First, the two notions [equivlistA] and [eqlistA] are indeed equivlances *)

Global Instance equivlist_equiv : Equivalence equivlistA.Global Instance eqlistA_equiv : Equivalence eqlistA.(** Moreover, [eqlistA] implies [equivlistA]. A reverse result
    will be proved later for sorted list without duplicates. *)

Global Instance eqlistA_equivlistA : subrelation eqlistA equivlistA.(** InA is compatible with eqA (for its first arg) and with
    equivlistA (and hence eqlistA) for its second arg *)

Global Instance InA_compat : Proper (eqA==>equivlistA==>iff) InA.

Lemma InA_split : forall l x, InA x l -> exists l1 y l2, eqA x y /\ l = l1++y::l2.