Metamath Proof Explorer


Theorem eldif

Description: Expansion of membership in a class difference. (Contributed by NM, 29-Apr-1994)

Ref Expression
Assertion eldif ( 𝐴 ∈ ( 𝐵𝐶 ) ↔ ( 𝐴𝐵 ∧ ¬ 𝐴𝐶 ) )

Proof

Step Hyp Ref Expression
1 elex ( 𝐴 ∈ ( 𝐵𝐶 ) → 𝐴 ∈ V )
2 elex ( 𝐴𝐵𝐴 ∈ V )
3 2 adantr ( ( 𝐴𝐵 ∧ ¬ 𝐴𝐶 ) → 𝐴 ∈ V )
4 eleq1 ( 𝑥 = 𝐴 → ( 𝑥𝐵𝐴𝐵 ) )
5 eleq1 ( 𝑥 = 𝐴 → ( 𝑥𝐶𝐴𝐶 ) )
6 5 notbid ( 𝑥 = 𝐴 → ( ¬ 𝑥𝐶 ↔ ¬ 𝐴𝐶 ) )
7 4 6 anbi12d ( 𝑥 = 𝐴 → ( ( 𝑥𝐵 ∧ ¬ 𝑥𝐶 ) ↔ ( 𝐴𝐵 ∧ ¬ 𝐴𝐶 ) ) )
8 df-dif ( 𝐵𝐶 ) = { 𝑥 ∣ ( 𝑥𝐵 ∧ ¬ 𝑥𝐶 ) }
9 7 8 elab2g ( 𝐴 ∈ V → ( 𝐴 ∈ ( 𝐵𝐶 ) ↔ ( 𝐴𝐵 ∧ ¬ 𝐴𝐶 ) ) )
10 1 3 9 pm5.21nii ( 𝐴 ∈ ( 𝐵𝐶 ) ↔ ( 𝐴𝐵 ∧ ¬ 𝐴𝐶 ) )