Metamath Proof Explorer


Theorem nn0gcdid0

Description: The gcd of a nonnegative integer with 0 is itself. (Contributed by Paul Chapman, 31-Mar-2011)

Ref Expression
Assertion nn0gcdid0 N0Ngcd0=N

Proof

Step Hyp Ref Expression
1 nn0z N0N
2 gcdid0 NNgcd0=N
3 1 2 syl N0Ngcd0=N
4 nn0re N0N
5 nn0ge0 N00N
6 4 5 absidd N0N=N
7 3 6 eqtrd N0Ngcd0=N