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

Theorem marrepval0 21098
Description: Second 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
marrepval0 ((𝑀𝐵𝑆 ∈ (Base‘𝑅)) → (𝑀𝑄𝑆) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))))
Distinct variable groups:   𝑖,𝑁,𝑗,𝑘,𝑙   𝑅,𝑖,𝑗,𝑘,𝑙   𝑖,𝑀,𝑗,𝑘,𝑙   𝑆,𝑖,𝑗,𝑘,𝑙
Allowed substitution hints:   𝐴(𝑖,𝑗,𝑘,𝑙)   𝐵(𝑖,𝑗,𝑘,𝑙)   𝑄(𝑖,𝑗,𝑘,𝑙)   0 (𝑖,𝑗,𝑘,𝑙)

Proof of Theorem marrepval0
Dummy variables 𝑚 𝑠 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 marrepfval.a . . . . . . 7 𝐴 = (𝑁 Mat 𝑅)
2 marrepfval.b . . . . . . 7 𝐵 = (Base‘𝐴)
31, 2matrcl 20949 . . . . . 6 (𝑀𝐵 → (𝑁 ∈ Fin ∧ 𝑅 ∈ V))
43simpld 495 . . . . 5 (𝑀𝐵𝑁 ∈ Fin)
54, 4jca 512 . . . 4 (𝑀𝐵 → (𝑁 ∈ Fin ∧ 𝑁 ∈ Fin))
65adantr 481 . . 3 ((𝑀𝐵𝑆 ∈ (Base‘𝑅)) → (𝑁 ∈ Fin ∧ 𝑁 ∈ Fin))
7 mpoexga 7764 . . 3 ((𝑁 ∈ Fin ∧ 𝑁 ∈ Fin) → (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))) ∈ V)
86, 7syl 17 . 2 ((𝑀𝐵𝑆 ∈ (Base‘𝑅)) → (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))) ∈ V)
9 ifeq1 4467 . . . . . . 7 (𝑠 = 𝑆 → if(𝑗 = 𝑙, 𝑠, 0 ) = if(𝑗 = 𝑙, 𝑆, 0 ))
109adantl 482 . . . . . 6 ((𝑚 = 𝑀𝑠 = 𝑆) → if(𝑗 = 𝑙, 𝑠, 0 ) = if(𝑗 = 𝑙, 𝑆, 0 ))
11 oveq 7151 . . . . . . 7 (𝑚 = 𝑀 → (𝑖𝑚𝑗) = (𝑖𝑀𝑗))
1211adantr 481 . . . . . 6 ((𝑚 = 𝑀𝑠 = 𝑆) → (𝑖𝑚𝑗) = (𝑖𝑀𝑗))
1310, 12ifeq12d 4483 . . . . 5 ((𝑚 = 𝑀𝑠 = 𝑆) → if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑠, 0 ), (𝑖𝑚𝑗)) = if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))
1413mpoeq3dv 7222 . . . 4 ((𝑚 = 𝑀𝑠 = 𝑆) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑠, 0 ), (𝑖𝑚𝑗))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗))))
1514mpoeq3dv 7222 . . 3 ((𝑚 = 𝑀𝑠 = 𝑆) → (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑠, 0 ), (𝑖𝑚𝑗)))) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))))
16 marrepfval.q . . . 4 𝑄 = (𝑁 matRRep 𝑅)
17 marrepfval.z . . . 4 0 = (0g𝑅)
181, 2, 16, 17marrepfval 21097 . . 3 𝑄 = (𝑚𝐵, 𝑠 ∈ (Base‘𝑅) ↦ (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑠, 0 ), (𝑖𝑚𝑗)))))
1915, 18ovmpoga 7293 . 2 ((𝑀𝐵𝑆 ∈ (Base‘𝑅) ∧ (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))) ∈ V) → (𝑀𝑄𝑆) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))))
208, 19mpd3an3 1453 1 ((𝑀𝐵𝑆 ∈ (Base‘𝑅)) → (𝑀𝑄𝑆) = (𝑘𝑁, 𝑙𝑁 ↦ (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑘, if(𝑗 = 𝑙, 𝑆, 0 ), (𝑖𝑀𝑗)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1528  wcel 2105  Vcvv 3492  ifcif 4463  cfv 6348  (class class class)co 7145  cmpo 7147  Fincfn 8497  Basecbs 16471  0gc0g 16701   Mat cmat 20944   matRRep cmarrep 21093
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-rep 5181  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-ral 3140  df-rex 3141  df-reu 3142  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4464  df-pw 4537  df-sn 4558  df-pr 4560  df-op 4564  df-uni 4831  df-iun 4912  df-br 5058  df-opab 5120  df-mpt 5138  df-id 5453  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356  df-ov 7148  df-oprab 7149  df-mpo 7150  df-1st 7678  df-2nd 7679  df-slot 16475  df-base 16477  df-mat 20945  df-marrep 21095
This theorem is referenced by:  marrepval  21099  minmar1marrep  21187
  Copyright terms: Public domain W3C validator