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

Theorem fsumrev 14717
Description: Reversal of a finite sum. (Contributed by NM, 26-Nov-2005.) (Revised by Mario Carneiro, 24-Apr-2014.)
Hypotheses
Ref Expression
fsumrev.1 (𝜑𝐾 ∈ ℤ)
fsumrev.2 (𝜑𝑀 ∈ ℤ)
fsumrev.3 (𝜑𝑁 ∈ ℤ)
fsumrev.4 ((𝜑𝑗 ∈ (𝑀...𝑁)) → 𝐴 ∈ ℂ)
fsumrev.5 (𝑗 = (𝐾𝑘) → 𝐴 = 𝐵)
Assertion
Ref Expression
fsumrev (𝜑 → Σ𝑗 ∈ (𝑀...𝑁)𝐴 = Σ𝑘 ∈ ((𝐾𝑁)...(𝐾𝑀))𝐵)
Distinct variable groups:   𝐴,𝑘   𝐵,𝑗   𝑗,𝑘,𝐾   𝑗,𝑀,𝑘   𝑗,𝑁,𝑘   𝜑,𝑗,𝑘
Allowed substitution hints:   𝐴(𝑗)   𝐵(𝑘)

Proof of Theorem fsumrev
StepHypRef Expression
1 fsumrev.5 . 2 (𝑗 = (𝐾𝑘) → 𝐴 = 𝐵)
2 fzfid 12979 . 2 (𝜑 → ((𝐾𝑁)...(𝐾𝑀)) ∈ Fin)
3 ovex 6822 . . . . 5 (𝐾𝑗) ∈ V
4 eqid 2770 . . . . 5 (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) = (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗))
53, 4fnmpti 6162 . . . 4 (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) Fn ((𝐾𝑁)...(𝐾𝑀))
65a1i 11 . . 3 (𝜑 → (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) Fn ((𝐾𝑁)...(𝐾𝑀)))
7 ovex 6822 . . . . 5 (𝐾𝑘) ∈ V
8 eqid 2770 . . . . 5 (𝑘 ∈ (𝑀...𝑁) ↦ (𝐾𝑘)) = (𝑘 ∈ (𝑀...𝑁) ↦ (𝐾𝑘))
97, 8fnmpti 6162 . . . 4 (𝑘 ∈ (𝑀...𝑁) ↦ (𝐾𝑘)) Fn (𝑀...𝑁)
10 simprr 748 . . . . . . . . 9 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑘 = (𝐾𝑗))
11 simprl 746 . . . . . . . . . 10 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)))
12 fsumrev.2 . . . . . . . . . . . 12 (𝜑𝑀 ∈ ℤ)
1312adantr 466 . . . . . . . . . . 11 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑀 ∈ ℤ)
14 fsumrev.3 . . . . . . . . . . . 12 (𝜑𝑁 ∈ ℤ)
1514adantr 466 . . . . . . . . . . 11 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑁 ∈ ℤ)
16 fsumrev.1 . . . . . . . . . . . 12 (𝜑𝐾 ∈ ℤ)
1716adantr 466 . . . . . . . . . . 11 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝐾 ∈ ℤ)
18 elfzelz 12548 . . . . . . . . . . . 12 (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) → 𝑗 ∈ ℤ)
1911, 18syl 17 . . . . . . . . . . 11 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑗 ∈ ℤ)
20 fzrev 12609 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ 𝑗 ∈ ℤ)) → (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↔ (𝐾𝑗) ∈ (𝑀...𝑁)))
2113, 15, 17, 19, 20syl22anc 1476 . . . . . . . . . 10 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↔ (𝐾𝑗) ∈ (𝑀...𝑁)))
2211, 21mpbid 222 . . . . . . . . 9 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → (𝐾𝑗) ∈ (𝑀...𝑁))
2310, 22eqeltrd 2849 . . . . . . . 8 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑘 ∈ (𝑀...𝑁))
2410oveq2d 6808 . . . . . . . . 9 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → (𝐾𝑘) = (𝐾 − (𝐾𝑗)))
25 zcn 11583 . . . . . . . . . . 11 (𝐾 ∈ ℤ → 𝐾 ∈ ℂ)
26 zcn 11583 . . . . . . . . . . 11 (𝑗 ∈ ℤ → 𝑗 ∈ ℂ)
27 nncan 10511 . . . . . . . . . . 11 ((𝐾 ∈ ℂ ∧ 𝑗 ∈ ℂ) → (𝐾 − (𝐾𝑗)) = 𝑗)
2825, 26, 27syl2an 575 . . . . . . . . . 10 ((𝐾 ∈ ℤ ∧ 𝑗 ∈ ℤ) → (𝐾 − (𝐾𝑗)) = 𝑗)
2917, 19, 28syl2anc 565 . . . . . . . . 9 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → (𝐾 − (𝐾𝑗)) = 𝑗)
3024, 29eqtr2d 2805 . . . . . . . 8 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → 𝑗 = (𝐾𝑘))
3123, 30jca 495 . . . . . . 7 ((𝜑 ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗))) → (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘)))
32 simprr 748 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑗 = (𝐾𝑘))
33 simprl 746 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑘 ∈ (𝑀...𝑁))
3412adantr 466 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑀 ∈ ℤ)
3514adantr 466 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑁 ∈ ℤ)
3616adantr 466 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝐾 ∈ ℤ)
37 elfzelz 12548 . . . . . . . . . . . 12 (𝑘 ∈ (𝑀...𝑁) → 𝑘 ∈ ℤ)
3833, 37syl 17 . . . . . . . . . . 11 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑘 ∈ ℤ)
39 fzrev2 12610 . . . . . . . . . . 11 (((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) ∧ (𝐾 ∈ ℤ ∧ 𝑘 ∈ ℤ)) → (𝑘 ∈ (𝑀...𝑁) ↔ (𝐾𝑘) ∈ ((𝐾𝑁)...(𝐾𝑀))))
4034, 35, 36, 38, 39syl22anc 1476 . . . . . . . . . 10 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → (𝑘 ∈ (𝑀...𝑁) ↔ (𝐾𝑘) ∈ ((𝐾𝑁)...(𝐾𝑀))))
4133, 40mpbid 222 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → (𝐾𝑘) ∈ ((𝐾𝑁)...(𝐾𝑀)))
4232, 41eqeltrd 2849 . . . . . . . 8 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)))
4332oveq2d 6808 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → (𝐾𝑗) = (𝐾 − (𝐾𝑘)))
44 zcn 11583 . . . . . . . . . . 11 (𝑘 ∈ ℤ → 𝑘 ∈ ℂ)
45 nncan 10511 . . . . . . . . . . 11 ((𝐾 ∈ ℂ ∧ 𝑘 ∈ ℂ) → (𝐾 − (𝐾𝑘)) = 𝑘)
4625, 44, 45syl2an 575 . . . . . . . . . 10 ((𝐾 ∈ ℤ ∧ 𝑘 ∈ ℤ) → (𝐾 − (𝐾𝑘)) = 𝑘)
4736, 38, 46syl2anc 565 . . . . . . . . 9 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → (𝐾 − (𝐾𝑘)) = 𝑘)
4843, 47eqtr2d 2805 . . . . . . . 8 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → 𝑘 = (𝐾𝑗))
4942, 48jca 495 . . . . . . 7 ((𝜑 ∧ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))) → (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗)))
5031, 49impbida 794 . . . . . 6 (𝜑 → ((𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ∧ 𝑘 = (𝐾𝑗)) ↔ (𝑘 ∈ (𝑀...𝑁) ∧ 𝑗 = (𝐾𝑘))))
5150mptcnv 5675 . . . . 5 (𝜑(𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) = (𝑘 ∈ (𝑀...𝑁) ↦ (𝐾𝑘)))
5251fneq1d 6121 . . . 4 (𝜑 → ((𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) Fn (𝑀...𝑁) ↔ (𝑘 ∈ (𝑀...𝑁) ↦ (𝐾𝑘)) Fn (𝑀...𝑁)))
539, 52mpbiri 248 . . 3 (𝜑(𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) Fn (𝑀...𝑁))
54 dff1o4 6286 . . 3 ((𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)):((𝐾𝑁)...(𝐾𝑀))–1-1-onto→(𝑀...𝑁) ↔ ((𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) Fn ((𝐾𝑁)...(𝐾𝑀)) ∧ (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)) Fn (𝑀...𝑁)))
556, 53, 54sylanbrc 564 . 2 (𝜑 → (𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗)):((𝐾𝑁)...(𝐾𝑀))–1-1-onto→(𝑀...𝑁))
56 oveq2 6800 . . . 4 (𝑗 = 𝑘 → (𝐾𝑗) = (𝐾𝑘))
5756, 4, 7fvmpt 6424 . . 3 (𝑘 ∈ ((𝐾𝑁)...(𝐾𝑀)) → ((𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗))‘𝑘) = (𝐾𝑘))
5857adantl 467 . 2 ((𝜑𝑘 ∈ ((𝐾𝑁)...(𝐾𝑀))) → ((𝑗 ∈ ((𝐾𝑁)...(𝐾𝑀)) ↦ (𝐾𝑗))‘𝑘) = (𝐾𝑘))
59 fsumrev.4 . 2 ((𝜑𝑗 ∈ (𝑀...𝑁)) → 𝐴 ∈ ℂ)
601, 2, 55, 58, 59fsumf1o 14661 1 (𝜑 → Σ𝑗 ∈ (𝑀...𝑁)𝐴 = Σ𝑘 ∈ ((𝐾𝑁)...(𝐾𝑀))𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 382   = wceq 1630  wcel 2144  cmpt 4861  ccnv 5248   Fn wfn 6026  1-1-ontowf1o 6030  cfv 6031  (class class class)co 6792  cc 10135  cmin 10467  cz 11578  ...cfz 12532  Σcsu 14623
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1869  ax-4 1884  ax-5 1990  ax-6 2056  ax-7 2092  ax-8 2146  ax-9 2153  ax-10 2173  ax-11 2189  ax-12 2202  ax-13 2407  ax-ext 2750  ax-rep 4902  ax-sep 4912  ax-nul 4920  ax-pow 4971  ax-pr 5034  ax-un 7095  ax-inf2 8701  ax-cnex 10193  ax-resscn 10194  ax-1cn 10195  ax-icn 10196  ax-addcl 10197  ax-addrcl 10198  ax-mulcl 10199  ax-mulrcl 10200  ax-mulcom 10201  ax-addass 10202  ax-mulass 10203  ax-distr 10204  ax-i2m1 10205  ax-1ne0 10206  ax-1rid 10207  ax-rnegex 10208  ax-rrecex 10209  ax-cnre 10210  ax-pre-lttri 10211  ax-pre-lttrn 10212  ax-pre-ltadd 10213  ax-pre-mulgt0 10214  ax-pre-sup 10215
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 827  df-3or 1071  df-3an 1072  df-tru 1633  df-fal 1636  df-ex 1852  df-nf 1857  df-sb 2049  df-eu 2621  df-mo 2622  df-clab 2757  df-cleq 2763  df-clel 2766  df-nfc 2901  df-ne 2943  df-nel 3046  df-ral 3065  df-rex 3066  df-reu 3067  df-rmo 3068  df-rab 3069  df-v 3351  df-sbc 3586  df-csb 3681  df-dif 3724  df-un 3726  df-in 3728  df-ss 3735  df-pss 3737  df-nul 4062  df-if 4224  df-pw 4297  df-sn 4315  df-pr 4317  df-tp 4319  df-op 4321  df-uni 4573  df-int 4610  df-iun 4654  df-br 4785  df-opab 4845  df-mpt 4862  df-tr 4885  df-id 5157  df-eprel 5162  df-po 5170  df-so 5171  df-fr 5208  df-se 5209  df-we 5210  df-xp 5255  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-rn 5260  df-res 5261  df-ima 5262  df-pred 5823  df-ord 5869  df-on 5870  df-lim 5871  df-suc 5872  df-iota 5994  df-fun 6033  df-fn 6034  df-f 6035  df-f1 6036  df-fo 6037  df-f1o 6038  df-fv 6039  df-isom 6040  df-riota 6753  df-ov 6795  df-oprab 6796  df-mpt2 6797  df-om 7212  df-1st 7314  df-2nd 7315  df-wrecs 7558  df-recs 7620  df-rdg 7658  df-1o 7712  df-oadd 7716  df-er 7895  df-en 8109  df-dom 8110  df-sdom 8111  df-fin 8112  df-sup 8503  df-oi 8570  df-card 8964  df-pnf 10277  df-mnf 10278  df-xr 10279  df-ltxr 10280  df-le 10281  df-sub 10469  df-neg 10470  df-div 10886  df-nn 11222  df-2 11280  df-3 11281  df-n0 11494  df-z 11579  df-uz 11888  df-rp 12035  df-fz 12533  df-fzo 12673  df-seq 13008  df-exp 13067  df-hash 13321  df-cj 14046  df-re 14047  df-im 14048  df-sqrt 14182  df-abs 14183  df-clim 14426  df-sum 14624
This theorem is referenced by:  fsumrev2  14720  birthdaylem2  24899
  Copyright terms: Public domain W3C validator