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

Theorem dfdif3 4094
Description: Alternate definition of class difference. (Contributed by BJ and Jim Kingdon, 16-Jun-2022.)
Assertion
Ref Expression
dfdif3 (𝐴𝐵) = {𝑥𝐴 ∣ ∀𝑦𝐵 𝑥𝑦}
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵,𝑦
Allowed substitution hint:   𝐴(𝑦)

Proof of Theorem dfdif3
StepHypRef Expression
1 dfdif2 3948 . 2 (𝐴𝐵) = {𝑥𝐴 ∣ ¬ 𝑥𝐵}
2 ax6ev 1971 . . . . . . 7 𝑦 𝑦 = 𝑥
32biantrur 533 . . . . . 6 𝑥𝐵 ↔ (∃𝑦 𝑦 = 𝑥 ∧ ¬ 𝑥𝐵))
4 19.41v 1949 . . . . . 6 (∃𝑦(𝑦 = 𝑥 ∧ ¬ 𝑥𝐵) ↔ (∃𝑦 𝑦 = 𝑥 ∧ ¬ 𝑥𝐵))
53, 4bitr4i 280 . . . . 5 𝑥𝐵 ↔ ∃𝑦(𝑦 = 𝑥 ∧ ¬ 𝑥𝐵))
6 sb56 2276 . . . . 5 (∃𝑦(𝑦 = 𝑥 ∧ ¬ 𝑥𝐵) ↔ ∀𝑦(𝑦 = 𝑥 → ¬ 𝑥𝐵))
7 equcom 2024 . . . . . . . 8 (𝑦 = 𝑥𝑥 = 𝑦)
87imbi1i 352 . . . . . . 7 ((𝑦 = 𝑥 → ¬ 𝑥𝐵) ↔ (𝑥 = 𝑦 → ¬ 𝑥𝐵))
9 eleq1w 2898 . . . . . . . . . 10 (𝑥 = 𝑦 → (𝑥𝐵𝑦𝐵))
109notbid 320 . . . . . . . . 9 (𝑥 = 𝑦 → (¬ 𝑥𝐵 ↔ ¬ 𝑦𝐵))
1110pm5.74i 273 . . . . . . . 8 ((𝑥 = 𝑦 → ¬ 𝑥𝐵) ↔ (𝑥 = 𝑦 → ¬ 𝑦𝐵))
12 con2b 362 . . . . . . . 8 ((𝑥 = 𝑦 → ¬ 𝑦𝐵) ↔ (𝑦𝐵 → ¬ 𝑥 = 𝑦))
13 df-ne 3020 . . . . . . . . . 10 (𝑥𝑦 ↔ ¬ 𝑥 = 𝑦)
1413bicomi 226 . . . . . . . . 9 𝑥 = 𝑦𝑥𝑦)
1514imbi2i 338 . . . . . . . 8 ((𝑦𝐵 → ¬ 𝑥 = 𝑦) ↔ (𝑦𝐵𝑥𝑦))
1611, 12, 153bitri 299 . . . . . . 7 ((𝑥 = 𝑦 → ¬ 𝑥𝐵) ↔ (𝑦𝐵𝑥𝑦))
178, 16bitri 277 . . . . . 6 ((𝑦 = 𝑥 → ¬ 𝑥𝐵) ↔ (𝑦𝐵𝑥𝑦))
1817albii 1819 . . . . 5 (∀𝑦(𝑦 = 𝑥 → ¬ 𝑥𝐵) ↔ ∀𝑦(𝑦𝐵𝑥𝑦))
195, 6, 183bitri 299 . . . 4 𝑥𝐵 ↔ ∀𝑦(𝑦𝐵𝑥𝑦))
20 df-ral 3146 . . . 4 (∀𝑦𝐵 𝑥𝑦 ↔ ∀𝑦(𝑦𝐵𝑥𝑦))
2119, 20bitr4i 280 . . 3 𝑥𝐵 ↔ ∀𝑦𝐵 𝑥𝑦)
2221rabbii 3476 . 2 {𝑥𝐴 ∣ ¬ 𝑥𝐵} = {𝑥𝐴 ∣ ∀𝑦𝐵 𝑥𝑦}
231, 22eqtri 2847 1 (𝐴𝐵) = {𝑥𝐴 ∣ ∀𝑦𝐵 𝑥𝑦}
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398  wal 1534   = wceq 1536  wex 1779  wcel 2113  wne 3019  wral 3141  {crab 3145  cdif 3936
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-12 2176  ax-ext 2796
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-ex 1780  df-nf 1784  df-sb 2069  df-clab 2803  df-cleq 2817  df-clel 2896  df-ne 3020  df-ral 3146  df-rab 3150  df-dif 3942
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator