ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  gsum2dfi GIF version

Theorem gsum2dfi 14276
Description: Write a sum over a two-dimensional region as a double sum. (Contributed by Mario Carneiro, 28-Dec-2014.) (Revised by AV, 8-Jun-2019.) (Revised by Jim Kingdon, 6-Oct-2026.)
Hypotheses
Ref Expression
gsum2d.b 𝐵 = (Base‘𝐺)
gsum2d.z 0 = (0g‘𝐺)
gsum2d.g (𝜑 → 𝐺 ∈ CMnd)
gsum2dfi.a (𝜑 → 𝐴 ∈ Fin)
gsum2d.r (𝜑 → Rel 𝐴)
gsum2dfi.d (𝜑 → 𝐷 ∈ Fin)
gsum2d.s (𝜑 → dom 𝐴 ⊆ 𝐷)
gsum2dfi.dm (𝜑 → dom 𝐴 ∈ Fin)
gsum2d.f (𝜑 → 𝐹:𝐴⟶𝐵)
gsum2dfi.fi ((𝜑 ∧ 𝑗 ∈ 𝐷) → (𝐴 “ {𝑗}) ∈ Fin)
Assertion
Ref Expression
gsum2dfi (𝜑 → (𝐺 Σg 𝐹) = (𝐺 Σg (𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))))
Distinct variable groups:   𝑗,𝑘,𝐴   𝑗,𝐹,𝑘   𝑗,𝐺,𝑘   𝜑,𝑗,𝑘   𝐵,𝑗,𝑘   𝐷,𝑗,𝑘   0 ,𝑗,𝑘

Proof of Theorem gsum2dfi
Dummy variable 𝑞 is distinct from all other variables.
StepHypRef Expression
1 gsum2d.b . . 3 𝐵 = (Base‘𝐺)
2 gsum2d.z . . 3 0 = (0g‘𝐺)
3 gsum2d.g . . 3 (𝜑 → 𝐺 ∈ CMnd)
4 gsum2dfi.a . . 3 (𝜑 → 𝐴 ∈ Fin)
5 gsum2d.r . . 3 (𝜑 → Rel 𝐴)
6 gsum2dfi.d . . 3 (𝜑 → 𝐷 ∈ Fin)
7 gsum2d.s . . 3 (𝜑 → dom 𝐴 ⊆ 𝐷)
8 gsum2dfi.dm . . 3 (𝜑 → dom 𝐴 ∈ Fin)
9 gsum2d.f . . 3 (𝜑 → 𝐹:𝐴⟶𝐵)
10 gsum2dfi.fi . . 3 ((𝜑 ∧ 𝑗 ∈ 𝐷) → (𝐴 “ {𝑗}) ∈ Fin)
111, 2, 3, 4, 5, 6, 7, 8, 9, 10gsum2dfilem2 14275 . 2 (𝜑 → (𝐺 Σg 𝐹) = (𝐺 Σg (𝑗 ∈ dom 𝐴 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))))
127resmptd 5120 . . 3 (𝜑 → ((𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)))) ↾ dom 𝐴) = (𝑗 ∈ dom 𝐴 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)))))
1312oveq2d 6107 . 2 (𝜑 → (𝐺 Σg ((𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)))) ↾ dom 𝐴)) = (𝐺 Σg (𝑗 ∈ dom 𝐴 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))))
141, 2, 3, 9, 10gsum2dfilem1 14274 . . . 4 ((𝜑 ∧ 𝑗 ∈ 𝐷) → (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))) ∈ 𝐵)
1514fmpttd 5869 . . 3 (𝜑 → (𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)))):𝐷⟶𝐵)
16 eqid 2238 . . . . . 6 (𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)))) = (𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))
17 sneq 3720 . . . . . . . . 9 (𝑗 = 𝑞 → {𝑗} = {𝑞})
1817imaeq2d 5132 . . . . . . . 8 (𝑗 = 𝑞 → (𝐴 “ {𝑗}) = (𝐴 “ {𝑞}))
19 oveq1 6098 . . . . . . . 8 (𝑗 = 𝑞 → (𝑗𝐹𝑘) = (𝑞𝐹𝑘))
2018, 19mpteq12dv 4214 . . . . . . 7 (𝑗 = 𝑞 → (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)) = (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘)))
2120oveq2d 6107 . . . . . 6 (𝑗 = 𝑞 → (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))) = (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘))))
22 eldifi 3351 . . . . . . 7 (𝑞 ∈ (𝐷 ∖ dom 𝐴) → 𝑞 ∈ 𝐷)
2322adantl 277 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → 𝑞 ∈ 𝐷)
24 eldifn 3352 . . . . . . . . . . 11 (𝑞 ∈ (𝐷 ∖ dom 𝐴) → ¬ 𝑞 ∈ dom 𝐴)
2524adantl 277 . . . . . . . . . 10 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → ¬ 𝑞 ∈ dom 𝐴)
26 ndmima 5170 . . . . . . . . . . . 12 (¬ 𝑞 ∈ dom 𝐴 → (𝐴 “ {𝑞}) = ∅)
2726mpteq1d 4217 . . . . . . . . . . 11 (¬ 𝑞 ∈ dom 𝐴 → (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘)) = (𝑘 ∈ ∅ ↦ (𝑞𝐹𝑘)))
28 mpt0 5517 . . . . . . . . . . 11 (𝑘 ∈ ∅ ↦ (𝑞𝐹𝑘)) = ∅
2927, 28eqtrdi 2287 . . . . . . . . . 10 (¬ 𝑞 ∈ dom 𝐴 → (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘)) = ∅)
3025, 29syl 14 . . . . . . . . 9 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘)) = ∅)
3130oveq2d 6107 . . . . . . . 8 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘))) = (𝐺 Σg ∅))
32 gsum0cmn 14247 . . . . . . . . . . 11 (𝐺 ∈ CMnd → (𝐺 Σg ∅) = (0g‘𝐺))
333, 32syl 14 . . . . . . . . . 10 (𝜑 → (𝐺 Σg ∅) = (0g‘𝐺))
3433, 2eqtr4di 2289 . . . . . . . . 9 (𝜑 → (𝐺 Σg ∅) = 0 )
3534adantr 276 . . . . . . . 8 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → (𝐺 Σg ∅) = 0 )
3631, 35eqtrd 2271 . . . . . . 7 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘))) = 0 )
373cmnmndd 14204 . . . . . . . . 9 (𝜑 → 𝐺 ∈ Mnd)
381, 2mndidcl 13805 . . . . . . . . 9 (𝐺 ∈ Mnd → 0 ∈ 𝐵)
3937, 38syl 14 . . . . . . . 8 (𝜑 → 0 ∈ 𝐵)
4039adantr 276 . . . . . . 7 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → 0 ∈ 𝐵)
4136, 40eqeltrd 2315 . . . . . 6 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘))) ∈ 𝐵)
4216, 21, 23, 41fvmptd3 5805 . . . . 5 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → ((𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))‘𝑞) = (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑞}) ↦ (𝑞𝐹𝑘))))
4342, 36eqtrd 2271 . . . 4 ((𝜑 ∧ 𝑞 ∈ (𝐷 ∖ dom 𝐴)) → ((𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))‘𝑞) = 0 )
4443ralrimiva 2623 . . 3 (𝜑 → ∀𝑞 ∈ (𝐷 ∖ dom 𝐴)((𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))‘𝑞) = 0 )
451, 2, 3, 6, 15, 44, 8, 7gsumresfi 14266 . 2 (𝜑 → (𝐺 Σg ((𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘)))) ↾ dom 𝐴)) = (𝐺 Σg (𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))))
4611, 13, 453eqtr2d 2277 1 (𝜑 → (𝐺 Σg 𝐹) = (𝐺 Σg (𝑗 ∈ 𝐷 ↦ (𝐺 Σg (𝑘 ∈ (𝐴 “ {𝑗}) ↦ (𝑗𝐹𝑘))))))
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   = wceq 1402   ∈ wcel 2209   ∖ cdif 3217   ⊆ wss 3220  ∅c0 3520  {csn 3709   ↦ cmpt 4193  dom cdm 4776   ↾ cres 4778   “ cima 4779  Rel wrel 4781  ⟶wf 5379  ‘cfv 5383  (class class class)co 6091  Fincfn 7031  Basecbs 13413  0gc0g 13672  Mndcmnd 13791  CMndccmn 14180   Σg cgsu 14243
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4248  ax-sep 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580  ax-setind 4686  ax-iinf 4737  ax-cnex 8280  ax-resscn 8281  ax-1cn 8282  ax-1re 8283  ax-icn 8284  ax-addcl 8285  ax-addrcl 8286  ax-mulcl 8287  ax-mulrcl 8288  ax-addcom 8289  ax-mulcom 8290  ax-addass 8291  ax-mulass 8292  ax-distr 8293  ax-i2m1 8294  ax-0lt1 8295  ax-1rid 8296  ax-0id 8297  ax-rnegex 8298  ax-precex 8299  ax-cnre 8300  ax-pre-ltirr 8301  ax-pre-ltwlin 8302  ax-pre-lttrn 8303  ax-pre-apti 8304  ax-pre-ltadd 8305  ax-pre-mulgt0 8306
This proof depends on definitions:  df-bi 117  df-stab 843  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-iord 4513  df-on 4515  df-ilim 4516  df-suc 4518  df-iom 4740  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5343  df-fun 5385  df-fn 5386  df-f 5387  df-f1 5388  df-fo 5389  df-f1o 5390  df-fv 5391  df-riota 6044  df-ov 6094  df-oprab 6095  df-mpo 6096  df-1st 6381  df-2nd 6382  df-recs 6584  df-irdg 6649  df-frec 6670  df-1o 6695  df-oadd 6699  df-er 6815  df-en 7032  df-dom 7033  df-fin 7034  df-pnf 8372  df-mnf 8373  df-xr 8374  df-ltxr 8375  df-le 8376  df-sub 8510  df-neg 8511  df-reap 8915  df-ap 8922  df-inn 9318  df-2 9376  df-n0 9579  df-z 9658  df-uz 9941  df-fz 10432  df-fzo 10570  df-seqfrec 10909  df-ihash 11240  df-ndx 13416  df-slot 13417  df-base 13419  df-plusg 13506  df-0g 13674  df-gzsum 13675  df-mgm 13738  df-sgrp 13779  df-mnd 13792  df-minusg 13871  df-mulg 13985  df-cmn 14182  df-gsumfi 14244
This theorem is used by:  gsum2d2fi  14277
  Copyright terms: Public domain W3C validator