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

Theorem gsumval3a 20168
Description: Value of the group sum operation over an index set with finite support. (Contributed by Mario Carneiro, 7-Dec-2014.) (Revised by AV, 29-May-2019.)
Hypotheses
Ref Expression
gsumval3.b 𝐵 = (Base‘𝐺)
gsumval3.0 0 = (0g‘𝐺)
gsumval3.p + = (+g‘𝐺)
gsumval3.z 𝑍 = (Cntz‘𝐺)
gsumval3.g (𝜑 → 𝐺 ∈ Mnd)
gsumval3.a (𝜑 → 𝐴 ∈ 𝑉)
gsumval3.f (𝜑 → 𝐹:𝐴⟶𝐵)
gsumval3.c (𝜑 → ran 𝐹 ⊆ (𝑍‘ran 𝐹))
gsumval3a.t (𝜑 → 𝑊 ∈ Fin)
gsumval3a.n (𝜑 → 𝑊 ≠ ∅)
gsumval3a.w 𝑊 = (𝐹 supp 0 )
gsumval3a.i (𝜑 → ¬ 𝐴 ∈ ran ...)
Assertion
Ref Expression
gsumval3a (𝜑 → (𝐺 Σg 𝐹) = (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))
Distinct variable groups:   𝑥,𝑓, +   𝐴,𝑓,𝑥   𝜑,𝑓,𝑥   𝑥, 0   𝑓,𝐺,𝑥   𝑥,𝑉   𝐵,𝑓,𝑥   𝑓,𝐹,𝑥   𝑓,𝑊,𝑥
Allowed substitution hints:   𝑉(𝑓)   0 (𝑓)   𝑍(𝑥, 𝑓)

Proof of Theorem gsumval3a
Dummy variables 𝑚 𝑛 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 gsumval3.b . . 3 𝐵 = (Base‘𝐺)
2 gsumval3.0 . . 3 0 = (0g‘𝐺)
3 gsumval3.p . . 3 + = (+g‘𝐺)
4 eqid 2763 . . 3 {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}
5 gsumval3a.w . . . . 5 𝑊 = (𝐹 supp 0 )
65a1i 11 . . . 4 (𝜑 → 𝑊 = (𝐹 supp 0 ))
7 gsumval3.f . . . . . 6 (𝜑 → 𝐹:𝐴⟶𝐵)
8 gsumval3.a . . . . . 6 (𝜑 → 𝐴 ∈ 𝑉)
97, 8fexd 7264 . . . . 5 (𝜑 → 𝐹 ∈ V)
102fvexi 6930 . . . . 5 0 ∈ V
11 suppimacnv 8229 . . . . 5 ((𝐹 ∈ V ∧ 0 ∈ V) → (𝐹 supp 0 ) = (◡𝐹 “ (V ∖ { 0 })))
129, 10, 11sylancl 598 . . . 4 (𝜑 → (𝐹 supp 0 ) = (◡𝐹 “ (V ∖ { 0 })))
13 gsumval3.g . . . . . . . 8 (𝜑 → 𝐺 ∈ Mnd)
141, 2, 3, 4gsumvallem2 19080 . . . . . . . 8 (𝐺 ∈ Mnd → {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = { 0 })
1513, 14syl 18 . . . . . . 7 (𝜑 → {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = { 0 })
1615eqcomd 2769 . . . . . 6 (𝜑 → { 0 } = {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})
1716difeq2d 4066 . . . . 5 (𝜑 → (V ∖ { 0 }) = (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}))
1817imaeq2d 6070 . . . 4 (𝜑 → (◡𝐹 “ (V ∖ { 0 })) = (◡𝐹 “ (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})))
196, 12, 183eqtrd 2802 . . 3 (𝜑 → 𝑊 = (◡𝐹 “ (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})))
201, 2, 3, 4, 19, 13, 8, 7gsumval 18916 . 2 (𝜑 → (𝐺 Σg 𝐹) = if(ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}, 0 , if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))))
21 gsumval3a.n . . . 4 (𝜑 → 𝑊 ≠ ∅)
2215sseq2d 3945 . . . . . 6 (𝜑 → (ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} ↔ ran 𝐹 ⊆ { 0 }))
235a1i 11 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝑊 = (𝐹 supp 0 ))
247, 8jca 521 . . . . . . . . . . 11 (𝜑 → (𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉))
2524adantr 486 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉))
26 fex 7263 . . . . . . . . . 10 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → 𝐹 ∈ V)
2725, 26syl 18 . . . . . . . . 9 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹 ∈ V)
2827, 10, 11sylancl 598 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (𝐹 supp 0 ) = (◡𝐹 “ (V ∖ { 0 })))
297ffnd 6740 . . . . . . . . . . 11 (𝜑 → 𝐹 Fn 𝐴)
3029adantr 486 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹 Fn 𝐴)
31 simpr 490 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → ran 𝐹 ⊆ { 0 })
32 df-f 6570 . . . . . . . . . 10 (𝐹:𝐴⟶{ 0 } ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 ⊆ { 0 }))
3330, 31, 32sylanbrc 595 . . . . . . . . 9 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹:𝐴⟶{ 0 })
34 disjdif 4429 . . . . . . . . 9 ({ 0 } ∩ (V ∖ { 0 })) = ∅
35 fimacnvdisj 6790 . . . . . . . . 9 ((𝐹:𝐴⟶{ 0 } ∧ ({ 0 } ∩ (V ∖ { 0 })) = ∅) → (◡𝐹 “ (V ∖ { 0 })) = ∅)
3633, 34, 35sylancl 598 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (◡𝐹 “ (V ∖ { 0 })) = ∅)
3723, 28, 363eqtrd 2802 . . . . . . 7 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝑊 = ∅)
3837ex 418 . . . . . 6 (𝜑 → (ran 𝐹 ⊆ { 0 } → 𝑊 = ∅))
3922, 38sylbid 243 . . . . 5 (𝜑 → (ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} → 𝑊 = ∅))
4039necon3ad 2972 . . . 4 (𝜑 → (𝑊 ≠ ∅ → ¬ ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}))
4121, 40mpd 16 . . 3 (𝜑 → ¬ ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})
4241iffalsed 4496 . 2 (𝜑 → if(ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}, 0 , if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))) = if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊))))))
43 gsumval3a.i . . 3 (𝜑 → ¬ 𝐴 ∈ ran ...)
4443iffalsed 4496 . 2 (𝜑 → if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊))))) = (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))
4520, 42, 443eqtrd 2802 1 (𝜑 → (𝐺 Σg 𝐹) = (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147   ≠ wne 2959  ∀wral 3080  ∃wrex 3090  {crab 3416  Vcvv 3454   ⊆ wss 3900   ∖ cdif 4048   ∩ cin 4092  ∅c0 4281  ifcif 4485  {csn 4588  ◡ccnv 5657  ran crn 5659   “ cima 5661   ∘ ccom 5662  ℩cio 6518   Fn wfn 6561  ⟶wf 6562  ⟶1-1ontowf1o 6565  ‘cfv 6566  (class class class)co 7451   supp csupp 8214  Fincfn 9011  1c1 11240  ℤ≥cuz 13005  ...cfz 13679  seqcseq 14184  ♯chash 14515  Basecbs 17431  +gcplusg 17472  0gc0g 17660   Σg cgsu 17661  Mndcmnd 18973  Cntzccntz 19580
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-riota 7408  df-ov 7454  df-oprab 7455  df-mpo 7456  df-supp 8215  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-seq 14185  df-0g 17662  df-gsum 17663  df-mgm 18866  df-sgrp 18958  df-mnd 18974
This theorem is used by:  gsumval3lem2  20171
  Copyright terms: Public domain W3C validator