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

Theorem gsumval3a 20195
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 2774 . . 3 {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}
5 gsumval3a.w . . . . 5 𝑊 = (𝐹 supp 0 )
65a1i 11 . . . 4 (𝜑 → 𝑊 = (𝐹 supp 0 ))
7 gsumval3.f . . . . . 6 (𝜑 → 𝐹:𝐴⟶𝐵)
8 gsumval3.a . . . . . 6 (𝜑 → 𝐴 ∈ 𝑉)
97, 8fexd 7279 . . . . 5 (𝜑 → 𝐹 ∈ V)
102fvexi 6945 . . . . 5 0 ∈ V
11 suppimacnv 8245 . . . . 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 19105 . . . . . . . 8 (𝐺 ∈ Mnd → {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = { 0 })
1513, 14syl 18 . . . . . . 7 (𝜑 → {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} = { 0 })
1615eqcomd 2780 . . . . . 6 (𝜑 → { 0 } = {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})
1716difeq2d 4073 . . . . 5 (𝜑 → (V ∖ { 0 }) = (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}))
1817imaeq2d 6079 . . . 4 (𝜑 → (◡𝐹 “ (V ∖ { 0 })) = (◡𝐹 “ (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})))
196, 12, 183eqtrd 2813 . . 3 (𝜑 → 𝑊 = (◡𝐹 “ (V ∖ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})))
201, 2, 3, 4, 19, 13, 8, 7gsumval 18941 . 2 (𝜑 → (𝐺 Σg 𝐹) = if(ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}, 0 , if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))))
21 gsumval3a.n . . . 4 (𝜑 → 𝑊 ≠ ∅)
2215sseq2d 3952 . . . . . 6 (𝜑 → (ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} ↔ ran 𝐹 ⊆ { 0 }))
235a1i 11 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝑊 = (𝐹 supp 0 ))
247, 8jca 521 . . . . . . . . . . 11 (𝜑 → (𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉))
2524adantr 486 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉))
26 fex 7278 . . . . . . . . . 10 ((𝐹:𝐴⟶𝐵 ∧ 𝐴 ∈ 𝑉) → 𝐹 ∈ V)
2725, 26syl 18 . . . . . . . . 9 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹 ∈ V)
2827, 10, 11sylancl 598 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (𝐹 supp 0 ) = (◡𝐹 “ (V ∖ { 0 })))
297ffnd 6755 . . . . . . . . . . 11 (𝜑 → 𝐹 Fn 𝐴)
3029adantr 486 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹 Fn 𝐴)
31 simpr 490 . . . . . . . . . 10 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → ran 𝐹 ⊆ { 0 })
32 df-f 6582 . . . . . . . . . 10 (𝐹:𝐴⟶{ 0 } ↔ (𝐹 Fn 𝐴 ∧ ran 𝐹 ⊆ { 0 }))
3330, 31, 32sylanbrc 595 . . . . . . . . 9 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝐹:𝐴⟶{ 0 })
34 disjdif 4436 . . . . . . . . 9 ({ 0 } ∩ (V ∖ { 0 })) = ∅
35 fimacnvdisj 6805 . . . . . . . . 9 ((𝐹:𝐴⟶{ 0 } ∧ ({ 0 } ∩ (V ∖ { 0 })) = ∅) → (◡𝐹 “ (V ∖ { 0 })) = ∅)
3633, 34, 35sylancl 598 . . . . . . . 8 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → (◡𝐹 “ (V ∖ { 0 })) = ∅)
3723, 28, 363eqtrd 2813 . . . . . . 7 ((𝜑 ∧ ran 𝐹 ⊆ { 0 }) → 𝑊 = ∅)
3837ex 418 . . . . . 6 (𝜑 → (ran 𝐹 ⊆ { 0 } → 𝑊 = ∅))
3922, 38sylbid 243 . . . . 5 (𝜑 → (ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)} → 𝑊 = ∅))
4039necon3ad 2983 . . . 4 (𝜑 → (𝑊 ≠ ∅ → ¬ ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}))
4121, 40mpd 16 . . 3 (𝜑 → ¬ ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)})
4241iffalsed 4503 . 2 (𝜑 → if(ran 𝐹 ⊆ {𝑧 ∈ 𝐵 ∣ ∀𝑦 ∈ 𝐵 ((𝑧 + 𝑦) = 𝑦 ∧ (𝑦 + 𝑧) = 𝑦)}, 0 , if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))) = if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊))))))
43 gsumval3a.i . . 3 (𝜑 → ¬ 𝐴 ∈ ran ...)
4443iffalsed 4503 . 2 (𝜑 → if(𝐴 ∈ ran ..., (℩𝑥∃𝑚∃𝑛 ∈ (ℤ≥‘𝑚)(𝐴 = (𝑚...𝑛) ∧ 𝑥 = (seq𝑚( + , 𝐹)‘𝑛))), (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊))))) = (℩𝑥∃𝑓(𝑓:(1...(♯‘𝑊))⟶1-1onto𝑊 ∧ 𝑥 = (seq1( + , (𝐹 ∘ 𝑓))‘(♯‘𝑊)))))
4520, 42, 443eqtrd 2813 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 1572  ∃wex 1818   ∈ wcel 2156   ≠ wne 2970  ∀wral 3091  ∃wrex 3101  {crab 3423  Vcvv 3461   ⊆ wss 3907   ∖ cdif 4055   ∩ cin 4099  ∅c0 4288  ifcif 4492  {csn 4595  ◡ccnv 5665  ran crn 5667   “ cima 5669   ∘ ccom 5670  ℩cio 6530   Fn wfn 6573  ⟶wf 6574  ⟶1-1ontowf1o 6577  ‘cfv 6578  (class class class)co 7467   supp csupp 8230  Fincfn 9027  1c1 11256  ℤ≥cuz 13021  ...cfz 13695  seqcseq 14202  ♯chash 14533  Basecbs 17452  +gcplusg 17493  0gc0g 17685   Σg cgsu 17686  Mndcmnd 18998  Cntzccntz 19607
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7799
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6342  df-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-f1 6583  df-fo 6584  df-f1o 6585  df-fv 6586  df-riota 7423  df-ov 7470  df-oprab 7471  df-mpo 7472  df-supp 8231  df-frecs 8353  df-wrecs 8384  df-recs 8433  df-rdg 8472  df-seq 14203  df-0g 17687  df-gsum 17688  df-mgm 18891  df-sgrp 18983  df-mnd 18999
This theorem is used by:  gsumval3lem2  20198
  Copyright terms: Public domain W3C validator