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

Theorem marepvfval 21168
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 6679 . . . . 5 𝐵 ∈ V
4 marepvfval.v . . . . . . 7 𝑉 = ((Base‘𝑅) ↑m 𝑁)
54ovexi 7184 . . . . . 6 𝑉 ∈ V
65a1i 11 . . . . 5 ((𝑁 ∈ V ∧ 𝑅 ∈ V) → 𝑉 ∈ V)
7 mpoexga 7769 . . . . 5 ((𝐵 ∈ V ∧ 𝑉 ∈ V) → (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) ∈ V)
83, 6, 7sylancr 589 . . . 4 ((𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) ∈ V)
9 oveq12 7159 . . . . . . . . 9 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑛 Mat 𝑟) = (𝑁 Mat 𝑅))
10 marepvfval.a . . . . . . . . 9 𝐴 = (𝑁 Mat 𝑅)
119, 10syl6eqr 2874 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑛 Mat 𝑟) = 𝐴)
1211fveq2d 6669 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘(𝑛 Mat 𝑟)) = (Base‘𝐴))
1312, 2syl6eqr 2874 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘(𝑛 Mat 𝑟)) = 𝐵)
14 fveq2 6665 . . . . . . . . 9 (𝑟 = 𝑅 → (Base‘𝑟) = (Base‘𝑅))
1514adantl 484 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘𝑟) = (Base‘𝑅))
16 simpl 485 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → 𝑛 = 𝑁)
1715, 16oveq12d 7168 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → ((Base‘𝑟) ↑m 𝑛) = ((Base‘𝑅) ↑m 𝑁))
1817, 4syl6eqr 2874 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → ((Base‘𝑟) ↑m 𝑛) = 𝑉)
19 eqidd 2822 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)) = if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))
2016, 16, 19mpoeq123dv 7223 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))
2116, 20mpteq12dv 5144 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑘𝑛 ↦ (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))) = (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗)))))
2213, 18, 21mpoeq123dv 7223 . . . . 5 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑚 ∈ (Base‘(𝑛 Mat 𝑟)), 𝑣 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑘𝑛 ↦ (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
23 df-marepv 21162 . . . . 5 matRepV = (𝑛 ∈ V, 𝑟 ∈ V ↦ (𝑚 ∈ (Base‘(𝑛 Mat 𝑟)), 𝑣 ∈ ((Base‘𝑟) ↑m 𝑛) ↦ (𝑘𝑛 ↦ (𝑖𝑛, 𝑗𝑛 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
2422, 23ovmpoga 7298 . . . 4 ((𝑁 ∈ V ∧ 𝑅 ∈ V ∧ (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))) ∈ V) → (𝑁 matRepV 𝑅) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
258, 24mpd3an3 1458 . . 3 ((𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑁 matRepV 𝑅) = (𝑚𝐵, 𝑣𝑉 ↦ (𝑘𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑗 = 𝑘, (𝑣𝑖), (𝑖𝑚𝑗))))))
2623mpondm0 7380 . . . 4 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝑁 matRepV 𝑅) = ∅)
2710fveq2i 6668 . . . . . . . 8 (Base‘𝐴) = (Base‘(𝑁 Mat 𝑅))
282, 27eqtri 2844 . . . . . . 7 𝐵 = (Base‘(𝑁 Mat 𝑅))
29 matbas0pc 21012 . . . . . . 7 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (Base‘(𝑁 Mat 𝑅)) = ∅)
3028, 29syl5eq 2868 . . . . . 6 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → 𝐵 = ∅)
3130orcd 869 . . . . 5 (¬ (𝑁 ∈ V ∧ 𝑅 ∈ V) → (𝐵 = ∅ ∨ 𝑉 = ∅))
32 0mpo0 7231 . . . . 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 3495  c0 4291  ifcif 4467  cmpt 5139  cfv 6350  (class class class)co 7150  cmpo 7152  m cmap 8400  Basecbs 16477   Mat cmat 21010   matRepV cmatrepV 21160
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 2156  ax-12 2172  ax-ext 2793  ax-rep 5183  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455
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 3497  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4833  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5455  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-ov 7153  df-oprab 7154  df-mpo 7155  df-1st 7683  df-2nd 7684  df-slot 16481  df-base 16483  df-mat 21011  df-marepv 21162
This theorem is referenced by:  marepvval0  21169
  Copyright terms: Public domain W3C validator