Metamath Proof Explorer


Theorem dvdssub

Description: An integer divides another iff it divides their difference. (Contributed by Paul Chapman, 31-Mar-2011)

Ref Expression
Assertion dvdssub M N M N M M N

Proof

Step Hyp Ref Expression
1 dvdsnegb M N M N M -N
2 znegcl N N
3 dvdsadd M N M -N M M + -N
4 2 3 sylan2 M N M -N M M + -N
5 zcn M M
6 zcn N N
7 negsub M N M + -N = M N
8 5 6 7 syl2an M N M + -N = M N
9 8 breq2d M N M M + -N M M N
10 1 4 9 3bitrd M N M N M M N