Metamath Proof Explorer


Theorem dvdsmod0

Description: If a positive integer divides another integer, then the remainder upon division is zero. (Contributed by AV, 3-Mar-2022)

Ref Expression
Assertion dvdsmod0 M M N N mod M = 0

Proof

Step Hyp Ref Expression
1 dvdszrcl M N M N
2 1 adantl M M N M N
3 dvdsval3 M N M N N mod M = 0
4 3 biimpd M N M N N mod M = 0
5 4 expcom N M M N N mod M = 0
6 5 impd N M M N N mod M = 0
7 6 adantl M N M M N N mod M = 0
8 2 7 mpcom M M N N mod M = 0