Metamath Proof Explorer


Theorem difeq1

Description: Equality theorem for class difference. (Contributed by NM, 10-Feb-1997) (Proof shortened by Andrew Salmon, 26-Jun-2011)

Ref Expression
Assertion difeq1 ( 𝐴 = 𝐵 → ( 𝐴𝐶 ) = ( 𝐵𝐶 ) )

Proof

Step Hyp Ref Expression
1 rabeq ( 𝐴 = 𝐵 → { 𝑥𝐴 ∣ ¬ 𝑥𝐶 } = { 𝑥𝐵 ∣ ¬ 𝑥𝐶 } )
2 dfdif2 ( 𝐴𝐶 ) = { 𝑥𝐴 ∣ ¬ 𝑥𝐶 }
3 dfdif2 ( 𝐵𝐶 ) = { 𝑥𝐵 ∣ ¬ 𝑥𝐶 }
4 1 2 3 3eqtr4g ( 𝐴 = 𝐵 → ( 𝐴𝐶 ) = ( 𝐵𝐶 ) )