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

Theorem marepvval 20292
Description: Third substitution for the definition of the function replacing a column of a matrix by a vector. (Contributed by AV, 14-Feb-2019.) (Revised by AV, 26-Feb-2019.)
Hypotheses
Ref Expression
marepvfval.a 𝐴 = (𝑁 Mat 𝑅)
marepvfval.b 𝐵 = (Base‘𝐴)
marepvfval.q 𝑄 = (𝑁 matRepV 𝑅)
marepvfval.v 𝑉 = ((Base‘𝑅) ↑𝑚 𝑁)
Assertion
Ref Expression
marepvval ((𝑀𝐵𝐶𝑉𝐾𝑁) → ((𝑀𝑄𝐶)‘𝐾) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))))
Distinct variable groups:   𝑖,𝑁,𝑗   𝑅,𝑖,𝑗   𝐶,𝑖,𝑗   𝑖,𝑀,𝑗   𝑖,𝐾,𝑗
Allowed substitution hints:   𝐴(𝑖,𝑗)   𝐵(𝑖,𝑗)   𝑄(𝑖,𝑗)   𝑉(𝑖,𝑗)

Proof of Theorem marepvval
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 marepvfval.a . . . . 5 𝐴 = (𝑁 Mat 𝑅)
2 marepvfval.b . . . . 5 𝐵 = (Base‘𝐴)
3 marepvfval.q . . . . 5 𝑄 = (𝑁 matRepV 𝑅)
4 marepvfval.v . . . . 5 𝑉 = ((Base‘𝑅) ↑𝑚 𝑁)
51, 2, 3, 4marepvval0 20291 . . . 4 ((𝑀𝐵𝐶𝑉) → (𝑀𝑄𝐶) = (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗)))))
653adant3 1079 . . 3 ((𝑀𝐵𝐶𝑉𝐾𝑁) → (𝑀𝑄𝐶) = (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗)))))
76fveq1d 6150 . 2 ((𝑀𝐵𝐶𝑉𝐾𝑁) → ((𝑀𝑄𝐶)‘𝐾) = ((𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗))))‘𝐾))
8 simp3 1061 . . 3 ((𝑀𝐵𝐶𝑉𝐾𝑁) → 𝐾𝑁)
91, 2matrcl 20137 . . . . . . 7 (𝑀𝐵 → (𝑁 ∈ Fin ∧ 𝑅 ∈ V))
109simpld 475 . . . . . 6 (𝑀𝐵𝑁 ∈ Fin)
1110, 10jca 554 . . . . 5 (𝑀𝐵 → (𝑁 ∈ Fin ∧ 𝑁 ∈ Fin))
12113ad2ant1 1080 . . . 4 ((𝑀𝐵𝐶𝑉𝐾𝑁) → (𝑁 ∈ Fin ∧ 𝑁 ∈ Fin))
13 mpt2exga 7191 . . . 4 ((𝑁 ∈ Fin ∧ 𝑁 ∈ Fin) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))) ∈ V)
1412, 13syl 17 . . 3 ((𝑀𝐵𝐶𝑉𝐾𝑁) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))) ∈ V)
15 eqeq2 2632 . . . . . 6 (𝑘 = 𝐾 → (𝑗 = 𝑘𝑗 = 𝐾))
1615ifbid 4080 . . . . 5 (𝑘 = 𝐾 → if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗)) = if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗)))
1716mpt2eq3dv 6674 . . . 4 (𝑘 = 𝐾 → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))))
18 eqid 2621 . . . 4 (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗)))) = (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗))))
1917, 18fvmptg 6237 . . 3 ((𝐾𝑁 ∧ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))) ∈ V) → ((𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗))))‘𝐾) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))))
208, 14, 19syl2anc 692 . 2 ((𝑀𝐵𝐶𝑉𝐾𝑁) → ((𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝐶𝑖), (𝑖𝑀𝑗))))‘𝐾) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))))
217, 20eqtrd 2655 1 ((𝑀𝐵𝐶𝑉𝐾𝑁) → ((𝑀𝑄𝐶)‘𝐾) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝐾, (𝐶𝑖), (𝑖𝑀𝑗))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384  w3a 1036   = wceq 1480  wcel 1987  Vcvv 3186  ifcif 4058  cmpt 4673  cfv 5847  (class class class)co 6604  cmpt2 6606  𝑚 cmap 7802  Fincfn 7899  Basecbs 15781   Mat cmat 20132   matRepV cmatrepV 20282
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4731  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-op 4155  df-uni 4403  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-id 4989  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-1st 7113  df-2nd 7114  df-slot 15785  df-base 15786  df-mat 20133  df-marepv 20284
This theorem is referenced by:  marepveval  20293  marepvcl  20294  1marepvmarrepid  20300  cramerimplem2  20409
  Copyright terms: Public domain W3C validator