Metamath Proof Explorer


Theorem repncan2

Description: Addition and subtraction of equals. Compare pncan2 . (Contributed by Steven Nguyen, 8-Jan-2023)

Ref Expression
Assertion repncan2 ⊢ A ∈ ℝ ∧ B ∈ ℝ → A + B - ℝ A = B

Proof

Step Hyp Ref Expression
1 eqid ⊢ A + B = A + B
2 readdcl ⊢ A ∈ ℝ ∧ B ∈ ℝ → A + B ∈ ℝ
3 simpl ⊢ A ∈ ℝ ∧ B ∈ ℝ → A ∈ ℝ
4 simpr ⊢ A ∈ ℝ ∧ B ∈ ℝ → B ∈ ℝ
5 2 3 4 resubaddd ⊢ A ∈ ℝ ∧ B ∈ ℝ → A + B - ℝ A = B ↔ A + B = A + B
6 1 5 mpbiri ⊢ A ∈ ℝ ∧ B ∈ ℝ → A + B - ℝ A = B