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

Theorem repiecele0 17087
Description: Piecewise definition on the reals agrees with the nonpositive part of the definition. See repiecef 17089 for more on this construction. (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
repiecele0  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( H `  A )  =  ( F `  A ) )
Distinct variable groups:    x, A    x, F    x, G
Allowed substitution hints:    ph( x)    H( x)

Proof of Theorem repiecele0
StepHypRef Expression
1 repiece.h . . 3  |-  H  =  ( x  e.  RR  |->  ( ( ( F `
inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F ` 
0 ) ) )
2 preq1 3788 . . . . . . 7  |-  ( x  =  A  ->  { x ,  0 }  =  { A ,  0 } )
32infeq1d 7352 . . . . . 6  |-  ( x  =  A  -> inf ( { x ,  0 } ,  RR ,  <  )  = inf ( { A ,  0 } ,  RR ,  <  ) )
43fveq2d 5699 . . . . 5  |-  ( x  =  A  ->  ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  =  ( F ` inf ( { A ,  0 } ,  RR ,  <  ) ) )
52supeq1d 7327 . . . . . 6  |-  ( x  =  A  ->  sup ( { x ,  0 } ,  RR ,  <  )  =  sup ( { A ,  0 } ,  RR ,  <  ) )
65fveq2d 5699 . . . . 5  |-  ( x  =  A  ->  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) )  =  ( G `
 sup ( { A ,  0 } ,  RR ,  <  ) ) )
74, 6oveq12d 6103 . . . 4  |-  ( x  =  A  ->  (
( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  =  ( ( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { A ,  0 } ,  RR ,  <  ) ) ) )
87oveq1d 6100 . . 3  |-  ( x  =  A  ->  (
( ( F ` inf ( { x ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { x ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 ) )  =  ( ( ( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `
 sup ( { A ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 )
) )
9 simp2 1029 . . 3  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  A  e.  RR )
10 repiece.f . . . . 5  |-  ( ph  ->  F : ( -oo (,] 0 ) --> RR )
11 repiece.g . . . . 5  |-  ( ph  ->  G : ( 0 [,) +oo ) --> RR )
12 repiece.0 . . . . 5  |-  ( ph  ->  ( F `  0
)  =  ( G `
 0 ) )
1310, 11, 12, 1repiecelem 17086 . . . 4  |-  ( (
ph  /\  A  e.  RR )  ->  ( ( ( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `
 sup ( { A ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 )
)  e.  RR )
14133adant3 1048 . . 3  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( (
( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `
 sup ( { A ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 )
)  e.  RR )
151, 8, 9, 14fvmptd3 5799 . 2  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( H `  A )  =  ( ( ( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { A ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 )
) )
16 simp3 1030 . . . . . 6  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  A  <_  0 )
17 0re 8326 . . . . . . 7  |-  0  e.  RR
18 mingeb 12010 . . . . . . 7  |-  ( ( A  e.  RR  /\  0  e.  RR )  ->  ( A  <_  0  <-> inf ( { A ,  0 } ,  RR ,  <  )  =  A ) )
199, 17, 18sylancl 417 . . . . . 6  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( A  <_  0  <-> inf ( { A , 
0 } ,  RR ,  <  )  =  A ) )
2016, 19mpbid 147 . . . . 5  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  -> inf ( { A ,  0 } ,  RR ,  <  )  =  A )
2120fveq2d 5699 . . . 4  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( F ` inf ( { A , 
0 } ,  RR ,  <  ) )  =  ( F `  A
) )
22 maxleb 11984 . . . . . . . 8  |-  ( ( A  e.  RR  /\  0  e.  RR )  ->  ( A  <_  0  <->  sup ( { A , 
0 } ,  RR ,  <  )  =  0 ) )
239, 17, 22sylancl 417 . . . . . . 7  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( A  <_  0  <->  sup ( { A ,  0 } ,  RR ,  <  )  =  0 ) )
2416, 23mpbid 147 . . . . . 6  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  sup ( { A ,  0 } ,  RR ,  <  )  =  0 )
2524fveq2d 5699 . . . . 5  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( G `  sup ( { A ,  0 } ,  RR ,  <  ) )  =  ( G ` 
0 ) )
26123ad2ant1 1049 . . . . 5  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( F `  0 )  =  ( G `  0
) )
2725, 26eqtr4d 2274 . . . 4  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( G `  sup ( { A ,  0 } ,  RR ,  <  ) )  =  ( F ` 
0 ) )
2821, 27oveq12d 6103 . . 3  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( ( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `  sup ( { A , 
0 } ,  RR ,  <  ) ) )  =  ( ( F `
 A )  +  ( F `  0
) ) )
2928oveq1d 6100 . 2  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( (
( F ` inf ( { A ,  0 } ,  RR ,  <  ) )  +  ( G `
 sup ( { A ,  0 } ,  RR ,  <  ) ) )  -  ( F `  0 )
)  =  ( ( ( F `  A
)  +  ( F `
 0 ) )  -  ( F ` 
0 ) ) )
30103ad2ant1 1049 . . . . 5  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  F :
( -oo (,] 0 ) --> RR )
31 mnflt 10187 . . . . . . 7  |-  ( A  e.  RR  -> -oo  <  A )
329, 31syl 14 . . . . . 6  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  -> -oo  <  A
)
33 mnfxr 8382 . . . . . . 7  |- -oo  e.  RR*
34 elioc2 10340 . . . . . . 7  |-  ( ( -oo  e.  RR*  /\  0  e.  RR )  ->  ( A  e.  ( -oo (,] 0 )  <->  ( A  e.  RR  /\ -oo  <  A  /\  A  <_  0
) ) )
3533, 17, 34mp2an 430 . . . . . 6  |-  ( A  e.  ( -oo (,] 0 )  <->  ( A  e.  RR  /\ -oo  <  A  /\  A  <_  0
) )
369, 32, 16, 35syl3anbrc 1212 . . . . 5  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  A  e.  ( -oo (,] 0 ) )
3730, 36ffvelcdmd 5844 . . . 4  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( F `  A )  e.  RR )
3837recnd 8354 . . 3  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( F `  A )  e.  CC )
39113ad2ant1 1049 . . . . . 6  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  G :
( 0 [,) +oo )
--> RR )
40 maxcl 11978 . . . . . . . 8  |-  ( ( A  e.  RR  /\  0  e.  RR )  ->  sup ( { A ,  0 } ,  RR ,  <  )  e.  RR )
419, 17, 40sylancl 417 . . . . . . 7  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  sup ( { A ,  0 } ,  RR ,  <  )  e.  RR )
42 maxle2 11980 . . . . . . . 8  |-  ( ( A  e.  RR  /\  0  e.  RR )  ->  0  <_  sup ( { A ,  0 } ,  RR ,  <  ) )
439, 17, 42sylancl 417 . . . . . . 7  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  0  <_  sup ( { A , 
0 } ,  RR ,  <  ) )
4441ltpnfd 10185 . . . . . . 7  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  sup ( { A ,  0 } ,  RR ,  <  )  < +oo )
45 pnfxr 8378 . . . . . . . 8  |- +oo  e.  RR*
46 elico2 10341 . . . . . . . 8  |-  ( ( 0  e.  RR  /\ +oo  e.  RR* )  ->  ( sup ( { A , 
0 } ,  RR ,  <  )  e.  ( 0 [,) +oo )  <->  ( sup ( { A ,  0 } ,  RR ,  <  )  e.  RR  /\  0  <_  sup ( { A , 
0 } ,  RR ,  <  )  /\  sup ( { A ,  0 } ,  RR ,  <  )  < +oo )
) )
4717, 45, 46mp2an 430 . . . . . . 7  |-  ( sup ( { A , 
0 } ,  RR ,  <  )  e.  ( 0 [,) +oo )  <->  ( sup ( { A ,  0 } ,  RR ,  <  )  e.  RR  /\  0  <_  sup ( { A , 
0 } ,  RR ,  <  )  /\  sup ( { A ,  0 } ,  RR ,  <  )  < +oo )
)
4841, 43, 44, 47syl3anbrc 1212 . . . . . 6  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  sup ( { A ,  0 } ,  RR ,  <  )  e.  ( 0 [,) +oo ) )
4939, 48ffvelcdmd 5844 . . . . 5  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( G `  sup ( { A ,  0 } ,  RR ,  <  ) )  e.  RR )
5027, 49eqeltrrd 2316 . . . 4  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( F `  0 )  e.  RR )
5150recnd 8354 . . 3  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( F `  0 )  e.  CC )
5238, 51pncand 8638 . 2  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( (
( F `  A
)  +  ( F `
 0 ) )  -  ( F ` 
0 ) )  =  ( F `  A
) )
5315, 29, 523eqtrd 2275 1  |-  ( (
ph  /\  A  e.  RR  /\  A  <_  0
)  ->  ( H `  A )  =  ( F `  A ) )
Colors of variables:    wff set class
This proof depends on syntax axioms:    -> wi 4    <-> wb 105    /\ w3a 1009    = wceq 1402    e. wcel 2209   {cpr 3710   class class class wbr 4130    |-> cmpt 4192   -->wf 5373   ` cfv 5377  (class class class)co 6085   supcsup 7322  infcinf 7323   RRcr 8178   0cc0 8179    + caddc 8182   +oocpnf 8357   -oocmnf 8358   RR*cxr 8359    < clt 8360    <_ cle 8361    - cmin 8497   (,]cioc 10293   [,)cico 10294
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4246  ax-sep 4249  ax-nul 4259  ax-pow 4311  ax-pr 4346  ax-un 4578  ax-setind 4684  ax-iinf 4735  ax-cnex 8270  ax-resscn 8271  ax-1cn 8272  ax-1re 8273  ax-icn 8274  ax-addcl 8275  ax-addrcl 8276  ax-mulcl 8277  ax-mulrcl 8278  ax-addcom 8279  ax-mulcom 8280  ax-addass 8281  ax-mulass 8282  ax-distr 8283  ax-i2m1 8284  ax-0lt1 8285  ax-1rid 8286  ax-0id 8287  ax-rnegex 8288  ax-precex 8289  ax-cnre 8290  ax-pre-ltirr 8291  ax-pre-ltwlin 8292  ax-pre-lttrn 8293  ax-pre-apti 8294  ax-pre-ltadd 8295  ax-pre-mulgt0 8296  ax-pre-mulext 8297  ax-arch 8298  ax-caucvg 8299
This proof depends on definitions:  df-bi 117  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4131  df-opab 4193  df-mpt 4194  df-tr 4230  df-id 4438  df-po 4441  df-iso 4442  df-iord 4511  df-on 4513  df-ilim 4514  df-suc 4516  df-iom 4738  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-rn 4785  df-res 4786  df-ima 4787  df-iota 5337  df-fun 5379  df-fn 5380  df-f 5381  df-f1 5382  df-fo 5383  df-f1o 5384  df-fv 5385  df-isom 5386  df-riota 6038  df-ov 6088  df-oprab 6089  df-mpo 6090  df-1st 6374  df-2nd 6375  df-recs 6576  df-frec 6662  df-sup 7324  df-inf 7325  df-pnf 8362  df-mnf 8363  df-xr 8364  df-ltxr 8365  df-le 8366  df-sub 8499  df-neg 8500  df-reap 8904  df-ap 8911  df-div 9004  df-inn 9306  df-2 9364  df-3 9365  df-4 9366  df-n0 9566  df-z 9647  df-uz 9924  df-rp 10057  df-ioc 10297  df-ico 10298  df-seqfrec 10887  df-exp 10978  df-cj 11609  df-re 11610  df-im 11611  df-rsqrt 11766  df-abs 11767
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator