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

Theorem mvmulfval 21599
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 21598 . . . 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 6769 . . . . 5 (1st𝑜) ∈ V
5 fvex 6769 . . . . 5 (2nd𝑜) ∈ V
6 xpeq12 5605 . . . . . . 7 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑚 × 𝑛) = ((1st𝑜) × (2nd𝑜)))
76oveq2d 7271 . . . . . 6 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → ((Base‘𝑟) ↑m (𝑚 × 𝑛)) = ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))))
8 oveq2 7263 . . . . . . 7 (𝑛 = (2nd𝑜) → ((Base‘𝑟) ↑m 𝑛) = ((Base‘𝑟) ↑m (2nd𝑜)))
98adantl 481 . . . . . 6 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → ((Base‘𝑟) ↑m 𝑛) = ((Base‘𝑟) ↑m (2nd𝑜)))
10 simpl 482 . . . . . . 7 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → 𝑚 = (1st𝑜))
11 simpr 484 . . . . . . . . 9 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → 𝑛 = (2nd𝑜))
1211mpteq1d 5165 . . . . . . . 8 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))) = (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))
1312oveq2d 7271 . . . . . . 7 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))) = (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))
1410, 13mpteq12dv 5161 . . . . . 6 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))) = (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))))
157, 9, 14mpoeq123dv 7328 . . . . 5 ((𝑚 = (1st𝑜) ∧ 𝑛 = (2nd𝑜)) → (𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))), 𝑦 ∈ ((Base‘𝑟) ↑m (2nd𝑜)) ↦ (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))))
164, 5, 15csbie2 3870 . . . 4 (1st𝑜) / 𝑚(2nd𝑜) / 𝑛(𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))), 𝑦 ∈ ((Base‘𝑟) ↑m (2nd𝑜)) ↦ (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))))
17 simprl 767 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → 𝑟 = 𝑅)
1817fveq2d 6760 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (Base‘𝑟) = (Base‘𝑅))
19 mvmulfval.b . . . . . . 7 𝐵 = (Base‘𝑅)
2018, 19eqtr4di 2797 . . . . . 6 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (Base‘𝑟) = 𝐵)
21 fveq2 6756 . . . . . . . . 9 (𝑜 = ⟨𝑀, 𝑁⟩ → (1st𝑜) = (1st ‘⟨𝑀, 𝑁⟩))
2221ad2antll 725 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st𝑜) = (1st ‘⟨𝑀, 𝑁⟩))
23 mvmulfval.m . . . . . . . . . 10 (𝜑𝑀 ∈ Fin)
24 mvmulfval.n . . . . . . . . . 10 (𝜑𝑁 ∈ Fin)
25 op1stg 7816 . . . . . . . . . 10 ((𝑀 ∈ Fin ∧ 𝑁 ∈ Fin) → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
2623, 24, 25syl2anc 583 . . . . . . . . 9 (𝜑 → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
2726adantr 480 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
2822, 27eqtrd 2778 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st𝑜) = 𝑀)
29 fveq2 6756 . . . . . . . . 9 (𝑜 = ⟨𝑀, 𝑁⟩ → (2nd𝑜) = (2nd ‘⟨𝑀, 𝑁⟩))
3029ad2antll 725 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (2nd𝑜) = (2nd ‘⟨𝑀, 𝑁⟩))
31 op2ndg 7817 . . . . . . . . . 10 ((𝑀 ∈ Fin ∧ 𝑁 ∈ Fin) → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3223, 24, 31syl2anc 583 . . . . . . . . 9 (𝜑 → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3332adantr 480 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3430, 33eqtrd 2778 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (2nd𝑜) = 𝑁)
3528, 34xpeq12d 5611 . . . . . 6 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((1st𝑜) × (2nd𝑜)) = (𝑀 × 𝑁))
3620, 35oveq12d 7273 . . . . 5 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))) = (𝐵m (𝑀 × 𝑁)))
3720, 34oveq12d 7273 . . . . 5 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((Base‘𝑟) ↑m (2nd𝑜)) = (𝐵m 𝑁))
38 fveq2 6756 . . . . . . . . . . . 12 (𝑟 = 𝑅 → (.r𝑟) = (.r𝑅))
3938adantr 480 . . . . . . . . . . 11 ((𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩) → (.r𝑟) = (.r𝑅))
4039adantl 481 . . . . . . . . . 10 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (.r𝑟) = (.r𝑅))
41 mvmulfval.t . . . . . . . . . 10 · = (.r𝑅)
4240, 41eqtr4di 2797 . . . . . . . . 9 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (.r𝑟) = · )
4342oveqd 7272 . . . . . . . 8 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)) = ((𝑖𝑥𝑗) · (𝑦𝑗)))
4434, 43mpteq12dv 5161 . . . . . . 7 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))) = (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗))))
4517, 44oveq12d 7273 . . . . . 6 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))) = (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))
4628, 45mpteq12dv 5161 . . . . 5 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗))))) = (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗))))))
4736, 37, 46mpoeq123dv 7328 . . . 4 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (𝑥 ∈ ((Base‘𝑟) ↑m ((1st𝑜) × (2nd𝑜))), 𝑦 ∈ ((Base‘𝑟) ↑m (2nd𝑜)) ↦ (𝑖 ∈ (1st𝑜) ↦ (𝑟 Σg (𝑗 ∈ (2nd𝑜) ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
4816, 47eqtrid 2790 . . 3 ((𝜑 ∧ (𝑟 = 𝑅𝑜 = ⟨𝑀, 𝑁⟩)) → (1st𝑜) / 𝑚(2nd𝑜) / 𝑛(𝑥 ∈ ((Base‘𝑟) ↑m (𝑚 × 𝑛)), 𝑦 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑖𝑚 ↦ (𝑟 Σg (𝑗𝑛 ↦ ((𝑖𝑥𝑗)(.r𝑟)(𝑦𝑗)))))) = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
49 mvmulfval.r . . . 4 (𝜑𝑅𝑉)
5049elexd 3442 . . 3 (𝜑𝑅 ∈ V)
51 opex 5373 . . . 4 𝑀, 𝑁⟩ ∈ V
5251a1i 11 . . 3 (𝜑 → ⟨𝑀, 𝑁⟩ ∈ V)
53 ovex 7288 . . . . 5 (𝐵m (𝑀 × 𝑁)) ∈ V
54 ovex 7288 . . . . 5 (𝐵m 𝑁) ∈ V
5553, 54mpoex 7893 . . . 4 (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))) ∈ V
5655a1i 11 . . 3 (𝜑 → (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))) ∈ V)
573, 48, 50, 52, 56ovmpod 7403 . 2 (𝜑 → (𝑅 maVecMul ⟨𝑀, 𝑁⟩) = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
581, 57eqtrid 2790 1 (𝜑× = (𝑥 ∈ (𝐵m (𝑀 × 𝑁)), 𝑦 ∈ (𝐵m 𝑁) ↦ (𝑖𝑀 ↦ (𝑅 Σg (𝑗𝑁 ↦ ((𝑖𝑥𝑗) · (𝑦𝑗)))))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  Vcvv 3422  csb 3828  cop 4564  cmpt 5153   × cxp 5578  cfv 6418  (class class class)co 7255  cmpo 7257  1st c1st 7802  2nd c2nd 7803  m cmap 8573  Fincfn 8691  Basecbs 16840  .rcmulr 16889   Σg cgsu 17068   maVecMul cmvmul 21597
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-mvmul 21598
This theorem is referenced by:  mvmulval  21600  mavmuldm  21607  mavmul0g  21610
  Copyright terms: Public domain W3C validator