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

Theorem fsumcvg 15893
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 2763 . 2 (ℤ≥‘𝑁) = (ℤ≥‘𝑁)
2 sumrb.3 . . 3 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
3 eluzelz 12988 . . 3 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑁 ∈ ℤ)
42, 3syl 18 . 2 (𝜑 → 𝑁 ∈ ℤ)
5 seqex 14159 . . 3 seq𝑀( + , 𝐹) ∈ V
65a1i 11 . 2 (𝜑 → seq𝑀( + , 𝐹) ∈ V)
7 eqid 2763 . . . 4 (ℤ≥‘𝑀) = (ℤ≥‘𝑀)
8 eluzel2 12983 . . . . 5 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ ℤ)
92, 8syl 18 . . . 4 (𝜑 → 𝑀 ∈ ℤ)
10 eluzelz 12988 . . . . . 6 (𝑘 ∈ (ℤ≥‘𝑀) → 𝑘 ∈ ℤ)
11 iftrue 4491 . . . . . . . . . 10 (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) = 𝐵)
1211adantl 487 . . . . . . . . 9 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) = 𝐵)
13 summo.2 . . . . . . . . 9 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
1412, 13eqeltrd 2864 . . . . . . . 8 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
1514ex 418 . . . . . . 7 (𝜑 → (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ))
16 iffalse 4494 . . . . . . . 8 (¬ 𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) = 0)
17 0cn 11311 . . . . . . . 8 0 ∈ ℂ
1816, 17eqeltrdi 2872 . . . . . . 7 (¬ 𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
1915, 18pm2.61d1 182 . . . . . 6 (𝜑 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
20 summo.1 . . . . . . 7 𝐹 = (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))
2120fvmpt2 7016 . . . . . 6 ((𝑘 ∈ ℤ ∧ if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
2210, 19, 21syl2anr 609 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
2319adantr 486 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
2422, 23eqeltrd 2864 . . . 4 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) ∈ ℂ)
257, 9, 24serf 14186 . . 3 (𝜑 → seq𝑀( + , 𝐹):(ℤ≥‘𝑀)⟶ℂ)
2625, 2ffvelcdmd 7096 . 2 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
27 addrid 11503 . . . . 5 (𝑚 ∈ ℂ → (𝑚 + 0) = 𝑚)
2827adantl 487 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ ℂ) → (𝑚 + 0) = 𝑚)
292adantr 486 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → 𝑁 ∈ (ℤ≥‘𝑀))
30 simpr 490 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → 𝑛 ∈ (ℤ≥‘𝑁))
3126adantr 486 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
32 elfzuz 13665 . . . . . 6 (𝑚 ∈ ((𝑁 + 1)...𝑛) → 𝑚 ∈ (ℤ≥‘(𝑁 + 1)))
33 eluzelz 12988 . . . . . . . . 9 (𝑚 ∈ (ℤ≥‘(𝑁 + 1)) → 𝑚 ∈ ℤ)
3433adantl 487 . . . . . . . 8 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → 𝑚 ∈ ℤ)
35 fsumcvg.4 . . . . . . . . . . . 12 (𝜑 → 𝐴 ⊆ (𝑀...𝑁))
3635sseld 3912 . . . . . . . . . . 11 (𝜑 → (𝑚 ∈ 𝐴 → 𝑚 ∈ (𝑀...𝑁)))
37 fznuz 13756 . . . . . . . . . . 11 (𝑚 ∈ (𝑀...𝑁) → ¬ 𝑚 ∈ (ℤ≥‘(𝑁 + 1)))
3836, 37syl6 36 . . . . . . . . . 10 (𝜑 → (𝑚 ∈ 𝐴 → ¬ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))))
3938con2d 135 . . . . . . . . 9 (𝜑 → (𝑚 ∈ (ℤ≥‘(𝑁 + 1)) → ¬ 𝑚 ∈ 𝐴))
4039imp 412 . . . . . . . 8 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → ¬ 𝑚 ∈ 𝐴)
4134, 40eldifd 4053 . . . . . . 7 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → 𝑚 ∈ (ℤ ∖ 𝐴))
42 fveqeq2 6905 . . . . . . . 8 (𝑘 = 𝑚 → ((𝐹‘𝑘) = 0 ↔ (𝐹‘𝑚) = 0))
43 eldifi 4070 . . . . . . . . . 10 (𝑘 ∈ (ℤ ∖ 𝐴) → 𝑘 ∈ ℤ)
44 eldifn 4071 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ ∖ 𝐴) → ¬ 𝑘 ∈ 𝐴)
4544, 16syl 18 . . . . . . . . . . 11 (𝑘 ∈ (ℤ ∖ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) = 0)
4645, 17eqeltrdi 2872 . . . . . . . . . 10 (𝑘 ∈ (ℤ ∖ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
4743, 46, 21syl2anc 596 . . . . . . . . 9 (𝑘 ∈ (ℤ ∖ 𝐴) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
4847, 45eqtrd 2798 . . . . . . . 8 (𝑘 ∈ (ℤ ∖ 𝐴) → (𝐹‘𝑘) = 0)
4942, 48vtoclga 3540 . . . . . . 7 (𝑚 ∈ (ℤ ∖ 𝐴) → (𝐹‘𝑚) = 0)
5041, 49syl 18 . . . . . 6 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → (𝐹‘𝑚) = 0)
5132, 50sylan2 605 . . . . 5 ((𝜑 ∧ 𝑚 ∈ ((𝑁 + 1)...𝑛)) → (𝐹‘𝑚) = 0)
5251adantlr 728 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ ((𝑁 + 1)...𝑛)) → (𝐹‘𝑚) = 0)
5328, 29, 30, 31, 52seqid2 14204 . . 3 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝑀( + , 𝐹)‘𝑛))
5453eqcomd 2769 . 2 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁))
551, 4, 6, 26, 54climconst 15725 1 (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2146  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048  ifcif 4485   class class class wbr 5106   ↦ cmpt 5189  ‘cfv 6547  (class class class)co 7430  ℂcc 11211  0cc0 11213  1c1 11214   + caddc 11216  ℤcz 12706  ℤ≥cuz 12978  ...cfz 13652  seqcseq 14157   ⇝ cli 15666
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7761  ax-inf2 9655  ax-cnex 11269  ax-resscn 11270  ax-1cn 11271  ax-icn 11272  ax-addcl 11273  ax-addrcl 11274  ax-mulcl 11275  ax-mulrcl 11276  ax-mulcom 11277  ax-addass 11278  ax-mulass 11279  ax-distr 11280  ax-i2m1 11281  ax-1ne0 11282  ax-1rid 11283  ax-rnegex 11284  ax-rrecex 11285  ax-cnre 11286  ax-pre-lttri 11287  ax-pre-lttrn 11288  ax-pre-ltadd 11289  ax-pre-mulgt0 11290
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6311  df-ord 6372  df-on 6373  df-lim 6374  df-suc 6375  df-iota 6501  df-fun 6549  df-fn 6550  df-f 6551  df-f1 6552  df-fo 6553  df-f1o 6554  df-fv 6555  df-riota 7387  df-ov 7433  df-oprab 7434  df-mpo 7435  df-om 7888  df-1st 8011  df-2nd 8012  df-frecs 8313  df-wrecs 8344  df-recs 8393  df-rdg 8432  df-er 8731  df-en 8988  df-dom 8989  df-sdom 8990  df-pnf 11358  df-mnf 11359  df-xr 11360  df-ltxr 11361  df-le 11362  df-sub 11556  df-neg 11557  df-div 11987  df-nn 12349  df-2 12418  df-n0 12620  df-z 12707  df-uz 12979  df-rp 13134  df-fz 13653  df-seq 14158  df-exp 14218  df-cj 15281  df-re 15282  df-im 15283  df-sqrt 15417  df-abs 15418  df-clim 15670
This theorem is used by:  summolem2a  15896  fsumcvg2  15908
  Copyright terms: Public domain W3C validator