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

Theorem fsum3cvg 12164
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 9941 . . 3 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑁 ∈ ℤ)
42, 3syl 14 . 2 (𝜑 → 𝑁 ∈ ℤ)
5 seqex 10901 . . 3 seq𝑀( + , 𝐹) ∈ V
65a1i 9 . 2 (𝜑 → seq𝑀( + , 𝐹) ∈ V)
7 eqid 2238 . . . 4 (ℤ≥‘𝑀) = (ℤ≥‘𝑀)
8 eluzel2 9936 . . . . 5 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ ℤ)
92, 8syl 14 . . . 4 (𝜑 → 𝑀 ∈ ℤ)
10 eluzelz 9941 . . . . . . 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 8319 . . . . . . . . 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 5789 . . . . . 6 ((𝑘 ∈ ℤ ∧ if(𝑘 ∈ 𝐴, 𝐵, 0) ∈ ℂ) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
2811, 25, 27syl2anc 415 . . . . 5 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) = if(𝑘 ∈ 𝐴, 𝐵, 0))
2928, 25eqeltrd 2315 . . . 4 ((𝜑 ∧ 𝑘 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑘) ∈ ℂ)
307, 9, 29serf 10935 . . 3 (𝜑 → seq𝑀( + , 𝐹):(ℤ≥‘𝑀)⟶ℂ)
3130, 2ffvelcdmd 5844 . 2 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
32 addrid 8466 . . . . 5 (𝑚 ∈ ℂ → (𝑚 + 0) = 𝑚)
3332adantl 277 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ ℂ) → (𝑚 + 0) = 𝑚)
342adantr 276 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → 𝑁 ∈ (ℤ≥‘𝑀))
35 simpr 110 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → 𝑛 ∈ (ℤ≥‘𝑁))
3631adantr 276 . . . 4 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) ∈ ℂ)
37 elfzuz 10435 . . . . . 6 (𝑚 ∈ ((𝑁 + 1)...𝑛) → 𝑚 ∈ (ℤ≥‘(𝑁 + 1)))
38 eluzelz 9941 . . . . . . . . 9 (𝑚 ∈ (ℤ≥‘(𝑁 + 1)) → 𝑚 ∈ ℤ)
3938adantl 277 . . . . . . . 8 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → 𝑚 ∈ ℤ)
40 fisumcvg.4 . . . . . . . . . . . 12 (𝜑 → 𝐴 ⊆ (𝑀...𝑁))
4140sseld 3247 . . . . . . . . . . 11 (𝜑 → (𝑚 ∈ 𝐴 → 𝑚 ∈ (𝑀...𝑁)))
42 fznuz 10520 . . . . . . . . . . 11 (𝑚 ∈ (𝑀...𝑁) → ¬ 𝑚 ∈ (ℤ≥‘(𝑁 + 1)))
4341, 42syl6 33 . . . . . . . . . 10 (𝜑 → (𝑚 ∈ 𝐴 → ¬ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))))
4443con2d 633 . . . . . . . . 9 (𝜑 → (𝑚 ∈ (ℤ≥‘(𝑁 + 1)) → ¬ 𝑚 ∈ 𝐴))
4544imp 124 . . . . . . . 8 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → ¬ 𝑚 ∈ 𝐴)
4639, 45eldifd 3230 . . . . . . 7 ((𝜑 ∧ 𝑚 ∈ (ℤ≥‘(𝑁 + 1))) → 𝑚 ∈ (ℤ ∖ 𝐴))
47 fveqeq2 5704 . . . . . . . 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 5695 . . . . . 6 (𝑘 = 𝑚 → (𝐹‘𝑘) = (𝐹‘𝑚))
5958eleq1d 2307 . . . . 5 (𝑘 = 𝑚 → ((𝐹‘𝑘) ∈ ℂ ↔ (𝐹‘𝑚) ∈ ℂ))
6029ralrimiva 2623 . . . . . 6 (𝜑 → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) ∈ ℂ)
6160ad2antrr 492 . . . . 5 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → ∀𝑘 ∈ (ℤ≥‘𝑀)(𝐹‘𝑘) ∈ ℂ)
62 simpr 110 . . . . 5 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → 𝑚 ∈ (ℤ≥‘𝑀))
6359, 61, 62rspcdva 2934 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ 𝑚 ∈ (ℤ≥‘𝑀)) → (𝐹‘𝑚) ∈ ℂ)
64 addcl 8305 . . . . 5 ((𝑚 ∈ ℂ ∧ 𝑧 ∈ ℂ) → (𝑚 + 𝑧) ∈ ℂ)
6564adantl 277 . . . 4 (((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) ∧ (𝑚 ∈ ℂ ∧ 𝑧 ∈ ℂ)) → (𝑚 + 𝑧) ∈ ℂ)
6633, 34, 35, 36, 57, 63, 65seq3id2 10978 . . 3 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝑀( + , 𝐹)‘𝑛))
6766eqcomd 2244 . 2 ((𝜑 ∧ 𝑛 ∈ (ℤ≥‘𝑁)) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁))
681, 4, 6, 31, 67climconst 12075 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 4130   ↦ cmpt 4192  ‘cfv 5377  (class class class)co 6085  ℂcc 8178  0cc0 8180  1c1 8181   + caddc 8183  ℤcz 9649  ℤ≥cuz 9931  ...cfz 10422  seqcseq 10899   ⇝ cli 12063
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 4246  ax-sep 4249  ax-nul 4259  ax-pow 4311  ax-pr 4346  ax-un 4578  ax-setind 4684  ax-iinf 4735  ax-cnex 8271  ax-resscn 8272  ax-1cn 8273  ax-1re 8274  ax-icn 8275  ax-addcl 8276  ax-addrcl 8277  ax-mulcl 8278  ax-mulrcl 8279  ax-addcom 8280  ax-mulcom 8281  ax-addass 8282  ax-mulass 8283  ax-distr 8284  ax-i2m1 8285  ax-0lt1 8286  ax-1rid 8287  ax-0id 8288  ax-rnegex 8289  ax-precex 8290  ax-cnre 8291  ax-pre-ltirr 8292  ax-pre-ltwlin 8293  ax-pre-lttrn 8294  ax-pre-apti 8295  ax-pre-ltadd 8296  ax-pre-mulgt0 8297  ax-pre-mulext 8298
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 4131  df-opab 4193  df-mpt 4194  df-tr 4230  df-id 4438  df-po 4441  df-iso 4442  df-iord 4511  df-on 4513  df-ilim 4514  df-suc 4516  df-iom 4738  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-rn 4785  df-res 4786  df-ima 4787  df-iota 5337  df-fun 5379  df-fn 5380  df-f 5381  df-f1 5382  df-fo 5383  df-f1o 5384  df-fv 5385  df-riota 6038  df-ov 6088  df-oprab 6089  df-mpo 6090  df-1st 6374  df-2nd 6375  df-recs 6576  df-frec 6662  df-pnf 8363  df-mnf 8364  df-xr 8365  df-ltxr 8366  df-le 8367  df-sub 8501  df-neg 8502  df-reap 8906  df-ap 8913  df-div 9006  df-inn 9308  df-2 9366  df-n0 9569  df-z 9650  df-uz 9932  df-rp 10066  df-fz 10423  df-seqfrec 10900  df-exp 10991  df-cj 11623  df-rsqrt 11780  df-abs 11781  df-clim 12064
This theorem is used by:  summodclem2a  12167  fsum3cvg2  12180
  Copyright terms: Public domain W3C validator