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

Theorem marrepval 21491
Description: Third substitution for the definition of the matrix row replacement function. (Contributed by AV, 12-Feb-2019.)
Hypotheses
Ref Expression
marrepfval.a 𝐴 = (𝑁 Mat 𝑅)
marrepfval.b 𝐵 = (Base‘𝐴)
marrepfval.q 𝑄 = (𝑁 matRRep 𝑅)
marrepfval.z 0 = (0g𝑅)
Assertion
Ref Expression
marrepval (((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) → (𝐾(𝑀𝑄𝑆)𝐿) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝐾, if(𝑗 = 𝐿, 𝑆, 0 ), (𝑖𝑀𝑗))))
Distinct variable groups:   𝑖,𝑁,𝑗   𝑅,𝑖,𝑗   𝑖,𝑀,𝑗   𝑆,𝑖,𝑗   𝑖,𝐾,𝑗   𝑖,𝐿,𝑗
Allowed substitution hints:   𝐴(𝑖,𝑗)   𝐵(𝑖,𝑗)   𝑄(𝑖,𝑗)   0 (𝑖,𝑗)

Proof of Theorem marrepval
Dummy variables 𝑘 𝑙 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 marrepfval.a . . . 4 𝐴 = (𝑁 Mat 𝑅)
2 marrepfval.b . . . 4 𝐵 = (Base‘𝐴)
3 marrepfval.q . . . 4 𝑄 = (𝑁 matRRep 𝑅)
4 marrepfval.z . . . 4 0 = (0g𝑅)
51, 2, 3, 4marrepval0 21490 . . 3 ((𝑀𝐵𝑆 ∈ (Base‘𝑅)) → (𝑀𝑄𝑆) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))))
65adantr 484 . 2 (((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) → (𝑀𝑄𝑆) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))))
7 simprl 771 . . 3 (((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) → 𝐾𝑁)
8 simplrr 778 . . 3 ((((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) ∧ 𝑘 = 𝐾) → 𝐿𝑁)
91, 2matrcl 21341 . . . . . . 7 (𝑀𝐵 → (𝑁 ∈ Fin ∧ 𝑅 ∈ V))
109simpld 498 . . . . . 6 (𝑀𝐵𝑁 ∈ Fin)
1110, 10jca 515 . . . . 5 (𝑀𝐵 → (𝑁 ∈ Fin ∧ 𝑁 ∈ Fin))
1211ad3antrrr 730 . . . 4 ((((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑁 ∈ Fin ∧ 𝑁 ∈ Fin))
13 mpoexga 7870 . . . 4 ((𝑁 ∈ Fin ∧ 𝑁 ∈ Fin) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗))) ∈ V)
1412, 13syl 17 . . 3 ((((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗))) ∈ V)
15 eqeq2 2751 . . . . . . 7 (𝑘 = 𝐾 → (𝑖 = 𝑘𝑖 = 𝐾))
1615adantr 484 . . . . . 6 ((𝑘 = 𝐾𝑙 = 𝐿) → (𝑖 = 𝑘𝑖 = 𝐾))
17 eqeq2 2751 . . . . . . . 8 (𝑙 = 𝐿 → (𝑗 = 𝑙𝑗 = 𝐿))
1817ifbid 4479 . . . . . . 7 (𝑙 = 𝐿 → if(𝑗 = 𝑙, 𝑆, 0 ) = if(𝑗 = 𝐿, 𝑆, 0 ))
1918adantl 485 . . . . . 6 ((𝑘 = 𝐾𝑙 = 𝐿) → if(𝑗 = 𝑙, 𝑆, 0 ) = if(𝑗 = 𝐿, 𝑆, 0 ))
2016, 19ifbieq1d 4480 . . . . 5 ((𝑘 = 𝐾𝑙 = 𝐿) → if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)) = if(𝑖 = 𝐾, if(𝑗 = 𝐿, 𝑆, 0 ), (𝑖𝑀𝑗)))
2120mpoeq3dv 7312 . . . 4 ((𝑘 = 𝐾𝑙 = 𝐿) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝐾, if(𝑗 = 𝐿, 𝑆, 0 ), (𝑖𝑀𝑗))))
2221adantl 485 . . 3 ((((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) ∧ (𝑘 = 𝐾𝑙 = 𝐿)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝐾, if(𝑗 = 𝐿, 𝑆, 0 ), (𝑖𝑀𝑗))))
237, 8, 14, 22ovmpodv2 7389 . 2 (((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) → ((𝑀𝑄𝑆) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))) → (𝐾(𝑀𝑄𝑆)𝐿) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝐾, if(𝑗 = 𝐿, 𝑆, 0 ), (𝑖𝑀𝑗)))))
246, 23mpd 15 1 (((𝑀𝐵𝑆 ∈ (Base‘𝑅)) ∧ (𝐾𝑁𝐿𝑁)) → (𝐾(𝑀𝑄𝑆)𝐿) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝐾, if(𝑗 = 𝐿, 𝑆, 0 ), (𝑖𝑀𝑗))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wcel 2112  Vcvv 3423  ifcif 4456  cfv 6401  (class class class)co 7235  cmpo 7237  Fincfn 8650  Basecbs 16793  0gc0g 16977   Mat cmat 21336   matRRep cmarrep 21485
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2710  ax-rep 5196  ax-sep 5209  ax-nul 5216  ax-pow 5275  ax-pr 5339  ax-un 7545  ax-cnex 10815  ax-1cn 10817  ax-addcl 10819
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2818  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3071  df-rab 3073  df-v 3425  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4255  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5153  df-tr 5179  df-id 5472  df-eprel 5478  df-po 5486  df-so 5487  df-fr 5527  df-we 5529  df-xp 5575  df-rel 5576  df-cnv 5577  df-co 5578  df-dm 5579  df-rn 5580  df-res 5581  df-ima 5582  df-pred 6179  df-ord 6237  df-on 6238  df-lim 6239  df-suc 6240  df-iota 6359  df-fun 6403  df-fn 6404  df-f 6405  df-f1 6406  df-fo 6407  df-f1o 6408  df-fv 6409  df-ov 7238  df-oprab 7239  df-mpo 7240  df-om 7667  df-1st 7783  df-2nd 7784  df-wrecs 8071  df-recs 8132  df-rdg 8170  df-nn 11861  df-slot 16768  df-ndx 16778  df-base 16794  df-mat 21337  df-marrep 21487
This theorem is referenced by:  marrepeval  21492  marrepcl  21493  1marepvmarrepid  21504  smadiadetglem1  21600  smadiadetglem2  21601  madjusmdetlem1  31523
  Copyright terms: Public domain W3C validator