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

Theorem cvgratnnlemseq 11400
Description: Lemma for cvgratnn 11405. (Contributed by Jim Kingdon, 21-Nov-2022.)
Hypotheses
Ref Expression
cvgratnn.3  |-  ( ph  ->  A  e.  RR )
cvgratnn.4  |-  ( ph  ->  A  <  1 )
cvgratnn.gt0  |-  ( ph  ->  0  <  A )
cvgratnn.6  |-  ( (
ph  /\  k  e.  NN )  ->  ( F `
 k )  e.  CC )
cvgratnn.7  |-  ( (
ph  /\  k  e.  NN )  ->  ( abs `  ( F `  (
k  +  1 ) ) )  <_  ( A  x.  ( abs `  ( F `  k
) ) ) )
cvgratnn.m  |-  ( ph  ->  M  e.  NN )
cvgratnn.n  |-  ( ph  ->  N  e.  ( ZZ>= `  M ) )
Assertion
Ref Expression
cvgratnnlemseq  |-  ( ph  ->  ( (  seq 1
(  +  ,  F
) `  N )  -  (  seq 1
(  +  ,  F
) `  M )
)  =  sum_ i  e.  ( ( M  + 
1 ) ... N
) ( F `  i ) )
Distinct variable groups:    A, k    k, F    k, N    ph, k    i, F, k    i, M    i, N    ph, i
Allowed substitution hints:    A( i)    M( k)

Proof of Theorem cvgratnnlemseq
Dummy variables  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nnuz 9453 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
2 1zzd 9173 . . . . . . 7  |-  ( ph  ->  1  e.  ZZ )
3 cvgratnn.6 . . . . . . 7  |-  ( (
ph  /\  k  e.  NN )  ->  ( F `
 k )  e.  CC )
41, 2, 3serf 10351 . . . . . 6  |-  ( ph  ->  seq 1 (  +  ,  F ) : NN --> CC )
54adantr 274 . . . . 5  |-  ( (
ph  /\  M  <  N )  ->  seq 1
(  +  ,  F
) : NN --> CC )
6 cvgratnn.m . . . . . 6  |-  ( ph  ->  M  e.  NN )
76adantr 274 . . . . 5  |-  ( (
ph  /\  M  <  N )  ->  M  e.  NN )
85, 7ffvelrnd 5596 . . . 4  |-  ( (
ph  /\  M  <  N )  ->  (  seq 1 (  +  ,  F ) `  M
)  e.  CC )
9 eqid 2154 . . . . . . 7  |-  ( ZZ>= `  ( M  +  1
) )  =  (
ZZ>= `  ( M  + 
1 ) )
106nnzd 9264 . . . . . . . 8  |-  ( ph  ->  M  e.  ZZ )
1110peano2zd 9268 . . . . . . 7  |-  ( ph  ->  ( M  +  1 )  e.  ZZ )
12 fveq2 5461 . . . . . . . . 9  |-  ( k  =  x  ->  ( F `  k )  =  ( F `  x ) )
1312eleq1d 2223 . . . . . . . 8  |-  ( k  =  x  ->  (
( F `  k
)  e.  CC  <->  ( F `  x )  e.  CC ) )
143ralrimiva 2527 . . . . . . . . 9  |-  ( ph  ->  A. k  e.  NN  ( F `  k )  e.  CC )
1514adantr 274 . . . . . . . 8  |-  ( (
ph  /\  x  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  A. k  e.  NN  ( F `  k )  e.  CC )
166peano2nnd 8827 . . . . . . . . 9  |-  ( ph  ->  ( M  +  1 )  e.  NN )
17 eluznn 9489 . . . . . . . . 9  |-  ( ( ( M  +  1 )  e.  NN  /\  x  e.  ( ZZ>= `  ( M  +  1
) ) )  ->  x  e.  NN )
1816, 17sylan 281 . . . . . . . 8  |-  ( (
ph  /\  x  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  x  e.  NN )
1913, 15, 18rspcdva 2818 . . . . . . 7  |-  ( (
ph  /\  x  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  ( F `  x )  e.  CC )
209, 11, 19serf 10351 . . . . . 6  |-  ( ph  ->  seq ( M  + 
1 ) (  +  ,  F ) : ( ZZ>= `  ( M  +  1 ) ) --> CC )
2120adantr 274 . . . . 5  |-  ( (
ph  /\  M  <  N )  ->  seq ( M  +  1 ) (  +  ,  F
) : ( ZZ>= `  ( M  +  1
) ) --> CC )
2211adantr 274 . . . . . 6  |-  ( (
ph  /\  M  <  N )  ->  ( M  +  1 )  e.  ZZ )
23 cvgratnn.n . . . . . . . 8  |-  ( ph  ->  N  e.  ( ZZ>= `  M ) )
24 eluzelz 9427 . . . . . . . 8  |-  ( N  e.  ( ZZ>= `  M
)  ->  N  e.  ZZ )
2523, 24syl 14 . . . . . . 7  |-  ( ph  ->  N  e.  ZZ )
2625adantr 274 . . . . . 6  |-  ( (
ph  /\  M  <  N )  ->  N  e.  ZZ )
27 zltp1le 9200 . . . . . . . 8  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( M  <  N  <->  ( M  +  1 )  <_  N ) )
2810, 25, 27syl2anc 409 . . . . . . 7  |-  ( ph  ->  ( M  <  N  <->  ( M  +  1 )  <_  N ) )
2928biimpa 294 . . . . . 6  |-  ( (
ph  /\  M  <  N )  ->  ( M  +  1 )  <_  N )
30 eluz2 9424 . . . . . 6  |-  ( N  e.  ( ZZ>= `  ( M  +  1 ) )  <->  ( ( M  +  1 )  e.  ZZ  /\  N  e.  ZZ  /\  ( M  +  1 )  <_  N ) )
3122, 26, 29, 30syl3anbrc 1166 . . . . 5  |-  ( (
ph  /\  M  <  N )  ->  N  e.  ( ZZ>= `  ( M  +  1 ) ) )
3221, 31ffvelrnd 5596 . . . 4  |-  ( (
ph  /\  M  <  N )  ->  (  seq ( M  +  1
) (  +  ,  F ) `  N
)  e.  CC )
338, 32pncan2d 8167 . . 3  |-  ( (
ph  /\  M  <  N )  ->  ( (
(  seq 1 (  +  ,  F ) `  M )  +  (  seq ( M  + 
1 ) (  +  ,  F ) `  N ) )  -  (  seq 1 (  +  ,  F ) `  M ) )  =  (  seq ( M  +  1 ) (  +  ,  F ) `
 N ) )
34 addcl 7836 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  +  y )  e.  CC )
3534adantl 275 . . . . 5  |-  ( ( ( ph  /\  M  <  N )  /\  (
x  e.  CC  /\  y  e.  CC )
)  ->  ( x  +  y )  e.  CC )
36 addass 7841 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC  /\  z  e.  CC )  ->  (
( x  +  y )  +  z )  =  ( x  +  ( y  +  z ) ) )
3736adantl 275 . . . . 5  |-  ( ( ( ph  /\  M  <  N )  /\  (
x  e.  CC  /\  y  e.  CC  /\  z  e.  CC ) )  -> 
( ( x  +  y )  +  z )  =  ( x  +  ( y  +  z ) ) )
386, 1eleqtrdi 2247 . . . . . 6  |-  ( ph  ->  M  e.  ( ZZ>= ` 
1 ) )
3938adantr 274 . . . . 5  |-  ( (
ph  /\  M  <  N )  ->  M  e.  ( ZZ>= `  1 )
)
4014ad2antrr 480 . . . . . 6  |-  ( ( ( ph  /\  M  <  N )  /\  x  e.  ( ZZ>= `  1 )
)  ->  A. k  e.  NN  ( F `  k )  e.  CC )
41 simpr 109 . . . . . . 7  |-  ( ( ( ph  /\  M  <  N )  /\  x  e.  ( ZZ>= `  1 )
)  ->  x  e.  ( ZZ>= `  1 )
)
4241, 1eleqtrrdi 2248 . . . . . 6  |-  ( ( ( ph  /\  M  <  N )  /\  x  e.  ( ZZ>= `  1 )
)  ->  x  e.  NN )
4313, 40, 42rspcdva 2818 . . . . 5  |-  ( ( ( ph  /\  M  <  N )  /\  x  e.  ( ZZ>= `  1 )
)  ->  ( F `  x )  e.  CC )
4435, 37, 31, 39, 43seq3split 10356 . . . 4  |-  ( (
ph  /\  M  <  N )  ->  (  seq 1 (  +  ,  F ) `  N
)  =  ( (  seq 1 (  +  ,  F ) `  M )  +  (  seq ( M  + 
1 ) (  +  ,  F ) `  N ) ) )
4544oveq1d 5829 . . 3  |-  ( (
ph  /\  M  <  N )  ->  ( (  seq 1 (  +  ,  F ) `  N
)  -  (  seq 1 (  +  ,  F ) `  M
) )  =  ( ( (  seq 1
(  +  ,  F
) `  M )  +  (  seq ( M  +  1 ) (  +  ,  F
) `  N )
)  -  (  seq 1 (  +  ,  F ) `  M
) ) )
46 eqidd 2155 . . . 4  |-  ( ( ( ph  /\  M  <  N )  /\  i  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  ( F `  i )  =  ( F `  i ) )
47 fveq2 5461 . . . . . 6  |-  ( k  =  i  ->  ( F `  k )  =  ( F `  i ) )
4847eleq1d 2223 . . . . 5  |-  ( k  =  i  ->  (
( F `  k
)  e.  CC  <->  ( F `  i )  e.  CC ) )
4914ad2antrr 480 . . . . 5  |-  ( ( ( ph  /\  M  <  N )  /\  i  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  A. k  e.  NN  ( F `  k )  e.  CC )
5016ad2antrr 480 . . . . . 6  |-  ( ( ( ph  /\  M  <  N )  /\  i  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  ( M  +  1 )  e.  NN )
51 simpr 109 . . . . . 6  |-  ( ( ( ph  /\  M  <  N )  /\  i  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  i  e.  ( ZZ>= `  ( M  +  1 ) ) )
52 eluznn 9489 . . . . . 6  |-  ( ( ( M  +  1 )  e.  NN  /\  i  e.  ( ZZ>= `  ( M  +  1
) ) )  -> 
i  e.  NN )
5350, 51, 52syl2anc 409 . . . . 5  |-  ( ( ( ph  /\  M  <  N )  /\  i  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  i  e.  NN )
5448, 49, 53rspcdva 2818 . . . 4  |-  ( ( ( ph  /\  M  <  N )  /\  i  e.  ( ZZ>= `  ( M  +  1 ) ) )  ->  ( F `  i )  e.  CC )
5546, 31, 54fsum3ser 11271 . . 3  |-  ( (
ph  /\  M  <  N )  ->  sum_ i  e.  ( ( M  + 
1 ) ... N
) ( F `  i )  =  (  seq ( M  + 
1 ) (  +  ,  F ) `  N ) )
5633, 45, 553eqtr4d 2197 . 2  |-  ( (
ph  /\  M  <  N )  ->  ( (  seq 1 (  +  ,  F ) `  N
)  -  (  seq 1 (  +  ,  F ) `  M
) )  =  sum_ i  e.  ( ( M  +  1 ) ... N ) ( F `  i ) )
57 simpr 109 . . . . . . 7  |-  ( (
ph  /\  M  =  N )  ->  M  =  N )
586nnred 8825 . . . . . . . . 9  |-  ( ph  ->  M  e.  RR )
5958ltp1d 8780 . . . . . . . 8  |-  ( ph  ->  M  <  ( M  +  1 ) )
6059adantr 274 . . . . . . 7  |-  ( (
ph  /\  M  =  N )  ->  M  <  ( M  +  1 ) )
6157, 60eqbrtrrd 3984 . . . . . 6  |-  ( (
ph  /\  M  =  N )  ->  N  <  ( M  +  1 ) )
6211adantr 274 . . . . . . 7  |-  ( (
ph  /\  M  =  N )  ->  ( M  +  1 )  e.  ZZ )
6325adantr 274 . . . . . . 7  |-  ( (
ph  /\  M  =  N )  ->  N  e.  ZZ )
64 fzn 9922 . . . . . . 7  |-  ( ( ( M  +  1 )  e.  ZZ  /\  N  e.  ZZ )  ->  ( N  <  ( M  +  1 )  <-> 
( ( M  + 
1 ) ... N
)  =  (/) ) )
6562, 63, 64syl2anc 409 . . . . . 6  |-  ( (
ph  /\  M  =  N )  ->  ( N  <  ( M  + 
1 )  <->  ( ( M  +  1 ) ... N )  =  (/) ) )
6661, 65mpbid 146 . . . . 5  |-  ( (
ph  /\  M  =  N )  ->  (
( M  +  1 ) ... N )  =  (/) )
6766sumeq1d 11240 . . . 4  |-  ( (
ph  /\  M  =  N )  ->  sum_ i  e.  ( ( M  + 
1 ) ... N
) ( F `  i )  =  sum_ i  e.  (/)  ( F `
 i ) )
68 sum0 11262 . . . 4  |-  sum_ i  e.  (/)  ( F `  i )  =  0
6967, 68eqtrdi 2203 . . 3  |-  ( (
ph  /\  M  =  N )  ->  sum_ i  e.  ( ( M  + 
1 ) ... N
) ( F `  i )  =  0 )
704, 6ffvelrnd 5596 . . . . 5  |-  ( ph  ->  (  seq 1 (  +  ,  F ) `
 M )  e.  CC )
7170adantr 274 . . . 4  |-  ( (
ph  /\  M  =  N )  ->  (  seq 1 (  +  ,  F ) `  M
)  e.  CC )
7271subidd 8153 . . 3  |-  ( (
ph  /\  M  =  N )  ->  (
(  seq 1 (  +  ,  F ) `  M )  -  (  seq 1 (  +  ,  F ) `  M
) )  =  0 )
7357fveq2d 5465 . . . 4  |-  ( (
ph  /\  M  =  N )  ->  (  seq 1 (  +  ,  F ) `  M
)  =  (  seq 1 (  +  ,  F ) `  N
) )
7473oveq1d 5829 . . 3  |-  ( (
ph  /\  M  =  N )  ->  (
(  seq 1 (  +  ,  F ) `  M )  -  (  seq 1 (  +  ,  F ) `  M
) )  =  ( (  seq 1 (  +  ,  F ) `
 N )  -  (  seq 1 (  +  ,  F ) `  M ) ) )
7569, 72, 743eqtr2rd 2194 . 2  |-  ( (
ph  /\  M  =  N )  ->  (
(  seq 1 (  +  ,  F ) `  N )  -  (  seq 1 (  +  ,  F ) `  M
) )  =  sum_ i  e.  ( ( M  +  1 ) ... N ) ( F `  i ) )
76 eluzle 9430 . . . 4  |-  ( N  e.  ( ZZ>= `  M
)  ->  M  <_  N )
7723, 76syl 14 . . 3  |-  ( ph  ->  M  <_  N )
78 zleloe 9193 . . . 4  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( M  <_  N  <->  ( M  <  N  \/  M  =  N )
) )
7910, 25, 78syl2anc 409 . . 3  |-  ( ph  ->  ( M  <_  N  <->  ( M  <  N  \/  M  =  N )
) )
8077, 79mpbid 146 . 2  |-  ( ph  ->  ( M  <  N  \/  M  =  N
) )
8156, 75, 80mpjaodan 788 1  |-  ( ph  ->  ( (  seq 1
(  +  ,  F
) `  N )  -  (  seq 1
(  +  ,  F
) `  M )
)  =  sum_ i  e.  ( ( M  + 
1 ) ... N
) ( F `  i ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 698    /\ w3a 963    = wceq 1332    e. wcel 2125   A.wral 2432   (/)c0 3390   class class class wbr 3961   -->wf 5159   ` cfv 5163  (class class class)co 5814   CCcc 7709   RRcr 7710   0cc0 7711   1c1 7712    + caddc 7714    x. cmul 7716    < clt 7891    <_ cle 7892    - cmin 8025   NNcn 8812   ZZcz 9146   ZZ>=cuz 9418   ...cfz 9890    seqcseq 10322   abscabs 10874   sum_csu 11227
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1481  ax-10 1482  ax-11 1483  ax-i12 1484  ax-bndl 1486  ax-4 1487  ax-17 1503  ax-i9 1507  ax-ial 1511  ax-i5r 1512  ax-13 2127  ax-14 2128  ax-ext 2136  ax-coll 4075  ax-sep 4078  ax-nul 4086  ax-pow 4130  ax-pr 4164  ax-un 4388  ax-setind 4490  ax-iinf 4541  ax-cnex 7802  ax-resscn 7803  ax-1cn 7804  ax-1re 7805  ax-icn 7806  ax-addcl 7807  ax-addrcl 7808  ax-mulcl 7809  ax-mulrcl 7810  ax-addcom 7811  ax-mulcom 7812  ax-addass 7813  ax-mulass 7814  ax-distr 7815  ax-i2m1 7816  ax-0lt1 7817  ax-1rid 7818  ax-0id 7819  ax-rnegex 7820  ax-precex 7821  ax-cnre 7822  ax-pre-ltirr 7823  ax-pre-ltwlin 7824  ax-pre-lttrn 7825  ax-pre-apti 7826  ax-pre-ltadd 7827  ax-pre-mulgt0 7828  ax-pre-mulext 7829  ax-arch 7830  ax-caucvg 7831
This theorem depends on definitions:  df-bi 116  df-dc 821  df-3or 964  df-3an 965  df-tru 1335  df-fal 1338  df-nf 1438  df-sb 1740  df-eu 2006  df-mo 2007  df-clab 2141  df-cleq 2147  df-clel 2150  df-nfc 2285  df-ne 2325  df-nel 2420  df-ral 2437  df-rex 2438  df-reu 2439  df-rmo 2440  df-rab 2441  df-v 2711  df-sbc 2934  df-csb 3028  df-dif 3100  df-un 3102  df-in 3104  df-ss 3111  df-nul 3391  df-if 3502  df-pw 3541  df-sn 3562  df-pr 3563  df-op 3565  df-uni 3769  df-int 3804  df-iun 3847  df-br 3962  df-opab 4022  df-mpt 4023  df-tr 4059  df-id 4248  df-po 4251  df-iso 4252  df-iord 4321  df-on 4323  df-ilim 4324  df-suc 4326  df-iom 4544  df-xp 4585  df-rel 4586  df-cnv 4587  df-co 4588  df-dm 4589  df-rn 4590  df-res 4591  df-ima 4592  df-iota 5128  df-fun 5165  df-fn 5166  df-f 5167  df-f1 5168  df-fo 5169  df-f1o 5170  df-fv 5171  df-isom 5172  df-riota 5770  df-ov 5817  df-oprab 5818  df-mpo 5819  df-1st 6078  df-2nd 6079  df-recs 6242  df-irdg 6307  df-frec 6328  df-1o 6353  df-oadd 6357  df-er 6469  df-en 6675  df-dom 6676  df-fin 6677  df-pnf 7893  df-mnf 7894  df-xr 7895  df-ltxr 7896  df-le 7897  df-sub 8027  df-neg 8028  df-reap 8429  df-ap 8436  df-div 8525  df-inn 8813  df-2 8871  df-3 8872  df-4 8873  df-n0 9070  df-z 9147  df-uz 9419  df-q 9507  df-rp 9539  df-fz 9891  df-fzo 10020  df-seqfrec 10323  df-exp 10397  df-ihash 10627  df-cj 10719  df-re 10720  df-im 10721  df-rsqrt 10875  df-abs 10876  df-clim 11153  df-sumdc 11228
This theorem is referenced by:  cvgratnnlemrate  11404
  Copyright terms: Public domain W3C validator