Metamath Proof Explorer


Theorem dfcoss2

Description: Alternate definition of the class of cosets by R : x and y are cosets by R iff there exists a set u such that both x and y are are elements of the R -coset of u (see also the comment of dfec2 ). R is usually a relation. (Contributed by Peter Mazsa, 16-Jan-2018)

Ref Expression
Assertion dfcoss2 R=xy|uxuRyuR

Proof

Step Hyp Ref Expression
1 df-coss R=xy|uuRxuRy
2 elecALTV uVxVxuRuRx
3 2 el2v xuRuRx
4 elecALTV uVyVyuRuRy
5 4 el2v yuRuRy
6 3 5 anbi12i xuRyuRuRxuRy
7 6 exbii uxuRyuRuuRxuRy
8 7 opabbii xy|uxuRyuR=xy|uuRxuRy
9 1 8 eqtr4i R=xy|uxuRyuR