Metamath Proof Explorer


Theorem neglcm

Description: Negating one operand of the lcm operator does not alter the result. (Contributed by Steve Rodriguez, 20-Jan-2020)

Ref Expression
Assertion neglcm ( ( 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ) → ( - 𝑀 lcm 𝑁 ) = ( 𝑀 lcm 𝑁 ) )

Proof

Step Hyp Ref Expression
1 lcmneg ( ( 𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ) → ( 𝑁 lcm - 𝑀 ) = ( 𝑁 lcm 𝑀 ) )
2 1 ancoms ( ( 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ) → ( 𝑁 lcm - 𝑀 ) = ( 𝑁 lcm 𝑀 ) )
3 znegcl ( 𝑀 ∈ ℤ → - 𝑀 ∈ ℤ )
4 lcmcom ( ( - 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ) → ( - 𝑀 lcm 𝑁 ) = ( 𝑁 lcm - 𝑀 ) )
5 3 4 sylan ( ( 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ) → ( - 𝑀 lcm 𝑁 ) = ( 𝑁 lcm - 𝑀 ) )
6 lcmcom ( ( 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ) → ( 𝑀 lcm 𝑁 ) = ( 𝑁 lcm 𝑀 ) )
7 2 5 6 3eqtr4d ( ( 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ) → ( - 𝑀 lcm 𝑁 ) = ( 𝑀 lcm 𝑁 ) )