Metamath Proof Explorer


Theorem abssub

Description: Swapping order of subtraction doesn't change the absolute value. (Contributed by NM, 1-Oct-1999) (Proof shortened by Mario Carneiro, 29-May-2016)

Ref Expression
Assertion abssub ( ( 𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ) → ( abs ‘ ( 𝐴𝐵 ) ) = ( abs ‘ ( 𝐵𝐴 ) ) )

Proof

Step Hyp Ref Expression
1 subcl ( ( 𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ) → ( 𝐴𝐵 ) ∈ ℂ )
2 absneg ( ( 𝐴𝐵 ) ∈ ℂ → ( abs ‘ - ( 𝐴𝐵 ) ) = ( abs ‘ ( 𝐴𝐵 ) ) )
3 1 2 syl ( ( 𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ) → ( abs ‘ - ( 𝐴𝐵 ) ) = ( abs ‘ ( 𝐴𝐵 ) ) )
4 negsubdi2 ( ( 𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ) → - ( 𝐴𝐵 ) = ( 𝐵𝐴 ) )
5 4 fveq2d ( ( 𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ) → ( abs ‘ - ( 𝐴𝐵 ) ) = ( abs ‘ ( 𝐵𝐴 ) ) )
6 3 5 eqtr3d ( ( 𝐴 ∈ ℂ ∧ 𝐵 ∈ ℂ ) → ( abs ‘ ( 𝐴𝐵 ) ) = ( abs ‘ ( 𝐵𝐴 ) ) )