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

Theorem difopab 5253
Description: The difference of two ordered-pair 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 5247 . . 3 Rel {⟨𝑥, 𝑦⟩ ∣ 𝜑}
2 reldif 5238 . . 3 (Rel {⟨𝑥, 𝑦⟩ ∣ 𝜑} → Rel ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}))
31, 2ax-mp 5 . 2 Rel ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓})
4 relopab 5247 . 2 Rel {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
5 sbcan 3478 . . . 4 ([𝑧 / 𝑥]([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓) ↔ ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓))
6 sbcan 3478 . . . . 5 ([𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓) ↔ ([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓))
76sbcbii 3491 . . . 4 ([𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓) ↔ [𝑧 / 𝑥]([𝑤 / 𝑦]𝜑[𝑤 / 𝑦] ¬ 𝜓))
8 opelopabsb 4985 . . . . 5 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ↔ [𝑧 / 𝑥][𝑤 / 𝑦]𝜑)
9 vex 3203 . . . . . . 7 𝑧 ∈ V
10 sbcng 3476 . . . . . . 7 (𝑧 ∈ V → ([𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓 ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓))
119, 10ax-mp 5 . . . . . 6 ([𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓 ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
12 vex 3203 . . . . . . . 8 𝑤 ∈ V
13 sbcng 3476 . . . . . . . 8 (𝑤 ∈ V → ([𝑤 / 𝑦] ¬ 𝜓 ↔ ¬ [𝑤 / 𝑦]𝜓))
1412, 13ax-mp 5 . . . . . . 7 ([𝑤 / 𝑦] ¬ 𝜓 ↔ ¬ [𝑤 / 𝑦]𝜓)
1514sbcbii 3491 . . . . . 6 ([𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓[𝑧 / 𝑥] ¬ [𝑤 / 𝑦]𝜓)
16 opelopabsb 4985 . . . . . . 7 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
1716notbii 310 . . . . . 6 (¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ ¬ [𝑧 / 𝑥][𝑤 / 𝑦]𝜓)
1811, 15, 173bitr4ri 293 . . . . 5 (¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓} ↔ [𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓)
198, 18anbi12i 733 . . . 4 ((⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ ([𝑧 / 𝑥][𝑤 / 𝑦]𝜑[𝑧 / 𝑥][𝑤 / 𝑦] ¬ 𝜓))
205, 7, 193bitr4ri 293 . . 3 ((⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ [𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓))
21 eldif 3584 . . 3 (⟨𝑧, 𝑤⟩ ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜑} ∧ ¬ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ 𝜓}))
22 opelopabsb 4985 . . 3 (⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)} ↔ [𝑧 / 𝑥][𝑤 / 𝑦](𝜑 ∧ ¬ 𝜓))
2320, 21, 223bitr4i 292 . 2 (⟨𝑧, 𝑤⟩ ∈ ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) ↔ ⟨𝑧, 𝑤⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)})
243, 4, 23eqrelriiv 5214 1 ({⟨𝑥, 𝑦⟩ ∣ 𝜑} ∖ {⟨𝑥, 𝑦⟩ ∣ 𝜓}) = {⟨𝑥, 𝑦⟩ ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 196  wa 384   = wceq 1483  wcel 1990  Vcvv 3200  [wsbc 3435  cdif 3571  cop 4183  {copab 4712  Rel wrel 5119
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pr 4906
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3202  df-sbc 3436  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-opab 4713  df-xp 5120  df-rel 5121
This theorem is referenced by:  dfnelbr2  41290
  Copyright terms: Public domain W3C validator