Metamath Proof Explorer


Theorem preqr1

Description: Reverse equality lemma for unordered pairs. If two unordered pairs have the same second element, the first elements are equal. (Contributed by NM, 18-Oct-1995)

Ref Expression
Hypotheses preqr1.a AV
preqr1.b BV
Assertion preqr1 AC=BCA=B

Proof

Step Hyp Ref Expression
1 preqr1.a AV
2 preqr1.b BV
3 id AVAV
4 2 a1i AVBV
5 3 4 preq1b AVAC=BCA=B
6 1 5 ax-mp AC=BCA=B
7 6 biimpi AC=BCA=B