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

Theorem unisngl 21330
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 4445 . 2 𝐶 = {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}}
3 simpl 473 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦𝑢)
4 simpr 477 . . . . . . . . 9 ((𝑦𝑢𝑢 = {𝑥}) → 𝑢 = {𝑥})
53, 4eleqtrd 2703 . . . . . . . 8 ((𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
65exlimiv 1858 . . . . . . 7 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) → 𝑦 ∈ {𝑥})
7 eqid 2622 . . . . . . . 8 {𝑥} = {𝑥}
8 snex 4908 . . . . . . . . 9 {𝑥} ∈ V
9 eleq2 2690 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑦𝑢𝑦 ∈ {𝑥}))
10 eqeq1 2626 . . . . . . . . . 10 (𝑢 = {𝑥} → (𝑢 = {𝑥} ↔ {𝑥} = {𝑥}))
119, 10anbi12d 747 . . . . . . . . 9 (𝑢 = {𝑥} → ((𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥})))
128, 11spcev 3300 . . . . . . . 8 ((𝑦 ∈ {𝑥} ∧ {𝑥} = {𝑥}) → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
137, 12mpan2 707 . . . . . . 7 (𝑦 ∈ {𝑥} → ∃𝑢(𝑦𝑢𝑢 = {𝑥}))
146, 13impbii 199 . . . . . 6 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑦 ∈ {𝑥})
15 velsn 4193 . . . . . 6 (𝑦 ∈ {𝑥} ↔ 𝑦 = 𝑥)
16 equcom 1945 . . . . . 6 (𝑦 = 𝑥𝑥 = 𝑦)
1714, 15, 163bitri 286 . . . . 5 (∃𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ 𝑥 = 𝑦)
1817rexbii 3041 . . . 4 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑥𝑋 𝑥 = 𝑦)
19 r19.42v 3092 . . . . . 6 (∃𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ (𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2019exbii 1774 . . . . 5 (∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
21 rexcom4 3225 . . . . 5 (∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}) ↔ ∃𝑢𝑥𝑋 (𝑦𝑢𝑢 = {𝑥}))
22 eluniab 4447 . . . . 5 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑢(𝑦𝑢 ∧ ∃𝑥𝑋 𝑢 = {𝑥}))
2320, 21, 223bitr4ri 293 . . . 4 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ ∃𝑥𝑋𝑢(𝑦𝑢𝑢 = {𝑥}))
24 risset 3062 . . . 4 (𝑦𝑋 ↔ ∃𝑥𝑋 𝑥 = 𝑦)
2518, 23, 243bitr4i 292 . . 3 (𝑦 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} ↔ 𝑦𝑋)
2625eqriv 2619 . 2 {𝑢 ∣ ∃𝑥𝑋 𝑢 = {𝑥}} = 𝑋
272, 26eqtr2i 2645 1 𝑋 = 𝐶
Colors of variables: wff setvar class
Syntax hints:  wa 384   = wceq 1483  wex 1704  wcel 1990  {cab 2608  wrex 2913  {csn 4177   cuni 4436
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pr 4906
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ral 2917  df-rex 2918  df-v 3202  df-dif 3577  df-un 3579  df-nul 3916  df-sn 4178  df-pr 4180  df-uni 4437
This theorem is referenced by:  dissnref  21331  dissnlocfin  21332
  Copyright terms: Public domain W3C validator