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

Theorem repiecef 16699
Description: Piecewise definition on the reals yields a function. The function agrees with  F and  G on their respective parts of the real line; see repiecele0 16697 and repiecege0 16698. From an online post by James E Hanson. The construction was published in Martín Hötzel Escardó, "Effective and sequential definition by cases on the reals via infinite signed-digit numerals", Electronic Notes in Theoretical Computer Science 10 (1998), page 2, https://martinescardo.github.io/papers/lexnew.pdf. 16698 (Contributed by Jim Kingdon, 27-Apr-2026.)
Hypotheses
Ref Expression
repiece.f  |-  ( ph  ->  F : ( -oo (,] 0 ) --> RR )
repiece.g  |-  ( ph  ->  G : ( 0 [,) +oo ) --> RR )
repiece.0  |-  ( ph  ->  ( F `  0
)  =  ( G `
 0 ) )
repiece.h  |-  H  =  ( x  e.  RR  |->  ( ( ( F `
inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) ) )
Assertion
Ref Expression
repiecef  |-  ( ph  ->  H : RR --> RR )
Distinct variable groups:    x, F    x, G
Allowed substitution hints:    ph( x)    H( x)

Proof of Theorem repiecef
Dummy variable  y is distinct from all other variables.
StepHypRef Expression
1 repiece.f . . . . 5  |-  ( ph  ->  F : ( -oo (,] 0 ) --> RR )
2 repiece.g . . . . 5  |-  ( ph  ->  G : ( 0 [,) +oo ) --> RR )
3 repiece.0 . . . . 5  |-  ( ph  ->  ( F `  0
)  =  ( G `
 0 ) )
4 repiece.h . . . . 5  |-  H  =  ( x  e.  RR  |->  ( ( ( F `
inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) ) )
51, 2, 3, 4repiecelem 16696 . . . 4  |-  ( (
ph  /\  y  e.  RR )  ->  ( ( ( F ` inf ( { y ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 ) )  e.  RR )
65ralrimiva 2604 . . 3  |-  ( ph  ->  A. y  e.  RR  ( ( ( F `
inf ( { y ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) )  e.  RR )
7 preq1 3749 . . . . . . . . 9  |-  ( y  =  x  ->  { y ,  0 }  =  { x ,  0 } )
87infeq1d 7216 . . . . . . . 8  |-  ( y  =  x  -> inf ( { y ,  0 } ,  RR ,  <  )  = inf ( { x ,  0 } ,  RR ,  <  ) )
98fveq2d 5646 . . . . . . 7  |-  ( y  =  x  ->  ( F ` inf ( { y ,  0 } ,  RR ,  <  ) )  =  ( F ` inf ( { x ,  0 } ,  RR ,  <  ) ) )
107supeq1d 7191 . . . . . . . 8  |-  ( y  =  x  ->  sup ( { y ,  0 } ,  RR ,  <  )  =  sup ( { x ,  0 } ,  RR ,  <  ) )
1110fveq2d 5646 . . . . . . 7  |-  ( y  =  x  ->  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) )  =  ( G `
 sup ( { x ,  0 } ,  RR ,  <  ) ) )
129, 11oveq12d 6041 . . . . . 6  |-  ( y  =  x  ->  (
( F ` inf ( { y ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) ) )  =  ( ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) ) )
1312oveq1d 6038 . . . . 5  |-  ( y  =  x  ->  (
( ( F ` inf ( { y ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 ) )  =  ( ( ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 ) ) )
1413eleq1d 2299 . . . 4  |-  ( y  =  x  ->  (
( ( ( F `
inf ( { y ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) )  e.  RR  <->  ( ( ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) )  e.  RR ) )
1514cbvralv 2766 . . 3  |-  ( A. y  e.  RR  (
( ( F ` inf ( { y ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { y ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 ) )  e.  RR  <->  A. x  e.  RR  ( ( ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) )  e.  RR )
166, 15sylib 122 . 2  |-  ( ph  ->  A. x  e.  RR  ( ( ( F `
inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) )  e.  RR )
174fmpt 5800 . 2  |-  ( A. x  e.  RR  (
( ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 ) )  e.  RR  <->  H : RR
--> RR )
1816, 17sylib 122 1  |-  ( ph  ->  H : RR --> RR )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1397    e. wcel 2201   A.wral 2509   {cpr 3671    |-> cmpt 4151   -->wf 5324   ` cfv 5328  (class class class)co 6023   supcsup 7186  infcinf 7187   RRcr 8036   0cc0 8037    + caddc 8040   +oocpnf 8216   -oocmnf 8217    < clt 8219    - cmin 8355   (,]cioc 10129   [,)cico 10130
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 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-13 2203  ax-14 2204  ax-ext 2212  ax-coll 4205  ax-sep 4208  ax-nul 4216  ax-pow 4266  ax-pr 4301  ax-un 4532  ax-setind 4637  ax-iinf 4688  ax-cnex 8128  ax-resscn 8129  ax-1cn 8130  ax-1re 8131  ax-icn 8132  ax-addcl 8133  ax-addrcl 8134  ax-mulcl 8135  ax-mulrcl 8136  ax-addcom 8137  ax-mulcom 8138  ax-addass 8139  ax-mulass 8140  ax-distr 8141  ax-i2m1 8142  ax-0lt1 8143  ax-1rid 8144  ax-0id 8145  ax-rnegex 8146  ax-precex 8147  ax-cnre 8148  ax-pre-ltirr 8149  ax-pre-ltwlin 8150  ax-pre-lttrn 8151  ax-pre-apti 8152  ax-pre-ltadd 8153  ax-pre-mulgt0 8154  ax-pre-mulext 8155  ax-arch 8156  ax-caucvg 8157
This theorem depends on definitions:  df-bi 117  df-dc 842  df-3or 1005  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1810  df-eu 2081  df-mo 2082  df-clab 2217  df-cleq 2223  df-clel 2226  df-nfc 2362  df-ne 2402  df-nel 2497  df-ral 2514  df-rex 2515  df-reu 2516  df-rmo 2517  df-rab 2518  df-v 2803  df-sbc 3031  df-csb 3127  df-dif 3201  df-un 3203  df-in 3205  df-ss 3212  df-nul 3494  df-if 3605  df-pw 3655  df-sn 3676  df-pr 3677  df-op 3679  df-uni 3895  df-int 3930  df-iun 3973  df-br 4090  df-opab 4152  df-mpt 4153  df-tr 4189  df-id 4392  df-po 4395  df-iso 4396  df-iord 4465  df-on 4467  df-ilim 4468  df-suc 4470  df-iom 4691  df-xp 4733  df-rel 4734  df-cnv 4735  df-co 4736  df-dm 4737  df-rn 4738  df-res 4739  df-ima 4740  df-iota 5288  df-fun 5330  df-fn 5331  df-f 5332  df-f1 5333  df-fo 5334  df-f1o 5335  df-fv 5336  df-isom 5337  df-riota 5976  df-ov 6026  df-oprab 6027  df-mpo 6028  df-1st 6308  df-2nd 6309  df-recs 6476  df-frec 6562  df-sup 7188  df-inf 7189  df-pnf 8221  df-mnf 8222  df-xr 8223  df-ltxr 8224  df-le 8225  df-sub 8357  df-neg 8358  df-reap 8760  df-ap 8767  df-div 8858  df-inn 9149  df-2 9207  df-3 9208  df-4 9209  df-n0 9408  df-z 9485  df-uz 9761  df-rp 9894  df-ioc 10133  df-ico 10134  df-seqfrec 10716  df-exp 10807  df-cj 11425  df-re 11426  df-im 11427  df-rsqrt 11581  df-abs 11582
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator