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

Theorem difsnexi 7477
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 487 . . . . 5 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∖ {𝐾}) ∈ V)
2 snex 5323 . . . . 5 {𝐾} ∈ V
3 unexg 7466 . . . . 5 (((𝑁 ∖ {𝐾}) ∈ V ∧ {𝐾} ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)
41, 2, 3sylancl 588 . . . 4 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)
5 difsnid 4736 . . . . . . 7 (𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) = 𝑁)
65eqcomd 2827 . . . . . 6 (𝐾𝑁𝑁 = ((𝑁 ∖ {𝐾}) ∪ {𝐾}))
76eleq1d 2897 . . . . 5 (𝐾𝑁 → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V))
87adantr 483 . . . 4 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V))
94, 8mpbird 259 . . 3 ((𝐾𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → 𝑁 ∈ V)
109ex 415 . 2 (𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V))
11 difsn 4724 . . . 4 𝐾𝑁 → (𝑁 ∖ {𝐾}) = 𝑁)
1211eleq1d 2897 . . 3 𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∈ V ↔ 𝑁 ∈ V))
1312biimpd 231 . 2 𝐾𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V))
1410, 13pm2.61i 184 1 ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wcel 2110  Vcvv 3494  cdif 3932  cun 3933  {csn 4560
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-rex 3144  df-rab 3147  df-v 3496  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-sn 4561  df-pr 4563  df-uni 4832
This theorem is referenced by:  pmtrdifellem1  18598  pmtrdifellem2  18599  tgdif0  21594
  Copyright terms: Public domain W3C validator