Metamath Proof Explorer


Theorem eqrelrdv

Description: Deduce equality of relations from equivalence of membership. (Contributed by Rodolfo Medina, 10-Oct-2010)

Ref Expression
Hypotheses eqrelrdv.1 ⊢ Rel ⁡ A
eqrelrdv.2 ⊢ Rel ⁡ B
eqrelrdv.3 ⊢ φ → x y ∈ A ↔ x y ∈ B
Assertion eqrelrdv ⊢ φ → A = B

Proof

Step Hyp Ref Expression
1 eqrelrdv.1 ⊢ Rel ⁡ A
2 eqrelrdv.2 ⊢ Rel ⁡ B
3 eqrelrdv.3 ⊢ φ → x y ∈ A ↔ x y ∈ B
4 3 alrimivv ⊢ φ → ∀ x ∀ y x y ∈ A ↔ x y ∈ B
5 eqrel ⊢ Rel ⁡ A ∧ Rel ⁡ B → A = B ↔ ∀ x ∀ y x y ∈ A ↔ x y ∈ B
6 1 2 5 mp2an ⊢ A = B ↔ ∀ x ∀ y x y ∈ A ↔ x y ∈ B
7 4 6 sylibr ⊢ φ → A = B