Metamath Proof Explorer


Theorem gcdn0cl

Description: Closure of the gcd operator. (Contributed by Paul Chapman, 21-Mar-2011)

Ref Expression
Assertion gcdn0cl M N ¬ M = 0 N = 0 M gcd N

Proof

Step Hyp Ref Expression
1 gcdn0val M N ¬ M = 0 N = 0 M gcd N = sup n | n M n N <
2 eqid n | z M N n z = n | z M N n z
3 eqid n | n M n N = n | n M n N
4 2 3 gcdcllem3 M N ¬ M = 0 N = 0 sup n | n M n N < sup n | n M n N < M sup n | n M n N < N K K M K N K sup n | n M n N <
5 4 simp1d M N ¬ M = 0 N = 0 sup n | n M n N <
6 1 5 eqeltrd M N ¬ M = 0 N = 0 M gcd N