Metamath Proof Explorer


Theorem gcd2n0cl

Description: Closure of the gcd operator if the second operand is not 0. (Contributed by AV, 10-Jul-2021)

Ref Expression
Assertion gcd2n0cl MNN0MgcdN

Proof

Step Hyp Ref Expression
1 neneq N0¬N=0
2 1 intnand N0¬M=0N=0
3 2 anim2i MNN0MN¬M=0N=0
4 3 3impa MNN0MN¬M=0N=0
5 gcdn0cl MN¬M=0N=0MgcdN
6 4 5 syl MNN0MgcdN