(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* B) (r:(relation B))(equivalence B r)->(equivalence A [x,y:A](r (f x) (f y))). Intros; Split; Elim H; Red; Auto. Intros _ equiv_trans _ x y z H0 H1; Apply equiv_trans with (f y); Assumption. Qed. Lemma inverse_image_of_eq : (A,B:Set)(f:A->B) (equivalence A [x,y:A](f x)=(f y)). Split; Red; [ (* reflexivity *) Reflexivity | (* transitivity *) Intros; Transitivity (f y); Assumption | (* symmetry *) Intros; Symmetry; Assumption ]. Qed.