| 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 489 | . . . . 5 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∖ {𝐾}) ∈ V) | |
| 2 | snex 5411 | . . . . 5 ⊢ {𝐾} ∈ V | |
| 3 | unexg 7742 | . . . . 5 ⊢ (((𝑁 ∖ {𝐾}) ∈ V ∧ {𝐾} ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V) | |
| 4 | 1, 2, 3 | sylancl 597 | . . . 4 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V) |
| 5 | difsnid 4780 | . . . . . . 7 ⊢ (𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∪ {𝐾}) = 𝑁) | |
| 6 | 5 | eqcomd 2775 | . . . . . 6 ⊢ (𝐾 ∈ 𝑁 → 𝑁 = ((𝑁 ∖ {𝐾}) ∪ {𝐾})) |
| 7 | 6 | eleq1d 2854 | . . . . 5 ⊢ (𝐾 ∈ 𝑁 → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)) |
| 8 | 7 | adantr 485 | . . . 4 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → (𝑁 ∈ V ↔ ((𝑁 ∖ {𝐾}) ∪ {𝐾}) ∈ V)) |
| 9 | 4, 8 | mpbird 260 | . . 3 ⊢ ((𝐾 ∈ 𝑁 ∧ (𝑁 ∖ {𝐾}) ∈ V) → 𝑁 ∈ V) |
| 10 | 9 | ex 417 | . 2 ⊢ (𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)) |
| 11 | difsn 4770 | . . . 4 ⊢ (¬ 𝐾 ∈ 𝑁 → (𝑁 ∖ {𝐾}) = 𝑁) | |
| 12 | 11 | eleq1d 2854 | . . 3 ⊢ (¬ 𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∈ V ↔ 𝑁 ∈ V)) |
| 13 | 12 | biimpd 232 | . 2 ⊢ (¬ 𝐾 ∈ 𝑁 → ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V)) |
| 14 | 10, 13 | pm2.61i 184 | 1 ⊢ ((𝑁 ∖ {𝐾}) ∈ V → 𝑁 ∈ V) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ↔ wb 209 ∧ wa 400 ∈ wcel 2149 Vcvv 3463 ∖ cdif 3910 ∪ cun 3911 {csn 4594 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1822 ax-4 1836 ax-5 1937 ax-6 1994 ax-7 2035 ax-8 2151 ax-9 2159 ax-ext 2741 ax-sep 5261 ax-pr 5405 ax-un 7733 |
| This theorem depends on definitions: df-bi 210 df-an 401 df-or 861 df-tru 1570 df-fal 1580 df-ex 1807 df-sb 2098 df-clab 2748 df-cleq 2761 df-clel 2844 df-ne 2965 df-rab 3424 df-v 3465 df-dif 3916 df-un 3918 df-in 3920 df-ss 3930 df-nul 4295 df-sn 4595 df-pr 4597 df-uni 4877 |
| This theorem is referenced by: pmtrdifellem1 19546 pmtrdifellem2 19547 tgdif0 23118 |
| Copyright terms: Public domain | W3C validator |