Metamath Proof Explorer


Theorem addsub4i

Description: Rearrangement of 4 terms in a mixed addition and subtraction. (Contributed by NM, 17-Oct-1999)

Ref Expression
Hypotheses negidi.1 A
pncan3i.2 B
subadd.3 C
addsub4i.4 D
Assertion addsub4i A + B - C + D = A C + B - D

Proof

Step Hyp Ref Expression
1 negidi.1 A
2 pncan3i.2 B
3 subadd.3 C
4 addsub4i.4 D
5 addsub4 A B C D A + B - C + D = A C + B - D
6 1 2 3 4 5 mp4an A + B - C + D = A C + B - D