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 MMNNmodM=0

Proof

Step Hyp Ref Expression
1 dvdszrcl MNMN
2 1 adantl MMNMN
3 dvdsval3 MNMNNmodM=0
4 3 biimpd MNMNNmodM=0
5 4 expcom NMMNNmodM=0
6 5 impd NMMNNmodM=0
7 6 adantl MNMMNNmodM=0
8 2 7 mpcom MMNNmodM=0