Description: Value of the modulo operation rewritten to give two ways of expressing the quotient when " A is divided by B using Euclidean division." Multiplying both sides by B , this implies that A mod B differs from A by an integer multiple of B . (Contributed by Jeff Madsen, 17-Jun-2010) (Revised by Mario Carneiro, 6-Sep-2016)
Ref | Expression | ||
---|---|---|---|
Assertion | moddiffl | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | modval | |
|
2 | 1 | oveq2d | |
3 | simpl | |
|
4 | 3 | recnd | |
5 | rpcn | |
|
6 | 5 | adantl | |
7 | rerpdivcl | |
|
8 | 7 | flcld | |
9 | 8 | zcnd | |
10 | 6 9 | mulcld | |
11 | 4 10 | nncand | |
12 | 2 11 | eqtrd | |
13 | 12 | oveq1d | |
14 | rpne0 | |
|
15 | 14 | adantl | |
16 | 9 6 15 | divcan3d | |
17 | 13 16 | eqtrd | |