MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dscopn Structured version   Unicode version

Theorem dscopn 20291
Description: The discrete metric generates the discrete topology. In particular, the discrete topology is metrizable. (Contributed by Mario Carneiro, 29-Jan-2014.)
Hypothesis
Ref Expression
dscmet.1  |-  D  =  ( x  e.  X ,  y  e.  X  |->  if ( x  =  y ,  0 ,  1 ) )
Assertion
Ref Expression
dscopn  |-  ( X  e.  V  ->  ( MetOpen
`  D )  =  ~P X )
Distinct variable group:    x, y, X
Allowed substitution hints:    D( x, y)    V( x, y)

Proof of Theorem dscopn
Dummy variables  v  u  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dscmet.1 . . . . . . 7  |-  D  =  ( x  e.  X ,  y  e.  X  |->  if ( x  =  y ,  0 ,  1 ) )
21dscmet 20290 . . . . . 6  |-  ( X  e.  V  ->  D  e.  ( Met `  X
) )
3 metxmet 20034 . . . . . 6  |-  ( D  e.  ( Met `  X
)  ->  D  e.  ( *Met `  X
) )
42, 3syl 16 . . . . 5  |-  ( X  e.  V  ->  D  e.  ( *Met `  X ) )
5 eqid 2451 . . . . . 6  |-  ( MetOpen `  D )  =  (
MetOpen `  D )
65elmopn 20142 . . . . 5  |-  ( D  e.  ( *Met `  X )  ->  (
u  e.  ( MetOpen `  D )  <->  ( u  C_  X  /\  A. v  e.  u  E. w  e.  ran  ( ball `  D
) ( v  e.  w  /\  w  C_  u ) ) ) )
74, 6syl 16 . . . 4  |-  ( X  e.  V  ->  (
u  e.  ( MetOpen `  D )  <->  ( u  C_  X  /\  A. v  e.  u  E. w  e.  ran  ( ball `  D
) ( v  e.  w  /\  w  C_  u ) ) ) )
8 simpll 753 . . . . . . . . 9  |-  ( ( ( X  e.  V  /\  u  C_  X )  /\  v  e.  u
)  ->  X  e.  V )
9 ssel2 3452 . . . . . . . . . 10  |-  ( ( u  C_  X  /\  v  e.  u )  ->  v  e.  X )
109adantll 713 . . . . . . . . 9  |-  ( ( ( X  e.  V  /\  u  C_  X )  /\  v  e.  u
)  ->  v  e.  X )
118, 10jca 532 . . . . . . . 8  |-  ( ( ( X  e.  V  /\  u  C_  X )  /\  v  e.  u
)  ->  ( X  e.  V  /\  v  e.  X ) )
12 elsn 3992 . . . . . . . . . . . 12  |-  ( w  e.  { v }  <-> 
w  =  v )
13 eleq1a 2534 . . . . . . . . . . . . . . 15  |-  ( v  e.  X  ->  (
w  =  v  ->  w  e.  X )
)
14 simpl 457 . . . . . . . . . . . . . . . 16  |-  ( ( w  e.  X  /\  ( v D w )  <  1 )  ->  w  e.  X
)
1514a1i 11 . . . . . . . . . . . . . . 15  |-  ( v  e.  X  ->  (
( w  e.  X  /\  ( v D w )  <  1 )  ->  w  e.  X
) )
16 eqeq12 2470 . . . . . . . . . . . . . . . . . . . . 21  |-  ( ( x  =  v  /\  y  =  w )  ->  ( x  =  y  <-> 
v  =  w ) )
1716ifbid 3912 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( x  =  v  /\  y  =  w )  ->  if ( x  =  y ,  0 ,  1 )  =  if ( v  =  w ,  0 ,  1 ) )
18 0re 9490 . . . . . . . . . . . . . . . . . . . . . 22  |-  0  e.  RR
19 1re 9489 . . . . . . . . . . . . . . . . . . . . . 22  |-  1  e.  RR
2018, 19keepel 3958 . . . . . . . . . . . . . . . . . . . . 21  |-  if ( v  =  w ,  0 ,  1 )  e.  RR
2120elexi 3081 . . . . . . . . . . . . . . . . . . . 20  |-  if ( v  =  w ,  0 ,  1 )  e.  _V
2217, 1, 21ovmpt2a 6324 . . . . . . . . . . . . . . . . . . 19  |-  ( ( v  e.  X  /\  w  e.  X )  ->  ( v D w )  =  if ( v  =  w ,  0 ,  1 ) )
2322breq1d 4403 . . . . . . . . . . . . . . . . . 18  |-  ( ( v  e.  X  /\  w  e.  X )  ->  ( ( v D w )  <  1  <->  if ( v  =  w ,  0 ,  1 )  <  1 ) )
2419ltnri 9587 . . . . . . . . . . . . . . . . . . . . . 22  |-  -.  1  <  1
25 iffalse 3900 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( -.  v  =  w  ->  if ( v  =  w ,  0 ,  1 )  =  1 )
2625breq1d 4403 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( -.  v  =  w  -> 
( if ( v  =  w ,  0 ,  1 )  <  1  <->  1  <  1
) )
2724, 26mtbiri 303 . . . . . . . . . . . . . . . . . . . . 21  |-  ( -.  v  =  w  ->  -.  if ( v  =  w ,  0 ,  1 )  <  1
)
2827con4i 130 . . . . . . . . . . . . . . . . . . . 20  |-  ( if ( v  =  w ,  0 ,  1 )  <  1  -> 
v  =  w )
29 iftrue 3898 . . . . . . . . . . . . . . . . . . . . 21  |-  ( v  =  w  ->  if ( v  =  w ,  0 ,  1 )  =  0 )
30 0lt1 9966 . . . . . . . . . . . . . . . . . . . . 21  |-  0  <  1
3129, 30syl6eqbr 4430 . . . . . . . . . . . . . . . . . . . 20  |-  ( v  =  w  ->  if ( v  =  w ,  0 ,  1 )  <  1 )
3228, 31impbii 188 . . . . . . . . . . . . . . . . . . 19  |-  ( if ( v  =  w ,  0 ,  1 )  <  1  <->  v  =  w )
33 equcom 1734 . . . . . . . . . . . . . . . . . . 19  |-  ( v  =  w  <->  w  =  v )
3432, 33bitri 249 . . . . . . . . . . . . . . . . . 18  |-  ( if ( v  =  w ,  0 ,  1 )  <  1  <->  w  =  v )
3523, 34syl6rbb 262 . . . . . . . . . . . . . . . . 17  |-  ( ( v  e.  X  /\  w  e.  X )  ->  ( w  =  v  <-> 
( v D w )  <  1 ) )
36 simpr 461 . . . . . . . . . . . . . . . . . 18  |-  ( ( v  e.  X  /\  w  e.  X )  ->  w  e.  X )
3736biantrurd 508 . . . . . . . . . . . . . . . . 17  |-  ( ( v  e.  X  /\  w  e.  X )  ->  ( ( v D w )  <  1  <->  ( w  e.  X  /\  ( v D w )  <  1 ) ) )
3835, 37bitrd 253 . . . . . . . . . . . . . . . 16  |-  ( ( v  e.  X  /\  w  e.  X )  ->  ( w  =  v  <-> 
( w  e.  X  /\  ( v D w )  <  1 ) ) )
3938ex 434 . . . . . . . . . . . . . . 15  |-  ( v  e.  X  ->  (
w  e.  X  -> 
( w  =  v  <-> 
( w  e.  X  /\  ( v D w )  <  1 ) ) ) )
4013, 15, 39pm5.21ndd 354 . . . . . . . . . . . . . 14  |-  ( v  e.  X  ->  (
w  =  v  <->  ( w  e.  X  /\  (
v D w )  <  1 ) ) )
4140adantl 466 . . . . . . . . . . . . 13  |-  ( ( X  e.  V  /\  v  e.  X )  ->  ( w  =  v  <-> 
( w  e.  X  /\  ( v D w )  <  1 ) ) )
42 1rp 11099 . . . . . . . . . . . . . . . 16  |-  1  e.  RR+
43 rpxr 11102 . . . . . . . . . . . . . . . 16  |-  ( 1  e.  RR+  ->  1  e. 
RR* )
4442, 43ax-mp 5 . . . . . . . . . . . . . . 15  |-  1  e.  RR*
45 elbl 20088 . . . . . . . . . . . . . . 15  |-  ( ( D  e.  ( *Met `  X )  /\  v  e.  X  /\  1  e.  RR* )  ->  ( w  e.  ( v ( ball `  D
) 1 )  <->  ( w  e.  X  /\  (
v D w )  <  1 ) ) )
4644, 45mp3an3 1304 . . . . . . . . . . . . . 14  |-  ( ( D  e.  ( *Met `  X )  /\  v  e.  X
)  ->  ( w  e.  ( v ( ball `  D ) 1 )  <-> 
( w  e.  X  /\  ( v D w )  <  1 ) ) )
474, 46sylan 471 . . . . . . . . . . . . 13  |-  ( ( X  e.  V  /\  v  e.  X )  ->  ( w  e.  ( v ( ball `  D
) 1 )  <->  ( w  e.  X  /\  (
v D w )  <  1 ) ) )
4841, 47bitr4d 256 . . . . . . . . . . . 12  |-  ( ( X  e.  V  /\  v  e.  X )  ->  ( w  =  v  <-> 
w  e.  ( v ( ball `  D
) 1 ) ) )
4912, 48syl5bb 257 . . . . . . . . . . 11  |-  ( ( X  e.  V  /\  v  e.  X )  ->  ( w  e.  {
v }  <->  w  e.  ( v ( ball `  D ) 1 ) ) )
5049eqrdv 2448 . . . . . . . . . 10  |-  ( ( X  e.  V  /\  v  e.  X )  ->  { v }  =  ( v ( ball `  D ) 1 ) )
51 blelrn 20117 . . . . . . . . . . . 12  |-  ( ( D  e.  ( *Met `  X )  /\  v  e.  X  /\  1  e.  RR* )  ->  ( v ( ball `  D ) 1 )  e.  ran  ( ball `  D ) )
5244, 51mp3an3 1304 . . . . . . . . . . 11  |-  ( ( D  e.  ( *Met `  X )  /\  v  e.  X
)  ->  ( v
( ball `  D )
1 )  e.  ran  ( ball `  D )
)
534, 52sylan 471 . . . . . . . . . 10  |-  ( ( X  e.  V  /\  v  e.  X )  ->  ( v ( ball `  D ) 1 )  e.  ran  ( ball `  D ) )
5450, 53eqeltrd 2539 . . . . . . . . 9  |-  ( ( X  e.  V  /\  v  e.  X )  ->  { v }  e.  ran  ( ball `  D
) )
55 snssi 4118 . . . . . . . . . 10  |-  ( v  e.  u  ->  { v }  C_  u )
56 ssnid 4007 . . . . . . . . . 10  |-  v  e. 
{ v }
5755, 56jctil 537 . . . . . . . . 9  |-  ( v  e.  u  ->  (
v  e.  { v }  /\  { v }  C_  u )
)
58 eleq2 2524 . . . . . . . . . . 11  |-  ( w  =  { v }  ->  ( v  e.  w  <->  v  e.  {
v } ) )
59 sseq1 3478 . . . . . . . . . . 11  |-  ( w  =  { v }  ->  ( w  C_  u 
<->  { v }  C_  u ) )
6058, 59anbi12d 710 . . . . . . . . . 10  |-  ( w  =  { v }  ->  ( ( v  e.  w  /\  w  C_  u )  <->  ( v  e.  { v }  /\  { v }  C_  u
) ) )
6160rspcev 3172 . . . . . . . . 9  |-  ( ( { v }  e.  ran  ( ball `  D
)  /\  ( v  e.  { v }  /\  { v }  C_  u
) )  ->  E. w  e.  ran  ( ball `  D
) ( v  e.  w  /\  w  C_  u ) )
6254, 57, 61syl2an 477 . . . . . . . 8  |-  ( ( ( X  e.  V  /\  v  e.  X
)  /\  v  e.  u )  ->  E. w  e.  ran  ( ball `  D
) ( v  e.  w  /\  w  C_  u ) )
6311, 62sylancom 667 . . . . . . 7  |-  ( ( ( X  e.  V  /\  u  C_  X )  /\  v  e.  u
)  ->  E. w  e.  ran  ( ball `  D
) ( v  e.  w  /\  w  C_  u ) )
6463ralrimiva 2825 . . . . . 6  |-  ( ( X  e.  V  /\  u  C_  X )  ->  A. v  e.  u  E. w  e.  ran  ( ball `  D )
( v  e.  w  /\  w  C_  u ) )
6564ex 434 . . . . 5  |-  ( X  e.  V  ->  (
u  C_  X  ->  A. v  e.  u  E. w  e.  ran  ( ball `  D ) ( v  e.  w  /\  w  C_  u ) ) )
6665pm4.71d 634 . . . 4  |-  ( X  e.  V  ->  (
u  C_  X  <->  ( u  C_  X  /\  A. v  e.  u  E. w  e.  ran  ( ball `  D
) ( v  e.  w  /\  w  C_  u ) ) ) )
677, 66bitr4d 256 . . 3  |-  ( X  e.  V  ->  (
u  e.  ( MetOpen `  D )  <->  u  C_  X
) )
68 selpw 3968 . . 3  |-  ( u  e.  ~P X  <->  u  C_  X
)
6967, 68syl6bbr 263 . 2  |-  ( X  e.  V  ->  (
u  e.  ( MetOpen `  D )  <->  u  e.  ~P X ) )
7069eqrdv 2448 1  |-  ( X  e.  V  ->  ( MetOpen
`  D )  =  ~P X )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1370    e. wcel 1758   A.wral 2795   E.wrex 2796    C_ wss 3429   ifcif 3892   ~Pcpw 3961   {csn 3978   class class class wbr 4393   ran crn 4942   ` cfv 5519  (class class class)co 6193    |-> cmpt2 6195   RRcr 9385   0cc0 9386   1c1 9387   RR*cxr 9521    < clt 9522   RR+crp 11095   *Metcxmt 17919   Metcme 17920   ballcbl 17921   MetOpencmopn 17924
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1952  ax-ext 2430  ax-sep 4514  ax-nul 4522  ax-pow 4571  ax-pr 4632  ax-un 6475  ax-cnex 9442  ax-resscn 9443  ax-1cn 9444  ax-icn 9445  ax-addcl 9446  ax-addrcl 9447  ax-mulcl 9448  ax-mulrcl 9449  ax-mulcom 9450  ax-addass 9451  ax-mulass 9452  ax-distr 9453  ax-i2m1 9454  ax-1ne0 9455  ax-1rid 9456  ax-rnegex 9457  ax-rrecex 9458  ax-cnre 9459  ax-pre-lttri 9460  ax-pre-lttrn 9461  ax-pre-ltadd 9462  ax-pre-mulgt0 9463  ax-pre-sup 9464
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2264  df-mo 2265  df-clab 2437  df-cleq 2443  df-clel 2446  df-nfc 2601  df-ne 2646  df-nel 2647  df-ral 2800  df-rex 2801  df-reu 2802  df-rmo 2803  df-rab 2804  df-v 3073  df-sbc 3288  df-csb 3390  df-dif 3432  df-un 3434  df-in 3436  df-ss 3443  df-pss 3445  df-nul 3739  df-if 3893  df-pw 3963  df-sn 3979  df-pr 3981  df-tp 3983  df-op 3985  df-uni 4193  df-iun 4274  df-br 4394  df-opab 4452  df-mpt 4453  df-tr 4487  df-eprel 4733  df-id 4737  df-po 4742  df-so 4743  df-fr 4780  df-we 4782  df-ord 4823  df-on 4824  df-lim 4825  df-suc 4826  df-xp 4947  df-rel 4948  df-cnv 4949  df-co 4950  df-dm 4951  df-rn 4952  df-res 4953  df-ima 4954  df-iota 5482  df-fun 5521  df-fn 5522  df-f 5523  df-f1 5524  df-fo 5525  df-f1o 5526  df-fv 5527  df-riota 6154  df-ov 6196  df-oprab 6197  df-mpt2 6198  df-om 6580  df-1st 6680  df-2nd 6681  df-recs 6935  df-rdg 6969  df-er 7204  df-map 7319  df-en 7414  df-dom 7415  df-sdom 7416  df-sup 7795  df-pnf 9524  df-mnf 9525  df-xr 9526  df-ltxr 9527  df-le 9528  df-sub 9701  df-neg 9702  df-div 10098  df-nn 10427  df-2 10484  df-n0 10684  df-z 10751  df-uz 10966  df-q 11058  df-rp 11096  df-xneg 11193  df-xadd 11194  df-xmul 11195  df-topgen 14493  df-psmet 17927  df-xmet 17928  df-met 17929  df-bl 17930  df-mopn 17931  df-bases 18630
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator