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

Theorem marrepfval 18371
Description: First substitution for the definition of the matrix row replacement function. (Contributed by AV, 12-Feb-2019.)
Hypotheses
Ref Expression
marrepfval.a  |-  A  =  ( N Mat  R )
marrepfval.b  |-  B  =  ( Base `  A
)
marrepfval.q  |-  Q  =  ( N matRRep  R )
marrepfval.z  |-  .0.  =  ( 0g `  R )
Assertion
Ref Expression
marrepfval  |-  Q  =  ( m  e.  B ,  s  e.  ( Base `  R )  |->  ( k  e.  N , 
l  e.  N  |->  ( i  e.  N , 
j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )
Distinct variable groups:    B, m, s    i, N, j, k, l, m, s    R, i, j, k, l, m, s
Allowed substitution hints:    A( i, j, k, m, s, l)    B( i, j, k, l)    Q( i, j, k, m, s, l)    .0. ( i,
j, k, m, s, l)

Proof of Theorem marrepfval
Dummy variables  n  r are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 marrepfval.q . 2  |-  Q  =  ( N matRRep  R )
2 marrepfval.b . . . . . 6  |-  B  =  ( Base `  A
)
3 fvex 5701 . . . . . 6  |-  ( Base `  A )  e.  _V
42, 3eqeltri 2513 . . . . 5  |-  B  e. 
_V
5 fvex 5701 . . . . . 6  |-  ( Base `  R )  e.  _V
65a1i 11 . . . . 5  |-  ( ( N  e.  _V  /\  R  e.  _V )  ->  ( Base `  R
)  e.  _V )
7 mpt2exga 6649 . . . . 5  |-  ( ( B  e.  _V  /\  ( Base `  R )  e.  _V )  ->  (
m  e.  B , 
s  e.  ( Base `  R )  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )  e.  _V )
84, 6, 7sylancr 663 . . . 4  |-  ( ( N  e.  _V  /\  R  e.  _V )  ->  ( m  e.  B ,  s  e.  ( Base `  R )  |->  ( k  e.  N , 
l  e.  N  |->  ( i  e.  N , 
j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )  e.  _V )
9 oveq12 6100 . . . . . . . 8  |-  ( ( n  =  N  /\  r  =  R )  ->  ( n Mat  r )  =  ( N Mat  R
) )
109fveq2d 5695 . . . . . . 7  |-  ( ( n  =  N  /\  r  =  R )  ->  ( Base `  (
n Mat  r ) )  =  ( Base `  ( N Mat  R ) ) )
11 marrepfval.a . . . . . . . . 9  |-  A  =  ( N Mat  R )
1211fveq2i 5694 . . . . . . . 8  |-  ( Base `  A )  =  (
Base `  ( N Mat  R ) )
132, 12eqtri 2463 . . . . . . 7  |-  B  =  ( Base `  ( N Mat  R ) )
1410, 13syl6eqr 2493 . . . . . 6  |-  ( ( n  =  N  /\  r  =  R )  ->  ( Base `  (
n Mat  r ) )  =  B )
15 fveq2 5691 . . . . . . 7  |-  ( r  =  R  ->  ( Base `  r )  =  ( Base `  R
) )
1615adantl 466 . . . . . 6  |-  ( ( n  =  N  /\  r  =  R )  ->  ( Base `  r
)  =  ( Base `  R ) )
17 simpl 457 . . . . . . 7  |-  ( ( n  =  N  /\  r  =  R )  ->  n  =  N )
18 fveq2 5691 . . . . . . . . . . . 12  |-  ( r  =  R  ->  ( 0g `  r )  =  ( 0g `  R
) )
19 marrepfval.z . . . . . . . . . . . 12  |-  .0.  =  ( 0g `  R )
2018, 19syl6eqr 2493 . . . . . . . . . . 11  |-  ( r  =  R  ->  ( 0g `  r )  =  .0.  )
2120ifeq2d 3808 . . . . . . . . . 10  |-  ( r  =  R  ->  if ( j  =  l ,  s ,  ( 0g `  r ) )  =  if ( j  =  l ,  s ,  .0.  )
)
2221ifeq1d 3807 . . . . . . . . 9  |-  ( r  =  R  ->  if ( i  =  k ,  if ( j  =  l ,  s ,  ( 0g `  r ) ) ,  ( i m j ) )  =  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) )
2322adantl 466 . . . . . . . 8  |-  ( ( n  =  N  /\  r  =  R )  ->  if ( i  =  k ,  if ( j  =  l ,  s ,  ( 0g
`  r ) ) ,  ( i m j ) )  =  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) )
2417, 17, 23mpt2eq123dv 6148 . . . . . . 7  |-  ( ( n  =  N  /\  r  =  R )  ->  ( i  e.  n ,  j  e.  n  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  ( 0g
`  r ) ) ,  ( i m j ) ) )  =  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) )
2517, 17, 24mpt2eq123dv 6148 . . . . . 6  |-  ( ( n  =  N  /\  r  =  R )  ->  ( k  e.  n ,  l  e.  n  |->  ( i  e.  n ,  j  e.  n  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  ( 0g
`  r ) ) ,  ( i m j ) ) ) )  =  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )
2614, 16, 25mpt2eq123dv 6148 . . . . 5  |-  ( ( n  =  N  /\  r  =  R )  ->  ( m  e.  (
Base `  ( n Mat  r ) ) ,  s  e.  ( Base `  r )  |->  ( k  e.  n ,  l  e.  n  |->  ( i  e.  n ,  j  e.  n  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  ( 0g `  r
) ) ,  ( i m j ) ) ) ) )  =  ( m  e.  B ,  s  e.  ( Base `  R
)  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) ) ) )
27 df-marrep 18369 . . . . 5  |- matRRep  =  ( n  e.  _V , 
r  e.  _V  |->  ( m  e.  ( Base `  ( n Mat  r ) ) ,  s  e.  ( Base `  r
)  |->  ( k  e.  n ,  l  e.  n  |->  ( i  e.  n ,  j  e.  n  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  ( 0g `  r ) ) ,  ( i m j ) ) ) ) ) )
2826, 27ovmpt2ga 6220 . . . 4  |-  ( ( N  e.  _V  /\  R  e.  _V  /\  (
m  e.  B , 
s  e.  ( Base `  R )  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )  e.  _V )  -> 
( N matRRep  R )  =  ( m  e.  B ,  s  e.  ( Base `  R
)  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) ) ) )
298, 28mpd3an3 1315 . . 3  |-  ( ( N  e.  _V  /\  R  e.  _V )  ->  ( N matRRep  R )  =  ( m  e.  B ,  s  e.  ( Base `  R
)  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) ) ) )
3027mpt2ndm0 6739 . . . . 5  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  ( N matRRep  R )  =  (/) )
31 mpt20 6156 . . . . 5  |-  ( m  e.  (/) ,  s  e.  ( Base `  R
)  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) ) )  =  (/)
3230, 31syl6eqr 2493 . . . 4  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  ( N matRRep  R )  =  ( m  e.  (/) ,  s  e.  (
Base `  R )  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) ) )
33 matbas0pc 18286 . . . . . 6  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  ( Base `  ( N Mat  R ) )  =  (/) )
3413, 33syl5eq 2487 . . . . 5  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  B  =  (/) )
35 eqidd 2444 . . . . 5  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  ( Base `  R
)  =  ( Base `  R ) )
36 mpt2eq12 6146 . . . . 5  |-  ( ( B  =  (/)  /\  ( Base `  R )  =  ( Base `  R
) )  ->  (
m  e.  B , 
s  e.  ( Base `  R )  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )  =  ( m  e.  (/) ,  s  e.  (
Base `  R )  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) ) )
3734, 35, 36syl2anc 661 . . . 4  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  ( m  e.  B ,  s  e.  ( Base `  R )  |->  ( k  e.  N , 
l  e.  N  |->  ( i  e.  N , 
j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )  =  ( m  e.  (/) ,  s  e.  ( Base `  R
)  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) ) ) )
3832, 37eqtr4d 2478 . . 3  |-  ( -.  ( N  e.  _V  /\  R  e.  _V )  ->  ( N matRRep  R )  =  ( m  e.  B ,  s  e.  ( Base `  R
)  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i
m j ) ) ) ) ) )
3929, 38pm2.61i 164 . 2  |-  ( N matRRep  R )  =  ( m  e.  B , 
s  e.  ( Base `  R )  |->  ( k  e.  N ,  l  e.  N  |->  ( i  e.  N ,  j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )
401, 39eqtri 2463 1  |-  Q  =  ( m  e.  B ,  s  e.  ( Base `  R )  |->  ( k  e.  N , 
l  e.  N  |->  ( i  e.  N , 
j  e.  N  |->  if ( i  =  k ,  if ( j  =  l ,  s ,  .0.  ) ,  ( i m j ) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    /\ wa 369    = wceq 1369    e. wcel 1756   _Vcvv 2972   (/)c0 3637   ifcif 3791   ` cfv 5418  (class class class)co 6091    e. cmpt2 6093   Basecbs 14174   0gc0g 14378   Mat cmat 18280   matRRep cmarrep 18367
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-rep 4403  ax-sep 4413  ax-nul 4421  ax-pow 4470  ax-pr 4531  ax-un 6372
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2568  df-ne 2608  df-ral 2720  df-rex 2721  df-reu 2722  df-rab 2724  df-v 2974  df-sbc 3187  df-csb 3289  df-dif 3331  df-un 3333  df-in 3335  df-ss 3342  df-nul 3638  df-if 3792  df-pw 3862  df-sn 3878  df-pr 3880  df-op 3884  df-uni 4092  df-iun 4173  df-br 4293  df-opab 4351  df-mpt 4352  df-id 4636  df-xp 4846  df-rel 4847  df-cnv 4848  df-co 4849  df-dm 4850  df-rn 4851  df-res 4852  df-ima 4853  df-iota 5381  df-fun 5420  df-fn 5421  df-f 5422  df-f1 5423  df-fo 5424  df-f1o 5425  df-fv 5426  df-ov 6094  df-oprab 6095  df-mpt2 6096  df-1st 6577  df-2nd 6578  df-slot 14178  df-base 14179  df-mat 18282  df-marrep 18369
This theorem is referenced by:  marrepval0  18372
  Copyright terms: Public domain W3C validator