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

 Description: Value of the extended real addition operation. (Contributed by Mario Carneiro, 20-Aug-2015.)
Assertion
Ref Expression
xaddval ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*) → (𝐴 +𝑒 𝐵) = if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))))

Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simpl 472 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑥 = 𝐴)
21eqeq1d 2612 . . 3 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑥 = +∞ ↔ 𝐴 = +∞))
3 simpr 476 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → 𝑦 = 𝐵)
43eqeq1d 2612 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑦 = -∞ ↔ 𝐵 = -∞))
54ifbid 4058 . . 3 ((𝑥 = 𝐴𝑦 = 𝐵) → if(𝑦 = -∞, 0, +∞) = if(𝐵 = -∞, 0, +∞))
61eqeq1d 2612 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑥 = -∞ ↔ 𝐴 = -∞))
73eqeq1d 2612 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑦 = +∞ ↔ 𝐵 = +∞))
87ifbid 4058 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → if(𝑦 = +∞, 0, -∞) = if(𝐵 = +∞, 0, -∞))
9 oveq12 6558 . . . . . 6 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑥 + 𝑦) = (𝐴 + 𝐵))
104, 9ifbieq2d 4061 . . . . 5 ((𝑥 = 𝐴𝑦 = 𝐵) → if(𝑦 = -∞, -∞, (𝑥 + 𝑦)) = if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))
117, 10ifbieq2d 4061 . . . 4 ((𝑥 = 𝐴𝑦 = 𝐵) → if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))) = if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))
126, 8, 11ifbieq12d 4063 . . 3 ((𝑥 = 𝐴𝑦 = 𝐵) → if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦)))) = if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))))
132, 5, 12ifbieq12d 4063 . 2 ((𝑥 = 𝐴𝑦 = 𝐵) → if(𝑥 = +∞, if(𝑦 = -∞, 0, +∞), if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))))) = if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))))
14 df-xadd 11823 . 2 +𝑒 = (𝑥 ∈ ℝ*, 𝑦 ∈ ℝ* ↦ if(𝑥 = +∞, if(𝑦 = -∞, 0, +∞), if(𝑥 = -∞, if(𝑦 = +∞, 0, -∞), if(𝑦 = +∞, +∞, if(𝑦 = -∞, -∞, (𝑥 + 𝑦))))))
15 c0ex 9913 . . . 4 0 ∈ V
16 pnfex 9972 . . . 4 +∞ ∈ V
1715, 16ifex 4106 . . 3 if(𝐵 = -∞, 0, +∞) ∈ V
18 mnfxr 9975 . . . . . 6 -∞ ∈ ℝ*
1918elexi 3186 . . . . 5 -∞ ∈ V
2015, 19ifex 4106 . . . 4 if(𝐵 = +∞, 0, -∞) ∈ V
21 ovex 6577 . . . . . 6 (𝐴 + 𝐵) ∈ V
2219, 21ifex 4106 . . . . 5 if(𝐵 = -∞, -∞, (𝐴 + 𝐵)) ∈ V
2316, 22ifex 4106 . . . 4 if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))) ∈ V
2420, 23ifex 4106 . . 3 if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵)))) ∈ V
2517, 24ifex 4106 . 2 if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))) ∈ V
2613, 14, 25ovmpt2a 6689 1 ((𝐴 ∈ ℝ*𝐵 ∈ ℝ*) → (𝐴 +𝑒 𝐵) = if(𝐴 = +∞, if(𝐵 = -∞, 0, +∞), if(𝐴 = -∞, if(𝐵 = +∞, 0, -∞), if(𝐵 = +∞, +∞, if(𝐵 = -∞, -∞, (𝐴 + 𝐵))))))