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

Theorem fsum3cvg 12170
Description: The sequence of partial sums of a finite sum converges to the whole sum. (Contributed by Mario Carneiro, 20-Apr-2014.) (Revised by Jim Kingdon, 12-Nov-2022.)
Hypotheses
Ref Expression
isummo.1 𝐹 = (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))
isummo.2 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
isummo.dc ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → DECID 𝑘 ∈ 𝐴)
isumrb.3 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
fisumcvg.4 (𝜑 → 𝐴 ⊆ (𝑀...𝑁))
Assertion
Ref Expression
fsum3cvg (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Distinct variable groups:   𝐴,𝑘   𝑘,𝑁   𝜑,𝑘   𝑘,𝑀   𝑘,𝐹
Allowed substitution hint:   𝐵(𝑘)

Proof of Theorem fsum3cvg
Dummy variables 𝑛 𝑧 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2238 . 2 (ℤ≥‘𝑁) = (ℤ≥‘𝑁)
2 isumrb.3 . . 3 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
3 eluzelz 9947 . . 3 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑁 ∈ ℤ)
42, 3syl 14 . 2 (𝜑 → 𝑁 ∈ ℤ)
5 seqex 10907 . . 3 seq𝑀( + , 𝐹) ∈ V
65a1i 9 . 2 (𝜑 → seq𝑀( + , 𝐹) ∈ V)
7 eqid 2238 . . . 4 (ℤ≥‘𝑀) = (ℤ≥‘𝑀)
8 eluzel2 9942 . . . . 5 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ ℤ)
92, 8syl 14 . . . 4 (𝜑 → 𝑀 ∈ ℤ)
10 eluzelz 9947 . . . . . . 7 (𝑘 ∈ (ℤ≥‘𝑀) → 𝑘 ∈ ℤ)
1110adantl 277 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → 𝑘 ∈ ℤ)
12 iftrue 3645 . . . . . . . . . . 11 (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) = 𝐵)
1312adantl 277 . . . . . . . . . 10 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) = 𝐵)
14 isummo.2 . . . . . . . . . 10 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
1513, 14eqeltrd 2315 . . . . . . . . 9 ((𝜑 ∧ 𝑘 ∈ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
1615ex 115 . . . . . . . 8 (𝜑 → (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ))
1716adantr 276 . . . . . . 7 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ))
18 iffalse 3648 . . . . . . . . 9 (¬ 𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) = 0)
19 0cn 8324 . . . . . . . . 9 0 ∈ ℂ
2018, 19eqeltrdi 2329 . . . . . . . 8 (¬ 𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
2120a1i 9 . . . . . . 7 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (¬ 𝑘 ∈ 𝐴 → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ))
22 isummo.dc . . . . . . . 8 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → DECID 𝑘 ∈ 𝐴)
23 exmiddc 848 . . . . . . . 8 (DECID 𝑘 ∈ 𝐴 → (𝑘 ∈ 𝐴 ∨ ¬ 𝑘 ∈ 𝐴))
2422, 23syl 14 . . . . . . 7 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝑘 ∈ 𝐴 ∨ ¬ 𝑘 ∈ 𝐴))
2517, 21, 24mpjaod 730 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
26 isummo.1 . . . . . . 7 𝐹 = (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))
2726fvmpt2 5792 . . . . . 6 ((𝑘 ∈ ℤ ∧ if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
2811, 25, 27syl2anc 415 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
2928, 25eqeltrd 2315 . . . 4 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) ∈ ℂ)
307, 9, 29serf 10941 . . 3 (𝜑 → seq𝑀( + , 𝐹):(ℤ≥‘𝑀)⟶ℂ)
3130, 2ffvelcdmd 5847 . 2 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
32 addrid 8471 . . . . 5 (𝑚 ∈ ℂ → (𝑚 + 0) = 𝑚)
3332adantl 277 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ ℂ) → (𝑚 + 0) = 𝑚)
342adantr 276 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → 𝑁 ∈ (ℤ≥‘𝑀))
35 simpr 110 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → 𝑛 ∈ (ℤ≥‘𝑁))
3631adantr 276 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
37 elfzuz 10441 . . . . . 6 (𝑚 ∈ ((𝑁 + 1)...𝑛) → 𝑚 ∈ (ℤ≥‘(𝑁 + 1)))
38 eluzelz 9947 . . . . . . . . 9 (𝑚 ∈ (ℤ≥‘(𝑁 + 1)) → 𝑚 ∈ ℤ)
3938adantl 277 . . . . . . . 8 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → 𝑚 ∈ ℤ)
40 fisumcvg.4 . . . . . . . . . . . 12 (𝜑 → 𝐴 ⊆ (𝑀...𝑁))
4140sseld 3247 . . . . . . . . . . 11 (𝜑 → (𝑚 ∈ 𝐴 → 𝑚 ∈ (𝑀...𝑁)))
42 fznuz 10526 . . . . . . . . . . 11 (𝑚 ∈ (𝑀...𝑁) → ¬ 𝑚 ∈ (ℤ≥‘(𝑁 + 1)))
4341, 42syl6 33 . . . . . . . . . 10 (𝜑 → (𝑚 ∈ 𝐴 → ¬ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))))
4443con2d 633 . . . . . . . . 9 (𝜑 → (𝑚 ∈ (ℤ≥‘(𝑁 + 1)) → ¬ 𝑚 ∈ 𝐴))
4544imp 124 . . . . . . . 8 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → ¬ 𝑚 ∈ 𝐴)
4639, 45eldifd 3230 . . . . . . 7 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → 𝑚 ∈ (ℤ ∖ 𝐴))
47 fveqeq2 5707 . . . . . . . 8 (𝑘 = 𝑚 → ((𝐹‘𝑘) = 0 ↔ (𝐹‘𝑚) = 0))
48 eldifi 3351 . . . . . . . . . 10 (𝑘 ∈ (ℤ ∖ 𝐴) → 𝑘 ∈ ℤ)
49 eldifn 3352 . . . . . . . . . . . 12 (𝑘 ∈ (ℤ ∖ 𝐴) → ¬ 𝑘 ∈ 𝐴)
5049, 18syl 14 . . . . . . . . . . 11 (𝑘 ∈ (ℤ ∖ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) = 0)
5150, 19eqeltrdi 2329 . . . . . . . . . 10 (𝑘 ∈ (ℤ ∖ 𝐴) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
5248, 51, 27syl2anc 415 . . . . . . . . 9 (𝑘 ∈ (ℤ ∖ 𝐴) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
5352, 50eqtrd 2271 . . . . . . . 8 (𝑘 ∈ (ℤ ∖ 𝐴) → (𝐹‘𝑘) = 0)
5447, 53vtoclga 2889 . . . . . . 7 (𝑚 ∈ (ℤ ∖ 𝐴) → (𝐹‘𝑚) = 0)
5546, 54syl 14 . . . . . 6 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → (𝐹‘𝑚) = 0)
5637, 55sylan2 286 . . . . 5 ((𝜑 ∧ 𝑚 ∈ ((𝑁 + 1)...𝑛)) → (𝐹‘𝑚) = 0)
5756adantlr 481 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ ((𝑁 + 1)...𝑛)) → (𝐹‘𝑚) = 0)
58 fveq2 5698 . . . . . 6 (𝑘 = 𝑚 → (𝐹‘𝑘) = (𝐹‘𝑚))
5958eleq1d 2307 . . . . 5 (𝑘 = 𝑚 → ((𝐹‘𝑘) ∈ ℂ ↔ (𝐹‘𝑚) ∈ ℂ))
6029ralrimiva 2623 . . . . . 6 (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) ∈ ℂ)
6160ad2antrr 492 . . . . 5 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) ∈ ℂ)
62 simpr 110 . . . . 5 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → 𝑚 ∈ (ℤ≥‘𝑀))
6359, 61, 62rspcdva 2934 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑚) ∈ ℂ)
64 addcl 8310 . . . . 5 ((𝑚 ∈ ℂ ∧ 𝑧 ∈ ℂ) → (𝑚 + 𝑧) ∈ ℂ)
6564adantl 277 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ (𝑚 ∈ ℂ ∧ 𝑧 ∈ ℂ)) → (𝑚 + 𝑧) ∈ ℂ)
6633, 34, 35, 36, 57, 63, 65seq3id2 10984 . . 3 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝑀( + , 𝐹)‘𝑛))
6766eqcomd 2244 . 2 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁))
681, 4, 6, 31, 67climconst 12081 1 (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   ∨ wo 720  DECID wdc 846   = wceq 1402   ∈ wcel 2209  ∀wral 2528  Vcvv 2821   ∖ cdif 3217   ⊆ wss 3220  ifcif 3638   class class class wbr 4131   ↦ cmpt 4193  ‘cfv 5380  (class class class)co 6088  ℂcc 8183  0cc0 8185  1c1 8186   + caddc 8188  ℤcz 9655  ℤ≥cuz 9937  ...cfz 10428  seqcseq 10905   ⇝ cli 12069
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4248  ax-sep 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580  ax-setind 4686  ax-iinf 4737  ax-cnex 8276  ax-resscn 8277  ax-1cn 8278  ax-1re 8279  ax-icn 8280  ax-addcl 8281  ax-addrcl 8282  ax-mulcl 8283  ax-mulrcl 8284  ax-addcom 8285  ax-mulcom 8286  ax-addass 8287  ax-mulass 8288  ax-distr 8289  ax-i2m1 8290  ax-0lt1 8291  ax-1rid 8292  ax-0id 8293  ax-rnegex 8294  ax-precex 8295  ax-cnre 8296  ax-pre-ltirr 8297  ax-pre-ltwlin 8298  ax-pre-lttrn 8299  ax-pre-apti 8300  ax-pre-ltadd 8301  ax-pre-mulgt0 8302  ax-pre-mulext 8303
This proof depends on definitions:  df-bi 117  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-po 4443  df-iso 4444  df-iord 4513  df-on 4515  df-ilim 4516  df-suc 4518  df-iom 4740  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5340  df-fun 5382  df-fn 5383  df-f 5384  df-f1 5385  df-fo 5386  df-f1o 5387  df-fv 5388  df-riota 6041  df-ov 6091  df-oprab 6092  df-mpo 6093  df-1st 6378  df-2nd 6379  df-recs 6580  df-frec 6666  df-pnf 8368  df-mnf 8369  df-xr 8370  df-ltxr 8371  df-le 8372  df-sub 8506  df-neg 8507  df-reap 8911  df-ap 8918  df-div 9011  df-inn 9314  df-2 9372  df-n0 9575  df-z 9656  df-uz 9938  df-rp 10072  df-fz 10429  df-seqfrec 10906  df-exp 10997  df-cj 11629  df-rsqrt 11786  df-abs 11787  df-clim 12070
This theorem is used by:  summodclem2a  12173  fsum3cvg2  12186
  Copyright terms: Public domain W3C validator