ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  difrab GIF version

Theorem difrab 3507
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 2537 . . 3 {𝑥 ∈ 𝐴 ∣ 𝜑} = {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)}
2 df-rab 2537 . . 3 {𝑥 ∈ 𝐴 ∣ 𝜓} = {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜓)}
31, 2difeq12i 3345 . 2 ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐴 ∣ 𝜓}) = ({𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} ∖ {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜓)})
4 df-rab 2537 . . 3 {𝑥 ∈ 𝐴 ∣ (𝜑 ∧ ¬ 𝜓)} = {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ (𝜑 ∧ ¬ 𝜓))}
5 difab 3500 . . . 4 ({𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} ∖ {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜓)}) = {𝑥 ∣ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ (𝑥 ∈ 𝐴 ∧ 𝜓))}
6 anass 405 . . . . . 6 (((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ 𝜓) ↔ (𝑥 ∈ 𝐴 ∧ (𝜑 ∧ ¬ 𝜓)))
7 simpr 110 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝜓) → 𝜓)
87con3i 641 . . . . . . . 8 (¬ 𝜓 → ¬ (𝑥 ∈ 𝐴 ∧ 𝜓))
98anim2i 342 . . . . . . 7 (((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ 𝜓) → ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ (𝑥 ∈ 𝐴 ∧ 𝜓)))
10 pm3.2 139 . . . . . . . . . 10 (𝑥 ∈ 𝐴 → (𝜓 → (𝑥 ∈ 𝐴 ∧ 𝜓)))
1110adantr 276 . . . . . . . . 9 ((𝑥 ∈ 𝐴 ∧ 𝜑) → (𝜓 → (𝑥 ∈ 𝐴 ∧ 𝜓)))
1211con3d 640 . . . . . . . 8 ((𝑥 ∈ 𝐴 ∧ 𝜑) → (¬ (𝑥 ∈ 𝐴 ∧ 𝜓) → ¬ 𝜓))
1312imdistani 449 . . . . . . 7 (((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ (𝑥 ∈ 𝐴 ∧ 𝜓)) → ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ 𝜓))
149, 13impbii 126 . . . . . 6 (((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ 𝜓) ↔ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ (𝑥 ∈ 𝐴 ∧ 𝜓)))
156, 14bitr3i 186 . . . . 5 ((𝑥 ∈ 𝐴 ∧ (𝜑 ∧ ¬ 𝜓)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ (𝑥 ∈ 𝐴 ∧ 𝜓)))
1615abbii 2354 . . . 4 {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ (𝜑 ∧ ¬ 𝜓))} = {𝑥 ∣ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ ¬ (𝑥 ∈ 𝐴 ∧ 𝜓))}
175, 16eqtr4i 2262 . . 3 ({𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} ∖ {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜓)}) = {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ (𝜑 ∧ ¬ 𝜓))}
184, 17eqtr4i 2262 . 2 {𝑥 ∈ 𝐴 ∣ (𝜑 ∧ ¬ 𝜓)} = ({𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜑)} ∖ {𝑥 ∣ (𝑥 ∈ 𝐴 ∧ 𝜓)})
193, 18eqtr4i 2262 1 ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐴 ∣ 𝜓}) = {𝑥 ∈ 𝐴 ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   = wceq 1402   ∈ wcel 2209  {cab 2224  {crab 2532   ∖ cdif 3217
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-ext 2220
This proof depends on definitions:  df-bi 117  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ral 2533  df-rab 2537  df-v 2823  df-dif 3222
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator