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

Theorem gsumval3a 20110
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-1-onto→𝑊 ∧ 𝑥 = (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 2761 . . 3 {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}
5 gsumval3a.w . . . . 5 𝑊 = (𝐹 supp 0 )
65a1i 11 . . . 4 (𝜑 → 𝑊 = (𝐹 supp 0 ))
7 gsumval3.f . . . . . 6 (𝜑 → 𝐹:𝐴⟶𝐵)
8 gsumval3.a . . . . . 6 (𝜑 → 𝐴 ∈ 𝑉)
97, 8fexd 7231 . . . . 5 (𝜑 → 𝐹 ∈ V)
102fvexi 6897 . . . . 5 0 ∈ V
11 suppimacnv 8184 . . . . 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 19023 . . . . . . . 8 (𝐺 ∈ Mnd → {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = { 0 })
1513, 14syl 18 . . . . . . 7 (𝜑 → {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = { 0 })
1615eqcomd 2767 . . . . . 6 (𝜑 → { 0 } = {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})
1716difeq2d 4074 . . . . 5 (𝜑 → (V ∖ { 0 }) = (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}))
1817imaeq2d 6052 . . . 4 (𝜑 → (◡𝐹 “ (V ∖ { 0 })) = (◡𝐹 “ (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})))
196, 12, 183eqtrd 2800 . . 3 (𝜑 → 𝑊 = (◡𝐹 “ (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})))
201, 2, 3, 4, 19, 13, 8, 7gsumval 18859 . 2 (𝜑 → (𝐺 Σg 𝐹) = if(ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}, 0 , if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))–1-1-onto→𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))))
21 gsumval3a.n . . . 4 (𝜑 → 𝑊 ≠ ∅)
2215sseq2d 3963 . . . . . 6 (𝜑 → (ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} ↔ ran 𝐹 ⊆ { 0 }))
235a1i 11 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝑊 = (𝐹 supp 0 ))
247, 8jca 521 . . . . . . . . . . 11 (𝜑 → (𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉))
2524adantr 486 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉))
26 fex 7230 . . . . . . . . . 10 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → 𝐹 ∈ V)
2725, 26syl 18 . . . . . . . . 9 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹 ∈ V)
2827, 10, 11sylancl 598 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (𝐹 supp 0 ) = (◡𝐹 “ (V ∖ { 0 })))
297ffnd 6708 . . . . . . . . . . 11 (𝜑 → 𝐹 Fn 𝐴)
3029adantr 486 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹 Fn 𝐴)
31 simpr 490 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → ran 𝐹 ⊆ { 0 })
32 df-f 6541 . . . . . . . . . 10 (𝐹:𝐴⟶{ 0 } ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 ⊆ { 0 }))
3330, 31, 32sylanbrc 595 . . . . . . . . 9 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹:𝐴⟶{ 0 })
34 disjdif 4426 . . . . . . . . 9 ({ 0 } ∩ (V ∖ { 0 })) = ∅
35 fimacnvdisj 6758 . . . . . . . . 9 ((𝐹:𝐴⟶{ 0 } ∧ ({ 0 } ∩ (V ∖ { 0 })) = ∅) → (◡𝐹 “ (V ∖ { 0 })) = ∅)
3633, 34, 35sylancl 598 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (◡𝐹 “ (V ∖ { 0 })) = ∅)
3723, 28, 363eqtrd 2800 . . . . . . 7 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝑊 = ∅)
3837ex 418 . . . . . 6 (𝜑 → (ran 𝐹 ⊆ { 0 } → 𝑊 = ∅))
3922, 38sylbid 243 . . . . 5 (𝜑 → (ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} → 𝑊 = ∅))
4039necon3ad 2969 . . . 4 (𝜑 → (𝑊 ≠ ∅ → ¬ ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}))
4121, 40mpd 16 . . 3 (𝜑 → ¬ ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})
4241iffalsed 4493 . 2 (𝜑 → if(ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}, 0 , if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))–1-1-onto→𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))) = if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))–1-1-onto→𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊))))))
43 gsumval3a.i . . 3 (𝜑 → ¬ 𝐴 ∈ ran ...)
4443iffalsed 4493 . 2 (𝜑 → if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))–1-1-onto→𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊))))) = (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))–1-1-onto→𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))
4520, 42, 443eqtrd 2800 1 (𝜑 → (𝐺 Σg 𝐹) = (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))–1-1-onto→𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2145   ≠ wne 2956  ∀wral 3077  ∃wrex 3087  {crab 3413  Vcvv 3451   ∖ cdif 3896   ∩ cin 3898   ⊆ wss 3899  ∅c0 4279  ifcif 4482  {csn 4584  ◡ccnv 5650  ran crn 5652   “ cima 5654   ∘ ccom 5655  ℩cio 6491   Fn wfn 6532  ⟶wf 6533  –1-1-onto→wf1o 6536  ‘cfv 6537  (class class class)co 7418   supp csupp 8170  Fincfn 8966  1c1 11194  ℤ≥cuz 12958  ...cfz 13632  seqcseq 14137  ♯chash 14467  Basecbs 17380  +gcplusg 17421  0gc0g 17603   Σg cgsu 17604  Mndcmnd 18916  Cntzccntz 19522
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6303  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-supp 8171  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-seq 14138  df-0g 17605  df-gsum 17606  df-mgm 18809  df-sgrp 18901  df-mnd 18917
This theorem is used by:  gsumval3lem2  20113
  Copyright terms: Public domain W3C validator