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

Theorem mvmulfval 21255
Description: Functional value of the matrix vector multiplication operator. (Contributed by AV, 23-Feb-2019.)
Hypotheses
Ref Expression
mvmulfval.x × = (𝑅 maVecMul ⟨𝑀, 𝑁⟩)
mvmulfval.b 𝐵 = (Base‘𝑅)
mvmulfval.t · = (.r𝑅)
mvmulfval.r (𝜑𝑅𝑉)
mvmulfval.m (𝜑𝑀 ∈ Fin)
mvmulfval.n (𝜑𝑁 ∈ Fin)
Assertion
Ref Expression
mvmulfval (𝜑× = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
Distinct variable groups:   𝑖,𝑗,𝑥,𝑦,𝜑   𝑖,𝑀,𝑗,𝑥,𝑦   𝑖,𝑁,𝑗,𝑥,𝑦   𝑅,𝑖,𝑗,𝑥,𝑦   𝑥,𝐵,𝑦   𝑥, · ,𝑦,𝑖
Allowed substitution hints:   𝐵(𝑖,𝑗)   · (𝑗)   × (𝑥,𝑦,𝑖,𝑗)   𝑉(𝑥,𝑦,𝑖,𝑗)

Proof of Theorem mvmulfval
Dummy variables 𝑚 𝑛 𝑜 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mvmulfval.x . 2 × = (𝑅 maVecMul ⟨𝑀, 𝑁⟩)
2 df-mvmul 21254 . . . 4 maVecMul = (𝑟 ∈ V, 𝑜 ∈ V ↦ (1st𝑜) / 𝑚(2nd𝑜) / 𝑛(𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))))
32a1i 11 . . 3 (𝜑 → maVecMul = (𝑟 ∈ V, 𝑜 ∈ V ↦ (1st𝑜) / 𝑚(2nd𝑜) / 𝑛(𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))))))
4 fvex 6676 . . . . 5 (1st𝑜) ∈ V
5 fvex 6676 . . . . 5 (2nd𝑜) ∈ V
6 xpeq12 5553 . . . . . . 7 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑚 × 𝑛) = ((1st𝑜) × (2nd𝑜)))
76oveq2d 7172 . . . . . 6 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → ((Base‘𝑟) ↑m (𝑚 × 𝑛)) = ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))))
8 oveq2 7164 . . . . . . 7 (𝑛 = (2nd𝑜) → ((Base‘𝑟) ↑m 𝑛) = ((Base‘𝑟) ↑m (2nd𝑜)))
98adantl 485 . . . . . 6 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → ((Base‘𝑟) ↑m 𝑛) = ((Base‘𝑟) ↑m (2nd𝑜)))
10 simpl 486 . . . . . . 7 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → 𝑚 = (1st𝑜))
11 simpr 488 . . . . . . . . 9 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → 𝑛 = (2nd𝑜))
1211mpteq1d 5125 . . . . . . . 8 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))) = (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))
1312oveq2d 7172 . . . . . . 7 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))) = (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))
1410, 13mpteq12dv 5121 . . . . . 6 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))) = (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))))
157, 9, 14mpoeq123dv 7229 . . . . 5 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))), 𝑦 ∈ ((Base‘𝑟) ↑m (2nd𝑜)) ↦ (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))))
164, 5, 15csbie2 3846 . . . 4 (1st𝑜) / 𝑚(2nd𝑜) / 𝑛(𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))), 𝑦 ∈ ((Base‘𝑟) ↑m (2nd𝑜)) ↦ (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))))
17 simprl 770 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → 𝑟 = 𝑅)
1817fveq2d 6667 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (Base‘𝑟) = (Base‘𝑅))
19 mvmulfval.b . . . . . . 7 𝐵 = (Base‘𝑅)
2018, 19eqtr4di 2811 . . . . . 6 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (Base‘𝑟) = 𝐵)
21 fveq2 6663 . . . . . . . . 9 (𝑜 = ⟨𝑀, 𝑁⟩ → (1st𝑜) = (1st ‘⟨𝑀, 𝑁⟩))
2221ad2antll 728 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st𝑜) = (1st ‘⟨𝑀, 𝑁⟩))
23 mvmulfval.m . . . . . . . . . 10 (𝜑𝑀 ∈ Fin)
24 mvmulfval.n . . . . . . . . . 10 (𝜑𝑁 ∈ Fin)
25 op1stg 7711 . . . . . . . . . 10 ((𝑀 ∈ Fin ∧ 𝑁 ∈ Fin) → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
2623, 24, 25syl2anc 587 . . . . . . . . 9 (𝜑 → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
2726adantr 484 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
2822, 27eqtrd 2793 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st𝑜) = 𝑀)
29 fveq2 6663 . . . . . . . . 9 (𝑜 = ⟨𝑀, 𝑁⟩ → (2nd𝑜) = (2nd ‘⟨𝑀, 𝑁⟩))
3029ad2antll 728 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (2nd𝑜) = (2nd ‘⟨𝑀, 𝑁⟩))
31 op2ndg 7712 . . . . . . . . . 10 ((𝑀 ∈ Fin ∧ 𝑁 ∈ Fin) → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3223, 24, 31syl2anc 587 . . . . . . . . 9 (𝜑 → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3332adantr 484 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3430, 33eqtrd 2793 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (2nd𝑜) = 𝑁)
3528, 34xpeq12d 5559 . . . . . 6 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((1st𝑜) × (2nd𝑜)) = (𝑀 × 𝑁))
3620, 35oveq12d 7174 . . . . 5 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))) = (𝐵m (𝑀 × 𝑁)))
3720, 34oveq12d 7174 . . . . 5 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((Base‘𝑟) ↑m (2nd𝑜)) = (𝐵m 𝑁))
38 fveq2 6663 . . . . . . . . . . . 12 (𝑟 = 𝑅 → (.r𝑟) = (.r𝑅))
3938adantr 484 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩) → (.r𝑟) = (.r𝑅))
4039adantl 485 . . . . . . . . . 10 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (.r𝑟) = (.r𝑅))
41 mvmulfval.t . . . . . . . . . 10 · = (.r𝑅)
4240, 41eqtr4di 2811 . . . . . . . . 9 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (.r𝑟) = · )
4342oveqd 7173 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)) = ((𝑖𝑥𝑗) · (𝑦𝑗)))
4434, 43mpteq12dv 5121 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))) = (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗))))
4517, 44oveq12d 7174 . . . . . 6 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))) = (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))
4628, 45mpteq12dv 5121 . . . . 5 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))) = (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗))))))
4736, 37, 46mpoeq123dv 7229 . . . 4 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑥 ∈ ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))), 𝑦 ∈ ((Base‘𝑟) ↑m (2nd𝑜)) ↦ (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
4816, 47syl5eq 2805 . . 3 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st𝑜) / 𝑚(2nd𝑜) / 𝑛(𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
49 mvmulfval.r . . . 4 (𝜑𝑅𝑉)
5049elexd 3430 . . 3 (𝜑𝑅 ∈ V)
51 opex 5328 . . . 4 𝑀, 𝑁⟩ ∈ V
5251a1i 11 . . 3 (𝜑 → ⟨𝑀, 𝑁⟩ ∈ V)
53 ovex 7189 . . . . 5 (𝐵m (𝑀 × 𝑁)) ∈ V
54 ovex 7189 . . . . 5 (𝐵m 𝑁) ∈ V
5553, 54mpoex 7788 . . . 4 (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))) ∈ V
5655a1i 11 . . 3 (𝜑 → (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))) ∈ V)
573, 48, 50, 52, 56ovmpod 7303 . 2 (𝜑 → (𝑅 maVecMul ⟨𝑀, 𝑁⟩) = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
581, 57syl5eq 2805 1 (𝜑× = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1538  wcel 2111  Vcvv 3409  csb 3807  cop 4531  cmpt 5116   × cxp 5526  cfv 6340  (class class class)co 7156  cmpo 7158  1st c1st 7697  2nd c2nd 7698  m cmap 8422  Fincfn 8540  Basecbs 16554  .rcmulr 16637   Σg cgsu 16785   maVecMul cmvmul 21253
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-rep 5160  ax-sep 5173  ax-nul 5180  ax-pow 5238  ax-pr 5302  ax-un 7465
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-ral 3075  df-rex 3076  df-reu 3077  df-rab 3079  df-v 3411  df-sbc 3699  df-csb 3808  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4802  df-iun 4888  df-br 5037  df-opab 5099  df-mpt 5117  df-id 5434  df-xp 5534  df-rel 5535  df-cnv 5536  df-co 5537  df-dm 5538  df-rn 5539  df-res 5540  df-ima 5541  df-iota 6299  df-fun 6342  df-fn 6343  df-f 6344  df-f1 6345  df-fo 6346  df-f1o 6347  df-fv 6348  df-ov 7159  df-oprab 7160  df-mpo 7161  df-1st 7699  df-2nd 7700  df-mvmul 21254
This theorem is referenced by:  mvmulval  21256  mavmuldm  21263  mavmul0g  21266
  Copyright terms: Public domain W3C validator