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

Theorem dchrsum2 20523
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 2305 . 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 2305 . 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 5540 . . . . . 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 20495 . . . . . . . . 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 20512 . . . . . 6  |-  ( (
ph  /\  a  e.  U )  ->  (  .1.  `  a )  =  1 )
153, 14sylan9eqr 2350 . . . . 5  |-  ( ( ( ph  /\  a  e.  U )  /\  X  =  .1.  )  ->  ( X `  a )  =  1 )
1615an32s 779 . . . 4  |-  ( ( ( ph  /\  X  =  .1.  )  /\  a  e.  U )  ->  ( X `  a )  =  1 )
1716sumeq2dv 12192 . . 3  |-  ( (
ph  /\  X  =  .1.  )  ->  sum_ a  e.  U  ( X `  a )  =  sum_ a  e.  U  1
)
185, 7znunithash 16534 . . . . . . . . 9  |-  ( N  e.  NN  ->  ( # `
 U )  =  ( phi `  N
) )
1911, 18syl 15 . . . . . . . 8  |-  ( ph  ->  ( # `  U
)  =  ( phi `  N ) )
2011phicld 12856 . . . . . . . . 9  |-  ( ph  ->  ( phi `  N
)  e.  NN )
2120nnnn0d 10034 . . . . . . . 8  |-  ( ph  ->  ( phi `  N
)  e.  NN0 )
2219, 21eqeltrd 2370 . . . . . . 7  |-  ( ph  ->  ( # `  U
)  e.  NN0 )
23 fvex 5555 . . . . . . . . 9  |-  (Unit `  Z )  e.  _V
247, 23eqeltri 2366 . . . . . . . 8  |-  U  e. 
_V
25 hashclb 11368 . . . . . . . 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 8811 . . . . . 6  |-  1  e.  CC
29 fsumconst 12268 . . . . . 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 5889 . . . . 5  |-  ( ph  ->  ( ( # `  U
)  x.  1 )  =  ( ( phi `  N )  x.  1 ) )
3220nncnd 9778 . . . . . 6  |-  ( ph  ->  ( phi `  N
)  e.  CC )
3332mulid1d 8868 . . . . 5  |-  ( ph  ->  ( ( phi `  N )  x.  1 )  =  ( phi `  N ) )
3430, 31, 333eqtrd 2332 . . . 4  |-  ( ph  -> 
sum_ a  e.  U 
1  =  ( phi `  N ) )
3534adantr 451 . . 3  |-  ( (
ph  /\  X  =  .1.  )  ->  sum_ a  e.  U  1  =  ( phi `  N ) )
3617, 35eqtrd 2328 . 2  |-  ( (
ph  /\  X  =  .1.  )  ->  sum_ a  e.  U  ( X `  a )  =  ( phi `  N ) )
374dchrabl 20509 . . . . . . . . . 10  |-  ( N  e.  NN  ->  G  e.  Abel )
3811, 37syl 15 . . . . . . . . 9  |-  ( ph  ->  G  e.  Abel )
39 ablgrp 15110 . . . . . . . . 9  |-  ( G  e.  Abel  ->  G  e. 
Grp )
4038, 39syl 15 . . . . . . . 8  |-  ( ph  ->  G  e.  Grp )
419, 6grpidcl 14526 . . . . . . . 8  |-  ( G  e.  Grp  ->  .1.  e.  D )
4240, 41syl 15 . . . . . . 7  |-  ( ph  ->  .1.  e.  D )
434, 5, 9, 7, 8, 42dchreq 20513 . . . . . 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 2567 . . . . 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 2461 . . . . . 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 20512 . . . . . . . 8  |-  ( (
ph  /\  k  e.  U )  ->  (  .1.  `  k )  =  1 )
5150neeq2d 2473 . . . . . . 7  |-  ( (
ph  /\  k  e.  U )  ->  (
( X `  k
)  =/=  (  .1.  `  k )  <->  ( X `  k )  =/=  1
) )
52 oveq2 5882 . . . . . . . . . . . . . . . 16  |-  ( x  =  a  ->  (
k ( .r `  Z ) x )  =  ( k ( .r `  Z ) a ) )
5352fveq2d 5545 . . . . . . . . . . . . . . 15  |-  ( x  =  a  ->  ( X `  ( k
( .r `  Z
) x ) )  =  ( X `  ( k ( .r
`  Z ) a ) ) )
5453cbvsumv 12185 . . . . . . . . . . . . . 14  |-  sum_ x  e.  U  ( X `  ( k ( .r
`  Z ) x ) )  =  sum_ a  e.  U  ( X `  ( k
( .r `  Z
) a ) )
554, 5, 9dchrmhm 20496 . . . . . . . . . . . . . . . . . 18  |-  D  C_  ( (mulGrp `  Z ) MndHom  (mulGrp ` fld ) )
5655, 8sseldi 3191 . . . . . . . . . . . . . . . . 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 2296 . . . . . . . . . . . . . . . . . . 19  |-  ( Base `  Z )  =  (
Base `  Z )
5958, 7unitss 15458 . . . . . . . . . . . . . . . . . 18  |-  U  C_  ( Base `  Z )
60 simprl 732 . . . . . . . . . . . . . . . . . 18  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
k  e.  U )
6159, 60sseldi 3191 . . . . . . . . . . . . . . . . 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 3189 . . . . . . . . . . . . . . . . 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 2296 . . . . . . . . . . . . . . . . . 18  |-  (mulGrp `  Z )  =  (mulGrp `  Z )
6665, 58mgpbas 15347 . . . . . . . . . . . . . . . . 17  |-  ( Base `  Z )  =  (
Base `  (mulGrp `  Z
) )
67 eqid 2296 . . . . . . . . . . . . . . . . . 18  |-  ( .r
`  Z )  =  ( .r `  Z
)
6865, 67mgpplusg 15345 . . . . . . . . . . . . . . . . 17  |-  ( .r
`  Z )  =  ( +g  `  (mulGrp `  Z ) )
69 eqid 2296 . . . . . . . . . . . . . . . . . 18  |-  (mulGrp ` fld )  =  (mulGrp ` fld )
70 cnfldmul 16401 . . . . . . . . . . . . . . . . . 18  |-  x.  =  ( .r ` fld )
7169, 70mgpplusg 15345 . . . . . . . . . . . . . . . . 17  |-  x.  =  ( +g  `  (mulGrp ` fld )
)
7266, 68, 71mhmlin 14438 . . . . . . . . . . . . . . . 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 12192 . . . . . . . . . . . . . 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 2340 . . . . . . . . . . . . 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 5541 . . . . . . . . . . . . . 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 10034 . . . . . . . . . . . . . . . . . . 19  |-  ( ph  ->  N  e.  NN0 )
795zncrng 16514 . . . . . . . . . . . . . . . . . . 19  |-  ( N  e.  NN0  ->  Z  e. 
CRing )
8078, 79syl 15 . . . . . . . . . . . . . . . . . 18  |-  ( ph  ->  Z  e.  CRing )
81 crngrng 15367 . . . . . . . . . . . . . . . . . 18  |-  ( Z  e.  CRing  ->  Z  e.  Ring )
8280, 81syl 15 . . . . . . . . . . . . . . . . 17  |-  ( ph  ->  Z  e.  Ring )
83 eqid 2296 . . . . . . . . . . . . . . . . . 18  |-  ( (mulGrp `  Z )s  U )  =  ( (mulGrp `  Z )s  U
)
847, 83unitgrp 15465 . . . . . . . . . . . . . . . . 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 2296 . . . . . . . . . . . . . . . 16  |-  ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z
) c ) ) )  =  ( b  e.  U  |->  ( c  e.  U  |->  ( b ( .r `  Z
) c ) ) )
887, 83unitgrpbas 15464 . . . . . . . . . . . . . . . 16  |-  U  =  ( Base `  (
(mulGrp `  Z )s  U
) )
8983, 68ressplusg 13266 . . . . . . . . . . . . . . . . 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 14581 . . . . . . . . . . . . . . 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 14579 . . . . . . . . . . . . . . 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 20497 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  X : ( Base `  Z ) --> CC )
96 ffvelrn 5679 . . . . . . . . . . . . . . . 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 12212 . . . . . . . . . . . . 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 5679 . . . . . . . . . . . . . . 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 12262 . . . . . . . . . . . . 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 2339 . . . . . . . . . . . 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 12222 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  ->  sum_ a  e.  U  ( X `  a )  e.  CC )
106105mulid2d 8869 . . . . . . . . . . . 12  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( 1  x.  sum_ a  e.  U  ( X `  a )
)  =  sum_ a  e.  U  ( X `  a ) )
107104, 106oveq12d 5892 . . . . . . . . . . 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 9161 . . . . . . . . . . 11  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( sum_ a  e.  U  ( X `  a )  -  sum_ a  e.  U  ( X `  a ) )  =  0 )
109107, 108eqtrd 2328 . . . . . . . . . 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 9252 . . . . . . . . . 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 9067 . . . . . . . . . . . 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 9027 . . . . . . . . . 10  |-  ( (
ph  /\  ( k  e.  U  /\  ( X `  k )  =/=  1 ) )  -> 
( ( ( X `
 k )  - 
1 )  x.  0 )  =  0 )
115109, 111, 1143eqtr4d 2338 . . . . . . . . 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 8847 . . . . . . . . . . 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 9089 . . . . . . . . . . . . 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 2494 . . . . . . . . . . 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 9417 . . . . . . . . 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 2680 . . . 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 3608 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 1632    e. wcel 1696    =/= wne 2459   A.wral 2556   E.wrex 2557   _Vcvv 2801   ifcif 3578    e. cmpt 4093   -->wf 5267   -1-1-onto->wf1o 5270   ` cfv 5271  (class class class)co 5874   Fincfn 6879   CCcc 8751   0cc0 8753   1c1 8754    x. cmul 8758    - cmin 9053   NNcn 9762   NN0cn0 9981   #chash 11353   sum_csu 12174   phicphi 12848   Basecbs 13164   ↾s cress 13165   +g cplusg 13224   .rcmulr 13225   0gc0g 13416   Grpcgrp 14378   MndHom cmhm 14429   Abelcabel 15106  mulGrpcmgp 15341   Ringcrg 15353   CRingccrg 15354  Unitcui 15437  ℂfldccnfld 16393  ℤ/nczn 16470  DChrcdchr 20487
This theorem is referenced by:  dchrsum  20524
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-rep 4147  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-inf2 7358  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831  ax-addf 8832  ax-mulf 8833
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 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-se 4369  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-isom 5280  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-of 6094  df-1st 6138  df-2nd 6139  df-tpos 6250  df-riota 6320  df-recs 6404  df-rdg 6439  df-1o 6495  df-oadd 6499  df-er 6676  df-ec 6678  df-qs 6682  df-map 6790  df-en 6880  df-dom 6881  df-sdom 6882  df-fin 6883  df-sup 7210  df-oi 7241  df-card 7588  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-4 9822  df-5 9823  df-6 9824  df-7 9825  df-8 9826  df-9 9827  df-10 9828  df-n0 9982  df-z 10041  df-dec 10141  df-uz 10247  df-rp 10371  df-fz 10799  df-fzo 10887  df-fl 10941  df-mod 10990  df-seq 11063  df-exp 11121  df-hash 11354  df-cj 11600  df-re 11601  df-im 11602  df-sqr 11736  df-abs 11737  df-clim 11978  df-sum 12175  df-dvds 12548  df-gcd 12702  df-phi 12850  df-struct 13166  df-ndx 13167  df-slot 13168  df-base 13169  df-sets 13170  df-ress 13171  df-plusg 13237  df-mulr 13238  df-starv 13239  df-sca 13240  df-vsca 13241  df-tset 13243  df-ple 13244  df-ds 13246  df-0g 13420  df-imas 13427  df-divs 13428  df-mnd 14383  df-mhm 14431  df-grp 14505  df-minusg 14506  df-sbg 14507  df-mulg 14508  df-subg 14634  df-nsg 14635  df-eqg 14636  df-ghm 14697  df-cmn 15107  df-abl 15108  df-mgp 15342  df-rng 15356  df-cring 15357  df-ur 15358  df-oppr 15421  df-dvdsr 15439  df-unit 15440  df-invr 15470  df-rnghom 15512  df-subrg 15559  df-lmod 15645  df-lss 15706  df-lsp 15745  df-sra 15941  df-rgmod 15942  df-lidl 15943  df-rsp 15944  df-2idl 16000  df-cnfld 16394  df-zrh 16471  df-zn 16474  df-dchr 20488
  Copyright terms: Public domain W3C validator