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

Theorem dmatval 21549
Description: The set of 𝑁 x 𝑁 diagonal matrices over (a ring) 𝑅. (Contributed by AV, 8-Dec-2019.)
Hypotheses
Ref Expression
dmatval.a 𝐴 = (𝑁 Mat 𝑅)
dmatval.b 𝐵 = (Base‘𝐴)
dmatval.0 0 = (0g𝑅)
dmatval.d 𝐷 = (𝑁 DMat 𝑅)
Assertion
Ref Expression
dmatval ((𝑁 ∈ Fin ∧ 𝑅𝑉) → 𝐷 = {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )})
Distinct variable groups:   𝐵,𝑚   𝑖,𝑁,𝑗,𝑚   𝑅,𝑖,𝑗,𝑚
Allowed substitution hints:   𝐴(𝑖,𝑗,𝑚)   𝐵(𝑖,𝑗)   𝐷(𝑖,𝑗,𝑚)   𝑉(𝑖,𝑗,𝑚)   0 (𝑖,𝑗,𝑚)

Proof of Theorem dmatval
Dummy variables 𝑛 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dmatval.d . 2 𝐷 = (𝑁 DMat 𝑅)
2 df-dmat 21547 . . . 4 DMat = (𝑛 ∈ Fin, 𝑟 ∈ V ↦ {𝑚 ∈ (Base‘(𝑛 Mat 𝑟)) ∣ ∀𝑖𝑛𝑗𝑛 (𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟))})
32a1i 11 . . 3 ((𝑁 ∈ Fin ∧ 𝑅𝑉) → DMat = (𝑛 ∈ Fin, 𝑟 ∈ V ↦ {𝑚 ∈ (Base‘(𝑛 Mat 𝑟)) ∣ ∀𝑖𝑛𝑗𝑛 (𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟))}))
4 oveq12 7264 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → (𝑛 Mat 𝑟) = (𝑁 Mat 𝑅))
54fveq2d 6760 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘(𝑛 Mat 𝑟)) = (Base‘(𝑁 Mat 𝑅)))
6 dmatval.b . . . . . . 7 𝐵 = (Base‘𝐴)
7 dmatval.a . . . . . . . 8 𝐴 = (𝑁 Mat 𝑅)
87fveq2i 6759 . . . . . . 7 (Base‘𝐴) = (Base‘(𝑁 Mat 𝑅))
96, 8eqtri 2766 . . . . . 6 𝐵 = (Base‘(𝑁 Mat 𝑅))
105, 9eqtr4di 2797 . . . . 5 ((𝑛 = 𝑁𝑟 = 𝑅) → (Base‘(𝑛 Mat 𝑟)) = 𝐵)
11 simpl 482 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → 𝑛 = 𝑁)
12 fveq2 6756 . . . . . . . . . . 11 (𝑟 = 𝑅 → (0g𝑟) = (0g𝑅))
13 dmatval.0 . . . . . . . . . . 11 0 = (0g𝑅)
1412, 13eqtr4di 2797 . . . . . . . . . 10 (𝑟 = 𝑅 → (0g𝑟) = 0 )
1514adantl 481 . . . . . . . . 9 ((𝑛 = 𝑁𝑟 = 𝑅) → (0g𝑟) = 0 )
1615eqeq2d 2749 . . . . . . . 8 ((𝑛 = 𝑁𝑟 = 𝑅) → ((𝑖𝑚𝑗) = (0g𝑟) ↔ (𝑖𝑚𝑗) = 0 ))
1716imbi2d 340 . . . . . . 7 ((𝑛 = 𝑁𝑟 = 𝑅) → ((𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟)) ↔ (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )))
1811, 17raleqbidv 3327 . . . . . 6 ((𝑛 = 𝑁𝑟 = 𝑅) → (∀𝑗𝑛 (𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟)) ↔ ∀𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )))
1911, 18raleqbidv 3327 . . . . 5 ((𝑛 = 𝑁𝑟 = 𝑅) → (∀𝑖𝑛𝑗𝑛 (𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟)) ↔ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )))
2010, 19rabeqbidv 3410 . . . 4 ((𝑛 = 𝑁𝑟 = 𝑅) → {𝑚 ∈ (Base‘(𝑛 Mat 𝑟)) ∣ ∀𝑖𝑛𝑗𝑛 (𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟))} = {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )})
2120adantl 481 . . 3 (((𝑁 ∈ Fin ∧ 𝑅𝑉) ∧ (𝑛 = 𝑁𝑟 = 𝑅)) → {𝑚 ∈ (Base‘(𝑛 Mat 𝑟)) ∣ ∀𝑖𝑛𝑗𝑛 (𝑖𝑗 → (𝑖𝑚𝑗) = (0g𝑟))} = {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )})
22 simpl 482 . . 3 ((𝑁 ∈ Fin ∧ 𝑅𝑉) → 𝑁 ∈ Fin)
23 elex 3440 . . . 4 (𝑅𝑉𝑅 ∈ V)
2423adantl 481 . . 3 ((𝑁 ∈ Fin ∧ 𝑅𝑉) → 𝑅 ∈ V)
256fvexi 6770 . . . 4 𝐵 ∈ V
26 rabexg 5250 . . . 4 (𝐵 ∈ V → {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )} ∈ V)
2725, 26mp1i 13 . . 3 ((𝑁 ∈ Fin ∧ 𝑅𝑉) → {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )} ∈ V)
283, 21, 22, 24, 27ovmpod 7403 . 2 ((𝑁 ∈ Fin ∧ 𝑅𝑉) → (𝑁 DMat 𝑅) = {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )})
291, 28eqtrid 2790 1 ((𝑁 ∈ Fin ∧ 𝑅𝑉) → 𝐷 = {𝑚𝐵 ∣ ∀𝑖𝑁𝑗𝑁 (𝑖𝑗 → (𝑖𝑚𝑗) = 0 )})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  {crab 3067  Vcvv 3422  cfv 6418  (class class class)co 7255  cmpo 7257  Fincfn 8691  Basecbs 16840  0gc0g 17067   Mat cmat 21464   DMat cdmat 21545
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-dmat 21547
This theorem is referenced by:  dmatel  21550  dmatmulcl  21557  scmatdmat  21572  dmatbas  45632
  Copyright terms: Public domain W3C validator