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

Theorem difab 4269
Description: Difference of two class abstractions. (Contributed by NM, 23-Oct-2004.) (Proof shortened by Andrew Salmon, 26-Jun-2011.)
Assertion
Ref Expression
difab ({𝑥𝜑} ∖ {𝑥𝜓}) = {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)}

Proof of Theorem difab
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 df-clab 2797 . . 3 (𝑦 ∈ {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)} ↔ [𝑦 / 𝑥](𝜑 ∧ ¬ 𝜓))
2 sban 2077 . . 3 ([𝑦 / 𝑥](𝜑 ∧ ¬ 𝜓) ↔ ([𝑦 / 𝑥]𝜑 ∧ [𝑦 / 𝑥] ¬ 𝜓))
3 df-clab 2797 . . . . 5 (𝑦 ∈ {𝑥𝜑} ↔ [𝑦 / 𝑥]𝜑)
43bicomi 225 . . . 4 ([𝑦 / 𝑥]𝜑𝑦 ∈ {𝑥𝜑})
5 sbn 2278 . . . . 5 ([𝑦 / 𝑥] ¬ 𝜓 ↔ ¬ [𝑦 / 𝑥]𝜓)
6 df-clab 2797 . . . . 5 (𝑦 ∈ {𝑥𝜓} ↔ [𝑦 / 𝑥]𝜓)
75, 6xchbinxr 336 . . . 4 ([𝑦 / 𝑥] ¬ 𝜓 ↔ ¬ 𝑦 ∈ {𝑥𝜓})
84, 7anbi12i 626 . . 3 (([𝑦 / 𝑥]𝜑 ∧ [𝑦 / 𝑥] ¬ 𝜓) ↔ (𝑦 ∈ {𝑥𝜑} ∧ ¬ 𝑦 ∈ {𝑥𝜓}))
91, 2, 83bitrri 299 . 2 ((𝑦 ∈ {𝑥𝜑} ∧ ¬ 𝑦 ∈ {𝑥𝜓}) ↔ 𝑦 ∈ {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)})
109difeqri 4098 1 ({𝑥𝜑} ∖ {𝑥𝜓}) = {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 396   = wceq 1528  [wsb 2060  wcel 2105  {cab 2796  cdif 3930
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-v 3494  df-dif 3936
This theorem is referenced by:  notab  4270  difrab  4274  notrab  4277
  Copyright terms: Public domain W3C validator