Description: Distribute multiplication over a modulo operation. (Contributed by NM, 11-Nov-2008)
Ref | Expression | ||
---|---|---|---|
Assertion | moddi | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | rpcn | |
|
2 | 1 | 3ad2ant1 | |
3 | recn | |
|
4 | 3 | 3ad2ant2 | |
5 | rpre | |
|
6 | 5 | adantl | |
7 | refldivcl | |
|
8 | 6 7 | remulcld | |
9 | 8 | recnd | |
10 | 9 | 3adant1 | |
11 | 2 4 10 | subdid | |
12 | rpcnne0 | |
|
13 | 12 | 3ad2ant3 | |
14 | rpcnne0 | |
|
15 | 14 | 3ad2ant1 | |
16 | divcan5 | |
|
17 | 4 13 15 16 | syl3anc | |
18 | 17 | fveq2d | |
19 | 18 | oveq2d | |
20 | rpcn | |
|
21 | 20 | 3ad2ant3 | |
22 | rerpdivcl | |
|
23 | reflcl | |
|
24 | 23 | recnd | |
25 | 22 24 | syl | |
26 | 25 | 3adant1 | |
27 | 2 21 26 | mulassd | |
28 | 19 27 | eqtr2d | |
29 | 28 | oveq2d | |
30 | 11 29 | eqtrd | |
31 | modval | |
|
32 | 31 | 3adant1 | |
33 | 32 | oveq2d | |
34 | rpre | |
|
35 | remulcl | |
|
36 | 34 35 | sylan | |
37 | 36 | 3adant3 | |
38 | rpmulcl | |
|
39 | modval | |
|
40 | 37 38 39 | 3imp3i2an | |
41 | 30 33 40 | 3eqtr4d | |