ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fsumcl2lem Unicode version

Theorem fsumcl2lem 11541
Description: - Lemma for finite sum closures. (The "-" before "Lemma" forces the math content to be displayed in the Statement List - NM 11-Feb-2008.) (Contributed by Mario Carneiro, 3-Jun-2014.)
Hypotheses
Ref Expression
fsumcllem.1  |-  ( ph  ->  S  C_  CC )
fsumcllem.2  |-  ( (
ph  /\  ( x  e.  S  /\  y  e.  S ) )  -> 
( x  +  y )  e.  S )
fsumcllem.3  |-  ( ph  ->  A  e.  Fin )
fsumcllem.4  |-  ( (
ph  /\  k  e.  A )  ->  B  e.  S )
fsumcl2lem.5  |-  ( ph  ->  A  =/=  (/) )
Assertion
Ref Expression
fsumcl2lem  |-  ( ph  -> 
sum_ k  e.  A  B  e.  S )
Distinct variable groups:    A, k, x, y    x, B, y    S, k, x, y    ph, k, x, y
Allowed substitution hint:    B( k)

Proof of Theorem fsumcl2lem
Dummy variables  a  f  m are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fsumcl2lem.5 . . . 4  |-  ( ph  ->  A  =/=  (/) )
21neneqd 2385 . . 3  |-  ( ph  ->  -.  A  =  (/) )
32pm2.21d 620 . 2  |-  ( ph  ->  ( A  =  (/)  -> 
sum_ k  e.  A  B  e.  S )
)
4 fsumcllem.1 . . . . . . . . . . . 12  |-  ( ph  ->  S  C_  CC )
54adantr 276 . . . . . . . . . . 11  |-  ( (
ph  /\  k  e.  A )  ->  S  C_  CC )
6 fsumcllem.4 . . . . . . . . . . 11  |-  ( (
ph  /\  k  e.  A )  ->  B  e.  S )
75, 6sseldd 3180 . . . . . . . . . 10  |-  ( (
ph  /\  k  e.  A )  ->  B  e.  CC )
87ralrimiva 2567 . . . . . . . . 9  |-  ( ph  ->  A. k  e.  A  B  e.  CC )
9 sumfct 11517 . . . . . . . . 9  |-  ( A. k  e.  A  B  e.  CC  ->  sum_ m  e.  A  ( ( k  e.  A  |->  B ) `
 m )  = 
sum_ k  e.  A  B )
108, 9syl 14 . . . . . . . 8  |-  ( ph  -> 
sum_ m  e.  A  ( ( k  e.  A  |->  B ) `  m )  =  sum_ k  e.  A  B
)
1110adantr 276 . . . . . . 7  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  ->  sum_ m  e.  A  ( ( k  e.  A  |->  B ) `  m
)  =  sum_ k  e.  A  B )
12 fveq2 5554 . . . . . . . 8  |-  ( m  =  ( f `  a )  ->  (
( k  e.  A  |->  B ) `  m
)  =  ( ( k  e.  A  |->  B ) `  ( f `
 a ) ) )
13 simprl 529 . . . . . . . 8  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
( `  A )  e.  NN )
14 simprr 531 . . . . . . . 8  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
f : ( 1 ... ( `  A
) ) -1-1-onto-> A )
154ad2antrr 488 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  m  e.  A )  ->  S  C_  CC )
166fmpttd 5713 . . . . . . . . . . 11  |-  ( ph  ->  ( k  e.  A  |->  B ) : A --> S )
1716adantr 276 . . . . . . . . . 10  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
( k  e.  A  |->  B ) : A --> S )
1817ffvelcdmda 5693 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  m  e.  A )  ->  (
( k  e.  A  |->  B ) `  m
)  e.  S )
1915, 18sseldd 3180 . . . . . . . 8  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  m  e.  A )  ->  (
( k  e.  A  |->  B ) `  m
)  e.  CC )
20 f1of 5500 . . . . . . . . . 10  |-  ( f : ( 1 ... ( `  A )
)
-1-1-onto-> A  ->  f : ( 1 ... ( `  A
) ) --> A )
2114, 20syl 14 . . . . . . . . 9  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
f : ( 1 ... ( `  A
) ) --> A )
22 fvco3 5628 . . . . . . . . 9  |-  ( ( f : ( 1 ... ( `  A
) ) --> A  /\  a  e.  ( 1 ... ( `  A
) ) )  -> 
( ( ( k  e.  A  |->  B )  o.  f ) `  a )  =  ( ( k  e.  A  |->  B ) `  (
f `  a )
) )
2321, 22sylan 283 . . . . . . . 8  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  a  e.  ( 1 ... ( `  A ) ) )  ->  ( ( ( k  e.  A  |->  B )  o.  f ) `
 a )  =  ( ( k  e.  A  |->  B ) `  ( f `  a
) ) )
2412, 13, 14, 19, 23fsum3 11530 . . . . . . 7  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  ->  sum_ m  e.  A  ( ( k  e.  A  |->  B ) `  m
)  =  (  seq 1 (  +  , 
( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 ) ) ) `  ( `  A ) ) )
2511, 24eqtr3d 2228 . . . . . 6  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  ->  sum_ k  e.  A  B  =  (  seq 1
(  +  ,  ( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 ) ) ) `  ( `  A ) ) )
26 nnuz 9628 . . . . . . . 8  |-  NN  =  ( ZZ>= `  1 )
2713, 26eleqtrdi 2286 . . . . . . 7  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
( `  A )  e.  ( ZZ>= `  1 )
)
28 elnnuz 9629 . . . . . . . . . . 11  |-  ( x  e.  NN  <->  x  e.  ( ZZ>= `  1 )
)
2928biimpri 133 . . . . . . . . . 10  |-  ( x  e.  ( ZZ>= `  1
)  ->  x  e.  NN )
3029adantl 277 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  ->  x  e.  NN )
314ad3antrrr 492 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  S  C_  CC )
3217ad2antrr 488 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( k  e.  A  |->  B ) : A --> S )
3321ad2antrr 488 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  f :
( 1 ... ( `  A ) ) --> A )
34 fco 5419 . . . . . . . . . . . . . 14  |-  ( ( ( k  e.  A  |->  B ) : A --> S  /\  f : ( 1 ... ( `  A
) ) --> A )  ->  ( ( k  e.  A  |->  B )  o.  f ) : ( 1 ... ( `  A ) ) --> S )
3532, 33, 34syl2anc 411 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( (
k  e.  A  |->  B )  o.  f ) : ( 1 ... ( `  A )
) --> S )
36 1zzd 9344 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  1  e.  ZZ )
3713ad2antrr 488 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( `  A
)  e.  NN )
3837nnzd 9438 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( `  A
)  e.  ZZ )
39 simpr 110 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  x  e.  NN )
4039adantr 276 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  x  e.  NN )
4140nnzd 9438 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  x  e.  ZZ )
4236, 38, 413jca 1179 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( 1  e.  ZZ  /\  ( `  A )  e.  ZZ  /\  x  e.  ZZ ) )
4340nnge1d 9025 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  1  <_  x )
44 simpr 110 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  x  <_  ( `  A ) )
4543, 44jca 306 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( 1  <_  x  /\  x  <_  ( `  A )
) )
46 elfz2 10081 . . . . . . . . . . . . . 14  |-  ( x  e.  ( 1 ... ( `  A )
)  <->  ( ( 1  e.  ZZ  /\  ( `  A )  e.  ZZ  /\  x  e.  ZZ )  /\  ( 1  <_  x  /\  x  <_  ( `  A ) ) ) )
4742, 45, 46sylanbrc 417 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  x  e.  ( 1 ... ( `  A ) ) )
4835, 47ffvelcdmd 5694 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( (
( k  e.  A  |->  B )  o.  f
) `  x )  e.  S )
4931, 48sseldd 3180 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  x  <_  ( `  A )
)  ->  ( (
( k  e.  A  |->  B )  o.  f
) `  x )  e.  CC )
50 0cnd 8012 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  /\  -.  x  <_  ( `  A )
)  ->  0  e.  CC )
5139nnzd 9438 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  x  e.  ZZ )
5213adantr 276 . . . . . . . . . . . . 13  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  ( `  A )  e.  NN )
5352nnzd 9438 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  ( `  A )  e.  ZZ )
54 zdcle 9393 . . . . . . . . . . . 12  |-  ( ( x  e.  ZZ  /\  ( `  A )  e.  ZZ )  -> DECID  x  <_  ( `  A
) )
5551, 53, 54syl2anc 411 . . . . . . . . . . 11  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  -> DECID  x  <_  ( `  A
) )
5649, 50, 55ifcldadc 3586 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  if ( x  <_  ( `  A
) ,  ( ( ( k  e.  A  |->  B )  o.  f
) `  x ) ,  0 )  e.  CC )
5730, 56syldan 282 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  ->  if (
x  <_  ( `  A
) ,  ( ( ( k  e.  A  |->  B )  o.  f
) `  x ) ,  0 )  e.  CC )
58 breq1 4032 . . . . . . . . . . 11  |-  ( a  =  x  ->  (
a  <_  ( `  A
)  <->  x  <_  ( `  A
) ) )
59 fveq2 5554 . . . . . . . . . . 11  |-  ( a  =  x  ->  (
( ( k  e.  A  |->  B )  o.  f ) `  a
)  =  ( ( ( k  e.  A  |->  B )  o.  f
) `  x )
)
6058, 59ifbieq1d 3579 . . . . . . . . . 10  |-  ( a  =  x  ->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 )  =  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 x ) ,  0 ) )
61 eqid 2193 . . . . . . . . . 10  |-  ( a  e.  NN  |->  if ( a  <_  ( `  A
) ,  ( ( ( k  e.  A  |->  B )  o.  f
) `  a ) ,  0 ) )  =  ( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 a ) ,  0 ) )
6260, 61fvmptg 5633 . . . . . . . . 9  |-  ( ( x  e.  NN  /\  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  x
) ,  0 )  e.  CC )  -> 
( ( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 a ) ,  0 ) ) `  x )  =  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  x
) ,  0 ) )
6330, 57, 62syl2anc 411 . . . . . . . 8  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  ->  ( (
a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 ) ) `  x )  =  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 x ) ,  0 ) )
644adantr 276 . . . . . . . . . . . . 13  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  ->  S  C_  CC )
6517, 64fssd 5416 . . . . . . . . . . . 12  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
( k  e.  A  |->  B ) : A --> CC )
6665ad2antrr 488 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( k  e.  A  |->  B ) : A --> CC )
6721ad2antrr 488 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
f : ( 1 ... ( `  A
) ) --> A )
68 fco 5419 . . . . . . . . . . 11  |-  ( ( ( k  e.  A  |->  B ) : A --> CC  /\  f : ( 1 ... ( `  A
) ) --> A )  ->  ( ( k  e.  A  |->  B )  o.  f ) : ( 1 ... ( `  A ) ) --> CC )
6966, 67, 68syl2anc 411 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( ( k  e.  A  |->  B )  o.  f ) : ( 1 ... ( `  A
) ) --> CC )
70 1zzd 9344 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
1  e.  ZZ )
7113ad2antrr 488 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( `  A )  e.  NN )
7271nnzd 9438 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( `  A )  e.  ZZ )
73 eluzelz 9601 . . . . . . . . . . . . 13  |-  ( x  e.  ( ZZ>= `  1
)  ->  x  e.  ZZ )
7473ad2antlr 489 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  ->  x  e.  ZZ )
7570, 72, 743jca 1179 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( 1  e.  ZZ  /\  ( `  A )  e.  ZZ  /\  x  e.  ZZ ) )
7629nnge1d 9025 . . . . . . . . . . . . 13  |-  ( x  e.  ( ZZ>= `  1
)  ->  1  <_  x )
7776ad2antlr 489 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
1  <_  x )
78 simpr 110 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  ->  x  <_  ( `  A )
)
7977, 78jca 306 . . . . . . . . . . 11  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( 1  <_  x  /\  x  <_  ( `  A
) ) )
8075, 79, 46sylanbrc 417 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  ->  x  e.  ( 1 ... ( `  A
) ) )
8169, 80ffvelcdmd 5694 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  x  <_  ( `  A ) )  -> 
( ( ( k  e.  A  |->  B )  o.  f ) `  x )  e.  CC )
82 0cnd 8012 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  /\  -.  x  <_  ( `  A )
)  ->  0  e.  CC )
8330, 55syldan 282 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  -> DECID  x  <_  ( `  A
) )
8481, 82, 83ifcldadc 3586 . . . . . . . 8  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  ->  if (
x  <_  ( `  A
) ,  ( ( ( k  e.  A  |->  B )  o.  f
) `  x ) ,  0 )  e.  CC )
8563, 84eqeltrd 2270 . . . . . . 7  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( ZZ>= `  1 )
)  ->  ( (
a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 ) ) `  x )  e.  CC )
86 elfzle2 10094 . . . . . . . . . . 11  |-  ( x  e.  ( 1 ... ( `  A )
)  ->  x  <_  ( `  A ) )
8786adantl 277 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  x  <_  ( `  A ) )
8887iftrued 3564 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 x ) ,  0 )  =  ( ( ( k  e.  A  |->  B )  o.  f ) `  x
) )
89 elfznn 10120 . . . . . . . . . . 11  |-  ( x  e.  ( 1 ... ( `  A )
)  ->  x  e.  NN )
9089anim2i 342 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  ( ( ph  /\  ( ( `  A
)  e.  NN  /\  f : ( 1 ... ( `  A )
)
-1-1-onto-> A ) )  /\  x  e.  NN )
)
9190, 87, 48syl2anc 411 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  ( ( ( k  e.  A  |->  B )  o.  f ) `
 x )  e.  S )
9288, 91eqeltrd 2270 . . . . . . . 8  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 x ) ,  0 )  e.  S
)
9339, 56, 62syl2anc 411 . . . . . . . . . 10  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  (
( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 ) ) `  x )  =  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 x ) ,  0 ) )
9493eleq1d 2262 . . . . . . . . 9  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  NN )  ->  (
( ( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 a ) ,  0 ) ) `  x )  e.  S  <->  if ( x  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  x
) ,  0 )  e.  S ) )
9590, 94syl 14 . . . . . . . 8  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  ( ( ( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `  a
) ,  0 ) ) `  x )  e.  S  <->  if (
x  <_  ( `  A
) ,  ( ( ( k  e.  A  |->  B )  o.  f
) `  x ) ,  0 )  e.  S ) )
9692, 95mpbird 167 . . . . . . 7  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  x  e.  ( 1 ... ( `  A ) ) )  ->  ( ( a  e.  NN  |->  if ( a  <_  ( `  A
) ,  ( ( ( k  e.  A  |->  B )  o.  f
) `  a ) ,  0 ) ) `
 x )  e.  S )
97 fsumcllem.2 . . . . . . . 8  |-  ( (
ph  /\  ( x  e.  S  /\  y  e.  S ) )  -> 
( x  +  y )  e.  S )
9897adantlr 477 . . . . . . 7  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  ( x  e.  S  /\  y  e.  S ) )  -> 
( x  +  y )  e.  S )
99 addcl 7997 . . . . . . . 8  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  +  y )  e.  CC )
10099adantl 277 . . . . . . 7  |-  ( ( ( ph  /\  (
( `  A )  e.  NN  /\  f : ( 1 ... ( `  A ) ) -1-1-onto-> A ) )  /\  ( x  e.  CC  /\  y  e.  CC ) )  -> 
( x  +  y )  e.  CC )
10127, 85, 96, 98, 64, 100seq3clss 10542 . . . . . 6  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  -> 
(  seq 1 (  +  ,  ( a  e.  NN  |->  if ( a  <_  ( `  A ) ,  ( ( ( k  e.  A  |->  B )  o.  f ) `
 a ) ,  0 ) ) ) `
 ( `  A
) )  e.  S
)
10225, 101eqeltrd 2270 . . . . 5  |-  ( (
ph  /\  ( ( `  A )  e.  NN  /\  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) )  ->  sum_ k  e.  A  B  e.  S )
103102expr 375 . . . 4  |-  ( (
ph  /\  ( `  A
)  e.  NN )  ->  ( f : ( 1 ... ( `  A ) ) -1-1-onto-> A  ->  sum_ k  e.  A  B  e.  S ) )
104103exlimdv 1830 . . 3  |-  ( (
ph  /\  ( `  A
)  e.  NN )  ->  ( E. f 
f : ( 1 ... ( `  A
) ) -1-1-onto-> A  ->  sum_ k  e.  A  B  e.  S
) )
105104expimpd 363 . 2  |-  ( ph  ->  ( ( ( `  A
)  e.  NN  /\  E. f  f : ( 1 ... ( `  A
) ) -1-1-onto-> A )  ->  sum_ k  e.  A  B  e.  S ) )
106 fsumcllem.3 . . 3  |-  ( ph  ->  A  e.  Fin )
107 fz1f1o 11518 . . 3  |-  ( A  e.  Fin  ->  ( A  =  (/)  \/  (
( `  A )  e.  NN  /\  E. f 
f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) ) )
108106, 107syl 14 . 2  |-  ( ph  ->  ( A  =  (/)  \/  ( ( `  A
)  e.  NN  /\  E. f  f : ( 1 ... ( `  A
) ) -1-1-onto-> A ) ) )
1093, 105, 108mpjaod 719 1  |-  ( ph  -> 
sum_ k  e.  A  B  e.  S )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 104    <-> wb 105    \/ wo 709  DECID wdc 835    /\ w3a 980    = wceq 1364   E.wex 1503    e. wcel 2164    =/= wne 2364   A.wral 2472    C_ wss 3153   (/)c0 3446   ifcif 3557   class class class wbr 4029    |-> cmpt 4090    o. ccom 4663   -->wf 5250   -1-1-onto->wf1o 5253   ` cfv 5254  (class class class)co 5918   Fincfn 6794   CCcc 7870   0cc0 7872   1c1 7873    + caddc 7875    <_ cle 8055   NNcn 8982   ZZcz 9317   ZZ>=cuz 9592   ...cfz 10074    seqcseq 10518  ♯chash 10846   sum_csu 11496
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2166  ax-14 2167  ax-ext 2175  ax-coll 4144  ax-sep 4147  ax-nul 4155  ax-pow 4203  ax-pr 4238  ax-un 4464  ax-setind 4569  ax-iinf 4620  ax-cnex 7963  ax-resscn 7964  ax-1cn 7965  ax-1re 7966  ax-icn 7967  ax-addcl 7968  ax-addrcl 7969  ax-mulcl 7970  ax-mulrcl 7971  ax-addcom 7972  ax-mulcom 7973  ax-addass 7974  ax-mulass 7975  ax-distr 7976  ax-i2m1 7977  ax-0lt1 7978  ax-1rid 7979  ax-0id 7980  ax-rnegex 7981  ax-precex 7982  ax-cnre 7983  ax-pre-ltirr 7984  ax-pre-ltwlin 7985  ax-pre-lttrn 7986  ax-pre-apti 7987  ax-pre-ltadd 7988  ax-pre-mulgt0 7989  ax-pre-mulext 7990  ax-arch 7991  ax-caucvg 7992
This theorem depends on definitions:  df-bi 117  df-dc 836  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2045  df-mo 2046  df-clab 2180  df-cleq 2186  df-clel 2189  df-nfc 2325  df-ne 2365  df-nel 2460  df-ral 2477  df-rex 2478  df-reu 2479  df-rmo 2480  df-rab 2481  df-v 2762  df-sbc 2986  df-csb 3081  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3447  df-if 3558  df-pw 3603  df-sn 3624  df-pr 3625  df-op 3627  df-uni 3836  df-int 3871  df-iun 3914  df-br 4030  df-opab 4091  df-mpt 4092  df-tr 4128  df-id 4324  df-po 4327  df-iso 4328  df-iord 4397  df-on 4399  df-ilim 4400  df-suc 4402  df-iom 4623  df-xp 4665  df-rel 4666  df-cnv 4667  df-co 4668  df-dm 4669  df-rn 4670  df-res 4671  df-ima 4672  df-iota 5215  df-fun 5256  df-fn 5257  df-f 5258  df-f1 5259  df-fo 5260  df-f1o 5261  df-fv 5262  df-isom 5263  df-riota 5873  df-ov 5921  df-oprab 5922  df-mpo 5923  df-1st 6193  df-2nd 6194  df-recs 6358  df-irdg 6423  df-frec 6444  df-1o 6469  df-oadd 6473  df-er 6587  df-en 6795  df-dom 6796  df-fin 6797  df-pnf 8056  df-mnf 8057  df-xr 8058  df-ltxr 8059  df-le 8060  df-sub 8192  df-neg 8193  df-reap 8594  df-ap 8601  df-div 8692  df-inn 8983  df-2 9041  df-3 9042  df-4 9043  df-n0 9241  df-z 9318  df-uz 9593  df-q 9685  df-rp 9720  df-fz 10075  df-fzo 10209  df-seqfrec 10519  df-exp 10610  df-ihash 10847  df-cj 10986  df-re 10987  df-im 10988  df-rsqrt 11142  df-abs 11143  df-clim 11422  df-sumdc 11497
This theorem is referenced by:  fsumcllem  11542  fsumrpcl  11547
  Copyright terms: Public domain W3C validator