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

Theorem dcapnconst 15551
Description: Decidability of real number apartness 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 trilpo 15533 for more discussion of decidability of real number apartness.

This is a weaker form of dceqnconst 15550 and in fact this theorem can be proved using dceqnconst 15550 as shown at dcapnconstALT 15552. (Contributed by BJ and Jim Kingdon, 24-Jun-2024.)

Assertion
Ref Expression
dcapnconst  |-  ( 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 dcapnconst
Dummy variables  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 reex 8006 . . . 4  |-  RR  e.  _V
21mptex 5784 . . 3  |-  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  e.  _V
32a1i 9 . 2  |-  ( A. x  e.  RR DECID  x #  0  ->  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  e.  _V )
4 1zzd 9344 . . . . 5  |-  ( ( A. x  e.  RR DECID  x #  0  /\  y  e.  RR )  ->  1  e.  ZZ )
5 0zd 9329 . . . . 5  |-  ( ( A. x  e.  RR DECID  x #  0  /\  y  e.  RR )  ->  0  e.  ZZ )
6 breq1 4032 . . . . . . 7  |-  ( x  =  y  ->  (
x #  0  <->  y #  0
) )
76dcbid 839 . . . . . 6  |-  ( x  =  y  ->  (DECID  x #  0 
<-> DECID  y #  0 ) )
87rspccva 2863 . . . . 5  |-  ( ( A. x  e.  RR DECID  x #  0  /\  y  e.  RR )  -> DECID 
y #  0 )
94, 5, 8ifcldcd 3593 . . . 4  |-  ( ( A. x  e.  RR DECID  x #  0  /\  y  e.  RR )  ->  if ( y #  0 ,  1 ,  0 )  e.  ZZ )
109fmpttd 5713 . . 3  |-  ( A. x  e.  RR DECID  x #  0  ->  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) : RR --> ZZ )
11 0re 8019 . . . . . 6  |-  0  e.  RR
12 1zzd 9344 . . . . . . . 8  |-  ( T. 
->  1  e.  ZZ )
13 0zd 9329 . . . . . . . 8  |-  ( T. 
->  0  e.  ZZ )
14 0cn 8011 . . . . . . . . . . . 12  |-  0  e.  CC
15 apirr 8624 . . . . . . . . . . . 12  |-  ( 0  e.  CC  ->  -.  0 #  0 )
1614, 15ax-mp 5 . . . . . . . . . . 11  |-  -.  0 #  0
1716olci 733 . . . . . . . . . 10  |-  ( 0 #  0  \/  -.  0 #  0 )
18 df-dc 836 . . . . . . . . . 10  |-  (DECID  0 #  0  <-> 
( 0 #  0  \/ 
-.  0 #  0 ) )
1917, 18mpbir 146 . . . . . . . . 9  |- DECID  0 #  0
2019a1i 9 . . . . . . . 8  |-  ( T. 
-> DECID  0 #  0 )
2112, 13, 20ifcldcd 3593 . . . . . . 7  |-  ( T. 
->  if ( 0 #  0 ,  1 ,  0 )  e.  ZZ )
2221mptru 1373 . . . . . 6  |-  if ( 0 #  0 ,  1 ,  0 )  e.  ZZ
23 breq1 4032 . . . . . . . 8  |-  ( y  =  0  ->  (
y #  0  <->  0 #  0
) )
2423ifbid 3578 . . . . . . 7  |-  ( y  =  0  ->  if ( y #  0 , 
1 ,  0 )  =  if ( 0 #  0 ,  1 ,  0 ) )
25 eqid 2193 . . . . . . 7  |-  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )
2624, 25fvmptg 5633 . . . . . 6  |-  ( ( 0  e.  RR  /\  if ( 0 #  0 ,  1 ,  0 )  e.  ZZ )  -> 
( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) ` 
0 )  =  if ( 0 #  0 ,  1 ,  0 ) )
2711, 22, 26mp2an 426 . . . . 5  |-  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  0 )  =  if ( 0 #  0 ,  1 ,  0 )
2816iffalsei 3566 . . . . 5  |-  if ( 0 #  0 ,  1 ,  0 )  =  0
2927, 28eqtri 2214 . . . 4  |-  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  0 )  =  0
3029a1i 9 . . 3  |-  ( A. x  e.  RR DECID  x #  0  ->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  0 )  =  0 )
31 1ne0 9050 . . . . . 6  |-  1  =/=  0
32 breq1 4032 . . . . . . . . . 10  |-  ( y  =  z  ->  (
y #  0  <->  z #  0
) )
3332ifbid 3578 . . . . . . . . 9  |-  ( y  =  z  ->  if ( y #  0 , 
1 ,  0 )  =  if ( z #  0 ,  1 ,  0 ) )
34 rpre 9726 . . . . . . . . . 10  |-  ( z  e.  RR+  ->  z  e.  RR )
3534adantl 277 . . . . . . . . 9  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  z  e.  RR )
36 1zzd 9344 . . . . . . . . . 10  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  1  e.  ZZ )
37 0zd 9329 . . . . . . . . . 10  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  0  e.  ZZ )
38 breq1 4032 . . . . . . . . . . . 12  |-  ( x  =  z  ->  (
x #  0  <->  z #  0
) )
3938dcbid 839 . . . . . . . . . . 11  |-  ( x  =  z  ->  (DECID  x #  0 
<-> DECID  z #  0 ) )
40 simpl 109 . . . . . . . . . . 11  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  A. x  e.  RR DECID  x #  0 )
4139, 40, 35rspcdva 2869 . . . . . . . . . 10  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  -> DECID 
z #  0 )
4236, 37, 41ifcldcd 3593 . . . . . . . . 9  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  if ( z #  0 ,  1 ,  0 )  e.  ZZ )
4325, 33, 35, 42fvmptd3 5651 . . . . . . . 8  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `
 z )  =  if ( z #  0 ,  1 ,  0 ) )
44 rpap0 9736 . . . . . . . . . 10  |-  ( z  e.  RR+  ->  z #  0 )
4544iftrued 3564 . . . . . . . . 9  |-  ( z  e.  RR+  ->  if ( z #  0 ,  1 ,  0 )  =  1 )
4645adantl 277 . . . . . . . 8  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  if ( z #  0 ,  1 ,  0 )  =  1 )
4743, 46eqtrd 2226 . . . . . . 7  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `
 z )  =  1 )
4847neeq1d 2382 . . . . . 6  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  ( ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  z )  =/=  0  <->  1  =/=  0 ) )
4931, 48mpbiri 168 . . . . 5  |-  ( ( A. x  e.  RR DECID  x #  0  /\  z  e.  RR+ )  ->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `
 z )  =/=  0 )
5049ralrimiva 2567 . . . 4  |-  ( A. x  e.  RR DECID  x #  0  ->  A. z  e.  RR+  (
( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  z )  =/=  0 )
51 fveq2 5554 . . . . . 6  |-  ( z  =  x  ->  (
( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  z )  =  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `
 x ) )
5251neeq1d 2382 . . . . 5  |-  ( z  =  x  ->  (
( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  z )  =/=  0  <->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x )  =/=  0 ) )
5352cbvralv 2726 . . . 4  |-  ( A. z  e.  RR+  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  z )  =/=  0  <->  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `
 x )  =/=  0 )
5450, 53sylib 122 . . 3  |-  ( A. x  e.  RR DECID  x #  0  ->  A. x  e.  RR+  (
( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x )  =/=  0 )
5510, 30, 543jca 1179 . 2  |-  ( A. x  e.  RR DECID  x #  0  ->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) : RR --> ZZ  /\  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) ` 
0 )  =  0  /\  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x )  =/=  0
) )
56 feq1 5386 . . 3  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( f : RR --> ZZ 
<->  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) : RR --> ZZ ) )
57 fveq1 5553 . . . 4  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( f `  0
)  =  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  0 ) )
5857eqeq1d 2202 . . 3  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( ( f ` 
0 )  =  0  <-> 
( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) ` 
0 )  =  0 ) )
59 fveq1 5553 . . . . 5  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( f `  x
)  =  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x ) )
6059neeq1d 2382 . . . 4  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( ( f `  x )  =/=  0  <->  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x )  =/=  0 ) )
6160ralbidv 2494 . . 3  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( A. x  e.  RR+  ( f `  x
)  =/=  0  <->  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x )  =/=  0 ) )
6256, 58, 613anbi123d 1323 . 2  |-  ( f  =  ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) )  -> 
( ( f : RR --> ZZ  /\  (
f `  0 )  =  0  /\  A. x  e.  RR+  ( f `
 x )  =/=  0 )  <->  ( (
y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) : RR --> ZZ  /\  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) ` 
0 )  =  0  /\  A. x  e.  RR+  ( ( y  e.  RR  |->  if ( y #  0 ,  1 ,  0 ) ) `  x )  =/=  0
) ) )
633, 55, 62elabd 2905 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 709  DECID wdc 835    /\ w3a 980    = wceq 1364   T. wtru 1365   E.wex 1503    e. wcel 2164    =/= wne 2364   A.wral 2472   _Vcvv 2760   ifcif 3557   class class class wbr 4029    |-> cmpt 4090   -->wf 5250   ` cfv 5254   CCcc 7870   RRcr 7871   0cc0 7872   1c1 7873   # cap 8600   ZZcz 9317   RR+crp 9719
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 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2166  ax-14 2167  ax-ext 2175  ax-coll 4144  ax-sep 4147  ax-pow 4203  ax-pr 4238  ax-un 4464  ax-setind 4569  ax-cnex 7963  ax-resscn 7964  ax-1cn 7965  ax-1re 7966  ax-icn 7967  ax-addcl 7968  ax-addrcl 7969  ax-mulcl 7970  ax-mulrcl 7971  ax-addcom 7972  ax-mulcom 7973  ax-addass 7974  ax-mulass 7975  ax-distr 7976  ax-i2m1 7977  ax-0lt1 7978  ax-1rid 7979  ax-0id 7980  ax-rnegex 7981  ax-precex 7982  ax-cnre 7983  ax-pre-ltirr 7984  ax-pre-ltwlin 7985  ax-pre-lttrn 7986  ax-pre-apti 7987  ax-pre-ltadd 7988  ax-pre-mulgt0 7989
This theorem depends on definitions:  df-bi 117  df-dc 836  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2045  df-mo 2046  df-clab 2180  df-cleq 2186  df-clel 2189  df-nfc 2325  df-ne 2365  df-nel 2460  df-ral 2477  df-rex 2478  df-reu 2479  df-rab 2481  df-v 2762  df-sbc 2986  df-csb 3081  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-if 3558  df-pw 3603  df-sn 3624  df-pr 3625  df-op 3627  df-uni 3836  df-int 3871  df-iun 3914  df-br 4030  df-opab 4091  df-mpt 4092  df-id 4324  df-xp 4665  df-rel 4666  df-cnv 4667  df-co 4668  df-dm 4669  df-rn 4670  df-res 4671  df-ima 4672  df-iota 5215  df-fun 5256  df-fn 5257  df-f 5258  df-f1 5259  df-fo 5260  df-f1o 5261  df-fv 5262  df-riota 5873  df-ov 5921  df-oprab 5922  df-mpo 5923  df-pnf 8056  df-mnf 8057  df-xr 8058  df-ltxr 8059  df-le 8060  df-sub 8192  df-neg 8193  df-reap 8594  df-ap 8601  df-inn 8983  df-z 9318  df-rp 9720
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator