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

Theorem difrab 4248
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 3287 . . 3 {𝑥𝐴𝜑} = {𝑥 ∣ (𝑥𝐴𝜑)}
2 df-rab 3287 . . 3 {𝑥𝐴𝜓} = {𝑥 ∣ (𝑥𝐴𝜓)}
31, 2difeq12i 4061 . 2 ({𝑥𝐴𝜑} ∖ {𝑥𝐴𝜓}) = ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)})
4 df-rab 3287 . . 3 {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)} = {𝑥 ∣ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓))}
5 difab 4240 . . . 4 ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)}) = {𝑥 ∣ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓))}
6 anass 470 . . . . . 6 (((𝑥𝐴𝜑) ∧ ¬ 𝜓) ↔ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓)))
7 simpr 486 . . . . . . . . 9 ((𝑥𝐴𝜓) → 𝜓)
87con3i 154 . . . . . . . 8 𝜓 → ¬ (𝑥𝐴𝜓))
98anim2i 618 . . . . . . 7 (((𝑥𝐴𝜑) ∧ ¬ 𝜓) → ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)))
10 pm3.2 471 . . . . . . . . . 10 (𝑥𝐴 → (𝜓 → (𝑥𝐴𝜓)))
1110adantr 482 . . . . . . . . 9 ((𝑥𝐴𝜑) → (𝜓 → (𝑥𝐴𝜓)))
1211con3d 152 . . . . . . . 8 ((𝑥𝐴𝜑) → (¬ (𝑥𝐴𝜓) → ¬ 𝜓))
1312imdistani 570 . . . . . . 7 (((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)) → ((𝑥𝐴𝜑) ∧ ¬ 𝜓))
149, 13impbii 208 . . . . . 6 (((𝑥𝐴𝜑) ∧ ¬ 𝜓) ↔ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)))
156, 14bitr3i 277 . . . . 5 ((𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓)) ↔ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓)))
1615abbii 2806 . . . 4 {𝑥 ∣ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓))} = {𝑥 ∣ ((𝑥𝐴𝜑) ∧ ¬ (𝑥𝐴𝜓))}
175, 16eqtr4i 2767 . . 3 ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)}) = {𝑥 ∣ (𝑥𝐴 ∧ (𝜑 ∧ ¬ 𝜓))}
184, 17eqtr4i 2767 . 2 {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)} = ({𝑥 ∣ (𝑥𝐴𝜑)} ∖ {𝑥 ∣ (𝑥𝐴𝜓)})
193, 18eqtr4i 2767 1 ({𝑥𝐴𝜑} ∖ {𝑥𝐴𝜓}) = {𝑥𝐴 ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 397   = wceq 1539  wcel 2104  {cab 2713  {crab 3284  cdif 3889
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-12 2169  ax-ext 2707
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-tru 1542  df-ex 1780  df-nf 1784  df-sb 2066  df-clab 2714  df-cleq 2728  df-clel 2814  df-rab 3287  df-v 3439  df-dif 3895
This theorem is referenced by:  alephsuc3  10382  shftmbl  24747  musum  26385  clwwlknclwwlkdif  28388  aciunf1  31045  poimirlem26  35847  poimirlem27  35848
  Copyright terms: Public domain W3C validator