Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  difrab2 Structured version   Visualization version   GIF version

Theorem difrab2 30845
Description: Difference of two restricted class abstractions. Compare with difrab 4242. (Contributed by Thierry Arnoux, 3-Jan-2022.)
Assertion
Ref Expression
difrab2 ({𝑥𝐴𝜑} ∖ {𝑥𝐵𝜑}) = {𝑥 ∈ (𝐴𝐵) ∣ 𝜑}

Proof of Theorem difrab2
StepHypRef Expression
1 nfrab1 3317 . . 3 𝑥{𝑥𝐴𝜑}
2 nfrab1 3317 . . 3 𝑥{𝑥𝐵𝜑}
31, 2nfdif 4060 . 2 𝑥({𝑥𝐴𝜑} ∖ {𝑥𝐵𝜑})
4 nfrab1 3317 . 2 𝑥{𝑥 ∈ (𝐴𝐵) ∣ 𝜑}
5 eldif 3897 . . . . 5 (𝑥 ∈ (𝐴𝐵) ↔ (𝑥𝐴 ∧ ¬ 𝑥𝐵))
65anbi1i 624 . . . 4 ((𝑥 ∈ (𝐴𝐵) ∧ 𝜑) ↔ ((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝜑))
7 andi 1005 . . . . . . 7 ((𝜑 ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)) ↔ ((𝜑 ∧ ¬ 𝑥𝐵) ∨ (𝜑 ∧ ¬ 𝜑)))
8 pm3.24 403 . . . . . . . 8 ¬ (𝜑 ∧ ¬ 𝜑)
98biorfi 936 . . . . . . 7 ((𝜑 ∧ ¬ 𝑥𝐵) ↔ ((𝜑 ∧ ¬ 𝑥𝐵) ∨ (𝜑 ∧ ¬ 𝜑)))
10 ancom 461 . . . . . . 7 ((𝜑 ∧ ¬ 𝑥𝐵) ↔ (¬ 𝑥𝐵𝜑))
117, 9, 103bitr2i 299 . . . . . 6 ((𝜑 ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)) ↔ (¬ 𝑥𝐵𝜑))
1211anbi2i 623 . . . . 5 ((𝑥𝐴 ∧ (𝜑 ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑))) ↔ (𝑥𝐴 ∧ (¬ 𝑥𝐵𝜑)))
13 anass 469 . . . . 5 (((𝑥𝐴𝜑) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)) ↔ (𝑥𝐴 ∧ (𝜑 ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑))))
14 anass 469 . . . . 5 (((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝜑) ↔ (𝑥𝐴 ∧ (¬ 𝑥𝐵𝜑)))
1512, 13, 143bitr4i 303 . . . 4 (((𝑥𝐴𝜑) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)) ↔ ((𝑥𝐴 ∧ ¬ 𝑥𝐵) ∧ 𝜑))
166, 15bitr4i 277 . . 3 ((𝑥 ∈ (𝐴𝐵) ∧ 𝜑) ↔ ((𝑥𝐴𝜑) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)))
17 rabid 3310 . . 3 (𝑥 ∈ {𝑥 ∈ (𝐴𝐵) ∣ 𝜑} ↔ (𝑥 ∈ (𝐴𝐵) ∧ 𝜑))
18 eldif 3897 . . . 4 (𝑥 ∈ ({𝑥𝐴𝜑} ∖ {𝑥𝐵𝜑}) ↔ (𝑥 ∈ {𝑥𝐴𝜑} ∧ ¬ 𝑥 ∈ {𝑥𝐵𝜑}))
19 rabid 3310 . . . . 5 (𝑥 ∈ {𝑥𝐴𝜑} ↔ (𝑥𝐴𝜑))
20 ianor 979 . . . . . 6 (¬ (𝑥𝐵𝜑) ↔ (¬ 𝑥𝐵 ∨ ¬ 𝜑))
21 rabid 3310 . . . . . 6 (𝑥 ∈ {𝑥𝐵𝜑} ↔ (𝑥𝐵𝜑))
2220, 21xchnxbir 333 . . . . 5 𝑥 ∈ {𝑥𝐵𝜑} ↔ (¬ 𝑥𝐵 ∨ ¬ 𝜑))
2319, 22anbi12i 627 . . . 4 ((𝑥 ∈ {𝑥𝐴𝜑} ∧ ¬ 𝑥 ∈ {𝑥𝐵𝜑}) ↔ ((𝑥𝐴𝜑) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)))
2418, 23bitri 274 . . 3 (𝑥 ∈ ({𝑥𝐴𝜑} ∖ {𝑥𝐵𝜑}) ↔ ((𝑥𝐴𝜑) ∧ (¬ 𝑥𝐵 ∨ ¬ 𝜑)))
2516, 17, 243bitr4ri 304 . 2 (𝑥 ∈ ({𝑥𝐴𝜑} ∖ {𝑥𝐵𝜑}) ↔ 𝑥 ∈ {𝑥 ∈ (𝐴𝐵) ∣ 𝜑})
263, 4, 25eqri 3941 1 ({𝑥𝐴𝜑} ∖ {𝑥𝐵𝜑}) = {𝑥 ∈ (𝐴𝐵) ∣ 𝜑}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 396  wo 844   = wceq 1539  wcel 2106  {crab 3068  cdif 3884
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-rab 3073  df-v 3434  df-dif 3890
This theorem is referenced by:  reprdifc  32607
  Copyright terms: Public domain W3C validator