Metamath Proof Explorer


Theorem gcdnncl

Description: Closure of the gcd operator. (Contributed by Thierry Arnoux, 2-Feb-2020)

Ref Expression
Assertion gcdnncl M N M gcd N

Proof

Step Hyp Ref Expression
1 simpl M N M
2 1 nnzd M N M
3 simpr M N N
4 3 nnzd M N N
5 3 nnne0d M N N 0
6 5 neneqd M N ¬ N = 0
7 6 intnand M N ¬ M = 0 N = 0
8 gcdn0cl M N ¬ M = 0 N = 0 M gcd N
9 2 4 7 8 syl21anc M N M gcd N