Metamath Proof Explorer


Theorem gcdn0val

Description: The value of the gcd operator when at least one operand is nonzero. (Contributed by Paul Chapman, 21-Mar-2011)

Ref Expression
Assertion gcdn0val M N ¬ M = 0 N = 0 M gcd N = sup n | n M n N <

Proof

Step Hyp Ref Expression
1 gcdval M N M gcd N = if M = 0 N = 0 0 sup n | n M n N <
2 iffalse ¬ M = 0 N = 0 if M = 0 N = 0 0 sup n | n M n N < = sup n | n M n N <
3 1 2 sylan9eq M N ¬ M = 0 N = 0 M gcd N = sup n | n M n N <