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 A B = B A = A = B

Proof

Step Hyp Ref Expression
1 eqss A = B A B B A
2 ssdif0 A B A B =
3 ssdif0 B A B A =
4 2 3 anbi12i A B B A A B = B A =
5 1 4 sylbbr A B = B A = A = B