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

Theorem unisngl 22129
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 4840 . 2 𝐶 = {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}}
3 simpl 485 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦𝑢)
4 simpr 487 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑢 = {𝑥})
53, 4eleqtrd 2915 . . . . . . . 8 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
65exlimiv 1927 . . . . . . 7 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
7 eqid 2821 . . . . . . . 8 {𝑥} = {𝑥}
8 snex 5323 . . . . . . . . 9 {𝑥} ∈ V
9 eleq2 2901 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑦𝑢𝑦 ∈ {𝑥}))
10 eqeq1 2825 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑢 = {𝑥} ↔ {𝑥} = {𝑥}))
119, 10anbi12d 632 . . . . . . . . 9 (𝑢 = {𝑥} → ((𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥})))
128, 11spcev 3606 . . . . . . . 8 ((𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥}) → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
137, 12mpan2 689 . . . . . . 7 (𝑦 ∈ {𝑥} → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
146, 13impbii 211 . . . . . 6 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑦 ∈ {𝑥})
15 velsn 4576 . . . . . 6 (𝑦 ∈ {𝑥} ↔ 𝑦 = 𝑥)
16 equcom 2021 . . . . . 6 (𝑦 = 𝑥𝑥 = 𝑦)
1714, 15, 163bitri 299 . . . . 5 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑥 = 𝑦)
1817rexbii 3247 . . . 4 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑥𝑋 𝑥 = 𝑦)
19 r19.42v 3350 . . . . . 6 (∃𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2019exbii 1844 . . . . 5 (∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
21 rexcom4 3249 . . . . 5 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}))
22 eluniab 4842 . . . . 5 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2320, 21, 223bitr4ri 306 . . . 4 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}))
24 risset 3267 . . . 4 (𝑦𝑋 ↔ ∃𝑥𝑋 𝑥 = 𝑦)
2518, 23, 243bitr4i 305 . . 3 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ 𝑦𝑋)
2625eqriv 2818 . 2 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} = 𝑋
272, 26eqtr2i 2845 1 𝑋 = 𝐶
Colors of variables: wff setvar class
Syntax hints:  wa 398   = wceq 1533  wex 1776  wcel 2110  {cab 2799  wrex 3139  {csn 4560   cuni 4831
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
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  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-rex 3144  df-v 3496  df-dif 3938  df-un 3940  df-nul 4291  df-sn 4561  df-pr 4563  df-uni 4832
This theorem is referenced by:  dissnref  22130  dissnlocfin  22131
  Copyright terms: Public domain W3C validator