Users' Mathboxes Mathbox for Jim Kingdon < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >   Mathboxes  >  dceqnconst Unicode version

Theorem dceqnconst 16114
Description: Decidability of real number equality implies the existence of a certain non-constant function from real numbers to integers. Variation of Exercise 11.6(i) of [HoTT], p. (varies). See redcwlpo 16109 for more discussion of decidability of real number equality. (Contributed by BJ and Jim Kingdon, 24-Jun-2024.) (Revised by Jim Kingdon, 23-Jul-2024.)
Assertion
Ref Expression
dceqnconst  |-  ( A. x  e.  RR DECID  x  =  0  ->  E. f ( f : RR --> ZZ  /\  ( f `  0
)  =  0  /\ 
A. x  e.  RR+  ( f `  x
)  =/=  0 ) )
Distinct variable group:    x, f

Proof of Theorem dceqnconst
Dummy variables  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 reex 8072 . . . 4  |-  RR  e.  _V
21mptex 5820 . . 3  |-  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  e.  _V
32a1i 9 . 2  |-  ( A. x  e.  RR DECID  x  =  0  ->  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  e.  _V )
4 0zd 9397 . . . . 5  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  y  e.  RR )  ->  0  e.  ZZ )
5 1zzd 9412 . . . . 5  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  y  e.  RR )  ->  1  e.  ZZ )
6 eqeq1 2213 . . . . . . 7  |-  ( x  =  y  ->  (
x  =  0  <->  y  =  0 ) )
76dcbid 840 . . . . . 6  |-  ( x  =  y  ->  (DECID  x  =  0  <-> DECID  y  =  0
) )
87rspccva 2878 . . . . 5  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  y  e.  RR )  -> DECID  y  =  0
)
94, 5, 8ifcldcd 3610 . . . 4  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  y  e.  RR )  ->  if ( y  =  0 ,  0 ,  1 )  e.  ZZ )
109fmpttd 5745 . . 3  |-  ( A. x  e.  RR DECID  x  =  0  ->  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) : RR --> ZZ )
11 0re 8085 . . . . . 6  |-  0  e.  RR
12 0zd 9397 . . . . . . . 8  |-  ( T. 
->  0  e.  ZZ )
13 1zzd 9412 . . . . . . . 8  |-  ( T. 
->  1  e.  ZZ )
14 eqid 2206 . . . . . . . . . . 11  |-  0  =  0
1514orci 733 . . . . . . . . . 10  |-  ( 0  =  0  \/  -.  0  =  0 )
16 df-dc 837 . . . . . . . . . 10  |-  (DECID  0  =  0  <->  ( 0  =  0  \/  -.  0  =  0 ) )
1715, 16mpbir 146 . . . . . . . . 9  |- DECID  0  =  0
1817a1i 9 . . . . . . . 8  |-  ( T. 
-> DECID  0  =  0 )
1912, 13, 18ifcldcd 3610 . . . . . . 7  |-  ( T. 
->  if ( 0  =  0 ,  0 ,  1 )  e.  ZZ )
2019mptru 1382 . . . . . 6  |-  if ( 0  =  0 ,  0 ,  1 )  e.  ZZ
21 eqeq1 2213 . . . . . . . 8  |-  ( y  =  0  ->  (
y  =  0  <->  0  =  0 ) )
2221ifbid 3594 . . . . . . 7  |-  ( y  =  0  ->  if ( y  =  0 ,  0 ,  1 )  =  if ( 0  =  0 ,  0 ,  1 ) )
23 eqid 2206 . . . . . . 7  |-  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )
2422, 23fvmptg 5665 . . . . . 6  |-  ( ( 0  e.  RR  /\  if ( 0  =  0 ,  0 ,  1 )  e.  ZZ )  ->  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  0 )  =  if ( 0  =  0 ,  0 ,  1 ) )
2511, 20, 24mp2an 426 . . . . 5  |-  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  0
)  =  if ( 0  =  0 ,  0 ,  1 )
2614iftruei 3579 . . . . 5  |-  if ( 0  =  0 ,  0 ,  1 )  =  0
2725, 26eqtri 2227 . . . 4  |-  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  0
)  =  0
2827a1i 9 . . 3  |-  ( A. x  e.  RR DECID  x  =  0  ->  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 0 )  =  0 )
29 1ne0 9117 . . . . . 6  |-  1  =/=  0
30 eqeq1 2213 . . . . . . . . . 10  |-  ( y  =  z  ->  (
y  =  0  <->  z  =  0 ) )
3130ifbid 3594 . . . . . . . . 9  |-  ( y  =  z  ->  if ( y  =  0 ,  0 ,  1 )  =  if ( z  =  0 ,  0 ,  1 ) )
32 rpre 9795 . . . . . . . . . 10  |-  ( z  e.  RR+  ->  z  e.  RR )
3332adantl 277 . . . . . . . . 9  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  z  e.  RR )
34 0zd 9397 . . . . . . . . . 10  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  0  e.  ZZ )
35 1zzd 9412 . . . . . . . . . 10  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  1  e.  ZZ )
36 eqeq1 2213 . . . . . . . . . . . 12  |-  ( x  =  z  ->  (
x  =  0  <->  z  =  0 ) )
3736dcbid 840 . . . . . . . . . . 11  |-  ( x  =  z  ->  (DECID  x  =  0  <-> DECID  z  =  0
) )
38 simpl 109 . . . . . . . . . . 11  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  A. x  e.  RR DECID  x  =  0 )
3937, 38, 33rspcdva 2884 . . . . . . . . . 10  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  -> DECID  z  =  0
)
4034, 35, 39ifcldcd 3610 . . . . . . . . 9  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  if ( z  =  0 ,  0 ,  1 )  e.  ZZ )
4123, 31, 33, 40fvmptd3 5683 . . . . . . . 8  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  (
( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  z
)  =  if ( z  =  0 ,  0 ,  1 ) )
42 rpne0 9804 . . . . . . . . . . 11  |-  ( z  e.  RR+  ->  z  =/=  0 )
4342neneqd 2398 . . . . . . . . . 10  |-  ( z  e.  RR+  ->  -.  z  =  0 )
4443iffalsed 3583 . . . . . . . . 9  |-  ( z  e.  RR+  ->  if ( z  =  0 ,  0 ,  1 )  =  1 )
4544adantl 277 . . . . . . . 8  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  if ( z  =  0 ,  0 ,  1 )  =  1 )
4641, 45eqtrd 2239 . . . . . . 7  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  (
( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  z
)  =  1 )
4746neeq1d 2395 . . . . . 6  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  (
( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 z )  =/=  0  <->  1  =/=  0
) )
4829, 47mpbiri 168 . . . . 5  |-  ( ( A. x  e.  RR DECID  x  =  0  /\  z  e.  RR+ )  ->  (
( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  z
)  =/=  0 )
4948ralrimiva 2580 . . . 4  |-  ( A. x  e.  RR DECID  x  =  0  ->  A. z  e.  RR+  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 z )  =/=  0 )
50 fveq2 5586 . . . . . 6  |-  ( z  =  x  ->  (
( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  z
)  =  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x
) )
5150neeq1d 2395 . . . . 5  |-  ( z  =  x  ->  (
( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 z )  =/=  0  <->  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x )  =/=  0 ) )
5251cbvralv 2739 . . . 4  |-  ( A. z  e.  RR+  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  z
)  =/=  0  <->  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x
)  =/=  0 )
5349, 52sylib 122 . . 3  |-  ( A. x  e.  RR DECID  x  =  0  ->  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 x )  =/=  0 )
5410, 28, 533jca 1180 . 2  |-  ( A. x  e.  RR DECID  x  =  0  ->  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) : RR --> ZZ  /\  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 0 )  =  0  /\  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x )  =/=  0 ) )
55 feq1 5415 . . 3  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( f : RR --> ZZ  <->  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) : RR --> ZZ ) )
56 fveq1 5585 . . . 4  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( f ` 
0 )  =  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  0
) )
5756eqeq1d 2215 . . 3  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( ( f `
 0 )  =  0  <->  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  0 )  =  0 ) )
58 fveq1 5585 . . . . 5  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( f `  x )  =  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x
) )
5958neeq1d 2395 . . . 4  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( ( f `
 x )  =/=  0  <->  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x )  =/=  0 ) )
6059ralbidv 2507 . . 3  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( A. x  e.  RR+  ( f `  x )  =/=  0  <->  A. x  e.  RR+  (
( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x
)  =/=  0 ) )
6155, 57, 603anbi123d 1325 . 2  |-  ( f  =  ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) )  ->  ( ( f : RR --> ZZ  /\  ( f `  0
)  =  0  /\ 
A. x  e.  RR+  ( f `  x
)  =/=  0 )  <-> 
( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) : RR --> ZZ  /\  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `
 0 )  =  0  /\  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y  =  0 ,  0 ,  1 ) ) `  x )  =/=  0 ) ) )
623, 54, 61elabd 2920 1  |-  ( A. x  e.  RR DECID  x  =  0  ->  E. f ( f : RR --> ZZ  /\  ( f `  0
)  =  0  /\ 
A. x  e.  RR+  ( f `  x
)  =/=  0 ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 104    \/ wo 710  DECID wdc 836    /\ w3a 981    = wceq 1373   T. wtru 1374   E.wex 1516    e. wcel 2177    =/= wne 2377   A.wral 2485   _Vcvv 2773   ifcif 3573    |-> cmpt 4110   -->wf 5273   ` cfv 5277   RRcr 7937   0cc0 7938   1c1 7939   ZZcz 9385   RR+crp 9788
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 711  ax-5 1471  ax-7 1472  ax-gen 1473  ax-ie1 1517  ax-ie2 1518  ax-8 1528  ax-10 1529  ax-11 1530  ax-i12 1531  ax-bndl 1533  ax-4 1534  ax-17 1550  ax-i9 1554  ax-ial 1558  ax-i5r 1559  ax-13 2179  ax-14 2180  ax-ext 2188  ax-coll 4164  ax-sep 4167  ax-pow 4223  ax-pr 4258  ax-un 4485  ax-setind 4590  ax-cnex 8029  ax-resscn 8030  ax-1cn 8031  ax-1re 8032  ax-icn 8033  ax-addcl 8034  ax-addrcl 8035  ax-mulcl 8036  ax-addcom 8038  ax-addass 8040  ax-distr 8042  ax-i2m1 8043  ax-0lt1 8044  ax-0id 8046  ax-rnegex 8047  ax-cnre 8049  ax-pre-ltirr 8050  ax-pre-ltwlin 8051  ax-pre-lttrn 8052  ax-pre-ltadd 8054
This theorem depends on definitions:  df-bi 117  df-dc 837  df-3or 982  df-3an 983  df-tru 1376  df-fal 1379  df-nf 1485  df-sb 1787  df-eu 2058  df-mo 2059  df-clab 2193  df-cleq 2199  df-clel 2202  df-nfc 2338  df-ne 2378  df-nel 2473  df-ral 2490  df-rex 2491  df-reu 2492  df-rab 2494  df-v 2775  df-sbc 3001  df-csb 3096  df-dif 3170  df-un 3172  df-in 3174  df-ss 3181  df-if 3574  df-pw 3620  df-sn 3641  df-pr 3642  df-op 3644  df-uni 3854  df-int 3889  df-iun 3932  df-br 4049  df-opab 4111  df-mpt 4112  df-id 4345  df-xp 4686  df-rel 4687  df-cnv 4688  df-co 4689  df-dm 4690  df-rn 4691  df-res 4692  df-ima 4693  df-iota 5238  df-fun 5279  df-fn 5280  df-f 5281  df-f1 5282  df-fo 5283  df-f1o 5284  df-fv 5285  df-riota 5909  df-ov 5957  df-oprab 5958  df-mpo 5959  df-pnf 8122  df-mnf 8123  df-xr 8124  df-ltxr 8125  df-le 8126  df-sub 8258  df-neg 8259  df-inn 9050  df-z 9386  df-rp 9789
This theorem is referenced by:  dcapnconstALT  16116
  Copyright terms: Public domain W3C validator