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

Theorem xaddf 12605
Description: The extended real addition operation is closed in extended reals. (Contributed by Mario Carneiro, 21-Aug-2015.)
Assertion
Ref Expression
xaddf +𝑒 :(ℝ* × ℝ*)⟶ℝ*

Proof of Theorem xaddf
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 0xr 10677 . . . . . 6 0 ∈ ℝ*
2 pnfxr 10684 . . . . . 6 +∞ ∈ ℝ*
31, 2ifcli 4471 . . . . 5 if(𝑦 = -∞, 0, +∞) ∈ ℝ*
43a1i 11 . . . 4 (((𝑥 ∈ ℝ*𝑦 ∈ ℝ*) ∧ 𝑥 = +∞) → if(𝑦 = -∞, 0, +∞) ∈ ℝ*)
5 mnfxr 10687 . . . . . . 7 -∞ ∈ ℝ*
61, 5ifcli 4471 . . . . . 6 if(𝑦 = +∞, 0, -∞) ∈ ℝ*
76a1i 11 . . . . 5 ((((𝑥 ∈ ℝ*𝑦 ∈ ℝ*) ∧ ¬ 𝑥 = +∞) ∧ 𝑥 = -∞) → if(𝑦 = +∞, 0, -∞) ∈ ℝ*)
82a1i 11 . . . . . . . 8 ((((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ 𝑦 ∈ ℝ*) ∧ 𝑦 = +∞) → +∞ ∈ ℝ*)
95a1i 11 . . . . . . . . 9 (((((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ 𝑦 ∈ ℝ*) ∧ ¬ 𝑦 = +∞) ∧ 𝑦 = -∞) → -∞ ∈ ℝ*)
10 ioran 981 . . . . . . . . . . . . . 14 (¬ (𝑥 = +∞ ∨ 𝑥 = -∞) ↔ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞))
11 elxr 12499 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ ℝ* ↔ (𝑥 ∈ ℝ ∨ 𝑥 = +∞ ∨ 𝑥 = -∞))
12 3orass 1087 . . . . . . . . . . . . . . . . . 18 ((𝑥 ∈ ℝ ∨ 𝑥 = +∞ ∨ 𝑥 = -∞) ↔ (𝑥 ∈ ℝ ∨ (𝑥 = +∞ ∨ 𝑥 = -∞)))
1311, 12sylbb 222 . . . . . . . . . . . . . . . . 17 (𝑥 ∈ ℝ* → (𝑥 ∈ ℝ ∨ (𝑥 = +∞ ∨ 𝑥 = -∞)))
1413ord 861 . . . . . . . . . . . . . . . 16 (𝑥 ∈ ℝ* → (¬ 𝑥 ∈ ℝ → (𝑥 = +∞ ∨ 𝑥 = -∞)))
1514con1d 147 . . . . . . . . . . . . . . 15 (𝑥 ∈ ℝ* → (¬ (𝑥 = +∞ ∨ 𝑥 = -∞) → 𝑥 ∈ ℝ))
1615imp 410 . . . . . . . . . . . . . 14 ((𝑥 ∈ ℝ* ∧ ¬ (𝑥 = +∞ ∨ 𝑥 = -∞)) → 𝑥 ∈ ℝ)
1710, 16sylan2br 597 . . . . . . . . . . . . 13 ((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) → 𝑥 ∈ ℝ)
18 ioran 981 . . . . . . . . . . . . . 14 (¬ (𝑦 = +∞ ∨ 𝑦 = -∞) ↔ (¬ 𝑦 = +∞ ∧ ¬ 𝑦 = -∞))
19 elxr 12499 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ ℝ* ↔ (𝑦 ∈ ℝ ∨ 𝑦 = +∞ ∨ 𝑦 = -∞))
20 3orass 1087 . . . . . . . . . . . . . . . . . 18 ((𝑦 ∈ ℝ ∨ 𝑦 = +∞ ∨ 𝑦 = -∞) ↔ (𝑦 ∈ ℝ ∨ (𝑦 = +∞ ∨ 𝑦 = -∞)))
2119, 20sylbb 222 . . . . . . . . . . . . . . . . 17 (𝑦 ∈ ℝ* → (𝑦 ∈ ℝ ∨ (𝑦 = +∞ ∨ 𝑦 = -∞)))
2221ord 861 . . . . . . . . . . . . . . . 16 (𝑦 ∈ ℝ* → (¬ 𝑦 ∈ ℝ → (𝑦 = +∞ ∨ 𝑦 = -∞)))
2322con1d 147 . . . . . . . . . . . . . . 15 (𝑦 ∈ ℝ* → (¬ (𝑦 = +∞ ∨ 𝑦 = -∞) → 𝑦 ∈ ℝ))
2423imp 410 . . . . . . . . . . . . . 14 ((𝑦 ∈ ℝ* ∧ ¬ (𝑦 = +∞ ∨ 𝑦 = -∞)) → 𝑦 ∈ ℝ)
2518, 24sylan2br 597 . . . . . . . . . . . . 13 ((𝑦 ∈ ℝ* ∧ (¬ 𝑦 = +∞ ∧ ¬ 𝑦 = -∞)) → 𝑦 ∈ ℝ)
26 readdcl 10609 . . . . . . . . . . . . 13 ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) → (𝑥 + 𝑦) ∈ ℝ)
2717, 25, 26syl2an 598 . . . . . . . . . . . 12 (((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ (𝑦 ∈ ℝ* ∧ (¬ 𝑦 = +∞ ∧ ¬ 𝑦 = -∞))) → (𝑥 + 𝑦) ∈ ℝ)
2827rexrd 10680 . . . . . . . . . . 11 (((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ (𝑦 ∈ ℝ* ∧ (¬ 𝑦 = +∞ ∧ ¬ 𝑦 = -∞))) → (𝑥 + 𝑦) ∈ ℝ*)
2928anassrs 471 . . . . . . . . . 10 ((((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ 𝑦 ∈ ℝ*) ∧ (¬ 𝑦 = +∞ ∧ ¬ 𝑦 = -∞)) → (𝑥 + 𝑦) ∈ ℝ*)
3029anassrs 471 . . . . . . . . 9 (((((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ 𝑦 ∈ ℝ*) ∧ ¬ 𝑦 = +∞) ∧ ¬ 𝑦 = -∞) → (𝑥 + 𝑦) ∈ ℝ*)
319, 30ifclda 4459 . . . . . . . 8 ((((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ 𝑦 ∈ ℝ*) ∧ ¬ 𝑦 = +∞) → if(𝑦 = -∞, -∞, (𝑥 + 𝑦)) ∈ ℝ*)
328, 31ifclda 4459 . . . . . . 7 (((𝑥 ∈ ℝ* ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) ∧ 𝑦 ∈ ℝ*) → if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))) ∈ ℝ*)
3332an32s 651 . . . . . 6 (((𝑥 ∈ ℝ*𝑦 ∈ ℝ*) ∧ (¬ 𝑥 = +∞ ∧ ¬ 𝑥 = -∞)) → if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))) ∈ ℝ*)
3433anassrs 471 . . . . 5 ((((𝑥 ∈ ℝ*𝑦 ∈ ℝ*) ∧ ¬ 𝑥 = +∞) ∧ ¬ 𝑥 = -∞) → if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))) ∈ ℝ*)
357, 34ifclda 4459 . . . 4 (((𝑥 ∈ ℝ*𝑦 ∈ ℝ*) ∧ ¬ 𝑥 = +∞) → if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦)))) ∈ ℝ*)
364, 35ifclda 4459 . . 3 ((𝑥 ∈ ℝ*𝑦 ∈ ℝ*) → if(𝑥 = +∞, if(𝑦 = -∞, 0, +∞), if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))))) ∈ ℝ*)
3736rgen2 3168 . 2 𝑥 ∈ ℝ*𝑦 ∈ ℝ* if(𝑥 = +∞, if(𝑦 = -∞, 0, +∞), if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))))) ∈ ℝ*
38 df-xadd 12496 . . 3 +𝑒 = (𝑥 ∈ ℝ*, 𝑦 ∈ ℝ* ↦ if(𝑥 = +∞, if(𝑦 = -∞, 0, +∞), if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))))))
3938fmpo 7748 . 2 (∀𝑥 ∈ ℝ*𝑦 ∈ ℝ* if(𝑥 = +∞, if(𝑦 = -∞, 0, +∞), if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))))) ∈ ℝ* ↔ +𝑒 :(ℝ* × ℝ*)⟶ℝ*)
4037, 39mpbi 233 1 +𝑒 :(ℝ* × ℝ*)⟶ℝ*
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 399  wo 844  w3o 1083   = wceq 1538  wcel 2111  wral 3106  ifcif 4425   × cxp 5517  wf 6320  (class class class)co 7135  cr 10525  0cc0 10526   + caddc 10529  +∞cpnf 10661  -∞cmnf 10662  *cxr 10663   +𝑒 cxad 12493
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-1cn 10584  ax-addrcl 10587  ax-rnegex 10597  ax-cnre 10599
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-fv 6332  df-oprab 7139  df-mpo 7140  df-1st 7671  df-2nd 7672  df-pnf 10666  df-mnf 10667  df-xr 10668  df-xadd 12496
This theorem is referenced by:  xaddcl  12620  xrsadd  20108  xrofsup  30518  xrge0pluscn  31293  xrge0tmdALT  31299
  Copyright terms: Public domain W3C validator