MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dchrsum2 Unicode version

Theorem dchrsum2 20507
Description: An orthogonality relation for Dirichlet characters: the sum of all the values of a Dirichlet character  X is  0 if  X is non-principal and  phi ( n ) otherwise. Part of Theorem 6.5.1 of [Shapiro] p. 230. (Contributed by Mario Carneiro, 28-Apr-2016.)
Hypotheses
Ref Expression
dchrsum.g  |-  G  =  (DChr `  N )
dchrsum.z  |-  Z  =  (ℤ/n `  N )
dchrsum.d  |-  D  =  ( Base `  G
)
dchrsum.1  |-  .1.  =  ( 0g `  G )
dchrsum.x  |-  ( ph  ->  X  e.  D )
dchrsum2.u  |-  U  =  (Unit `  Z )
Assertion
Ref Expression
dchrsum2  |-  ( ph  -> 
sum_ a  e.  U  ( X `  a )  =  if ( X  =  .1.  ,  ( phi `  N ) ,  0 ) )
Distinct variable groups:    .1. , a    ph, a    U, a    X, a    Z, a
Allowed substitution hints:    D( a)    G( a)    N( a)

Proof of Theorem dchrsum2
Dummy variables  k  x  b  c are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqeq2 2292 . 2  |-  ( ( phi `  N )  =  if ( X  =  .1.  ,  ( phi `  N ) ,  0 )  -> 
( sum_ a  e.  U  ( X `  a )  =  ( phi `  N )  <->  sum_ a  e.  U  ( X `  a )  =  if ( X  =  .1. 
,  ( phi `  N ) ,  0 ) ) )
2 eqeq2 2292 . 2  |-  ( 0  =  if ( X  =  .1.  ,  ( phi `  N ) ,  0 )  -> 
( sum_ a  e.  U  ( X `  a )  =  0  <->  sum_ a  e.  U  ( X `  a )  =  if ( X  =  .1. 
,  ( phi `  N ) ,  0 ) ) )
3 fveq1 5524 . . . . . 6  |-  ( X  =  .1.  ->  ( X `  a )  =  (  .1.  `  a
) )
4 dchrsum.g . . . . . . 7  |-  G  =  (DChr `  N )
5 dchrsum.z . . . . . . 7  |-  Z  =  (ℤ/n `  N )
6 dchrsum.1 . . . . . . 7  |-  .1.  =  ( 0g `  G )
7 dchrsum2.u . . . . . . 7  |-  U  =  (Unit `  Z )
8 dchrsum.x . . . . . . . . 9  |-  ( ph  ->  X  e.  D )
9 dchrsum.d . . . . . . . . . 10  |-  D  =  ( Base `  G
)
104, 9dchrrcl 20479 . . . . . . . . 9  |-  ( X  e.  D  ->  N  e.  NN )
118, 10syl 15 . . . . . . . 8  |-  ( ph  ->  N  e.  NN )
1211adantr 451 . . . . . . 7  |-  ( (
ph  /\  a  e.  U )  ->  N  e.  NN )
13 simpr 447 . . . . . . 7  |-  ( (
ph  /\  a  e.  U )  ->  a  e.  U )
144, 5, 6, 7, 12, 13dchr1 20496 . . . . . 6  |-  ( (
ph  /\  a  e.  U )  ->  (  .1.  `  a )  =  1 )
153, 14sylan9eqr 2337 . . . . 5  |-  ( ( ( ph  /\  a  e.  U )  /\  X  =  .1.  )  ->  ( X `  a )  =  1 )
1615an32s 779 . . . 4  |-  ( ( ( ph  /\  X  =  .1.  )  /\  a  e.  U )  ->  ( X `  a )  =  1 )
1716sumeq2dv 12176 . . 3  |-  ( (
ph  /\  X  =  .1.  )  ->  sum_ a  e.  U  ( X `  a )  =  sum_ a  e.  U  1
)
185, 7znunithash 16518 . . . . . . . . 9  |-  ( N  e.  NN  ->  ( # `
 U )  =  ( phi `  N
) )
1911, 18syl 15 . . . . . . . 8  |-  ( ph  ->  ( # `  U
)  =  ( phi `  N ) )
2011phicld 12840 . . . . . . . . 9  |-  ( ph  ->  ( phi `  N
)  e.  NN )
2120nnnn0d 10018 . . . . . . . 8  |-  ( ph  ->  ( phi `  N
)  e.  NN0 )
2219, 21eqeltrd 2357 . . . . . . 7  |-  ( ph  ->  ( # `  U
)  e.  NN0 )
23 fvex 5539 . . . . . . . . 9  |-  (Unit `  Z )  e.  _V
247, 23eqeltri 2353 . . . . . . . 8  |-  U  e. 
_V
25 hashclb 11352 . . . . . . . 8  |-  ( U  e.  _V  ->  ( U  e.  Fin  <->  ( # `  U
)  e.  NN0 )
)
2624, 25ax-mp 8 . . . . . . 7  |-  ( U  e.  Fin  <->  ( # `  U
)  e.  NN0 )
2722, 26sylibr 203 . . . . . 6  |-  ( ph  ->  U  e.  Fin )
28 ax-1cn 8795 . . . . . 6  |-  1  e.  CC
29 fsumconst 12252 . . . . . 6  |-  ( ( U  e.  Fin  /\  1  e.  CC )  -> 
sum_ a  e.  U 
1  =  ( (
# `  U )  x.  1 ) )
3027, 28, 29sylancl 643 . . . . 5  |-  ( ph  -> 
sum_ a  e.  U 
1  =  ( (
# `  U )  x.  1 ) )
3119oveq1d 5873 . . . . 5  |-  ( ph  ->  ( ( # `  U
)  x.  1 )  =  ( ( phi `  N )  x.  1 ) )
3220nncnd 9762 . . . . . 6  |-  ( ph  ->  ( phi `  N
)  e.  CC )
3332mulid1d 8852 . . . . 5  |-  ( ph  ->  ( ( phi `  N )  x.  1 )  =  ( phi `  N ) )
3430, 31, 333eqtrd 2319 . . . 4  |-  ( ph  -> 
sum_ a  e.  U 
1  =  ( phi `  N ) )
3534adantr 451 . . 3  |-  ( (
ph  /\  X  =  .1.  )  ->  sum_ a  e.  U  1  =  ( phi `  N ) )
3617, 35eqtrd 2315 . 2  |-  ( (
ph  /\  X  =  .1.  )  ->  sum_ a  e.  U  ( X `  a )  =  ( phi `  N ) )
374dchrabl 20493 . . . . . . . . . 10  |-  ( N  e.  NN  ->  G  e.  Abel )
3811, 37syl 15 . . . . . . . . 9  |-  ( ph  ->  G  e.  Abel )
39 ablgrp 15094 . . . . . . . . 9  |-  ( G  e.  Abel  ->  G  e. 
Grp )
4038, 39syl 15 . . . . . . . 8  |-  ( ph  ->  G  e.  Grp )
419, 6grpidcl 14510 . . . . . . . 8  |-  ( G  e.  Grp  ->  .1.  e.  D )
4240, 41syl 15 . . . . . . 7  |-  ( ph  ->  .1.  e.  D )
434, 5, 9, 7, 8, 42dchreq 20497 . . . . . 6  |-  ( ph  ->  ( X  =  .1.  <->  A. k  e.  U  ( X `  k )  =  (  .1.  `  k ) ) )
4443notbid 285 . . . . 5  |-  ( ph  ->  ( -.  X  =  .1.  <->  -.  A. k  e.  U  ( X `  k )  =  (  .1.  `  k )
) )
45 rexnal 2554 . . . . 5  |-  ( E. k  e.  U  -.  ( X `  k )  =  (  .1.  `  k )  <->  -.  A. k  e.  U  ( X `  k )  =  (  .1.  `  k )
)
4644, 45syl6bbr 254 . . . 4  |-  ( ph  ->  ( -.  X  =  .1.  <->  E. k  e.  U  -.  ( X `  k
)  =  (  .1.  `  k ) ) )
47 df-ne 2448 . . . . . 6  |-  ( ( X `  k )  =/=  (  .1.  `  k )  <->  -.  ( X `  k )  =  (  .1.  `  k
) )
4811adantr 451 . . . . . . . . 9  |-  ( (
ph  /\  k  e.  U )  ->  N  e.  NN )
49 simpr 447 . . . . . . . . 9  |-  ( (
ph  /\  k  e.  U )  ->  k  e.  U )
504, 5, 6, 7, 48, 49dchr1 20496 . . . . . . . 8  |-  ( (
ph  /\  k  e.  U )  ->  (  .1.  `  k )  =  1 )
5150neeq2d 2460 . . . . . . 7  |-  ( (
ph  /\  k  e.  U )  ->  (
( X `  k
)  =/=  (  .1.  `  k )  <->  ( X `  k )  =/=  1
) )
52 oveq2 5866 . . . . . . . . . . . . . . . 16  |-  ( x  =  a  ->  (
k ( .r `  Z ) x )  =  ( k ( .r `  Z ) a ) )
5352fveq2d 5529 . . . . . . . . . . . . . . 15  |-  ( x  =  a  ->  ( X `  ( k
( .r `  Z
) x ) )  =  ( X `  ( k ( .r
`  Z ) a ) ) )
5453cbvsumv 12169 . . . . . . . . . . . . . 14  |-  sum_ x  e.  U  ( X `  ( k ( .r
`  Z ) x ) )  =  sum_ a  e.  U  ( X `  ( k
( .r `  Z
) a ) )
554, 5, 9dchrmhm 20480 . . . . . . . . . . . . . . . . . 18  |-  D  C_  ( (mulGrp `  Z ) MndHom  (mulGrp ` fld ) )
5655, 8sseldi 3178 . . . . . . . . . . . . . . . . 17  |-  ( ph  ->  X  e.  ( (mulGrp `  Z ) MndHom  (mulGrp ` fld )
) )
5756ad2antrr 706 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
k  e.  U  /\  ( X `  k )  =/=  1 ) )  /\  a  e.  U
)  ->  X  e.  ( (mulGrp `  Z ) MndHom  (mulGrp ` fld ) ) )
58 eqid 2283 . . . . . . . . . . . . . . . . . . 19  |-  ( Base `  Z )  =  (
Base `  Z )
5958, 7unitss 15442 . . . . . . . . . . . . . . . . . 18  |-  U  C_  ( Base `  Z )
60 simprl 732 . . . . . . . . . . . . . . . . . 18  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
k  e.  U )
6159, 60sseldi 3178 . . . . . . . . . . . . . . . . 17  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
k  e.  ( Base `  Z ) )
6261adantr 451 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
k  e.  U  /\  ( X `  k )  =/=  1 ) )  /\  a  e.  U
)  ->  k  e.  ( Base `  Z )
)
6359sseli 3176 . . . . . . . . . . . . . . . . 17  |-  ( a  e.  U  ->  a  e.  ( Base `  Z
) )
6463adantl 452 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  (
k  e.  U  /\  ( X `  k )  =/=  1 ) )  /\  a  e.  U
)  ->  a  e.  ( Base `  Z )
)
65 eqid 2283 . . . . . . . . . . . . . . . . . 18  |-  (mulGrp `  Z )  =  (mulGrp `  Z )
6665, 58mgpbas 15331 . . . . . . . . . . . . . . . . 17  |-  ( Base `  Z )  =  (
Base `  (mulGrp `  Z
) )
67 eqid 2283 . . . . . . . . . . . . . . . . . 18  |-  ( .r
`  Z )  =  ( .r `  Z
)
6865, 67mgpplusg 15329 . . . . . . . . . . . . . . . . 17  |-  ( .r
`  Z )  =  ( +g  `  (mulGrp `  Z ) )
69 eqid 2283 . . . . . . . . . . . . . . . . . 18  |-  (mulGrp ` fld )  =  (mulGrp ` fld )
70 cnfldmul 16385 . . . . . . . . . . . . . . . . . 18  |-  x.  =  ( .r ` fld )
7169, 70mgpplusg 15329 . . . . . . . . . . . . . . . . 17  |-  x.  =  ( +g  `  (mulGrp ` fld )
)
7266, 68, 71mhmlin 14422 . . . . . . . . . . . . . . . 16  |-  ( ( X  e.  ( (mulGrp `  Z ) MndHom  (mulGrp ` fld )
)  /\  k  e.  ( Base `  Z )  /\  a  e.  ( Base `  Z ) )  ->  ( X `  ( k ( .r
`  Z ) a ) )  =  ( ( X `  k
)  x.  ( X `
 a ) ) )
7357, 62, 64, 72syl3anc 1182 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  (
k  e.  U  /\  ( X `  k )  =/=  1 ) )  /\  a  e.  U
)  ->  ( X `  ( k ( .r
`  Z ) a ) )  =  ( ( X `  k
)  x.  ( X `
 a ) ) )
7473sumeq2dv 12176 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  sum_ a  e.  U  ( X `  ( k ( .r `  Z
) a ) )  =  sum_ a  e.  U  ( ( X `  k )  x.  ( X `  a )
) )
7554, 74syl5eq 2327 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  sum_ x  e.  U  ( X `  ( k ( .r `  Z
) x ) )  =  sum_ a  e.  U  ( ( X `  k )  x.  ( X `  a )
) )
76 fveq2 5525 . . . . . . . . . . . . . 14  |-  ( a  =  ( k ( .r `  Z ) x )  ->  ( X `  a )  =  ( X `  ( k ( .r
`  Z ) x ) ) )
7727adantr 451 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  U  e.  Fin )
7811nnnn0d 10018 . . . . . . . . . . . . . . . . . . 19  |-  ( ph  ->  N  e.  NN0 )
795zncrng 16498 . . . . . . . . . . . . . . . . . . 19  |-  ( N  e.  NN0  ->  Z  e. 
CRing )
8078, 79syl 15 . . . . . . . . . . . . . . . . . 18  |-  ( ph  ->  Z  e.  CRing )
81 crngrng 15351 . . . . . . . . . . . . . . . . . 18  |-  ( Z  e.  CRing  ->  Z  e.  Ring )
8280, 81syl 15 . . . . . . . . . . . . . . . . 17  |-  ( ph  ->  Z  e.  Ring )
83 eqid 2283 . . . . . . . . . . . . . . . . . 18  |-  ( (mulGrp `  Z )s  U )  =  ( (mulGrp `  Z )s  U
)
847, 83unitgrp 15449 . . . . . . . . . . . . . . . . 17  |-  ( Z  e.  Ring  ->  ( (mulGrp `  Z )s  U )  e.  Grp )
8582, 84syl 15 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  ( (mulGrp `  Z
)s 
U )  e.  Grp )
8685adantr 451 . . . . . . . . . . . . . . 15  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( (mulGrp `  Z
)s 
U )  e.  Grp )
87 eqid 2283 . . . . . . . . . . . . . . . 16  |-  ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z
) c ) ) )  =  ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z
) c ) ) )
887, 83unitgrpbas 15448 . . . . . . . . . . . . . . . 16  |-  U  =  ( Base `  (
(mulGrp `  Z )s  U
) )
8983, 68ressplusg 13250 . . . . . . . . . . . . . . . . 17  |-  ( U  e.  _V  ->  ( .r `  Z )  =  ( +g  `  (
(mulGrp `  Z )s  U
) ) )
9024, 89ax-mp 8 . . . . . . . . . . . . . . . 16  |-  ( .r
`  Z )  =  ( +g  `  (
(mulGrp `  Z )s  U
) )
9187, 88, 90grplactf1o 14565 . . . . . . . . . . . . . . 15  |-  ( ( ( (mulGrp `  Z
)s 
U )  e.  Grp  /\  k  e.  U )  ->  ( ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z
) c ) ) ) `  k ) : U -1-1-onto-> U )
9286, 60, 91syl2anc 642 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z ) c ) ) ) `
 k ) : U -1-1-onto-> U )
9387, 88grplactval 14563 . . . . . . . . . . . . . . 15  |-  ( ( k  e.  U  /\  x  e.  U )  ->  ( ( ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z
) c ) ) ) `  k ) `
 x )  =  ( k ( .r
`  Z ) x ) )
9460, 93sylan 457 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
k  e.  U  /\  ( X `  k )  =/=  1 ) )  /\  x  e.  U
)  ->  ( (
( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r
`  Z ) c ) ) ) `  k ) `  x
)  =  ( k ( .r `  Z
) x ) )
954, 5, 9, 58, 8dchrf 20481 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  X : ( Base `  Z ) --> CC )
96 ffvelrn 5663 . . . . . . . . . . . . . . . 16  |-  ( ( X : ( Base `  Z ) --> CC  /\  a  e.  ( Base `  Z ) )  -> 
( X `  a
)  e.  CC )
9795, 63, 96syl2an 463 . . . . . . . . . . . . . . 15  |-  ( (
ph  /\  a  e.  U )  ->  ( X `  a )  e.  CC )
9897adantlr 695 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  (
k  e.  U  /\  ( X `  k )  =/=  1 ) )  /\  a  e.  U
)  ->  ( X `  a )  e.  CC )
9976, 77, 92, 94, 98fsumf1o 12196 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  sum_ a  e.  U  ( X `  a )  =  sum_ x  e.  U  ( X `  ( k ( .r `  Z
) x ) ) )
10095adantr 451 . . . . . . . . . . . . . . 15  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  X : ( Base `  Z
) --> CC )
101 ffvelrn 5663 . . . . . . . . . . . . . . 15  |-  ( ( X : ( Base `  Z ) --> CC  /\  k  e.  ( Base `  Z ) )  -> 
( X `  k
)  e.  CC )
102100, 61, 101syl2anc 642 . . . . . . . . . . . . . 14  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( X `  k
)  e.  CC )
10377, 102, 98fsummulc2 12246 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( X `  k )  x.  sum_ a  e.  U  ( X `  a )
)  =  sum_ a  e.  U  ( ( X `  k )  x.  ( X `  a
) ) )
10475, 99, 1033eqtr4rd 2326 . . . . . . . . . . . 12  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( X `  k )  x.  sum_ a  e.  U  ( X `  a )
)  =  sum_ a  e.  U  ( X `  a ) )
10577, 98fsumcl 12206 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  sum_ a  e.  U  ( X `  a )  e.  CC )
106105mulid2d 8853 . . . . . . . . . . . 12  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( 1  x.  sum_ a  e.  U  ( X `  a )
)  =  sum_ a  e.  U  ( X `  a ) )
107104, 106oveq12d 5876 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  x. 
sum_ a  e.  U  ( X `  a ) )  -  ( 1  x.  sum_ a  e.  U  ( X `  a ) ) )  =  (
sum_ a  e.  U  ( X `  a )  -  sum_ a  e.  U  ( X `  a ) ) )
108105subidd 9145 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( sum_ a  e.  U  ( X `  a )  -  sum_ a  e.  U  ( X `  a ) )  =  0 )
109107, 108eqtrd 2315 . . . . . . . . . 10  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  x. 
sum_ a  e.  U  ( X `  a ) )  -  ( 1  x.  sum_ a  e.  U  ( X `  a ) ) )  =  0 )
11028a1i 10 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
1  e.  CC )
111102, 110, 105subdird 9236 . . . . . . . . . 10  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  - 
1 )  x.  sum_ a  e.  U  ( X `  a )
)  =  ( ( ( X `  k
)  x.  sum_ a  e.  U  ( X `  a ) )  -  ( 1  x.  sum_ a  e.  U  ( X `  a )
) ) )
112 subcl 9051 . . . . . . . . . . . 12  |-  ( ( ( X `  k
)  e.  CC  /\  1  e.  CC )  ->  ( ( X `  k )  -  1 )  e.  CC )
113102, 28, 112sylancl 643 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( X `  k )  -  1 )  e.  CC )
114113mul01d 9011 . . . . . . . . . 10  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  - 
1 )  x.  0 )  =  0 )
115109, 111, 1143eqtr4d 2325 . . . . . . . . 9  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  - 
1 )  x.  sum_ a  e.  U  ( X `  a )
)  =  ( ( ( X `  k
)  -  1 )  x.  0 ) )
116 0cn 8831 . . . . . . . . . . 11  |-  0  e.  CC
117116a1i 10 . . . . . . . . . 10  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
0  e.  CC )
118 simprr 733 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( X `  k
)  =/=  1 )
119 subeq0 9073 . . . . . . . . . . . . 13  |-  ( ( ( X `  k
)  e.  CC  /\  1  e.  CC )  ->  ( ( ( X `
 k )  - 
1 )  =  0  <-> 
( X `  k
)  =  1 ) )
120102, 28, 119sylancl 643 . . . . . . . . . . . 12  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  - 
1 )  =  0  <-> 
( X `  k
)  =  1 ) )
121120necon3bid 2481 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  - 
1 )  =/=  0  <->  ( X `  k )  =/=  1 ) )
122118, 121mpbird 223 . . . . . . . . . 10  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( X `  k )  -  1 )  =/=  0 )
123105, 117, 113, 122mulcand 9401 . . . . . . . . 9  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( ( X `  k )  -  1 )  x. 
sum_ a  e.  U  ( X `  a ) )  =  ( ( ( X `  k
)  -  1 )  x.  0 )  <->  sum_ a  e.  U  ( X `  a )  =  0 ) )
124115, 123mpbid 201 . . . . . . . 8  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  sum_ a  e.  U  ( X `  a )  =  0 )
125124expr 598 . . . . . . 7  |-  ( (
ph  /\  k  e.  U )  ->  (
( X `  k
)  =/=  1  ->  sum_ a  e.  U  ( X `  a )  =  0 ) )
12651, 125sylbid 206 . . . . . 6  |-  ( (
ph  /\  k  e.  U )  ->  (
( X `  k
)  =/=  (  .1.  `  k )  ->  sum_ a  e.  U  ( X `  a )  =  0 ) )
12747, 126syl5bir 209 . . . . 5  |-  ( (
ph  /\  k  e.  U )  ->  ( -.  ( X `  k
)  =  (  .1.  `  k )  ->  sum_ a  e.  U  ( X `  a )  =  0 ) )
128127rexlimdva 2667 . . . 4  |-  ( ph  ->  ( E. k  e.  U  -.  ( X `
 k )  =  (  .1.  `  k
)  ->  sum_ a  e.  U  ( X `  a )  =  0 ) )
12946, 128sylbid 206 . . 3  |-  ( ph  ->  ( -.  X  =  .1.  ->  sum_ a  e.  U  ( X `  a )  =  0 ) )
130129imp 418 . 2  |-  ( (
ph  /\  -.  X  =  .1.  )  ->  sum_ a  e.  U  ( X `  a )  =  0 )
1311, 2, 36, 130ifbothda 3595 1  |-  ( ph  -> 
sum_ a  e.  U  ( X `  a )  =  if ( X  =  .1.  ,  ( phi `  N ) ,  0 ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684    =/= wne 2446   A.wral 2543   E.wrex 2544   _Vcvv 2788   ifcif 3565    e. cmpt 4077   -->wf 5251   -1-1-onto->wf1o 5254   ` cfv 5255  (class class class)co 5858   Fincfn 6863   CCcc 8735   0cc0 8737   1c1 8738    x. cmul 8742    - cmin 9037   NNcn 9746   NN0cn0 9965   #chash 11337   sum_csu 12158   phicphi 12832   Basecbs 13148   ↾s cress 13149   +g cplusg 13208   .rcmulr 13209   0gc0g 13400   Grpcgrp 14362   MndHom cmhm 14413   Abelcabel 15090  mulGrpcmgp 15325   Ringcrg 15337   CRingccrg 15338  Unitcui 15421  ℂfldccnfld 16377  ℤ/nczn 16454  DChrcdchr 20471
This theorem is referenced by:  dchrsum  20508
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-inf2 7342  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815  ax-addf 8816  ax-mulf 8817
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-se 4353  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-isom 5264  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-of 6078  df-1st 6122  df-2nd 6123  df-tpos 6234  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-oadd 6483  df-er 6660  df-ec 6662  df-qs 6666  df-map 6774  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-sup 7194  df-oi 7225  df-card 7572  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-4 9806  df-5 9807  df-6 9808  df-7 9809  df-8 9810  df-9 9811  df-10 9812  df-n0 9966  df-z 10025  df-dec 10125  df-uz 10231  df-rp 10355  df-fz 10783  df-fzo 10871  df-fl 10925  df-mod 10974  df-seq 11047  df-exp 11105  df-hash 11338  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-clim 11962  df-sum 12159  df-dvds 12532  df-gcd 12686  df-phi 12834  df-struct 13150  df-ndx 13151  df-slot 13152  df-base 13153  df-sets 13154  df-ress 13155  df-plusg 13221  df-mulr 13222  df-starv 13223  df-sca 13224  df-vsca 13225  df-tset 13227  df-ple 13228  df-ds 13230  df-0g 13404  df-imas 13411  df-divs 13412  df-mnd 14367  df-mhm 14415  df-grp 14489  df-minusg 14490  df-sbg 14491  df-mulg 14492  df-subg 14618  df-nsg 14619  df-eqg 14620  df-ghm 14681  df-cmn 15091  df-abl 15092  df-mgp 15326  df-rng 15340  df-cring 15341  df-ur 15342  df-oppr 15405  df-dvdsr 15423  df-unit 15424  df-invr 15454  df-rnghom 15496  df-subrg 15543  df-lmod 15629  df-lss 15690  df-lsp 15729  df-sra 15925  df-rgmod 15926  df-lidl 15927  df-rsp 15928  df-2idl 15984  df-cnfld 16378  df-zrh 16455  df-zn 16458  df-dchr 20472
  Copyright terms: Public domain W3C validator