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

Theorem gsum2d2 19094
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 5332 . . . . . 6 {𝑗} ∈ V
6 gsum2d2.r . . . . . 6 ((𝜑𝑗𝐴) → 𝐶𝑊)
7 xpexg 7473 . . . . . 6 (({𝑗} ∈ V ∧ 𝐶𝑊) → ({𝑗} × 𝐶) ∈ V)
85, 6, 7sylancr 589 . . . . 5 ((𝜑𝑗𝐴) → ({𝑗} × 𝐶) ∈ V)
98ralrimiva 3182 . . . 4 (𝜑 → ∀𝑗𝐴 ({𝑗} × 𝐶) ∈ V)
10 iunexg 7664 . . . 4 ((𝐴𝑉 ∧ ∀𝑗𝐴 ({𝑗} × 𝐶) ∈ V) → 𝑗𝐴 ({𝑗} × 𝐶) ∈ V)
114, 9, 10syl2anc 586 . . 3 (𝜑 𝑗𝐴 ({𝑗} × 𝐶) ∈ V)
12 relxp 5573 . . . . . 6 Rel ({𝑗} × 𝐶)
1312rgenw 3150 . . . . 5 𝑗𝐴 Rel ({𝑗} × 𝐶)
14 reliun 5689 . . . . 5 (Rel 𝑗𝐴 ({𝑗} × 𝐶) ↔ ∀𝑗𝐴 Rel ({𝑗} × 𝐶))
1513, 14mpbir 233 . . . 4 Rel 𝑗𝐴 ({𝑗} × 𝐶)
1615a1i 11 . . 3 (𝜑 → Rel 𝑗𝐴 ({𝑗} × 𝐶))
17 vex 3497 . . . . . 6 𝑥 ∈ V
1817eldm2 5770 . . . . 5 (𝑥 ∈ dom 𝑗𝐴 ({𝑗} × 𝐶) ↔ ∃𝑦𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶))
19 eliunxp 5708 . . . . . . 7 (⟨𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) ↔ ∃𝑗𝑘(⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶)))
20 vex 3497 . . . . . . . . . . . 12 𝑦 ∈ V
2117, 20opth1 5367 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ → 𝑥 = 𝑗)
2221ad2antrl 726 . . . . . . . . . 10 ((𝜑 ∧ (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶))) → 𝑥 = 𝑗)
23 simprrl 779 . . . . . . . . . 10 ((𝜑 ∧ (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶))) → 𝑗𝐴)
2422, 23eqeltrd 2913 . . . . . . . . 9 ((𝜑 ∧ (⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶))) → 𝑥𝐴)
2524ex 415 . . . . . . . 8 (𝜑 → ((⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶)) → 𝑥𝐴))
2625exlimdvv 1935 . . . . . . 7 (𝜑 → (∃𝑗𝑘(⟨𝑥, 𝑦⟩ = ⟨𝑗, 𝑘⟩ ∧ (𝑗𝐴𝑘𝐶)) → 𝑥𝐴))
2719, 26syl5bi 244 . . . . . 6 (𝜑 → (⟨𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) → 𝑥𝐴))
2827exlimdv 1934 . . . . 5 (𝜑 → (∃𝑦𝑥, 𝑦⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) → 𝑥𝐴))
2918, 28syl5bi 244 . . . 4 (𝜑 → (𝑥 ∈ dom 𝑗𝐴 ({𝑗} × 𝐶) → 𝑥𝐴))
3029ssrdv 3973 . . 3 (𝜑 → dom 𝑗𝐴 ({𝑗} × 𝐶) ⊆ 𝐴)
31 gsum2d2.f . . . . 5 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑋𝐵)
3231ralrimivva 3191 . . . 4 (𝜑 → ∀𝑗𝐴𝑘𝐶 𝑋𝐵)
33 eqid 2821 . . . . 5 (𝑗𝐴, 𝑘𝐶𝑋) = (𝑗𝐴, 𝑘𝐶𝑋)
3433fmpox 7765 . . . 4 (∀𝑗𝐴𝑘𝐶 𝑋𝐵 ↔ (𝑗𝐴, 𝑘𝐶𝑋): 𝑗𝐴 ({𝑗} × 𝐶)⟶𝐵)
3532, 34sylib 220 . . 3 (𝜑 → (𝑗𝐴, 𝑘𝐶𝑋): 𝑗𝐴 ({𝑗} × 𝐶)⟶𝐵)
36 gsum2d2.u . . . 4 (𝜑𝑈 ∈ Fin)
37 gsum2d2.n . . . 4 ((𝜑 ∧ ((𝑗𝐴𝑘𝐶) ∧ ¬ 𝑗𝑈𝑘)) → 𝑋 = 0 )
381, 2, 3, 4, 6, 31, 36, 37gsum2d2lem 19093 . . 3 (𝜑 → (𝑗𝐴, 𝑘𝐶𝑋) finSupp 0 )
391, 2, 3, 11, 16, 4, 30, 35, 38gsum2d 19092 . 2 (𝜑 → (𝐺 Σg (𝑗𝐴, 𝑘𝐶𝑋)) = (𝐺 Σg (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))))
40 nfcv 2977 . . . . . 6 𝑗𝐺
41 nfcv 2977 . . . . . 6 𝑗 Σg
42 nfiu1 4953 . . . . . . . 8 𝑗 𝑗𝐴 ({𝑗} × 𝐶)
43 nfcv 2977 . . . . . . . 8 𝑗{𝑚}
4442, 43nfima 5937 . . . . . . 7 𝑗( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚})
45 nfcv 2977 . . . . . . . 8 𝑗𝑚
46 nfmpo1 7234 . . . . . . . 8 𝑗(𝑗𝐴, 𝑘𝐶𝑋)
47 nfcv 2977 . . . . . . . 8 𝑗𝑛
4845, 46, 47nfov 7186 . . . . . . 7 𝑗(𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)
4944, 48nfmpt 5163 . . . . . 6 𝑗(𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))
5040, 41, 49nfov 7186 . . . . 5 𝑗(𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
51 nfcv 2977 . . . . 5 𝑚(𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
52 sneq 4577 . . . . . . . 8 (𝑚 = 𝑗 → {𝑚} = {𝑗})
5352imaeq2d 5929 . . . . . . 7 (𝑚 = 𝑗 → ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) = ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}))
54 oveq1 7163 . . . . . . 7 (𝑚 = 𝑗 → (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛) = (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))
5553, 54mpteq12dv 5151 . . . . . 6 (𝑚 = 𝑗 → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
5655oveq2d 7172 . . . . 5 (𝑚 = 𝑗 → (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛))) = (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))
5750, 51, 56cbvmpt 5167 . . . 4 (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))) = (𝑗𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))))
58 vex 3497 . . . . . . . . . . . . . 14 𝑗 ∈ V
59 vex 3497 . . . . . . . . . . . . . 14 𝑘 ∈ V
6058, 59elimasn 5954 . . . . . . . . . . . . 13 (𝑘 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↔ ⟨𝑗, 𝑘⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶))
61 opeliunxp 5619 . . . . . . . . . . . . 13 (⟨𝑗, 𝑘⟩ ∈ 𝑗𝐴 ({𝑗} × 𝐶) ↔ (𝑗𝐴𝑘𝐶))
6260, 61bitri 277 . . . . . . . . . . . 12 (𝑘 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↔ (𝑗𝐴𝑘𝐶))
6362baib 538 . . . . . . . . . . 11 (𝑗𝐴 → (𝑘 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↔ 𝑘𝐶))
6463eqrdv 2819 . . . . . . . . . 10 (𝑗𝐴 → ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) = 𝐶)
6564mpteq1d 5155 . . . . . . . . 9 (𝑗𝐴 → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑛𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))
66 nfcv 2977 . . . . . . . . . . 11 𝑘𝑗
67 nfmpo2 7235 . . . . . . . . . . 11 𝑘(𝑗𝐴, 𝑘𝐶𝑋)
68 nfcv 2977 . . . . . . . . . . 11 𝑘𝑛
6966, 67, 68nfov 7186 . . . . . . . . . 10 𝑘(𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)
70 nfcv 2977 . . . . . . . . . 10 𝑛(𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)
71 oveq2 7164 . . . . . . . . . 10 (𝑛 = 𝑘 → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛) = (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘))
7269, 70, 71cbvmpt 5167 . . . . . . . . 9 (𝑛𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘))
7365, 72syl6eq 2872 . . . . . . . 8 (𝑗𝐴 → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)))
7473adantl 484 . . . . . . 7 ((𝜑𝑗𝐴) → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)))
75 simprl 769 . . . . . . . . . 10 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑗𝐴)
76 simprr 771 . . . . . . . . . 10 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → 𝑘𝐶)
7733ovmpt4g 7297 . . . . . . . . . 10 ((𝑗𝐴𝑘𝐶𝑋𝐵) → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘) = 𝑋)
7875, 76, 31, 77syl3anc 1367 . . . . . . . . 9 ((𝜑 ∧ (𝑗𝐴𝑘𝐶)) → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘) = 𝑋)
7978anassrs 470 . . . . . . . 8 (((𝜑𝑗𝐴) ∧ 𝑘𝐶) → (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘) = 𝑋)
8079mpteq2dva 5161 . . . . . . 7 ((𝜑𝑗𝐴) → (𝑘𝐶 ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑘)) = (𝑘𝐶𝑋))
8174, 80eqtrd 2856 . . . . . 6 ((𝜑𝑗𝐴) → (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)) = (𝑘𝐶𝑋))
8281oveq2d 7172 . . . . 5 ((𝜑𝑗𝐴) → (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛))) = (𝐺 Σg (𝑘𝐶𝑋)))
8382mpteq2dva 5161 . . . 4 (𝜑 → (𝑗𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑗}) ↦ (𝑗(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))) = (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋))))
8457, 83syl5eq 2868 . . 3 (𝜑 → (𝑚𝐴 ↦ (𝐺 Σg (𝑛 ∈ ( 𝑗𝐴 ({𝑗} × 𝐶) “ {𝑚}) ↦ (𝑚(𝑗𝐴, 𝑘𝐶𝑋)𝑛)))) = (𝑗𝐴 ↦ (𝐺 Σg (𝑘𝐶𝑋))))
8584oveq2d 7172 . 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 1537  wex 1780  wcel 2114  wral 3138  Vcvv 3494  {csn 4567  cop 4573   ciun 4919   class class class wbr 5066  cmpt 5146   × cxp 5553  dom cdm 5555  cima 5558  Rel wrel 5560  wf 6351  cfv 6355  (class class class)co 7156  cmpo 7158  Fincfn 8509  Basecbs 16483  0gc0g 16713   Σg cgsu 16714  CMndccmn 18906
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-rep 5190  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461  ax-cnex 10593  ax-resscn 10594  ax-1cn 10595  ax-icn 10596  ax-addcl 10597  ax-addrcl 10598  ax-mulcl 10599  ax-mulrcl 10600  ax-mulcom 10601  ax-addass 10602  ax-mulass 10603  ax-distr 10604  ax-i2m1 10605  ax-1ne0 10606  ax-1rid 10607  ax-rnegex 10608  ax-rrecex 10609  ax-cnre 10610  ax-pre-lttri 10611  ax-pre-lttrn 10612  ax-pre-ltadd 10613  ax-pre-mulgt0 10614
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  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 3496  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 4568  df-pr 4570  df-tp 4572  df-op 4574  df-uni 4839  df-int 4877  df-iun 4921  df-iin 4922  df-br 5067  df-opab 5129  df-mpt 5147  df-tr 5173  df-id 5460  df-eprel 5465  df-po 5474  df-so 5475  df-fr 5514  df-se 5515  df-we 5516  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-pred 6148  df-ord 6194  df-on 6195  df-lim 6196  df-suc 6197  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363  df-isom 6364  df-riota 7114  df-ov 7159  df-oprab 7160  df-mpo 7161  df-of 7409  df-om 7581  df-1st 7689  df-2nd 7690  df-supp 7831  df-wrecs 7947  df-recs 8008  df-rdg 8046  df-1o 8102  df-oadd 8106  df-er 8289  df-en 8510  df-dom 8511  df-sdom 8512  df-fin 8513  df-fsupp 8834  df-oi 8974  df-card 9368  df-pnf 10677  df-mnf 10678  df-xr 10679  df-ltxr 10680  df-le 10681  df-sub 10872  df-neg 10873  df-nn 11639  df-2 11701  df-n0 11899  df-z 11983  df-uz 12245  df-fz 12894  df-fzo 13035  df-seq 13371  df-hash 13692  df-ndx 16486  df-slot 16487  df-base 16489  df-sets 16490  df-ress 16491  df-plusg 16578  df-0g 16715  df-gsum 16716  df-mre 16857  df-mrc 16858  df-acs 16860  df-mgm 17852  df-sgrp 17901  df-mnd 17912  df-submnd 17957  df-mulg 18225  df-cntz 18447  df-cmn 18908
This theorem is referenced by:  gsumcom3  19098  gsumdixp  19359  psrass1lem  20157  gsummpt2co  30686
  Copyright terms: Public domain W3C validator