MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  difrab Structured version   Visualization version   GIF version

Theorem difrab 4247
Description: Difference of two restricted class abstractions. (Contributed by NM, 23-Oct-2004.)
Assertion
Ref Expression
difrab ({𝑥𝐴𝜑} ∖ {𝑥𝐴𝜓}) = {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)}

Proof of Theorem difrab
StepHypRef Expression
1 df-rab 3074 . . 3 {𝑥𝐴𝜑} = {𝑥 ∣ (𝑥𝐴𝜑)}
2 df-rab 3074 . . 3 {𝑥𝐴𝜓} = {𝑥 ∣ (𝑥𝐴𝜓)}
31, 2difeq12i 4059 . 2 ({𝑥𝐴𝜑} ∖ {𝑥𝐴𝜓}) = ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)})
4 df-rab 3074 . . 3 {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)} = {𝑥 ∣ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓))}
5 difab 4239 . . . 4 ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)}) = {𝑥 ∣ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓))}
6 anass 468 . . . . . 6 (((𝑥𝐴𝜑) ∧ ¬ 𝜓) ↔ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓)))
7 simpr 484 . . . . . . . . 9 ((𝑥𝐴𝜓) → 𝜓)
87con3i 154 . . . . . . . 8 𝜓 → ¬ (𝑥𝐴𝜓))
98anim2i 616 . . . . . . 7 (((𝑥𝐴𝜑) ∧ ¬ 𝜓) → ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)))
10 pm3.2 469 . . . . . . . . . 10 (𝑥𝐴 → (𝜓 → (𝑥𝐴𝜓)))
1110adantr 480 . . . . . . . . 9 ((𝑥𝐴𝜑) → (𝜓 → (𝑥𝐴𝜓)))
1211con3d 152 . . . . . . . 8 ((𝑥𝐴𝜑) → (¬ (𝑥𝐴𝜓) → ¬ 𝜓))
1312imdistani 568 . . . . . . 7 (((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)) → ((𝑥𝐴𝜑) ∧ ¬ 𝜓))
149, 13impbii 208 . . . . . 6 (((𝑥𝐴𝜑) ∧ ¬ 𝜓) ↔ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)))
156, 14bitr3i 276 . . . . 5 ((𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓)) ↔ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)))
1615abbii 2809 . . . 4 {𝑥 ∣ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓))} = {𝑥 ∣ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓))}
175, 16eqtr4i 2770 . . 3 ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)}) = {𝑥 ∣ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓))}
184, 17eqtr4i 2770 . 2 {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)} = ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)})
193, 18eqtr4i 2770 1 ({𝑥𝐴𝜑} ∖ {𝑥𝐴𝜓}) = {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1541  wcel 2109  {cab 2716  {crab 3069  cdif 3888
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-12 2174  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1544  df-ex 1786  df-nf 1790  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-rab 3074  df-v 3432  df-dif 3894
This theorem is referenced by:  alephsuc3  10320  shftmbl  24683  musum  26321  clwwlknclwwlkdif  28322  aciunf1  30979  poimirlem26  35782  poimirlem27  35783
  Copyright terms: Public domain W3C validator