MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  rexadd Structured version   Visualization version   GIF version

Theorem rexadd 12101
Description: The extended real addition operation when both arguments are real. (Contributed by Mario Carneiro, 20-Aug-2015.)
Assertion
Ref Expression
rexadd ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (𝐴 +𝑒 𝐵) = (𝐴 + 𝐵))

Proof of Theorem rexadd
StepHypRef Expression
1 rexr 10123 . . 3 (𝐴 ∈ ℝ → 𝐴 ∈ ℝ*)
2 rexr 10123 . . 3 (𝐵 ∈ ℝ → 𝐵 ∈ ℝ*)
3 xaddval 12092 . . 3 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*) → (𝐴 +𝑒 𝐵) = if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))))
41, 2, 3syl2an 493 . 2 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (𝐴 +𝑒 𝐵) = if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))))
5 renepnf 10125 . . . . 5 (𝐴 ∈ ℝ → 𝐴 ≠ +∞)
6 ifnefalse 4131 . . . . 5 (𝐴 ≠ +∞ → if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))) = if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))))
75, 6syl 17 . . . 4 (𝐴 ∈ ℝ → if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))) = if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))))
8 renemnf 10126 . . . . 5 (𝐴 ∈ ℝ → 𝐴 ≠ -∞)
9 ifnefalse 4131 . . . . 5 (𝐴 ≠ -∞ → if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))) = if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))
108, 9syl 17 . . . 4 (𝐴 ∈ ℝ → if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))) = if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))
117, 10eqtrd 2685 . . 3 (𝐴 ∈ ℝ → if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))) = if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))
12 renepnf 10125 . . . . 5 (𝐵 ∈ ℝ → 𝐵 ≠ +∞)
13 ifnefalse 4131 . . . . 5 (𝐵 ≠ +∞ → if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))) = if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))
1412, 13syl 17 . . . 4 (𝐵 ∈ ℝ → if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))) = if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))
15 renemnf 10126 . . . . 5 (𝐵 ∈ ℝ → 𝐵 ≠ -∞)
16 ifnefalse 4131 . . . . 5 (𝐵 ≠ -∞ → if(𝐵 = -∞, -∞, (𝐴 + 𝐵)) = (𝐴 + 𝐵))
1715, 16syl 17 . . . 4 (𝐵 ∈ ℝ → if(𝐵 = -∞, -∞, (𝐴 + 𝐵)) = (𝐴 + 𝐵))
1814, 17eqtrd 2685 . . 3 (𝐵 ∈ ℝ → if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))) = (𝐴 + 𝐵))
1911, 18sylan9eq 2705 . 2 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))) = (𝐴 + 𝐵))
204, 19eqtrd 2685 1 ((𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ) → (𝐴 +𝑒 𝐵) = (𝐴 + 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1523  wcel 2030  wne 2823  ifcif 4119  (class class class)co 6690  cr 9973  0cc0 9974   + caddc 9977  +∞cpnf 10109  -∞cmnf 10110  *cxr 10111   +𝑒 cxad 11982
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-cnex 10030  ax-resscn 10031  ax-1cn 10032  ax-icn 10033  ax-addcl 10034  ax-mulcl 10036  ax-i2m1 10042
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1056  df-tru 1526  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-nel 2927  df-ral 2946  df-rex 2947  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-op 4217  df-uni 4469  df-br 4686  df-opab 4746  df-mpt 4763  df-id 5053  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-er 7787  df-en 7998  df-dom 7999  df-sdom 8000  df-pnf 10114  df-mnf 10115  df-xr 10116  df-xadd 11985
This theorem is referenced by:  rexsub  12102  rexaddd  12103  xnn0xaddcl  12104  xaddnemnf  12105  xaddnepnf  12106  xnegid  12107  xaddcom  12109  xaddid1  12110  xnn0xadd0  12115  xnegdi  12116  xaddass  12117  xpncan  12119  xleadd1a  12121  xadddilem  12162  x2times  12167  hashunx  13213  isxmet2d  22179  ismet2  22185  mettri2  22193  prdsxmetlem  22220  bl2in  22252  xblss2ps  22253  xmeter  22285  methaus  22372  metustexhalf  22408  metdcnlem  22686  metnrmlem3  22711  iscau3  23122  vtxdgfival  26421  1loopgrvd2  26455  vdegp1bi  26489  xlt2addrd  29651  xrsmulgzz  29806  xrge0slmod  29972  xrge0iifhom  30111  esumfsupre  30261  esumpfinvallem  30264  omssubadd  30490  probun  30609  heicant  33574  cntotbnd  33725  heiborlem6  33745  supxrgelem  39866  supxrge  39867  infrpge  39880  xrlexaddrp  39881  ovolsplit  40523  sge0tsms  40915  sge0pr  40929  sge0resplit  40941  sge0split  40944  sge0iunmptlemfi  40948  sge0iunmptlemre  40950  sge0xaddlem1  40968  sge0xaddlem2  40969  carageniuncllem1  41056  carageniuncllem2  41057  hoidmv1lelem2  41127  hoidmvlelem2  41131  hspmbllem3  41163
  Copyright terms: Public domain W3C validator