Metamath Proof Explorer


Theorem gcdabs

Description: The gcd of two integers is the same as that of their absolute values. (Contributed by Paul Chapman, 31-Mar-2011) (Proof shortened by SN, 15-Sep-2024)

Ref Expression
Assertion gcdabs MNMgcdN=MgcdN

Proof

Step Hyp Ref Expression
1 zabscl NN
2 gcdabs1 MNMgcdN=MgcdN
3 1 2 sylan2 MNMgcdN=MgcdN
4 gcdabs2 MNMgcdN=MgcdN
5 3 4 eqtrd MNMgcdN=MgcdN