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

Theorem gsum2d2 19088
Description: Write a group sum over a two-dimensional region as a double sum. Note that 𝐶(𝑗) is a function of 𝑗. (Contributed by Mario Carneiro, 28-Dec-2014.)
Hypotheses
Ref Expression
gsum2d2.b 𝐵 = (Base‘𝐺)
gsum2d2.z 0 = (0g𝐺)
gsum2d2.g (𝜑𝐺 ∈ CMnd)
gsum2d2.a (𝜑𝐴𝑉)
gsum2d2.r ((𝜑𝑗𝐴) → 𝐶𝑊)
gsum2d2.f ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑋𝐵)
gsum2d2.u (𝜑𝑈 ∈ Fin)
gsum2d2.n ((𝜑 ∧ ((𝑗𝐴𝑘𝐶) ∧ ¬ 𝑗𝑈𝑘)) → 𝑋 = 0 )
Assertion
Ref Expression
gsum2d2 (𝜑 → (𝐺 Σg (𝑗𝐴, 𝑘𝐶𝑋)) = (𝐺 Σg (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋)))))
Distinct variable groups:   𝑗,𝑘,𝐵   𝜑,𝑗,𝑘   𝐴,𝑗,𝑘   𝑗,𝐺,𝑘   𝑈,𝑗,𝑘   𝐶,𝑘   𝑗,𝑉   0 ,𝑗,𝑘
Allowed substitution hints:   𝐶(𝑗)   𝑉(𝑘)   𝑊(𝑗,𝑘)   𝑋(𝑗,𝑘)

Proof of Theorem gsum2d2
Dummy variables 𝑚 𝑛 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 gsum2d2.b . . 3 𝐵 = (Base‘𝐺)
2 gsum2d2.z . . 3 0 = (0g𝐺)
3 gsum2d2.g . . 3 (𝜑𝐺 ∈ CMnd)
4 gsum2d2.a . . . 4 (𝜑𝐴𝑉)
5 snex 5324 . . . . . 6 {𝑗} ∈ V
6 gsum2d2.r . . . . . 6 ((𝜑𝑗𝐴) → 𝐶𝑊)
7 xpexg 7467 . . . . . 6 (({𝑗} ∈ V ∧ 𝐶𝑊) → ({𝑗} × 𝐶) ∈ V)
85, 6, 7sylancr 589 . . . . 5 ((𝜑𝑗𝐴) → ({𝑗} × 𝐶) ∈ V)
98ralrimiva 3182 . . . 4 (𝜑 → ∀𝑗𝐴 ({𝑗} × 𝐶) ∈ V)
10 iunexg 7658 . . . 4 ((𝐴𝑉 ∧ ∀𝑗𝐴 ({𝑗} × 𝐶) ∈ V) → 𝑗𝐴 ({𝑗} × 𝐶) ∈ V)
114, 9, 10syl2anc 586 . . 3 (𝜑 𝑗𝐴 ({𝑗} × 𝐶) ∈ V)
12 relxp 5568 . . . . . 6 Rel ({𝑗} × 𝐶)
1312rgenw 3150 . . . . 5 𝑗𝐴 Rel ({𝑗} × 𝐶)
14 reliun 5684 . . . . 5 (Rel 𝑗𝐴 ({𝑗} × 𝐶) ↔ ∀𝑗𝐴 Rel ({𝑗} × 𝐶))
1513, 14mpbir 233 . . . 4 Rel 𝑗𝐴 ({𝑗} × 𝐶)
1615a1i 11 . . 3 (𝜑 → Rel 𝑗𝐴 ({𝑗} × 𝐶))
17 vex 3498 . . . . . 6 𝑥 ∈ V
1817eldm2 5765 . . . . 5 (𝑥 ∈ dom 𝑗𝐴 ({𝑗} × 𝐶) ↔ ∃𝑦𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶))
19 eliunxp 5703 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) ↔ ∃𝑗𝑘(⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶)))
20 vex 3498 . . . . . . . . . . . 12 𝑦 ∈ V
2117, 20opth1 5360 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ → 𝑥 = 𝑗)
2221ad2antrl 726 . . . . . . . . . 10 ((𝜑 ∧ (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶))) → 𝑥 = 𝑗)
23 simprrl 779 . . . . . . . . . 10 ((𝜑 ∧ (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶))) → 𝑗𝐴)
2422, 23eqeltrd 2913 . . . . . . . . 9 ((𝜑 ∧ (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶))) → 𝑥𝐴)
2524ex 415 . . . . . . . 8 (𝜑 → ((⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶)) → 𝑥𝐴))
2625exlimdvv 1931 . . . . . . 7 (𝜑 → (∃𝑗𝑘(⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶)) → 𝑥𝐴))
2719, 26syl5bi 244 . . . . . 6 (𝜑 → (⟨𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) → 𝑥𝐴))
2827exlimdv 1930 . . . . 5 (𝜑 → (∃𝑦𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) → 𝑥𝐴))
2918, 28syl5bi 244 . . . 4 (𝜑 → (𝑥 ∈ dom 𝑗𝐴 ({𝑗} × 𝐶) → 𝑥𝐴))
3029ssrdv 3973 . . 3 (𝜑 → dom 𝑗𝐴 ({𝑗} × 𝐶) ⊆ 𝐴)
31 gsum2d2.f . . . . 5 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑋𝐵)
3231ralrimivva 3191 . . . 4 (𝜑 → ∀𝑗𝐴𝑘𝐶 𝑋𝐵)
33 eqid 2821 . . . . 5 (𝑗𝐴, 𝑘𝐶𝑋) = (𝑗𝐴, 𝑘𝐶𝑋)
3433fmpox 7759 . . . 4 (∀𝑗𝐴𝑘𝐶 𝑋𝐵 ↔ (𝑗𝐴, 𝑘𝐶𝑋): 𝑗𝐴 ({𝑗} × 𝐶)⟶𝐵)
3532, 34sylib 220 . . 3 (𝜑 → (𝑗𝐴, 𝑘𝐶𝑋): 𝑗𝐴 ({𝑗} × 𝐶)⟶𝐵)
36 gsum2d2.u . . . 4 (𝜑𝑈 ∈ Fin)
37 gsum2d2.n . . . 4 ((𝜑 ∧ ((𝑗𝐴𝑘𝐶) ∧ ¬ 𝑗𝑈𝑘)) → 𝑋 = 0 )
381, 2, 3, 4, 6, 31, 36, 37gsum2d2lem 19087 . . 3 (𝜑 → (𝑗𝐴, 𝑘𝐶𝑋) finSupp 0 )
391, 2, 3, 11, 16, 4, 30, 35, 38gsum2d 19086 . 2 (𝜑 → (𝐺 Σg (𝑗𝐴, 𝑘𝐶𝑋)) = (𝐺 Σg (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))))
40 nfcv 2977 . . . . . 6 𝑗𝐺
41 nfcv 2977 . . . . . 6 𝑗 Σg
42 nfiu1 4946 . . . . . . . 8 𝑗 𝑗𝐴 ({𝑗} × 𝐶)
43 nfcv 2977 . . . . . . . 8 𝑗{𝑚}
4442, 43nfima 5932 . . . . . . 7 𝑗( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚})
45 nfcv 2977 . . . . . . . 8 𝑗𝑚
46 nfmpo1 7228 . . . . . . . 8 𝑗(𝑗𝐴, 𝑘𝐶𝑋)
47 nfcv 2977 . . . . . . . 8 𝑗𝑛
4845, 46, 47nfov 7180 . . . . . . 7 𝑗(𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)
4944, 48nfmpt 5156 . . . . . 6 𝑗(𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))
5040, 41, 49nfov 7180 . . . . 5 𝑗(𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
51 nfcv 2977 . . . . 5 𝑚(𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
52 sneq 4571 . . . . . . . 8 (𝑚 = 𝑗 → {𝑚} = {𝑗})
5352imaeq2d 5924 . . . . . . 7 (𝑚 = 𝑗 → ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) = ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}))
54 oveq1 7157 . . . . . . 7 (𝑚 = 𝑗 → (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛) = (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))
5553, 54mpteq12dv 5144 . . . . . 6 (𝑚 = 𝑗 → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
5655oveq2d 7166 . . . . 5 (𝑚 = 𝑗 → (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))) = (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))
5750, 51, 56cbvmpt 5160 . . . 4 (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))) = (𝑗𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))
58 vex 3498 . . . . . . . . . . . . . 14 𝑗 ∈ V
59 vex 3498 . . . . . . . . . . . . . 14 𝑘 ∈ V
6058, 59elimasn 5949 . . . . . . . . . . . . 13 (𝑘 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↔ ⟨𝑗, 𝑘⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶))
61 opeliunxp 5614 . . . . . . . . . . . . 13 (⟨𝑗, 𝑘⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) ↔ (𝑗𝐴𝑘𝐶))
6260, 61bitri 277 . . . . . . . . . . . 12 (𝑘 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↔ (𝑗𝐴𝑘𝐶))
6362baib 538 . . . . . . . . . . 11 (𝑗𝐴 → (𝑘 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↔ 𝑘𝐶))
6463eqrdv 2819 . . . . . . . . . 10 (𝑗𝐴 → ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) = 𝐶)
6564mpteq1d 5148 . . . . . . . . 9 (𝑗𝐴 → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑛𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
66 nfcv 2977 . . . . . . . . . . 11 𝑘𝑗
67 nfmpo2 7229 . . . . . . . . . . 11 𝑘(𝑗𝐴, 𝑘𝐶𝑋)
68 nfcv 2977 . . . . . . . . . . 11 𝑘𝑛
6966, 67, 68nfov 7180 . . . . . . . . . 10 𝑘(𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)
70 nfcv 2977 . . . . . . . . . 10 𝑛(𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)
71 oveq2 7158 . . . . . . . . . 10 (𝑛 = 𝑘 → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛) = (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘))
7269, 70, 71cbvmpt 5160 . . . . . . . . 9 (𝑛𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘))
7365, 72syl6eq 2872 . . . . . . . 8 (𝑗𝐴 → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)))
7473adantl 484 . . . . . . 7 ((𝜑𝑗𝐴) → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)))
75 simprl 769 . . . . . . . . . 10 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑗𝐴)
76 simprr 771 . . . . . . . . . 10 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑘𝐶)
7733ovmpt4g 7291 . . . . . . . . . 10 ((𝑗𝐴𝑘𝐶𝑋𝐵) → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘) = 𝑋)
7875, 76, 31, 77syl3anc 1367 . . . . . . . . 9 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘) = 𝑋)
7978anassrs 470 . . . . . . . 8 (((𝜑𝑗𝐴) ∧ 𝑘𝐶) → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘) = 𝑋)
8079mpteq2dva 5154 . . . . . . 7 ((𝜑𝑗𝐴) → (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)) = (𝑘𝐶𝑋))
8174, 80eqtrd 2856 . . . . . 6 ((𝜑𝑗𝐴) → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶𝑋))
8281oveq2d 7166 . . . . 5 ((𝜑𝑗𝐴) → (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))) = (𝐺 Σg (𝑘𝐶𝑋)))
8382mpteq2dva 5154 . . . 4 (𝜑 → (𝑗𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))) = (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋))))
8457, 83syl5eq 2868 . . 3 (𝜑 → (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))) = (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋))))
8584oveq2d 7166 . 2 (𝜑 → (𝐺 Σg (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))) = (𝐺 Σg (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋)))))
8639, 85eqtrd 2856 1 (𝜑 → (𝐺 Σg (𝑗𝐴, 𝑘𝐶𝑋)) = (𝐺 Σg (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398   = wceq 1533  wex 1776  wcel 2110  wral 3138  Vcvv 3495  {csn 4561  cop 4567   ciun 4912   class class class wbr 5059  cmpt 5139   × cxp 5548  dom cdm 5550  cima 5553  Rel wrel 5555  wf 6346  cfv 6350  (class class class)co 7150  cmpo 7152  Fincfn 8503  Basecbs 16477  0gc0g 16707   Σg cgsu 16708  CMndccmn 18900
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-rep 5183  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455  ax-cnex 10587  ax-resscn 10588  ax-1cn 10589  ax-icn 10590  ax-addcl 10591  ax-addrcl 10592  ax-mulcl 10593  ax-mulrcl 10594  ax-mulcom 10595  ax-addass 10596  ax-mulass 10597  ax-distr 10598  ax-i2m1 10599  ax-1ne0 10600  ax-1rid 10601  ax-rnegex 10602  ax-rrecex 10603  ax-cnre 10604  ax-pre-lttri 10605  ax-pre-lttrn 10606  ax-pre-ltadd 10607  ax-pre-mulgt0 10608
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3497  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-uni 4833  df-int 4870  df-iun 4914  df-iin 4915  df-br 5060  df-opab 5122  df-mpt 5140  df-tr 5166  df-id 5455  df-eprel 5460  df-po 5469  df-so 5470  df-fr 5509  df-se 5510  df-we 5511  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-pred 6143  df-ord 6189  df-on 6190  df-lim 6191  df-suc 6192  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-isom 6359  df-riota 7108  df-ov 7153  df-oprab 7154  df-mpo 7155  df-of 7403  df-om 7575  df-1st 7683  df-2nd 7684  df-supp 7825  df-wrecs 7941  df-recs 8002  df-rdg 8040  df-1o 8096  df-oadd 8100  df-er 8283  df-en 8504  df-dom 8505  df-sdom 8506  df-fin 8507  df-fsupp 8828  df-oi 8968  df-card 9362  df-pnf 10671  df-mnf 10672  df-xr 10673  df-ltxr 10674  df-le 10675  df-sub 10866  df-neg 10867  df-nn 11633  df-2 11694  df-n0 11892  df-z 11976  df-uz 12238  df-fz 12887  df-fzo 13028  df-seq 13364  df-hash 13685  df-ndx 16480  df-slot 16481  df-base 16483  df-sets 16484  df-ress 16485  df-plusg 16572  df-0g 16709  df-gsum 16710  df-mre 16851  df-mrc 16852  df-acs 16854  df-mgm 17846  df-sgrp 17895  df-mnd 17906  df-submnd 17951  df-mulg 18219  df-cntz 18441  df-cmn 18902
This theorem is referenced by:  gsumcom3  19092  gsumdixp  19353  psrass1lem  20151  gsummpt2co  30681
  Copyright terms: Public domain W3C validator