Metamath Proof Explorer


Theorem sub31

Description: Swap the first and third terms in a double subtraction. (Contributed by Glauco Siliprandi, 11-Dec-2019)

Ref Expression
Assertion sub31 A B C A B C = C B A

Proof

Step Hyp Ref Expression
1 simp1 A B C A
2 simpr B C C
3 simpl B C B
4 2 3 subcld B C C B
5 4 3adant1 A B C C B
6 1 5 addcomd A B C A + C - B = C - B + A
7 subsub2 A B C A B C = A + C - B
8 simp3 A B C C
9 simp2 A B C B
10 8 9 1 subsubd A B C C B A = C - B + A
11 6 7 10 3eqtr4d A B C A B C = C B A