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 33193
Description: Difference of two restricted class abstractions. Compare with difrab 4266. (Contributed by Thierry Arnoux, 3-Jan-2022.)
Assertion
Ref Expression
difrab2 ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐵 ∣ 𝜑}) = {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑}

Proof of Theorem difrab2
StepHypRef Expression
1 nfrab1 3435 . . 3 Ⅎ𝑥{𝑥 ∈ 𝐴 ∣ 𝜑}
2 nfrab1 3435 . . 3 Ⅎ𝑥{𝑥 ∈ 𝐵 ∣ 𝜑}
31, 2nfdif 4069 . 2 Ⅎ𝑥({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐵 ∣ 𝜑})
4 nfrab1 3435 . 2 Ⅎ𝑥{𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑}
5 eldif 4052 . . . . 5 (𝑥 ∈ (𝐴 ∖ 𝐵) ↔ (𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵))
65anbi1i 636 . . . 4 ((𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑) ↔ ((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵) ∧ 𝜑))
7 andi 1025 . . . . . . 7 ((𝜑 ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)) ↔ ((𝜑 ∧ ¬ 𝑥 ∈ 𝐵) ∨ (𝜑 ∧ ¬ 𝜑)))
8 pm3.24 408 . . . . . . . 8 ¬ (𝜑 ∧ ¬ 𝜑)
98biorfri 953 . . . . . . 7 ((𝜑 ∧ ¬ 𝑥 ∈ 𝐵) ↔ ((𝜑 ∧ ¬ 𝑥 ∈ 𝐵) ∨ (𝜑 ∧ ¬ 𝜑)))
10 ancom 466 . . . . . . 7 ((𝜑 ∧ ¬ 𝑥 ∈ 𝐵) ↔ (¬ 𝑥 ∈ 𝐵 ∧ 𝜑))
117, 9, 103bitr2i 302 . . . . . 6 ((𝜑 ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)) ↔ (¬ 𝑥 ∈ 𝐵 ∧ 𝜑))
1211anbi2i 635 . . . . 5 ((𝑥 ∈ 𝐴 ∧ (𝜑 ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑))) ↔ (𝑥 ∈ 𝐴 ∧ (¬ 𝑥 ∈ 𝐵 ∧ 𝜑)))
13 anass 474 . . . . 5 (((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)) ↔ (𝑥 ∈ 𝐴 ∧ (𝜑 ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑))))
14 anass 474 . . . . 5 (((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵) ∧ 𝜑) ↔ (𝑥 ∈ 𝐴 ∧ (¬ 𝑥 ∈ 𝐵 ∧ 𝜑)))
1512, 13, 143bitr4i 306 . . . 4 (((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)) ↔ ((𝑥 ∈ 𝐴 ∧ ¬ 𝑥 ∈ 𝐵) ∧ 𝜑))
166, 15bitr4i 281 . . 3 ((𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑) ↔ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)))
17 rabid 3436 . . 3 (𝑥 ∈ {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑} ↔ (𝑥 ∈ (𝐴 ∖ 𝐵) ∧ 𝜑))
18 eldif 4052 . . . 4 (𝑥 ∈ ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐵 ∣ 𝜑}) ↔ (𝑥 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ∧ ¬ 𝑥 ∈ {𝑥 ∈ 𝐵 ∣ 𝜑}))
19 rabid 3436 . . . . 5 (𝑥 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ↔ (𝑥 ∈ 𝐴 ∧ 𝜑))
20 ianor 997 . . . . . 6 (¬ (𝑥 ∈ 𝐵 ∧ 𝜑) ↔ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑))
21 rabid 3436 . . . . . 6 (𝑥 ∈ {𝑥 ∈ 𝐵 ∣ 𝜑} ↔ (𝑥 ∈ 𝐵 ∧ 𝜑))
2220, 21xchnxbir 336 . . . . 5 (¬ 𝑥 ∈ {𝑥 ∈ 𝐵 ∣ 𝜑} ↔ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑))
2319, 22anbi12i 640 . . . 4 ((𝑥 ∈ {𝑥 ∈ 𝐴 ∣ 𝜑} ∧ ¬ 𝑥 ∈ {𝑥 ∈ 𝐵 ∣ 𝜑}) ↔ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)))
2418, 23bitri 278 . . 3 (𝑥 ∈ ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐵 ∣ 𝜑}) ↔ ((𝑥 ∈ 𝐴 ∧ 𝜑) ∧ (¬ 𝑥 ∈ 𝐵 ∨ ¬ 𝜑)))
2516, 17, 243bitr4ri 307 . 2 (𝑥 ∈ ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐵 ∣ 𝜑}) ↔ 𝑥 ∈ {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑})
263, 4, 25eqri 3933 1 ({𝑥 ∈ 𝐴 ∣ 𝜑} ∖ {𝑥 ∈ 𝐵 ∣ 𝜑}) = {𝑥 ∈ (𝐴 ∖ 𝐵) ∣ 𝜑}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   ∨ wo 861   = wceq 1570   ∈ wcel 2147  {crab 3416   ∖ cdif 4048
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-rab 3417  df-v 3456  df-dif 4050
This theorem is used by:  reprdifc  35367
  Copyright terms: Public domain W3C validator