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

Theorem difsnexi 7589
Description: If the difference of a class and a singleton is a set, the class itself is a set. (Contributed by AV, 15-Jan-2019.)
Assertion
Ref Expression
difsnexi ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)

Proof of Theorem difsnexi
StepHypRef Expression
1 simpr 484 . . . . 5 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∖ {𝐾}) ∈ V)
2 snex 5349 . . . . 5 {𝐾} ∈ V
3 unexg 7577 . . . . 5 (((𝑁 ∖ {𝐾}) ∈ V ∧ {𝐾} ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)
41, 2, 3sylancl 585 . . . 4 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)
5 difsnid 4740 . . . . . . 7 (𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) = 𝑁)
65eqcomd 2744 . . . . . 6 (𝐾𝑁𝑁 = ((𝑁 ∖ {𝐾}) ∪ {𝐾}))
76eleq1d 2823 . . . . 5 (𝐾𝑁 → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V))
87adantr 480 . . . 4 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V))
94, 8mpbird 256 . . 3 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → 𝑁 ∈ V)
109ex 412 . 2 (𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V))
11 difsn 4728 . . . 4 𝐾𝑁 → (𝑁 ∖ {𝐾}) = 𝑁)
1211eleq1d 2823 . . 3 𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∈ V ↔ 𝑁 ∈ V))
1312biimpd 228 . 2 𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V))
1410, 13pm2.61i 182 1 ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wcel 2108  Vcvv 3422  cdif 3880  cun 3881  {csn 4558
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-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-sn 4559  df-pr 4561  df-uni 4837
This theorem is referenced by:  pmtrdifellem1  18999  pmtrdifellem2  19000  tgdif0  22050
  Copyright terms: Public domain W3C validator