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

Theorem difab 3855
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 2597 . . 3 (𝑦 ∈ {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)} ↔ [𝑦 / 𝑥](𝜑 ∧ ¬ 𝜓))
2 sban 2387 . . 3 ([𝑦 / 𝑥](𝜑 ∧ ¬ 𝜓) ↔ ([𝑦 / 𝑥]𝜑 ∧ [𝑦 / 𝑥] ¬ 𝜓))
3 df-clab 2597 . . . . 5 (𝑦 ∈ {𝑥𝜑} ↔ [𝑦 / 𝑥]𝜑)
43bicomi 213 . . . 4 ([𝑦 / 𝑥]𝜑𝑦 ∈ {𝑥𝜑})
5 sbn 2379 . . . . 5 ([𝑦 / 𝑥] ¬ 𝜓 ↔ ¬ [𝑦 / 𝑥]𝜓)
6 df-clab 2597 . . . . 5 (𝑦 ∈ {𝑥𝜓} ↔ [𝑦 / 𝑥]𝜓)
75, 6xchbinxr 324 . . . 4 ([𝑦 / 𝑥] ¬ 𝜓 ↔ ¬ 𝑦 ∈ {𝑥𝜓})
84, 7anbi12i 729 . . 3 (([𝑦 / 𝑥]𝜑 ∧ [𝑦 / 𝑥] ¬ 𝜓) ↔ (𝑦 ∈ {𝑥𝜑} ∧ ¬ 𝑦 ∈ {𝑥𝜓}))
91, 2, 83bitrri 286 . 2 ((𝑦 ∈ {𝑥𝜑} ∧ ¬ 𝑦 ∈ {𝑥𝜓}) ↔ 𝑦 ∈ {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)})
109difeqri 3692 1 ({𝑥𝜑} ∖ {𝑥𝜓}) = {𝑥 ∣ (𝜑 ∧ ¬ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 383   = wceq 1475  [wsb 1867  wcel 1977  {cab 2596  cdif 3537
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-dif 3543
This theorem is referenced by:  notab  3856  difrab  3860  notrab  3863
  Copyright terms: Public domain W3C validator