Metamath Proof Explorer


Theorem lsubswap23d

Description: Swap the second and third variables in an equation with subtraction on the left, converting it into an addition.

EDITORIAL: The label for this theorem is questionable. Do not move until it would have 7 uses: current additional uses: (none). (Contributed by SN, 23-Aug-2024)

Ref Expression
Hypotheses lsubswap23d.a ⊢ φ → A ∈ ℂ
lsubswap23d.b ⊢ φ → B ∈ ℂ
lsubswap23d.1 ⊢ φ → A − B = C
Assertion lsubswap23d ⊢ φ → A − C = B

Proof

Step Hyp Ref Expression
1 lsubswap23d.a ⊢ φ → A ∈ ℂ
2 lsubswap23d.b ⊢ φ → B ∈ ℂ
3 lsubswap23d.1 ⊢ φ → A − B = C
4 1 2 subcld ⊢ φ → A − B ∈ ℂ
5 3 4 eqeltrrd ⊢ φ → C ∈ ℂ
6 1 2 3 lsubrotld ⊢ φ → B + C = A
7 6 eqcomd ⊢ φ → A = B + C
8 2 5 7 mvrraddd ⊢ φ → A − C = B