Step |
Hyp |
Ref |
Expression |
1 |
|
reumodprminv |
|
2 |
|
reurex |
|
3 |
|
prmz |
|
4 |
3
|
3ad2ant1 |
|
5 |
4
|
adantl |
|
6 |
|
elfzelz |
|
7 |
6
|
adantr |
|
8 |
|
elfzoelz |
|
9 |
8
|
3ad2ant3 |
|
10 |
|
zmulcl |
|
11 |
7 9 10
|
syl2an |
|
12 |
5 11
|
zsubcld |
|
13 |
|
prmnn |
|
14 |
13
|
3ad2ant1 |
|
15 |
14
|
adantl |
|
16 |
|
zmodfzo |
|
17 |
12 15 16
|
syl2anc |
|
18 |
8
|
zred |
|
19 |
18
|
3ad2ant3 |
|
20 |
19
|
adantl |
|
21 |
13
|
nnred |
|
22 |
21
|
3ad2ant1 |
|
23 |
22
|
adantl |
|
24 |
6
|
zred |
|
25 |
24
|
adantr |
|
26 |
|
remulcl |
|
27 |
25 19 26
|
syl2an |
|
28 |
23 27
|
resubcld |
|
29 |
|
elfzoelz |
|
30 |
29
|
3ad2ant2 |
|
31 |
30
|
adantl |
|
32 |
13
|
nnrpd |
|
33 |
32
|
3ad2ant1 |
|
34 |
33
|
adantl |
|
35 |
|
modaddmulmod |
|
36 |
20 28 31 34 35
|
syl31anc |
|
37 |
13
|
nncnd |
|
38 |
37
|
3ad2ant1 |
|
39 |
38
|
adantl |
|
40 |
6
|
zcnd |
|
41 |
40
|
adantr |
|
42 |
8
|
zcnd |
|
43 |
42
|
3ad2ant3 |
|
44 |
|
mulcl |
|
45 |
41 43 44
|
syl2an |
|
46 |
29
|
zcnd |
|
47 |
46
|
3ad2ant2 |
|
48 |
47
|
adantl |
|
49 |
39 45 48
|
subdird |
|
50 |
49
|
oveq2d |
|
51 |
50
|
oveq1d |
|
52 |
|
mulcom |
|
53 |
37 46 52
|
syl2an |
|
54 |
53
|
oveq1d |
|
55 |
|
mulmod0 |
|
56 |
29 32 55
|
syl2anr |
|
57 |
54 56
|
eqtrd |
|
58 |
57
|
3adant3 |
|
59 |
58
|
adantl |
|
60 |
41
|
adantr |
|
61 |
43
|
adantl |
|
62 |
60 61 48
|
mul32d |
|
63 |
62
|
oveq1d |
|
64 |
29
|
zred |
|
65 |
64
|
3ad2ant2 |
|
66 |
|
remulcl |
|
67 |
25 65 66
|
syl2an |
|
68 |
9
|
adantl |
|
69 |
|
modmulmod |
|
70 |
67 68 34 69
|
syl3anc |
|
71 |
63 70
|
eqtr4d |
|
72 |
59 71
|
oveq12d |
|
73 |
72
|
oveq1d |
|
74 |
|
remulcl |
|
75 |
21 64 74
|
syl2an |
|
76 |
75
|
3adant3 |
|
77 |
76
|
adantl |
|
78 |
65
|
adantl |
|
79 |
27 78
|
remulcld |
|
80 |
|
modsubmodmod |
|
81 |
77 79 34 80
|
syl3anc |
|
82 |
|
mulcom |
|
83 |
47 40 82
|
syl2anr |
|
84 |
83
|
oveq1d |
|
85 |
84
|
eqeq1d |
|
86 |
85
|
biimpd |
|
87 |
86
|
impancom |
|
88 |
87
|
imp |
|
89 |
88
|
oveq1d |
|
90 |
89
|
oveq1d |
|
91 |
90
|
oveq2d |
|
92 |
91
|
oveq1d |
|
93 |
61
|
mulid2d |
|
94 |
93
|
oveq1d |
|
95 |
32 18
|
anim12ci |
|
96 |
|
elfzo2 |
|
97 |
|
eluz2 |
|
98 |
|
0red |
|
99 |
|
1red |
|
100 |
|
zre |
|
101 |
98 99 100
|
3jca |
|
102 |
101
|
adantr |
|
103 |
|
0le1 |
|
104 |
103
|
a1i |
|
105 |
104
|
anim1i |
|
106 |
|
letr |
|
107 |
102 105 106
|
sylc |
|
108 |
107
|
3adant1 |
|
109 |
97 108
|
sylbi |
|
110 |
109
|
3ad2ant1 |
|
111 |
|
simp3 |
|
112 |
110 111
|
jca |
|
113 |
96 112
|
sylbi |
|
114 |
113
|
adantl |
|
115 |
95 114
|
jca |
|
116 |
115
|
3adant2 |
|
117 |
116
|
adantl |
|
118 |
|
modid |
|
119 |
117 118
|
syl |
|
120 |
94 119
|
eqtrd |
|
121 |
120
|
oveq2d |
|
122 |
121
|
oveq1d |
|
123 |
92 122
|
eqtrd |
|
124 |
73 81 123
|
3eqtr3d |
|
125 |
124
|
oveq2d |
|
126 |
125
|
oveq1d |
|
127 |
77 79
|
resubcld |
|
128 |
|
modadd2mod |
|
129 |
127 20 34 128
|
syl3anc |
|
130 |
|
0red |
|
131 |
130 18
|
resubcld |
|
132 |
131
|
adantl |
|
133 |
18
|
adantl |
|
134 |
32
|
adantr |
|
135 |
132 133 134
|
3jca |
|
136 |
135
|
3adant2 |
|
137 |
136
|
adantl |
|
138 |
|
modadd2mod |
|
139 |
137 138
|
syl |
|
140 |
|
0cnd |
|
141 |
42 140
|
pncan3d |
|
142 |
141
|
3ad2ant3 |
|
143 |
142
|
adantl |
|
144 |
143
|
oveq1d |
|
145 |
|
0mod |
|
146 |
32 145
|
syl |
|
147 |
146
|
3ad2ant1 |
|
148 |
147
|
adantl |
|
149 |
139 144 148
|
3eqtrd |
|
150 |
126 129 149
|
3eqtr3d |
|
151 |
36 51 150
|
3eqtrd |
|
152 |
|
oveq1 |
|
153 |
152
|
oveq2d |
|
154 |
153
|
oveq1d |
|
155 |
154
|
eqeq1d |
|
156 |
155
|
rspcev |
|
157 |
17 151 156
|
syl2anc |
|
158 |
157
|
ex |
|
159 |
158
|
rexlimiva |
|
160 |
1 2 159
|
3syl |
|
161 |
160
|
3adant3 |
|
162 |
161
|
pm2.43i |
|