Metamath Proof Explorer


Theorem eqdif

Description: If both set differences of two sets are empty, those sets are equal. (Contributed by Thierry Arnoux, 16-Nov-2023)

Ref Expression
Assertion eqdif AB=BA=A=B

Proof

Step Hyp Ref Expression
1 eqss A=BABBA
2 ssdif0 ABAB=
3 ssdif0 BABA=
4 2 3 anbi12i ABBAAB=BA=
5 1 4 sylbbr AB=BA=A=B