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

Theorem discmp 21481
Description: A discrete topology is compact iff the base set is finite. (Contributed by Mario Carneiro, 19-Mar-2015.)
Assertion
Ref Expression
discmp (𝐴 ∈ Fin ↔ 𝒫 𝐴 ∈ Comp)

Proof of Theorem discmp
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 distop 21079 . . . 4 (𝐴 ∈ Fin → 𝒫 𝐴 ∈ Top)
2 pwfi 8468 . . . . 5 (𝐴 ∈ Fin ↔ 𝒫 𝐴 ∈ Fin)
32biimpi 207 . . . 4 (𝐴 ∈ Fin → 𝒫 𝐴 ∈ Fin)
41, 3elind 3960 . . 3 (𝐴 ∈ Fin → 𝒫 𝐴 ∈ (Top ∩ Fin))
5 fincmp 21476 . . 3 (𝒫 𝐴 ∈ (Top ∩ Fin) → 𝒫 𝐴 ∈ Comp)
64, 5syl 17 . 2 (𝐴 ∈ Fin → 𝒫 𝐴 ∈ Comp)
7 simpr 477 . . . . . . . 8 ((𝒫 𝐴 ∈ Comp ∧ 𝑥𝐴) → 𝑥𝐴)
87snssd 4494 . . . . . . 7 ((𝒫 𝐴 ∈ Comp ∧ 𝑥𝐴) → {𝑥} ⊆ 𝐴)
9 snex 5064 . . . . . . . 8 {𝑥} ∈ V
109elpw 4321 . . . . . . 7 ({𝑥} ∈ 𝒫 𝐴 ↔ {𝑥} ⊆ 𝐴)
118, 10sylibr 225 . . . . . 6 ((𝒫 𝐴 ∈ Comp ∧ 𝑥𝐴) → {𝑥} ∈ 𝒫 𝐴)
1211fmpttd 6575 . . . . 5 (𝒫 𝐴 ∈ Comp → (𝑥𝐴 ↦ {𝑥}):𝐴⟶𝒫 𝐴)
1312frnd 6230 . . . 4 (𝒫 𝐴 ∈ Comp → ran (𝑥𝐴 ↦ {𝑥}) ⊆ 𝒫 𝐴)
14 eqid 2765 . . . . . . . 8 (𝑥𝐴 ↦ {𝑥}) = (𝑥𝐴 ↦ {𝑥})
1514rnmpt 5540 . . . . . . 7 ran (𝑥𝐴 ↦ {𝑥}) = {𝑦 ∣ ∃𝑥𝐴 𝑦 = {𝑥}}
1615unieqi 4603 . . . . . 6 ran (𝑥𝐴 ↦ {𝑥}) = {𝑦 ∣ ∃𝑥𝐴 𝑦 = {𝑥}}
179dfiun2 4710 . . . . . 6 𝑥𝐴 {𝑥} = {𝑦 ∣ ∃𝑥𝐴 𝑦 = {𝑥}}
18 iunid 4731 . . . . . 6 𝑥𝐴 {𝑥} = 𝐴
1916, 17, 183eqtr2ri 2794 . . . . 5 𝐴 = ran (𝑥𝐴 ↦ {𝑥})
2019a1i 11 . . . 4 (𝒫 𝐴 ∈ Comp → 𝐴 = ran (𝑥𝐴 ↦ {𝑥}))
21 unipw 5074 . . . . . 6 𝒫 𝐴 = 𝐴
2221eqcomi 2774 . . . . 5 𝐴 = 𝒫 𝐴
2322cmpcov 21472 . . . 4 ((𝒫 𝐴 ∈ Comp ∧ ran (𝑥𝐴 ↦ {𝑥}) ⊆ 𝒫 𝐴𝐴 = ran (𝑥𝐴 ↦ {𝑥})) → ∃𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin)𝐴 = 𝑦)
2413, 20, 23mpd3an23 1587 . . 3 (𝒫 𝐴 ∈ Comp → ∃𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin)𝐴 = 𝑦)
25 elin 3958 . . . . . . 7 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) ↔ (𝑦 ∈ 𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∧ 𝑦 ∈ Fin))
2625simprbi 490 . . . . . 6 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → 𝑦 ∈ Fin)
2725simplbi 491 . . . . . . . 8 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → 𝑦 ∈ 𝒫 ran (𝑥𝐴 ↦ {𝑥}))
2827elpwid 4327 . . . . . . 7 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → 𝑦 ⊆ ran (𝑥𝐴 ↦ {𝑥}))
29 snfi 8245 . . . . . . . . . 10 {𝑥} ∈ Fin
3029rgenw 3071 . . . . . . . . 9 𝑥𝐴 {𝑥} ∈ Fin
3114fmpt 6570 . . . . . . . . 9 (∀𝑥𝐴 {𝑥} ∈ Fin ↔ (𝑥𝐴 ↦ {𝑥}):𝐴⟶Fin)
3230, 31mpbi 221 . . . . . . . 8 (𝑥𝐴 ↦ {𝑥}):𝐴⟶Fin
33 frn 6229 . . . . . . . 8 ((𝑥𝐴 ↦ {𝑥}):𝐴⟶Fin → ran (𝑥𝐴 ↦ {𝑥}) ⊆ Fin)
3432, 33mp1i 13 . . . . . . 7 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → ran (𝑥𝐴 ↦ {𝑥}) ⊆ Fin)
3528, 34sstrd 3771 . . . . . 6 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → 𝑦 ⊆ Fin)
36 unifi 8462 . . . . . 6 ((𝑦 ∈ Fin ∧ 𝑦 ⊆ Fin) → 𝑦 ∈ Fin)
3726, 35, 36syl2anc 579 . . . . 5 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → 𝑦 ∈ Fin)
38 eleq1 2832 . . . . 5 (𝐴 = 𝑦 → (𝐴 ∈ Fin ↔ 𝑦 ∈ Fin))
3937, 38syl5ibrcom 238 . . . 4 (𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin) → (𝐴 = 𝑦𝐴 ∈ Fin))
4039rexlimiv 3174 . . 3 (∃𝑦 ∈ (𝒫 ran (𝑥𝐴 ↦ {𝑥}) ∩ Fin)𝐴 = 𝑦𝐴 ∈ Fin)
4124, 40syl 17 . 2 (𝒫 𝐴 ∈ Comp → 𝐴 ∈ Fin)
426, 41impbii 200 1 (𝐴 ∈ Fin ↔ 𝒫 𝐴 ∈ Comp)
Colors of variables: wff setvar class
Syntax hints:  wb 197  wa 384   = wceq 1652  wcel 2155  {cab 2751  wral 3055  wrex 3056  cin 3731  wss 3732  𝒫 cpw 4315  {csn 4334   cuni 4594   ciun 4676  cmpt 4888  ran crn 5278  wf 6064  Fincfn 8160  Topctop 20977  Compccmp 21469
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-sep 4941  ax-nul 4949  ax-pow 5001  ax-pr 5062  ax-un 7147
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3or 1108  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-ral 3060  df-rex 3061  df-reu 3062  df-rab 3064  df-v 3352  df-sbc 3597  df-csb 3692  df-dif 3735  df-un 3737  df-in 3739  df-ss 3746  df-pss 3748  df-nul 4080  df-if 4244  df-pw 4317  df-sn 4335  df-pr 4337  df-tp 4339  df-op 4341  df-uni 4595  df-int 4634  df-iun 4678  df-br 4810  df-opab 4872  df-mpt 4889  df-tr 4912  df-id 5185  df-eprel 5190  df-po 5198  df-so 5199  df-fr 5236  df-we 5238  df-xp 5283  df-rel 5284  df-cnv 5285  df-co 5286  df-dm 5287  df-rn 5288  df-res 5289  df-ima 5290  df-pred 5865  df-ord 5911  df-on 5912  df-lim 5913  df-suc 5914  df-iota 6031  df-fun 6070  df-fn 6071  df-f 6072  df-f1 6073  df-fo 6074  df-f1o 6075  df-fv 6076  df-ov 6845  df-oprab 6846  df-mpt2 6847  df-om 7264  df-1st 7366  df-2nd 7367  df-wrecs 7610  df-recs 7672  df-rdg 7710  df-1o 7764  df-2o 7765  df-oadd 7768  df-er 7947  df-map 8062  df-en 8161  df-dom 8162  df-sdom 8163  df-fin 8164  df-top 20978  df-cmp 21470
This theorem is referenced by:  disllycmp  21581  xkohaus  21736  xkoptsub  21737  xkopt  21738
  Copyright terms: Public domain W3C validator