Metamath Proof Explorer


Theorem dchrghm

Description: A Dirichlet character restricted to the unit group of Z/nZ is a group homomorphism into the multiplicative group of nonzero complex numbers. (Contributed by Mario Carneiro, 21-Apr-2016)

Ref Expression
Hypotheses dchrghm.g G=DChrN
dchrghm.z Z=/N
dchrghm.b D=BaseG
dchrghm.u U=UnitZ
dchrghm.h H=mulGrpZ𝑠U
dchrghm.m M=mulGrpfld𝑠0
dchrghm.x φXD
Assertion dchrghm φXUHGrpHomM

Proof

Step Hyp Ref Expression
1 dchrghm.g G=DChrN
2 dchrghm.z Z=/N
3 dchrghm.b D=BaseG
4 dchrghm.u U=UnitZ
5 dchrghm.h H=mulGrpZ𝑠U
6 dchrghm.m M=mulGrpfld𝑠0
7 dchrghm.x φXD
8 1 2 3 dchrmhm DmulGrpZMndHommulGrpfld
9 8 7 sselid φXmulGrpZMndHommulGrpfld
10 1 3 dchrrcl XDN
11 7 10 syl φN
12 11 nnnn0d φN0
13 2 zncrng N0ZCRing
14 12 13 syl φZCRing
15 crngring ZCRingZRing
16 14 15 syl φZRing
17 eqid mulGrpZ=mulGrpZ
18 4 17 unitsubm ZRingUSubMndmulGrpZ
19 16 18 syl φUSubMndmulGrpZ
20 5 resmhm XmulGrpZMndHommulGrpfldUSubMndmulGrpZXUHMndHommulGrpfld
21 9 19 20 syl2anc φXUHMndHommulGrpfld
22 cnring fldRing
23 cnfldbas =Basefld
24 cnfld0 0=0fld
25 cndrng fldDivRing
26 23 24 25 drngui 0=Unitfld
27 eqid mulGrpfld=mulGrpfld
28 26 27 unitsubm fldRing0SubMndmulGrpfld
29 22 28 ax-mp 0SubMndmulGrpfld
30 df-ima XU=ranXU
31 eqid BaseZ=BaseZ
32 1 2 3 31 7 dchrf φX:BaseZ
33 31 4 unitss UBaseZ
34 33 sseli xUxBaseZ
35 ffvelrn X:BaseZxBaseZXx
36 32 34 35 syl2an φxUXx
37 simpr φxUxU
38 7 adantr φxUXD
39 34 adantl φxUxBaseZ
40 1 2 3 31 4 38 39 dchrn0 φxUXx0xU
41 37 40 mpbird φxUXx0
42 eldifsn Xx0XxXx0
43 36 41 42 sylanbrc φxUXx0
44 43 ralrimiva φxUXx0
45 32 ffund φFunX
46 32 fdmd φdomX=BaseZ
47 33 46 sseqtrrid φUdomX
48 funimass4 FunXUdomXXU0xUXx0
49 45 47 48 syl2anc φXU0xUXx0
50 44 49 mpbird φXU0
51 30 50 eqsstrrid φranXU0
52 6 resmhm2b 0SubMndmulGrpfldranXU0XUHMndHommulGrpfldXUHMndHomM
53 29 51 52 sylancr φXUHMndHommulGrpfldXUHMndHomM
54 21 53 mpbid φXUHMndHomM
55 4 5 unitgrp ZRingHGrp
56 16 55 syl φHGrp
57 6 cnmgpabl MAbel
58 ablgrp MAbelMGrp
59 57 58 ax-mp MGrp
60 ghmmhmb HGrpMGrpHGrpHomM=HMndHomM
61 56 59 60 sylancl φHGrpHomM=HMndHomM
62 54 61 eleqtrrd φXUHGrpHomM