ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  rexadd Unicode version

Theorem rexadd 9779
Description: The extended real addition operation when both arguments are real. (Contributed by Mario Carneiro, 20-Aug-2015.)
Assertion
Ref Expression
rexadd  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A +e
B )  =  ( A  +  B ) )

Proof of Theorem rexadd
StepHypRef Expression
1 rexr 7935 . . 3  |-  ( A  e.  RR  ->  A  e.  RR* )
2 rexr 7935 . . 3  |-  ( B  e.  RR  ->  B  e.  RR* )
3 xaddval 9772 . . 3  |-  ( ( A  e.  RR*  /\  B  e.  RR* )  ->  ( A +e B )  =  if ( A  = +oo ,  if ( B  = -oo ,  0 , +oo ) ,  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo , 
( A  +  B
) ) ) ) ) )
41, 2, 3syl2an 287 . 2  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A +e
B )  =  if ( A  = +oo ,  if ( B  = -oo ,  0 , +oo ) ,  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) ) ) )
5 renepnf 7937 . . . . 5  |-  ( A  e.  RR  ->  A  =/= +oo )
6 ifnefalse 3526 . . . . 5  |-  ( A  =/= +oo  ->  if ( A  = +oo ,  if ( B  = -oo ,  0 , +oo ) ,  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo , 
( A  +  B
) ) ) ) )  =  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo , 
( A  +  B
) ) ) ) )
75, 6syl 14 . . . 4  |-  ( A  e.  RR  ->  if ( A  = +oo ,  if ( B  = -oo ,  0 , +oo ) ,  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) ) )  =  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) ) )
8 renemnf 7938 . . . . 5  |-  ( A  e.  RR  ->  A  =/= -oo )
9 ifnefalse 3526 . . . . 5  |-  ( A  =/= -oo  ->  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo , 
( A  +  B
) ) ) )  =  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo , 
( A  +  B
) ) ) )
108, 9syl 14 . . . 4  |-  ( A  e.  RR  ->  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) )  =  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) )
117, 10eqtrd 2197 . . 3  |-  ( A  e.  RR  ->  if ( A  = +oo ,  if ( B  = -oo ,  0 , +oo ) ,  if ( A  = -oo ,  if ( B  = +oo ,  0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) ) )  =  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) )
12 renepnf 7937 . . . . 5  |-  ( B  e.  RR  ->  B  =/= +oo )
13 ifnefalse 3526 . . . . 5  |-  ( B  =/= +oo  ->  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) )  =  if ( B  = -oo , -oo ,  ( A  +  B ) ) )
1412, 13syl 14 . . . 4  |-  ( B  e.  RR  ->  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) )  =  if ( B  = -oo , -oo ,  ( A  +  B ) ) )
15 renemnf 7938 . . . . 5  |-  ( B  e.  RR  ->  B  =/= -oo )
16 ifnefalse 3526 . . . . 5  |-  ( B  =/= -oo  ->  if ( B  = -oo , -oo ,  ( A  +  B ) )  =  ( A  +  B
) )
1715, 16syl 14 . . . 4  |-  ( B  e.  RR  ->  if ( B  = -oo , -oo ,  ( A  +  B ) )  =  ( A  +  B ) )
1814, 17eqtrd 2197 . . 3  |-  ( B  e.  RR  ->  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) )  =  ( A  +  B ) )
1911, 18sylan9eq 2217 . 2  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  if ( A  = +oo ,  if ( B  = -oo , 
0 , +oo ) ,  if ( A  = -oo ,  if ( B  = +oo , 
0 , -oo ) ,  if ( B  = +oo , +oo ,  if ( B  = -oo , -oo ,  ( A  +  B ) ) ) ) )  =  ( A  +  B
) )
204, 19eqtrd 2197 1  |-  ( ( A  e.  RR  /\  B  e.  RR )  ->  ( A +e
B )  =  ( A  +  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    = wceq 1342    e. wcel 2135    =/= wne 2334   ifcif 3515  (class class class)co 5836   RRcr 7743   0cc0 7744    + caddc 7747   +oocpnf 7921   -oocmnf 7922   RR*cxr 7923   +ecxad 9697
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1434  ax-7 1435  ax-gen 1436  ax-ie1 1480  ax-ie2 1481  ax-8 1491  ax-10 1492  ax-11 1493  ax-i12 1494  ax-bndl 1496  ax-4 1497  ax-17 1513  ax-i9 1517  ax-ial 1521  ax-i5r 1522  ax-13 2137  ax-14 2138  ax-ext 2146  ax-sep 4094  ax-pow 4147  ax-pr 4181  ax-un 4405  ax-setind 4508  ax-cnex 7835  ax-resscn 7836  ax-1re 7838  ax-addrcl 7841  ax-rnegex 7853
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 968  df-3an 969  df-tru 1345  df-fal 1348  df-nf 1448  df-sb 1750  df-eu 2016  df-mo 2017  df-clab 2151  df-cleq 2157  df-clel 2160  df-nfc 2295  df-ne 2335  df-nel 2430  df-ral 2447  df-rex 2448  df-rab 2451  df-v 2723  df-sbc 2947  df-dif 3113  df-un 3115  df-in 3117  df-ss 3124  df-if 3516  df-pw 3555  df-sn 3576  df-pr 3577  df-op 3579  df-uni 3784  df-br 3977  df-opab 4038  df-id 4265  df-xp 4604  df-rel 4605  df-cnv 4606  df-co 4607  df-dm 4608  df-iota 5147  df-fun 5184  df-fv 5190  df-ov 5839  df-oprab 5840  df-mpo 5841  df-pnf 7926  df-mnf 7927  df-xr 7928  df-xadd 9700
This theorem is referenced by:  rexsub  9780  rexaddd  9781  xaddnemnf  9784  xaddnepnf  9785  xnegid  9786  xaddcom  9788  xaddid1  9789  xnn0xadd0  9794  xnegdi  9795  xaddass  9796  xltadd1  9803  isxmet2d  12889  mettri2  12903  bl2in  12944  xmeter  12977
  Copyright terms: Public domain W3C validator