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 ( ( ( 𝐴𝐵 ) = ∅ ∧ ( 𝐵𝐴 ) = ∅ ) → 𝐴 = 𝐵 )

Proof

Step Hyp Ref Expression
1 eqss ( 𝐴 = 𝐵 ↔ ( 𝐴𝐵𝐵𝐴 ) )
2 ssdif0 ( 𝐴𝐵 ↔ ( 𝐴𝐵 ) = ∅ )
3 ssdif0 ( 𝐵𝐴 ↔ ( 𝐵𝐴 ) = ∅ )
4 2 3 anbi12i ( ( 𝐴𝐵𝐵𝐴 ) ↔ ( ( 𝐴𝐵 ) = ∅ ∧ ( 𝐵𝐴 ) = ∅ ) )
5 1 4 sylbbr ( ( ( 𝐴𝐵 ) = ∅ ∧ ( 𝐵𝐴 ) = ∅ ) → 𝐴 = 𝐵 )