| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > difsnexi | Structured version Visualization version GIF version | ||
| 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.) |
| Ref | Expression |
|---|---|
| difsnexi | ⊢ ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | simpr 485 | . . . . 5 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∖ {𝐾}) ∈ V) | |
| 2 | snex 5369 | . . . . 5 ⊢ {𝐾} ∈ V | |
| 3 | unexg 7687 | . . . . 5 ⊢ (((𝑁 ∖ {𝐾}) ∈ V ∧ {𝐾} ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V) | |
| 4 | 1, 2, 3 | sylancl 592 | . . . 4 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V) |
| 5 | difsnid 4742 | . . . . . . 7 ⊢ (𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) = 𝑁) | |
| 6 | 5 | eqcomd 2745 | . . . . . 6 ⊢ (𝐾 ∈ 𝑁 → 𝑁 = ((𝑁 ∖ {𝐾}) ∪ {𝐾})) |
| 7 | 6 | eleq1d 2824 | . . . . 5 ⊢ (𝐾 ∈ 𝑁 → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)) |
| 8 | 7 | adantr 481 | . . . 4 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)) |
| 9 | 4, 8 | mpbird 258 | . . 3 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → 𝑁 ∈ V) |
| 10 | 9 | ex 413 | . 2 ⊢ (𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)) |
| 11 | difsn 4732 | . . . 4 ⊢ (¬ 𝐾 ∈ 𝑁 → (𝑁 ∖ {𝐾}) = 𝑁) | |
| 12 | 11 | eleq1d 2824 | . . 3 ⊢ (¬ 𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∈ V ↔ 𝑁 ∈ V)) |
| 13 | 12 | biimpd 230 | . 2 ⊢ (¬ 𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)) |
| 14 | 10, 13 | pm2.61i 183 | 1 ⊢ ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ↔ wb 207 ∧ wa 396 ∈ wcel 2119 Vcvv 3431 ∖ cdif 3880 ∪ cun 3881 {csn 4556 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1802 ax-4 1816 ax-5 1917 ax-6 1974 ax-7 2015 ax-8 2121 ax-9 2129 ax-ext 2711 ax-sep 5219 ax-pr 5363 ax-un 7679 |
| This theorem depends on definitions: df-bi 208 df-an 397 df-or 854 df-tru 1550 df-fal 1560 df-ex 1787 df-sb 2074 df-clab 2718 df-cleq 2731 df-clel 2814 df-ne 2935 df-rab 3392 df-v 3433 df-dif 3886 df-un 3888 df-in 3890 df-ss 3900 df-nul 4263 df-sn 4557 df-pr 4559 df-uni 4840 |
| This theorem is referenced by: pmtrdifellem1 19443 pmtrdifellem2 19444 tgdif0 22976 |
| Copyright terms: Public domain | W3C validator |