Description: Decomposition of an integer into a multiple of a modulus and a remainder. (Contributed by AV, 14-Jul-2021)
Ref | Expression | ||
---|---|---|---|
Assertion | modmuladd | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | oveq1 | |
|
2 | 1 | oveq1d | |
3 | 2 | eqeq2d | |
4 | zre | |
|
5 | 4 | adantr | |
6 | rpre | |
|
7 | 6 | adantl | |
8 | rpne0 | |
|
9 | 8 | adantl | |
10 | 5 7 9 | redivcld | |
11 | 10 | flcld | |
12 | 11 | 3adant2 | |
13 | flpmodeq | |
|
14 | 4 13 | sylan | |
15 | 14 | eqcomd | |
16 | 15 | 3adant2 | |
17 | 3 12 16 | rspcedvdw | |
18 | oveq2 | |
|
19 | 18 | eqeq2d | |
20 | 19 | eqcoms | |
21 | 20 | rexbidv | |
22 | 17 21 | syl5ibrcom | |
23 | oveq1 | |
|
24 | simpr | |
|
25 | simpl3 | |
|
26 | simpl2 | |
|
27 | muladdmodid | |
|
28 | 24 25 26 27 | syl3anc | |
29 | 23 28 | sylan9eqr | |
30 | 29 | rexlimdva2 | |
31 | 22 30 | impbid | |