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

Theorem mvmulfval 18913
Description: Functional value of the matrix vector multiplication operator. (Contributed by AV, 23-Feb-2019.)
Hypotheses
Ref Expression
mvmulfval.x  |-  .X.  =  ( R maVecMul  <. M ,  N >. )
mvmulfval.b  |-  B  =  ( Base `  R
)
mvmulfval.t  |-  .x.  =  ( .r `  R )
mvmulfval.r  |-  ( ph  ->  R  e.  V )
mvmulfval.m  |-  ( ph  ->  M  e.  Fin )
mvmulfval.n  |-  ( ph  ->  N  e.  Fin )
Assertion
Ref Expression
mvmulfval  |-  ( ph  ->  .X.  =  ( x  e.  ( B  ^m  ( M  X.  N
) ) ,  y  e.  ( B  ^m  N )  |->  ( i  e.  M  |->  ( R 
gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) ) )
Distinct variable groups:    i, j, x, y, ph    i, M, j, x, y    i, N, j, x, y    R, i, j, x, y    x, B, y    x,  .x. , y,
i
Allowed substitution hints:    B( i, j)    .x. ( j)    .X. ( x, y, i, j)    V( x, y, i, j)

Proof of Theorem mvmulfval
Dummy variables  m  n  o  r are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 mvmulfval.x . 2  |-  .X.  =  ( R maVecMul  <. M ,  N >. )
2 df-mvmul 18912 . . . 4  |- maVecMul  =  ( r  e.  _V , 
o  e.  _V  |->  [_ ( 1st `  o )  /  m ]_ [_ ( 2nd `  o )  /  n ]_ ( x  e.  ( ( Base `  r
)  ^m  ( m  X.  n ) ) ,  y  e.  ( (
Base `  r )  ^m  n )  |->  ( i  e.  m  |->  ( r 
gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) ) ) )
32a1i 11 . . 3  |-  ( ph  -> maVecMul 
=  ( r  e. 
_V ,  o  e. 
_V  |->  [_ ( 1st `  o
)  /  m ]_ [_ ( 2nd `  o
)  /  n ]_ ( x  e.  (
( Base `  r )  ^m  ( m  X.  n
) ) ,  y  e.  ( ( Base `  r )  ^m  n
)  |->  ( i  e.  m  |->  ( r  gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r `  r
) ( y `  j ) ) ) ) ) ) ) )
4 fvex 5882 . . . . 5  |-  ( 1st `  o )  e.  _V
5 fvex 5882 . . . . 5  |-  ( 2nd `  o )  e.  _V
6 xpeq12 5024 . . . . . . 7  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
m  X.  n )  =  ( ( 1st `  o )  X.  ( 2nd `  o ) ) )
76oveq2d 6311 . . . . . 6  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
( Base `  r )  ^m  ( m  X.  n
) )  =  ( ( Base `  r
)  ^m  ( ( 1st `  o )  X.  ( 2nd `  o
) ) ) )
8 oveq2 6303 . . . . . . 7  |-  ( n  =  ( 2nd `  o
)  ->  ( ( Base `  r )  ^m  n )  =  ( ( Base `  r
)  ^m  ( 2nd `  o ) ) )
98adantl 466 . . . . . 6  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
( Base `  r )  ^m  n )  =  ( ( Base `  r
)  ^m  ( 2nd `  o ) ) )
10 simpl 457 . . . . . . 7  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  m  =  ( 1st `  o
) )
11 simpr 461 . . . . . . . . 9  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  n  =  ( 2nd `  o
) )
1211mpteq1d 4534 . . . . . . . 8  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
j  e.  n  |->  ( ( i x j ) ( .r `  r ) ( y `
 j ) ) )  =  ( j  e.  ( 2nd `  o
)  |->  ( ( i x j ) ( .r `  r ) ( y `  j
) ) ) )
1312oveq2d 6311 . . . . . . 7  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
r  gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) )  =  ( r  gsumg  ( j  e.  ( 2nd `  o ) 
|->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) )
1410, 13mpteq12dv 4531 . . . . . 6  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
i  e.  m  |->  ( r  gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) )  =  ( i  e.  ( 1st `  o
)  |->  ( r  gsumg  ( j  e.  ( 2nd `  o
)  |->  ( ( i x j ) ( .r `  r ) ( y `  j
) ) ) ) ) )
157, 9, 14mpt2eq123dv 6354 . . . . 5  |-  ( ( m  =  ( 1st `  o )  /\  n  =  ( 2nd `  o
) )  ->  (
x  e.  ( (
Base `  r )  ^m  ( m  X.  n
) ) ,  y  e.  ( ( Base `  r )  ^m  n
)  |->  ( i  e.  m  |->  ( r  gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r `  r
) ( y `  j ) ) ) ) ) )  =  ( x  e.  ( ( Base `  r
)  ^m  ( ( 1st `  o )  X.  ( 2nd `  o
) ) ) ,  y  e.  ( (
Base `  r )  ^m  ( 2nd `  o
) )  |->  ( i  e.  ( 1st `  o
)  |->  ( r  gsumg  ( j  e.  ( 2nd `  o
)  |->  ( ( i x j ) ( .r `  r ) ( y `  j
) ) ) ) ) ) )
164, 5, 15csbie2 3470 . . . 4  |-  [_ ( 1st `  o )  /  m ]_ [_ ( 2nd `  o )  /  n ]_ ( x  e.  ( ( Base `  r
)  ^m  ( m  X.  n ) ) ,  y  e.  ( (
Base `  r )  ^m  n )  |->  ( i  e.  m  |->  ( r 
gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) ) )  =  ( x  e.  ( ( Base `  r )  ^m  (
( 1st `  o
)  X.  ( 2nd `  o ) ) ) ,  y  e.  ( ( Base `  r
)  ^m  ( 2nd `  o ) )  |->  ( i  e.  ( 1st `  o )  |->  ( r 
gsumg  ( j  e.  ( 2nd `  o ) 
|->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) ) )
17 simprl 755 . . . . . . . 8  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  r  =  R )
1817fveq2d 5876 . . . . . . 7  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( Base `  r )  =  ( Base `  R
) )
19 mvmulfval.b . . . . . . 7  |-  B  =  ( Base `  R
)
2018, 19syl6eqr 2526 . . . . . 6  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( Base `  r )  =  B )
21 fveq2 5872 . . . . . . . . 9  |-  ( o  =  <. M ,  N >.  ->  ( 1st `  o
)  =  ( 1st `  <. M ,  N >. ) )
2221ad2antll 728 . . . . . . . 8  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( 1st `  o )  =  ( 1st `  <. M ,  N >. )
)
23 mvmulfval.m . . . . . . . . . 10  |-  ( ph  ->  M  e.  Fin )
24 mvmulfval.n . . . . . . . . . 10  |-  ( ph  ->  N  e.  Fin )
25 op1stg 6807 . . . . . . . . . 10  |-  ( ( M  e.  Fin  /\  N  e.  Fin )  ->  ( 1st `  <. M ,  N >. )  =  M )
2623, 24, 25syl2anc 661 . . . . . . . . 9  |-  ( ph  ->  ( 1st `  <. M ,  N >. )  =  M )
2726adantr 465 . . . . . . . 8  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( 1st `  <. M ,  N >. )  =  M )
2822, 27eqtrd 2508 . . . . . . 7  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( 1st `  o )  =  M )
29 fveq2 5872 . . . . . . . . 9  |-  ( o  =  <. M ,  N >.  ->  ( 2nd `  o
)  =  ( 2nd `  <. M ,  N >. ) )
3029ad2antll 728 . . . . . . . 8  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( 2nd `  o )  =  ( 2nd `  <. M ,  N >. )
)
31 op2ndg 6808 . . . . . . . . . 10  |-  ( ( M  e.  Fin  /\  N  e.  Fin )  ->  ( 2nd `  <. M ,  N >. )  =  N )
3223, 24, 31syl2anc 661 . . . . . . . . 9  |-  ( ph  ->  ( 2nd `  <. M ,  N >. )  =  N )
3332adantr 465 . . . . . . . 8  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( 2nd `  <. M ,  N >. )  =  N )
3430, 33eqtrd 2508 . . . . . . 7  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( 2nd `  o )  =  N )
3528, 34xpeq12d 5030 . . . . . 6  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
( 1st `  o
)  X.  ( 2nd `  o ) )  =  ( M  X.  N
) )
3620, 35oveq12d 6313 . . . . 5  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
( Base `  r )  ^m  ( ( 1st `  o
)  X.  ( 2nd `  o ) ) )  =  ( B  ^m  ( M  X.  N
) ) )
3720, 34oveq12d 6313 . . . . 5  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
( Base `  r )  ^m  ( 2nd `  o
) )  =  ( B  ^m  N ) )
38 fveq2 5872 . . . . . . . . . . . 12  |-  ( r  =  R  ->  ( .r `  r )  =  ( .r `  R
) )
3938adantr 465 . . . . . . . . . . 11  |-  ( ( r  =  R  /\  o  =  <. M ,  N >. )  ->  ( .r `  r )  =  ( .r `  R
) )
4039adantl 466 . . . . . . . . . 10  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( .r `  r )  =  ( .r `  R
) )
41 mvmulfval.t . . . . . . . . . 10  |-  .x.  =  ( .r `  R )
4240, 41syl6eqr 2526 . . . . . . . . 9  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  ( .r `  r )  = 
.x.  )
4342oveqd 6312 . . . . . . . 8  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
( i x j ) ( .r `  r ) ( y `
 j ) )  =  ( ( i x j )  .x.  ( y `  j
) ) )
4434, 43mpteq12dv 4531 . . . . . . 7  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
j  e.  ( 2nd `  o )  |->  ( ( i x j ) ( .r `  r
) ( y `  j ) ) )  =  ( j  e.  N  |->  ( ( i x j )  .x.  ( y `  j
) ) ) )
4517, 44oveq12d 6313 . . . . . 6  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
r  gsumg  ( j  e.  ( 2nd `  o ) 
|->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) )  =  ( R  gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) )
4628, 45mpteq12dv 4531 . . . . 5  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
i  e.  ( 1st `  o )  |->  ( r 
gsumg  ( j  e.  ( 2nd `  o ) 
|->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) )  =  ( i  e.  M  |->  ( R  gsumg  ( j  e.  N  |->  ( ( i x j ) 
.x.  ( y `  j ) ) ) ) ) )
4736, 37, 46mpt2eq123dv 6354 . . . 4  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  (
x  e.  ( (
Base `  r )  ^m  ( ( 1st `  o
)  X.  ( 2nd `  o ) ) ) ,  y  e.  ( ( Base `  r
)  ^m  ( 2nd `  o ) )  |->  ( i  e.  ( 1st `  o )  |->  ( r 
gsumg  ( j  e.  ( 2nd `  o ) 
|->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) ) )  =  ( x  e.  ( B  ^m  ( M  X.  N
) ) ,  y  e.  ( B  ^m  N )  |->  ( i  e.  M  |->  ( R 
gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) ) )
4816, 47syl5eq 2520 . . 3  |-  ( (
ph  /\  ( r  =  R  /\  o  =  <. M ,  N >. ) )  ->  [_ ( 1st `  o )  /  m ]_ [_ ( 2nd `  o )  /  n ]_ ( x  e.  ( ( Base `  r
)  ^m  ( m  X.  n ) ) ,  y  e.  ( (
Base `  r )  ^m  n )  |->  ( i  e.  m  |->  ( r 
gsumg  ( j  e.  n  |->  ( ( i x j ) ( .r
`  r ) ( y `  j ) ) ) ) ) )  =  ( x  e.  ( B  ^m  ( M  X.  N
) ) ,  y  e.  ( B  ^m  N )  |->  ( i  e.  M  |->  ( R 
gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) ) )
49 mvmulfval.r . . . 4  |-  ( ph  ->  R  e.  V )
50 elex 3127 . . . 4  |-  ( R  e.  V  ->  R  e.  _V )
5149, 50syl 16 . . 3  |-  ( ph  ->  R  e.  _V )
52 opex 4717 . . . 4  |-  <. M ,  N >.  e.  _V
5352a1i 11 . . 3  |-  ( ph  -> 
<. M ,  N >.  e. 
_V )
54 ovex 6320 . . . . 5  |-  ( B  ^m  ( M  X.  N ) )  e. 
_V
55 ovex 6320 . . . . 5  |-  ( B  ^m  N )  e. 
_V
5654, 55mpt2ex 6872 . . . 4  |-  ( x  e.  ( B  ^m  ( M  X.  N
) ) ,  y  e.  ( B  ^m  N )  |->  ( i  e.  M  |->  ( R 
gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) )  e.  _V
5756a1i 11 . . 3  |-  ( ph  ->  ( x  e.  ( B  ^m  ( M  X.  N ) ) ,  y  e.  ( B  ^m  N ) 
|->  ( i  e.  M  |->  ( R  gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) )  e.  _V )
583, 48, 51, 53, 57ovmpt2d 6425 . 2  |-  ( ph  ->  ( R maVecMul  <. M ,  N >. )  =  ( x  e.  ( B  ^m  ( M  X.  N ) ) ,  y  e.  ( B  ^m  N )  |->  ( i  e.  M  |->  ( R  gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) ) )
591, 58syl5eq 2520 1  |-  ( ph  ->  .X.  =  ( x  e.  ( B  ^m  ( M  X.  N
) ) ,  y  e.  ( B  ^m  N )  |->  ( i  e.  M  |->  ( R 
gsumg  ( j  e.  N  |->  ( ( i x j )  .x.  (
y `  j )
) ) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1379    e. wcel 1767   _Vcvv 3118   [_csb 3440   <.cop 4039    |-> cmpt 4511    X. cxp 5003   ` cfv 5594  (class class class)co 6295    |-> cmpt2 6297   1stc1st 6793   2ndc2nd 6794    ^m cmap 7432   Fincfn 7528   Basecbs 14507   .rcmulr 14573    gsumg cgsu 14713   maVecMul cmvmul 18911
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1601  ax-4 1612  ax-5 1680  ax-6 1719  ax-7 1739  ax-8 1769  ax-9 1771  ax-10 1786  ax-11 1791  ax-12 1803  ax-13 1968  ax-ext 2445  ax-rep 4564  ax-sep 4574  ax-nul 4582  ax-pow 4631  ax-pr 4692  ax-un 6587
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 975  df-tru 1382  df-ex 1597  df-nf 1600  df-sb 1712  df-eu 2279  df-mo 2280  df-clab 2453  df-cleq 2459  df-clel 2462  df-nfc 2617  df-ne 2664  df-ral 2822  df-rex 2823  df-reu 2824  df-rab 2826  df-v 3120  df-sbc 3337  df-csb 3441  df-dif 3484  df-un 3486  df-in 3488  df-ss 3495  df-nul 3791  df-if 3946  df-pw 4018  df-sn 4034  df-pr 4036  df-op 4040  df-uni 4252  df-iun 4333  df-br 4454  df-opab 4512  df-mpt 4513  df-id 4801  df-xp 5011  df-rel 5012  df-cnv 5013  df-co 5014  df-dm 5015  df-rn 5016  df-res 5017  df-ima 5018  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-ov 6298  df-oprab 6299  df-mpt2 6300  df-1st 6795  df-2nd 6796  df-mvmul 18912
This theorem is referenced by:  mvmulval  18914  mavmuldm  18921  mavmul0g  18924
  Copyright terms: Public domain W3C validator