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

Theorem difopab 5729
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 relopabv 5720 . . 3 Rel {⟨𝑥, 𝑦⟩ ∣ 𝜑}
2 reldif 5714 . . 3 (Rel {⟨𝑥, 𝑦⟩ ∣ 𝜑} → Rel ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}))
31, 2ax-mp 5 . 2 Rel ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓})
4 relopabv 5720 . 2 Rel {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
5 sbcan 3763 . . . 4 ([𝑧 / 𝑥]([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓) ↔ ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓))
6 sbcan 3763 . . . . 5 ([𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓) ↔ ([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓))
76sbcbii 3772 . . . 4 ([𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓) ↔ [𝑧 / 𝑥]([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓))
8 opelopabsb 5436 . . . . 5 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ↔ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑)
9 sbcng 3761 . . . . . . 7 (𝑧 ∈ V → ([𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓 ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓))
109elv 3428 . . . . . 6 ([𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓 ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
11 sbcng 3761 . . . . . . . 8 (𝑤 ∈ V → ([𝑤 / 𝑦] ¬ 𝜓 ↔ ¬ [𝑤 / 𝑦]𝜓))
1211elv 3428 . . . . . . 7 ([𝑤 / 𝑦] ¬ 𝜓 ↔ ¬ [𝑤 / 𝑦]𝜓)
1312sbcbii 3772 . . . . . 6 ([𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓[𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓)
14 opelopabsb 5436 . . . . . . 7 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
1514notbii 319 . . . . . 6 (¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
1610, 13, 153bitr4ri 303 . . . . 5 (¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ [𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓)
178, 16anbi12i 626 . . . 4 ((⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓))
185, 7, 173bitr4ri 303 . . 3 ((⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ [𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓))
19 eldif 3893 . . 3 (⟨𝑧, 𝑤⟩ ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}))
20 opelopabsb 5436 . . 3 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)} ↔ [𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓))
2118, 19, 203bitr4i 302 . 2 (⟨𝑧, 𝑤⟩ ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)})
223, 4, 21eqrelriiv 5689 1 ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) = {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 205  wa 395   = wceq 1539  wcel 2108  Vcvv 3422  [wsbc 3711  cdif 3880  cop 4564  {copab 5132  Rel wrel 5585
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-opab 5133  df-xp 5586  df-rel 5587
This theorem is referenced by:  dfnelbr2  44652
  Copyright terms: Public domain W3C validator