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

Theorem marepvfval 21173
Description: First 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.) (Proof shortened by AV, 2-Mar-2024.)
Hypotheses
Ref Expression
marepvfval.a 𝐴 = (𝑁 Mat 𝑅)
marepvfval.b 𝐵 = (Base‘𝐴)
marepvfval.q 𝑄 = (𝑁 matRepV 𝑅)
marepvfval.v 𝑉 = ((Base‘𝑅) ↑m 𝑁)
Assertion
Ref Expression
marepvfval 𝑄 = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))))
Distinct variable groups:   𝐵,𝑚,𝑣   𝑖,𝑁,𝑗,𝑘,𝑚,𝑣   𝑅,𝑖,𝑗,𝑘,𝑚,𝑣   𝑚,𝑉,𝑣
Allowed substitution hints:   𝐴(𝑣,𝑖,𝑗,𝑘,𝑚)   𝐵(𝑖,𝑗,𝑘)   𝑄(𝑣,𝑖,𝑗,𝑘,𝑚)   𝑉(𝑖,𝑗,𝑘)

Proof of Theorem marepvfval
Dummy variables 𝑛 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 marepvfval.q . 2 𝑄 = (𝑁 matRepV 𝑅)
2 marepvfval.b . . . . . 6 𝐵 = (Base‘𝐴)
32fvexi 6683 . . . . 5 𝐵 ∈ V
4 marepvfval.v . . . . . . 7 𝑉 = ((Base‘𝑅) ↑m 𝑁)
54ovexi 7189 . . . . . 6 𝑉 ∈ V
65a1i 11 . . . . 5 ((𝑁 ∈ V ∧ 𝑅 ∈ V) → 𝑉 ∈ V)
7 mpoexga 7774 . . . . 5 ((𝐵 ∈ V ∧ 𝑉 ∈ V) → (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) ∈ V)
83, 6, 7sylancr 589 . . . 4 ((𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) ∈ V)
9 oveq12 7164 . . . . . . . . 9 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑛 Mat 𝑟) = (𝑁 Mat 𝑅))
10 marepvfval.a . . . . . . . . 9 𝐴 = (𝑁 Mat 𝑅)
119, 10syl6eqr 2874 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑛 Mat 𝑟) = 𝐴)
1211fveq2d 6673 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘(𝑛 Mat 𝑟)) = (Base‘𝐴))
1312, 2syl6eqr 2874 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘(𝑛 Mat 𝑟)) = 𝐵)
14 fveq2 6669 . . . . . . . . 9 (𝑟 = 𝑅 → (Base‘𝑟) = (Base‘𝑅))
1514adantl 484 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘𝑟) = (Base‘𝑅))
16 simpl 485 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → 𝑛 = 𝑁)
1715, 16oveq12d 7173 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → ((Base‘𝑟) ↑m 𝑛) = ((Base‘𝑅) ↑m 𝑁))
1817, 4syl6eqr 2874 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → ((Base‘𝑟) ↑m 𝑛) = 𝑉)
19 eqidd 2822 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)) = if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))
2016, 16, 19mpoeq123dv 7228 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))
2116, 20mpteq12dv 5150 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑘𝑛 ↦ (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))) = (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))))
2213, 18, 21mpoeq123dv 7228 . . . . 5 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑚 ∈ (Base‘(𝑛 Mat 𝑟)), 𝑣 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑘𝑛 ↦ (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
23 df-marepv 21167 . . . . 5 matRepV = (𝑛 ∈ V, 𝑟 ∈ V ↦ (𝑚 ∈ (Base‘(𝑛 Mat 𝑟)), 𝑣 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑘𝑛 ↦ (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
2422, 23ovmpoga 7303 . . . 4 ((𝑁 ∈ V ∧ 𝑅 ∈ V ∧ (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) ∈ V) → (𝑁 matRepV 𝑅) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
258, 24mpd3an3 1458 . . 3 ((𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑁 matRepV 𝑅) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
2623mpondm0 7385 . . . 4 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑁 matRepV 𝑅) = ∅)
2710fveq2i 6672 . . . . . . . 8 (Base‘𝐴) = (Base‘(𝑁 Mat 𝑅))
282, 27eqtri 2844 . . . . . . 7 𝐵 = (Base‘(𝑁 Mat 𝑅))
29 matbas0pc 21017 . . . . . . 7 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (Base‘(𝑁 Mat 𝑅)) = ∅)
3028, 29syl5eq 2868 . . . . . 6 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → 𝐵 = ∅)
3130orcd 869 . . . . 5 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝐵 = ∅ ∨ 𝑉 = ∅))
32 0mpo0 7236 . . . . 5 ((𝐵 = ∅ ∨ 𝑉 = ∅) → (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) = ∅)
3331, 32syl 17 . . . 4 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) = ∅)
3426, 33eqtr4d 2859 . . 3 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑁 matRepV 𝑅) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
3525, 34pm2.61i 184 . 2 (𝑁 matRepV 𝑅) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))))
361, 35eqtri 2844 1 𝑄 = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 398  wo 843   = wceq 1533  wcel 2110  Vcvv 3494  c0 4290  ifcif 4466  cmpt 5145  cfv 6354  (class class class)co 7155  cmpo 7157  m cmap 8405  Basecbs 16482   Mat cmat 21015   matRepV cmatrepV 21165
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-rep 5189  ax-sep 5202  ax-nul 5209  ax-pow 5265  ax-pr 5329  ax-un 7460
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4838  df-iun 4920  df-br 5066  df-opab 5128  df-mpt 5146  df-id 5459  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-res 5566  df-ima 5567  df-iota 6313  df-fun 6356  df-fn 6357  df-f 6358  df-f1 6359  df-fo 6360  df-f1o 6361  df-fv 6362  df-ov 7158  df-oprab 7159  df-mpo 7160  df-1st 7688  df-2nd 7689  df-slot 16486  df-base 16488  df-mat 21016  df-marepv 21167
This theorem is referenced by:  marepvval0  21174
  Copyright terms: Public domain W3C validator