Description: The size of the unit group of Z/nZ . (Contributed by Mario Carneiro, 19-Apr-2016)
Ref | Expression | ||
---|---|---|---|
Hypotheses | znchr.y | |
|
znunit.u | |
||
Assertion | znunithash | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | znchr.y | |
|
2 | znunit.u | |
|
3 | dfphi2 | |
|
4 | nnnn0 | |
|
5 | eqid | |
|
6 | eqid | |
|
7 | eqid | |
|
8 | 1 5 6 7 | znf1o | |
9 | 4 8 | syl | |
10 | nnne0 | |
|
11 | ifnefalse | |
|
12 | reseq2 | |
|
13 | 12 | f1oeq1d | |
14 | f1oeq2 | |
|
15 | 13 14 | bitrd | |
16 | 10 11 15 | 3syl | |
17 | 9 16 | mpbid | |
18 | f1ofn | |
|
19 | elpreima | |
|
20 | 17 18 19 | 3syl | |
21 | fvres | |
|
22 | 21 | adantl | |
23 | 22 | eleq1d | |
24 | elfzoelz | |
|
25 | eqid | |
|
26 | 1 2 25 | znunit | |
27 | 4 24 26 | syl2an | |
28 | 23 27 | bitrd | |
29 | 28 | pm5.32da | |
30 | 20 29 | bitrd | |
31 | 30 | eqabdv | |
32 | df-rab | |
|
33 | 31 32 | eqtr4di | |
34 | 33 | fveq2d | |
35 | f1ocnv | |
|
36 | f1of1 | |
|
37 | 17 35 36 | 3syl | |
38 | ovexd | |
|
39 | 5 2 | unitss | |
40 | 39 | a1i | |
41 | 2 | fvexi | |
42 | 41 | a1i | |
43 | f1imaen2g | |
|
44 | 37 38 40 42 43 | syl22anc | |
45 | hasheni | |
|
46 | 44 45 | syl | |
47 | 3 34 46 | 3eqtr2rd | |