MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fsumcvg Structured version   Visualization version   GIF version

Theorem fsumcvg 15684
Description: The sequence of partial sums of a finite sum converges to the whole sum. (Contributed by Mario Carneiro, 20-Apr-2014.)
Hypotheses
Ref Expression
summo.1 𝐹 = (𝑘 ∈ ℤ ↦ if(𝑘𝐴, 𝐵, 0))
summo.2 ((𝜑𝑘𝐴) → 𝐵 ∈ ℂ)
sumrb.3 (𝜑𝑁 ∈ (ℤ𝑀))
fsumcvg.4 (𝜑𝐴 ⊆ (𝑀...𝑁))
Assertion
Ref Expression
fsumcvg (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Distinct variable groups:   𝐴,𝑘   𝑘,𝐹   𝑘,𝑁   𝜑,𝑘   𝑘,𝑀
Allowed substitution hint:   𝐵(𝑘)

Proof of Theorem fsumcvg
Dummy variables 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2727 . 2 (ℤ𝑁) = (ℤ𝑁)
2 sumrb.3 . . 3 (𝜑𝑁 ∈ (ℤ𝑀))
3 eluzelz 12856 . . 3 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ ℤ)
42, 3syl 17 . 2 (𝜑𝑁 ∈ ℤ)
5 seqex 13994 . . 3 seq𝑀( + , 𝐹) ∈ V
65a1i 11 . 2 (𝜑 → seq𝑀( + , 𝐹) ∈ V)
7 eqid 2727 . . . 4 (ℤ𝑀) = (ℤ𝑀)
8 eluzel2 12851 . . . . 5 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ ℤ)
92, 8syl 17 . . . 4 (𝜑𝑀 ∈ ℤ)
10 eluzelz 12856 . . . . . 6 (𝑘 ∈ (ℤ𝑀) → 𝑘 ∈ ℤ)
11 iftrue 4530 . . . . . . . . . 10 (𝑘𝐴 → if(𝑘𝐴, 𝐵, 0) = 𝐵)
1211adantl 481 . . . . . . . . 9 ((𝜑𝑘𝐴) → if(𝑘𝐴, 𝐵, 0) = 𝐵)
13 summo.2 . . . . . . . . 9 ((𝜑𝑘𝐴) → 𝐵 ∈ ℂ)
1412, 13eqeltrd 2828 . . . . . . . 8 ((𝜑𝑘𝐴) → if(𝑘𝐴, 𝐵, 0) ∈ ℂ)
1514ex 412 . . . . . . 7 (𝜑 → (𝑘𝐴 → if(𝑘𝐴, 𝐵, 0) ∈ ℂ))
16 iffalse 4533 . . . . . . . 8 𝑘𝐴 → if(𝑘𝐴, 𝐵, 0) = 0)
17 0cn 11230 . . . . . . . 8 0 ∈ ℂ
1816, 17eqeltrdi 2836 . . . . . . 7 𝑘𝐴 → if(𝑘𝐴, 𝐵, 0) ∈ ℂ)
1915, 18pm2.61d1 180 . . . . . 6 (𝜑 → if(𝑘𝐴, 𝐵, 0) ∈ ℂ)
20 summo.1 . . . . . . 7 𝐹 = (𝑘 ∈ ℤ ↦ if(𝑘𝐴, 𝐵, 0))
2120fvmpt2 7010 . . . . . 6 ((𝑘 ∈ ℤ ∧ if(𝑘𝐴, 𝐵, 0) ∈ ℂ) → (𝐹𝑘) = if(𝑘𝐴, 𝐵, 0))
2210, 19, 21syl2anr 596 . . . . 5 ((𝜑𝑘 ∈ (ℤ𝑀)) → (𝐹𝑘) = if(𝑘𝐴, 𝐵, 0))
2319adantr 480 . . . . 5 ((𝜑𝑘 ∈ (ℤ𝑀)) → if(𝑘𝐴, 𝐵, 0) ∈ ℂ)
2422, 23eqeltrd 2828 . . . 4 ((𝜑𝑘 ∈ (ℤ𝑀)) → (𝐹𝑘) ∈ ℂ)
257, 9, 24serf 14021 . . 3 (𝜑 → seq𝑀( + , 𝐹):(ℤ𝑀)⟶ℂ)
2625, 2ffvelcdmd 7089 . 2 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
27 addrid 11418 . . . . 5 (𝑚 ∈ ℂ → (𝑚 + 0) = 𝑚)
2827adantl 481 . . . 4 (((𝜑𝑛 ∈ (ℤ𝑁)) ∧ 𝑚 ∈ ℂ) → (𝑚 + 0) = 𝑚)
292adantr 480 . . . 4 ((𝜑𝑛 ∈ (ℤ𝑁)) → 𝑁 ∈ (ℤ𝑀))
30 simpr 484 . . . 4 ((𝜑𝑛 ∈ (ℤ𝑁)) → 𝑛 ∈ (ℤ𝑁))
3126adantr 480 . . . 4 ((𝜑𝑛 ∈ (ℤ𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
32 elfzuz 13523 . . . . . 6 (𝑚 ∈ ((𝑁 + 1)...𝑛) → 𝑚 ∈ (ℤ‘(𝑁 + 1)))
33 eluzelz 12856 . . . . . . . . 9 (𝑚 ∈ (ℤ‘(𝑁 + 1)) → 𝑚 ∈ ℤ)
3433adantl 481 . . . . . . . 8 ((𝜑𝑚 ∈ (ℤ‘(𝑁 + 1))) → 𝑚 ∈ ℤ)
35 fsumcvg.4 . . . . . . . . . . . 12 (𝜑𝐴 ⊆ (𝑀...𝑁))
3635sseld 3977 . . . . . . . . . . 11 (𝜑 → (𝑚𝐴𝑚 ∈ (𝑀...𝑁)))
37 fznuz 13609 . . . . . . . . . . 11 (𝑚 ∈ (𝑀...𝑁) → ¬ 𝑚 ∈ (ℤ‘(𝑁 + 1)))
3836, 37syl6 35 . . . . . . . . . 10 (𝜑 → (𝑚𝐴 → ¬ 𝑚 ∈ (ℤ‘(𝑁 + 1))))
3938con2d 134 . . . . . . . . 9 (𝜑 → (𝑚 ∈ (ℤ‘(𝑁 + 1)) → ¬ 𝑚𝐴))
4039imp 406 . . . . . . . 8 ((𝜑𝑚 ∈ (ℤ‘(𝑁 + 1))) → ¬ 𝑚𝐴)
4134, 40eldifd 3955 . . . . . . 7 ((𝜑𝑚 ∈ (ℤ‘(𝑁 + 1))) → 𝑚 ∈ (ℤ ∖ 𝐴))
42 fveqeq2 6900 . . . . . . . 8 (𝑘 = 𝑚 → ((𝐹𝑘) = 0 ↔ (𝐹𝑚) = 0))
43 eldifi 4122 . . . . . . . . . 10 (𝑘 ∈ (ℤ ∖ 𝐴) → 𝑘 ∈ ℤ)
44 eldifn 4123 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ ∖ 𝐴) → ¬ 𝑘𝐴)
4544, 16syl 17 . . . . . . . . . . 11 (𝑘 ∈ (ℤ ∖ 𝐴) → if(𝑘𝐴, 𝐵, 0) = 0)
4645, 17eqeltrdi 2836 . . . . . . . . . 10 (𝑘 ∈ (ℤ ∖ 𝐴) → if(𝑘𝐴, 𝐵, 0) ∈ ℂ)
4743, 46, 21syl2anc 583 . . . . . . . . 9 (𝑘 ∈ (ℤ ∖ 𝐴) → (𝐹𝑘) = if(𝑘𝐴, 𝐵, 0))
4847, 45eqtrd 2767 . . . . . . . 8 (𝑘 ∈ (ℤ ∖ 𝐴) → (𝐹𝑘) = 0)
4942, 48vtoclga 3561 . . . . . . 7 (𝑚 ∈ (ℤ ∖ 𝐴) → (𝐹𝑚) = 0)
5041, 49syl 17 . . . . . 6 ((𝜑𝑚 ∈ (ℤ‘(𝑁 + 1))) → (𝐹𝑚) = 0)
5132, 50sylan2 592 . . . . 5 ((𝜑𝑚 ∈ ((𝑁 + 1)...𝑛)) → (𝐹𝑚) = 0)
5251adantlr 714 . . . 4 (((𝜑𝑛 ∈ (ℤ𝑁)) ∧ 𝑚 ∈ ((𝑁 + 1)...𝑛)) → (𝐹𝑚) = 0)
5328, 29, 30, 31, 52seqid2 14039 . . 3 ((𝜑𝑛 ∈ (ℤ𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝑀( + , 𝐹)‘𝑛))
5453eqcomd 2733 . 2 ((𝜑𝑛 ∈ (ℤ𝑁)) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁))
551, 4, 6, 26, 54climconst 15513 1 (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1534  wcel 2099  Vcvv 3469  cdif 3941  wss 3944  ifcif 4524   class class class wbr 5142  cmpt 5225  cfv 6542  (class class class)co 7414  cc 11130  0cc0 11132  1c1 11133   + caddc 11135  cz 12582  cuz 12846  ...cfz 13510  seqcseq 13992  cli 15454
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1906  ax-6 1964  ax-7 2004  ax-8 2101  ax-9 2109  ax-10 2130  ax-11 2147  ax-12 2164  ax-ext 2698  ax-rep 5279  ax-sep 5293  ax-nul 5300  ax-pow 5359  ax-pr 5423  ax-un 7734  ax-inf2 9658  ax-cnex 11188  ax-resscn 11189  ax-1cn 11190  ax-icn 11191  ax-addcl 11192  ax-addrcl 11193  ax-mulcl 11194  ax-mulrcl 11195  ax-mulcom 11196  ax-addass 11197  ax-mulass 11198  ax-distr 11199  ax-i2m1 11200  ax-1ne0 11201  ax-1rid 11202  ax-rnegex 11203  ax-rrecex 11204  ax-cnre 11205  ax-pre-lttri 11206  ax-pre-lttrn 11207  ax-pre-ltadd 11208  ax-pre-mulgt0 11209
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 847  df-3or 1086  df-3an 1087  df-tru 1537  df-fal 1547  df-ex 1775  df-nf 1779  df-sb 2061  df-mo 2529  df-eu 2558  df-clab 2705  df-cleq 2719  df-clel 2805  df-nfc 2880  df-ne 2936  df-nel 3042  df-ral 3057  df-rex 3066  df-rmo 3371  df-reu 3372  df-rab 3428  df-v 3471  df-sbc 3775  df-csb 3890  df-dif 3947  df-un 3949  df-in 3951  df-ss 3961  df-pss 3963  df-nul 4319  df-if 4525  df-pw 4600  df-sn 4625  df-pr 4627  df-op 4631  df-uni 4904  df-iun 4993  df-br 5143  df-opab 5205  df-mpt 5226  df-tr 5260  df-id 5570  df-eprel 5576  df-po 5584  df-so 5585  df-fr 5627  df-we 5629  df-xp 5678  df-rel 5679  df-cnv 5680  df-co 5681  df-dm 5682  df-rn 5683  df-res 5684  df-ima 5685  df-pred 6299  df-ord 6366  df-on 6367  df-lim 6368  df-suc 6369  df-iota 6494  df-fun 6544  df-fn 6545  df-f 6546  df-f1 6547  df-fo 6548  df-f1o 6549  df-fv 6550  df-riota 7370  df-ov 7417  df-oprab 7418  df-mpo 7419  df-om 7865  df-1st 7987  df-2nd 7988  df-frecs 8280  df-wrecs 8311  df-recs 8385  df-rdg 8424  df-er 8718  df-en 8958  df-dom 8959  df-sdom 8960  df-pnf 11274  df-mnf 11275  df-xr 11276  df-ltxr 11277  df-le 11278  df-sub 11470  df-neg 11471  df-div 11896  df-nn 12237  df-2 12299  df-n0 12497  df-z 12583  df-uz 12847  df-rp 13001  df-fz 13511  df-seq 13993  df-exp 14053  df-cj 15072  df-re 15073  df-im 15074  df-sqrt 15208  df-abs 15209  df-clim 15458
This theorem is referenced by:  summolem2a  15687  fsumcvg2  15699
  Copyright terms: Public domain W3C validator