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

Theorem unisngl 22586
Description: Taking the union of the set of singletons recovers the initial set. (Contributed by Thierry Arnoux, 9-Jan-2020.)
Hypothesis
Ref Expression
dissnref.c 𝐶 = {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}}
Assertion
Ref Expression
unisngl 𝑋 = 𝐶
Distinct variable groups:   𝑢,𝐶,𝑥   𝑢,𝑋,𝑥

Proof of Theorem unisngl
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 dissnref.c . . 3 𝐶 = {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}}
21unieqi 4849 . 2 𝐶 = {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}}
3 simpl 482 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦𝑢)
4 simpr 484 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑢 = {𝑥})
53, 4eleqtrd 2841 . . . . . . . 8 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
65exlimiv 1934 . . . . . . 7 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
7 eqid 2738 . . . . . . . 8 {𝑥} = {𝑥}
8 snex 5349 . . . . . . . . 9 {𝑥} ∈ V
9 eleq2 2827 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑦𝑢𝑦 ∈ {𝑥}))
10 eqeq1 2742 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑢 = {𝑥} ↔ {𝑥} = {𝑥}))
119, 10anbi12d 630 . . . . . . . . 9 (𝑢 = {𝑥} → ((𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥})))
128, 11spcev 3535 . . . . . . . 8 ((𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥}) → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
137, 12mpan2 687 . . . . . . 7 (𝑦 ∈ {𝑥} → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
146, 13impbii 208 . . . . . 6 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑦 ∈ {𝑥})
15 velsn 4574 . . . . . 6 (𝑦 ∈ {𝑥} ↔ 𝑦 = 𝑥)
16 equcom 2022 . . . . . 6 (𝑦 = 𝑥𝑥 = 𝑦)
1714, 15, 163bitri 296 . . . . 5 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑥 = 𝑦)
1817rexbii 3177 . . . 4 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑥𝑋 𝑥 = 𝑦)
19 r19.42v 3276 . . . . . 6 (∃𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2019exbii 1851 . . . . 5 (∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
21 rexcom4 3179 . . . . 5 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}))
22 eluniab 4851 . . . . 5 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2320, 21, 223bitr4ri 303 . . . 4 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}))
24 risset 3193 . . . 4 (𝑦𝑋 ↔ ∃𝑥𝑋 𝑥 = 𝑦)
2518, 23, 243bitr4i 302 . . 3 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ 𝑦𝑋)
2625eqriv 2735 . 2 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} = 𝑋
272, 26eqtr2i 2767 1 𝑋 = 𝐶
Colors of variables: wff setvar class
Syntax hints:  wa 395   = wceq 1539  wex 1783  wcel 2108  {cab 2715  wrex 3064  {csn 4558   cuni 4836
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-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-rex 3069  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:  dissnref  22587  dissnlocfin  22588
  Copyright terms: Public domain W3C validator