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

Theorem unisngl 22146
 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 4814 . 2 𝐶 = {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}}
3 simpl 486 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦𝑢)
4 simpr 488 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑢 = {𝑥})
53, 4eleqtrd 2892 . . . . . . . 8 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
65exlimiv 1931 . . . . . . 7 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
7 eqid 2798 . . . . . . . 8 {𝑥} = {𝑥}
8 snex 5298 . . . . . . . . 9 {𝑥} ∈ V
9 eleq2 2878 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑦𝑢𝑦 ∈ {𝑥}))
10 eqeq1 2802 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑢 = {𝑥} ↔ {𝑥} = {𝑥}))
119, 10anbi12d 633 . . . . . . . . 9 (𝑢 = {𝑥} → ((𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥})))
128, 11spcev 3555 . . . . . . . 8 ((𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥}) → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
137, 12mpan2 690 . . . . . . 7 (𝑦 ∈ {𝑥} → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
146, 13impbii 212 . . . . . 6 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑦 ∈ {𝑥})
15 velsn 4541 . . . . . 6 (𝑦 ∈ {𝑥} ↔ 𝑦 = 𝑥)
16 equcom 2025 . . . . . 6 (𝑦 = 𝑥𝑥 = 𝑦)
1714, 15, 163bitri 300 . . . . 5 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑥 = 𝑦)
1817rexbii 3210 . . . 4 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑥𝑋 𝑥 = 𝑦)
19 r19.42v 3303 . . . . . 6 (∃𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2019exbii 1849 . . . . 5 (∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
21 rexcom4 3212 . . . . 5 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}))
22 eluniab 4816 . . . . 5 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2320, 21, 223bitr4ri 307 . . . 4 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}))
24 risset 3226 . . . 4 (𝑦𝑋 ↔ ∃𝑥𝑋 𝑥 = 𝑦)
2518, 23, 243bitr4i 306 . . 3 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ 𝑦𝑋)
2625eqriv 2795 . 2 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} = 𝑋
272, 26eqtr2i 2822 1 𝑋 = 𝐶
 Colors of variables: wff setvar class Syntax hints:   ∧ wa 399   = wceq 1538  ∃wex 1781   ∈ wcel 2111  {cab 2776  ∃wrex 3107  {csn 4525  ∪ cuni 4801 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5168  ax-nul 5175  ax-pr 5296 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-rex 3112  df-v 3443  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-sn 4526  df-pr 4528  df-uni 4802 This theorem is referenced by:  dissnref  22147  dissnlocfin  22148
 Copyright terms: Public domain W3C validator