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

Theorem gsumval2a 18284
Description: Value of the group sum operation over a finite set of sequential integers. (Contributed by Mario Carneiro, 7-Dec-2014.)
Hypotheses
Ref Expression
gsumval2.b 𝐵 = (Base‘𝐺)
gsumval2.p + = (+g𝐺)
gsumval2.g (𝜑𝐺𝑉)
gsumval2.n (𝜑𝑁 ∈ (ℤ𝑀))
gsumval2.f (𝜑𝐹:(𝑀...𝑁)⟶𝐵)
gsumval2a.o 𝑂 = {𝑥𝐵 ∣ ∀𝑦𝐵 ((𝑥 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑥) = 𝑦)}
gsumval2a.f (𝜑 → ¬ ran 𝐹𝑂)
Assertion
Ref Expression
gsumval2a (𝜑 → (𝐺 Σg 𝐹) = (seq𝑀( + , 𝐹)‘𝑁))
Distinct variable groups:   𝑥,𝑦,𝐵   𝑥,𝐺,𝑦   𝑥,𝑉   𝑥, + ,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐹(𝑥,𝑦)   𝑀(𝑥,𝑦)   𝑁(𝑥,𝑦)   𝑂(𝑥,𝑦)   𝑉(𝑦)

Proof of Theorem gsumval2a
Dummy variables 𝑧 𝑓 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 gsumval2.b . . . 4 𝐵 = (Base‘𝐺)
2 eqid 2738 . . . 4 (0g𝐺) = (0g𝐺)
3 gsumval2.p . . . 4 + = (+g𝐺)
4 gsumval2a.o . . . 4 𝑂 = {𝑥𝐵 ∣ ∀𝑦𝐵 ((𝑥 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑥) = 𝑦)}
5 eqidd 2739 . . . 4 (𝜑 → (𝐹 “ (V ∖ 𝑂)) = (𝐹 “ (V ∖ 𝑂)))
6 gsumval2.g . . . 4 (𝜑𝐺𝑉)
7 ovexd 7290 . . . 4 (𝜑 → (𝑀...𝑁) ∈ V)
8 gsumval2.f . . . 4 (𝜑𝐹:(𝑀...𝑁)⟶𝐵)
91, 2, 3, 4, 5, 6, 7, 8gsumval 18276 . . 3 (𝜑 → (𝐺 Σg 𝐹) = if(ran 𝐹𝑂, (0g𝐺), if((𝑀...𝑁) ∈ ran ..., (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑧𝑓(𝑓:(1...(♯‘(𝐹 “ (V ∖ 𝑂))))–1-1-onto→(𝐹 “ (V ∖ 𝑂)) ∧ 𝑧 = (seq1( + , (𝐹𝑓))‘(♯‘(𝐹 “ (V ∖ 𝑂)))))))))
10 gsumval2a.f . . . . 5 (𝜑 → ¬ ran 𝐹𝑂)
1110iffalsed 4467 . . . 4 (𝜑 → if(ran 𝐹𝑂, (0g𝐺), if((𝑀...𝑁) ∈ ran ..., (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑧𝑓(𝑓:(1...(♯‘(𝐹 “ (V ∖ 𝑂))))–1-1-onto→(𝐹 “ (V ∖ 𝑂)) ∧ 𝑧 = (seq1( + , (𝐹𝑓))‘(♯‘(𝐹 “ (V ∖ 𝑂)))))))) = if((𝑀...𝑁) ∈ ran ..., (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑧𝑓(𝑓:(1...(♯‘(𝐹 “ (V ∖ 𝑂))))–1-1-onto→(𝐹 “ (V ∖ 𝑂)) ∧ 𝑧 = (seq1( + , (𝐹𝑓))‘(♯‘(𝐹 “ (V ∖ 𝑂))))))))
12 fzf 13172 . . . . . . 7 ...:(ℤ × ℤ)⟶𝒫 ℤ
13 ffn 6584 . . . . . . 7 (...:(ℤ × ℤ)⟶𝒫 ℤ → ... Fn (ℤ × ℤ))
1412, 13ax-mp 5 . . . . . 6 ... Fn (ℤ × ℤ)
15 gsumval2.n . . . . . . 7 (𝜑𝑁 ∈ (ℤ𝑀))
16 eluzel2 12516 . . . . . . 7 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ ℤ)
1715, 16syl 17 . . . . . 6 (𝜑𝑀 ∈ ℤ)
18 eluzelz 12521 . . . . . . 7 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ ℤ)
1915, 18syl 17 . . . . . 6 (𝜑𝑁 ∈ ℤ)
20 fnovrn 7425 . . . . . 6 ((... Fn (ℤ × ℤ) ∧ 𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑀...𝑁) ∈ ran ...)
2114, 17, 19, 20mp3an2i 1464 . . . . 5 (𝜑 → (𝑀...𝑁) ∈ ran ...)
2221iftrued 4464 . . . 4 (𝜑 → if((𝑀...𝑁) ∈ ran ..., (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑧𝑓(𝑓:(1...(♯‘(𝐹 “ (V ∖ 𝑂))))–1-1-onto→(𝐹 “ (V ∖ 𝑂)) ∧ 𝑧 = (seq1( + , (𝐹𝑓))‘(♯‘(𝐹 “ (V ∖ 𝑂))))))) = (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))))
2311, 22eqtrd 2778 . . 3 (𝜑 → if(ran 𝐹𝑂, (0g𝐺), if((𝑀...𝑁) ∈ ran ..., (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑧𝑓(𝑓:(1...(♯‘(𝐹 “ (V ∖ 𝑂))))–1-1-onto→(𝐹 “ (V ∖ 𝑂)) ∧ 𝑧 = (seq1( + , (𝐹𝑓))‘(♯‘(𝐹 “ (V ∖ 𝑂)))))))) = (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))))
249, 23eqtrd 2778 . 2 (𝜑 → (𝐺 Σg 𝐹) = (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))))
25 fvex 6769 . . 3 (seq𝑀( + , 𝐹)‘𝑁) ∈ V
26 fzopth 13222 . . . . . . . . . . 11 (𝑁 ∈ (ℤ𝑀) → ((𝑀...𝑁) = (𝑚...𝑛) ↔ (𝑀 = 𝑚𝑁 = 𝑛)))
2715, 26syl 17 . . . . . . . . . 10 (𝜑 → ((𝑀...𝑁) = (𝑚...𝑛) ↔ (𝑀 = 𝑚𝑁 = 𝑛)))
28 simpl 482 . . . . . . . . . . . . . 14 ((𝑀 = 𝑚𝑁 = 𝑛) → 𝑀 = 𝑚)
2928seqeq1d 13655 . . . . . . . . . . . . 13 ((𝑀 = 𝑚𝑁 = 𝑛) → seq𝑀( + , 𝐹) = seq𝑚( + , 𝐹))
30 simpr 484 . . . . . . . . . . . . 13 ((𝑀 = 𝑚𝑁 = 𝑛) → 𝑁 = 𝑛)
3129, 30fveq12d 6763 . . . . . . . . . . . 12 ((𝑀 = 𝑚𝑁 = 𝑛) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝑚( + , 𝐹)‘𝑛))
3231eqcomd 2744 . . . . . . . . . . 11 ((𝑀 = 𝑚𝑁 = 𝑛) → (seq𝑚( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁))
33 eqeq1 2742 . . . . . . . . . . 11 (𝑧 = (seq𝑚( + , 𝐹)‘𝑛) → (𝑧 = (seq𝑀( + , 𝐹)‘𝑁) ↔ (seq𝑚( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁)))
3432, 33syl5ibrcom 246 . . . . . . . . . 10 ((𝑀 = 𝑚𝑁 = 𝑛) → (𝑧 = (seq𝑚( + , 𝐹)‘𝑛) → 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
3527, 34syl6bi 252 . . . . . . . . 9 (𝜑 → ((𝑀...𝑁) = (𝑚...𝑛) → (𝑧 = (seq𝑚( + , 𝐹)‘𝑛) → 𝑧 = (seq𝑀( + , 𝐹)‘𝑁))))
3635impd 410 . . . . . . . 8 (𝜑 → (((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) → 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
3736rexlimdvw 3218 . . . . . . 7 (𝜑 → (∃𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) → 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
3837exlimdv 1937 . . . . . 6 (𝜑 → (∃𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) → 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
3917adantr 480 . . . . . . . 8 ((𝜑𝑧 = (seq𝑀( + , 𝐹)‘𝑁)) → 𝑀 ∈ ℤ)
40 oveq2 7263 . . . . . . . . . . . . 13 (𝑛 = 𝑁 → (𝑀...𝑛) = (𝑀...𝑁))
4140eqcomd 2744 . . . . . . . . . . . 12 (𝑛 = 𝑁 → (𝑀...𝑁) = (𝑀...𝑛))
4241biantrurd 532 . . . . . . . . . . 11 (𝑛 = 𝑁 → (𝑧 = (seq𝑀( + , 𝐹)‘𝑛) ↔ ((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛))))
43 fveq2 6756 . . . . . . . . . . . 12 (𝑛 = 𝑁 → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑁))
4443eqeq2d 2749 . . . . . . . . . . 11 (𝑛 = 𝑁 → (𝑧 = (seq𝑀( + , 𝐹)‘𝑛) ↔ 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
4542, 44bitr3d 280 . . . . . . . . . 10 (𝑛 = 𝑁 → (((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛)) ↔ 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
4645rspcev 3552 . . . . . . . . 9 ((𝑁 ∈ (ℤ𝑀) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)) → ∃𝑛 ∈ (ℤ𝑀)((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛)))
4715, 46sylan 579 . . . . . . . 8 ((𝜑𝑧 = (seq𝑀( + , 𝐹)‘𝑁)) → ∃𝑛 ∈ (ℤ𝑀)((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛)))
48 fveq2 6756 . . . . . . . . . 10 (𝑚 = 𝑀 → (ℤ𝑚) = (ℤ𝑀))
49 oveq1 7262 . . . . . . . . . . . 12 (𝑚 = 𝑀 → (𝑚...𝑛) = (𝑀...𝑛))
5049eqeq2d 2749 . . . . . . . . . . 11 (𝑚 = 𝑀 → ((𝑀...𝑁) = (𝑚...𝑛) ↔ (𝑀...𝑁) = (𝑀...𝑛)))
51 seqeq1 13652 . . . . . . . . . . . . 13 (𝑚 = 𝑀 → seq𝑚( + , 𝐹) = seq𝑀( + , 𝐹))
5251fveq1d 6758 . . . . . . . . . . . 12 (𝑚 = 𝑀 → (seq𝑚( + , 𝐹)‘𝑛) = (seq𝑀( + , 𝐹)‘𝑛))
5352eqeq2d 2749 . . . . . . . . . . 11 (𝑚 = 𝑀 → (𝑧 = (seq𝑚( + , 𝐹)‘𝑛) ↔ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛)))
5450, 53anbi12d 630 . . . . . . . . . 10 (𝑚 = 𝑀 → (((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) ↔ ((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛))))
5548, 54rexeqbidv 3328 . . . . . . . . 9 (𝑚 = 𝑀 → (∃𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) ↔ ∃𝑛 ∈ (ℤ𝑀)((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛))))
5655spcegv 3526 . . . . . . . 8 (𝑀 ∈ ℤ → (∃𝑛 ∈ (ℤ𝑀)((𝑀...𝑁) = (𝑀...𝑛) ∧ 𝑧 = (seq𝑀( + , 𝐹)‘𝑛)) → ∃𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))))
5739, 47, 56sylc 65 . . . . . . 7 ((𝜑𝑧 = (seq𝑀( + , 𝐹)‘𝑁)) → ∃𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)))
5857ex 412 . . . . . 6 (𝜑 → (𝑧 = (seq𝑀( + , 𝐹)‘𝑁) → ∃𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))))
5938, 58impbid 211 . . . . 5 (𝜑 → (∃𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) ↔ 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
6059adantr 480 . . . 4 ((𝜑 ∧ (seq𝑀( + , 𝐹)‘𝑁) ∈ V) → (∃𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛)) ↔ 𝑧 = (seq𝑀( + , 𝐹)‘𝑁)))
6160iota5 6401 . . 3 ((𝜑 ∧ (seq𝑀( + , 𝐹)‘𝑁) ∈ V) → (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))) = (seq𝑀( + , 𝐹)‘𝑁))
6225, 61mpan2 687 . 2 (𝜑 → (℩𝑧𝑚𝑛 ∈ (ℤ𝑚)((𝑀...𝑁) = (𝑚...𝑛) ∧ 𝑧 = (seq𝑚( + , 𝐹)‘𝑛))) = (seq𝑀( + , 𝐹)‘𝑁))
6324, 62eqtrd 2778 1 (𝜑 → (𝐺 Σg 𝐹) = (seq𝑀( + , 𝐹)‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  wral 3063  wrex 3064  {crab 3067  Vcvv 3422  cdif 3880  wss 3883  ifcif 4456  𝒫 cpw 4530   × cxp 5578  ccnv 5579  ran crn 5581  cima 5583  ccom 5584  cio 6374   Fn wfn 6413  wf 6414  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  1c1 10803  cz 12249  cuz 12511  ...cfz 13168  seqcseq 13649  chash 13972  Basecbs 16840  +gcplusg 16888  0gc0g 17067   Σg cgsu 17068
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-pre-lttri 10876  ax-pre-lttrn 10877
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-po 5494  df-so 5495  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-neg 11138  df-z 12250  df-uz 12512  df-fz 13169  df-seq 13650  df-gsum 17070
This theorem is referenced by:  gsumval2  18285
  Copyright terms: Public domain W3C validator