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

Theorem difopab 5666
Description: Difference of two ordered-pair class abstractions. (Contributed by Stefan O'Rear, 17-Jan-2015.)
Assertion
Ref Expression
difopab ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) = {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
Distinct variable group:   𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝜓(𝑥,𝑦)

Proof of Theorem difopab
Dummy variables 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 relopab 5660 . . 3 Rel {⟨𝑥, 𝑦⟩ ∣ 𝜑}
2 reldif 5652 . . 3 (Rel {⟨𝑥, 𝑦⟩ ∣ 𝜑} → Rel ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}))
31, 2ax-mp 5 . 2 Rel ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓})
4 relopab 5660 . 2 Rel {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
5 sbcan 3768 . . . 4 ([𝑧 / 𝑥]([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓) ↔ ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓))
6 sbcan 3768 . . . . 5 ([𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓) ↔ ([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓))
76sbcbii 3776 . . . 4 ([𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓) ↔ [𝑧 / 𝑥]([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓))
8 opelopabsb 5382 . . . . 5 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ↔ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑)
9 sbcng 3766 . . . . . . 7 (𝑧 ∈ V → ([𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓 ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓))
109elv 3446 . . . . . 6 ([𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓 ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
11 sbcng 3766 . . . . . . . 8 (𝑤 ∈ V → ([𝑤 / 𝑦] ¬ 𝜓 ↔ ¬ [𝑤 / 𝑦]𝜓))
1211elv 3446 . . . . . . 7 ([𝑤 / 𝑦] ¬ 𝜓 ↔ ¬ [𝑤 / 𝑦]𝜓)
1312sbcbii 3776 . . . . . 6 ([𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓[𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓)
14 opelopabsb 5382 . . . . . . 7 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
1514notbii 323 . . . . . 6 (¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
1610, 13, 153bitr4ri 307 . . . . 5 (¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ [𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓)
178, 16anbi12i 629 . . . 4 ((⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓))
185, 7, 173bitr4ri 307 . . 3 ((⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ [𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓))
19 eldif 3891 . . 3 (⟨𝑧, 𝑤⟩ ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}))
20 opelopabsb 5382 . . 3 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)} ↔ [𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓))
2118, 19, 203bitr4i 306 . 2 (⟨𝑧, 𝑤⟩ ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)})
223, 4, 21eqrelriiv 5627 1 ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) = {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 209  wa 399   = wceq 1538  wcel 2111  Vcvv 3441  [wsbc 3720  cdif 3878  cop 4531  {copab 5092  Rel wrel 5524
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-opab 5093  df-xp 5525  df-rel 5526
This theorem is referenced by:  dfnelbr2  43829
  Copyright terms: Public domain W3C validator