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

Theorem fsum3cvg2 12186
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, 2-Dec-2022.)
Hypotheses
Ref Expression
fsumsers.1 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
fsumsers.2 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
fsumsers.3 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
fsumsers.dc ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → DECID 𝑘 ∈ 𝐴)
fsumsers.4 (𝜑 → 𝐴 ⊆ (𝑀...𝑁))
Assertion
Ref Expression
fsum3cvg2 (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Distinct variable groups:   𝐴,𝑘   𝑘,𝐹   𝑘,𝑀   𝑘,𝑁   𝜑,𝑘
Allowed substitution hint:   𝐵(𝑘)

Proof of Theorem fsum3cvg2
Dummy variables 𝑚 𝑛 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfcv 2392 . . . 4 Ⅎ𝑚if(𝑘 ∈ 𝐴, 𝐵, 0)
2 nfv 1581 . . . . 5 Ⅎ𝑘 𝑚 ∈ 𝐴
3 nfcsb1v 3180 . . . . 5 Ⅎ𝑘⦋𝑚 / 𝑘⦌𝐵
4 nfcv 2392 . . . . 5 Ⅎ𝑘0
52, 3, 4nfif 3669 . . . 4 Ⅎ𝑘if(𝑚 ∈ 𝐴, ⦋𝑚 / 𝑘⦌𝐵, 0)
6 eleq1w 2299 . . . . 5 (𝑘 = 𝑚 → (𝑘 ∈ 𝐴 ↔ 𝑚 ∈ 𝐴))
7 csbeq1a 3156 . . . . 5 (𝑘 = 𝑚 → 𝐵 = ⦋𝑚 / 𝑘⦌𝐵)
86, 7ifbieq1d 3663 . . . 4 (𝑘 = 𝑚 → if(𝑘 ∈ 𝐴, 𝐵, 0) = if(𝑚 ∈ 𝐴, ⦋𝑚 / 𝑘⦌𝐵, 0))
91, 5, 8cbvmpt 4228 . . 3 (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0)) = (𝑚 ∈ ℤ ↦ if(𝑚 ∈ 𝐴, ⦋𝑚 / 𝑘⦌𝐵, 0))
10 fsumsers.3 . . . . 5 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
1110ralrimiva 2623 . . . 4 (𝜑 → ∀𝑘 ∈ 𝐴 𝐵 ∈ ℂ)
123nfel1 2403 . . . . 5 Ⅎ𝑘⦋𝑚 / 𝑘⦌𝐵 ∈ ℂ
137eleq1d 2307 . . . . 5 (𝑘 = 𝑚 → (𝐵 ∈ ℂ ↔ ⦋𝑚 / 𝑘⦌𝐵 ∈ ℂ))
1412, 13rspc 2923 . . . 4 (𝑚 ∈ 𝐴 → (∀𝑘 ∈ 𝐴 𝐵 ∈ ℂ → ⦋𝑚 / 𝑘⦌𝐵 ∈ ℂ))
1511, 14mpan9 281 . . 3 ((𝜑 ∧ 𝑚 ∈ 𝐴) → ⦋𝑚 / 𝑘⦌𝐵 ∈ ℂ)
166dcbid 850 . . . 4 (𝑘 = 𝑚 → (DECID 𝑘 ∈ 𝐴 ↔ DECID 𝑚 ∈ 𝐴))
17 fsumsers.dc . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → DECID 𝑘 ∈ 𝐴)
1817ralrimiva 2623 . . . . 5 (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)DECID 𝑘 ∈ 𝐴)
1918adantr 276 . . . 4 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → ∀𝑘 ∈ (ℤ≥‘𝑀)DECID 𝑘 ∈ 𝐴)
20 simpr 110 . . . 4 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → 𝑚 ∈ (ℤ≥‘𝑀))
2116, 19, 20rspcdva 2934 . . 3 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → DECID 𝑚 ∈ 𝐴)
22 fsumsers.2 . . 3 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
23 fsumsers.4 . . 3 (𝜑 → 𝐴 ⊆ (𝑀...𝑁))
249, 15, 21, 22, 23fsum3cvg 12170 . 2 (𝜑 → seq𝑀( + , (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))) ⇝ (seq𝑀( + , (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0)))‘𝑁))
25 eluzel2 9942 . . . 4 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ ℤ)
2622, 25syl 14 . . 3 (𝜑 → 𝑀 ∈ ℤ)
27 fveq2 5698 . . . . 5 (𝑘 = 𝑥 → (𝐹‘𝑘) = (𝐹‘𝑥))
2827eleq1d 2307 . . . 4 (𝑘 = 𝑥 → ((𝐹‘𝑘) ∈ ℂ ↔ (𝐹‘𝑥) ∈ ℂ))
29 fsumsers.1 . . . . . . 7 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
3010adantlr 481 . . . . . . . 8 (((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
31 0cnd 8325 . . . . . . . 8 (((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) ∧ ¬ 𝑘 ∈ 𝐴) → 0 ∈ ℂ)
3230, 31, 17ifcldadc 3670 . . . . . . 7 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ)
3329, 32eqeltrd 2315 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) ∈ ℂ)
3433ralrimiva 2623 . . . . 5 (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) ∈ ℂ)
3534adantr 276 . . . 4 ((𝜑 ∧ 𝑥 ∈ (ℤ≥‘𝑀)) → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) ∈ ℂ)
36 simpr 110 . . . 4 ((𝜑 ∧ 𝑥 ∈ (ℤ≥‘𝑀)) → 𝑥 ∈ (ℤ≥‘𝑀))
3728, 35, 36rspcdva 2934 . . 3 ((𝜑 ∧ 𝑥 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑥) ∈ ℂ)
38 eluzelz 9947 . . . . . . 7 (𝑘 ∈ (ℤ≥‘𝑀) → 𝑘 ∈ ℤ)
39 eqid 2238 . . . . . . . 8 (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0)) = (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))
4039fvmpt2 5792 . . . . . . 7 ((𝑘 ∈ ℤ ∧ if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ) → ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
4138, 32, 40syl2an2 602 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
4229, 41eqtr4d 2274 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘))
4342ralrimiva 2623 . . . 4 (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘))
44 nffvmpt1 5709 . . . . . 6 Ⅎ𝑘((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑛)
4544nfeq2 2404 . . . . 5 Ⅎ𝑘(𝐹‘𝑛) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑛)
46 fveq2 5698 . . . . . 6 (𝑘 = 𝑛 → (𝐹‘𝑘) = (𝐹‘𝑛))
47 fveq2 5698 . . . . . 6 (𝑘 = 𝑛 → ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑛))
4846, 47eqeq12d 2253 . . . . 5 (𝑘 = 𝑛 → ((𝐹‘𝑘) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘) ↔ (𝐹‘𝑛) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑛)))
4945, 48rspc 2923 . . . 4 (𝑛 ∈ (ℤ≥‘𝑀) → (∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑘) → (𝐹‘𝑛) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑛)))
5043, 49mpan9 281 . . 3 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑛) = ((𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))‘𝑛))
51 addcl 8310 . . . 4 ((𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ) → (𝑥 + 𝑦) ∈ ℂ)
5251adantl 277 . . 3 ((𝜑 ∧ (𝑥 ∈ ℂ ∧ 𝑦 ∈ ℂ)) → (𝑥 + 𝑦) ∈ ℂ)
5326, 37, 50, 52seq3feq 10938 . 2 (𝜑 → seq𝑀( + , 𝐹) = seq𝑀( + , (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0))))
5453fveq1d 5700 . 2 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝑀( + , (𝑘 ∈ ℤ ↦ if(𝑘 ∈ 𝐴, 𝐵, 0)))‘𝑁))
5524, 53, 543brtr4d 4163 1 (𝜑 → seq𝑀( + , 𝐹) ⇝ (seq𝑀( + , 𝐹)‘𝑁))
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104  DECID wdc 846   = wceq 1402   ∈ wcel 2209  ∀wral 2528  ⦋csb 3147   ⊆ wss 3220  ifcif 3638   class class class wbr 4131   ↦ cmpt 4193  ‘cfv 5380  (class class class)co 6088  ℂcc 8183  0cc0 8185   + 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:  fsumsersdc  12187  fsum3cvg3  12188  ef0lem  12452
  Copyright terms: Public domain W3C validator