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

Theorem decpmatid 20494
Description: The matrix consisting of the coefficients in the polynomial entries of the identity matrix is an identity or a zero matrix. (Contributed by AV, 28-Sep-2019.) (Revised by AV, 2-Dec-2019.)
Hypotheses
Ref Expression
decpmatid.p 𝑃 = (Poly1𝑅)
decpmatid.c 𝐶 = (𝑁 Mat 𝑃)
decpmatid.i 𝐼 = (1r𝐶)
decpmatid.a 𝐴 = (𝑁 Mat 𝑅)
decpmatid.0 0 = (0g𝐴)
decpmatid.1 1 = (1r𝐴)
Assertion
Ref Expression
decpmatid ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (𝐼 decompPMat 𝐾) = if(𝐾 = 0, 1 , 0 ))

Proof of Theorem decpmatid
Dummy variables 𝑖 𝑗 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 decpmatid.p . . . . . 6 𝑃 = (Poly1𝑅)
2 decpmatid.c . . . . . 6 𝐶 = (𝑁 Mat 𝑃)
31, 2pmatring 20417 . . . . 5 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring) → 𝐶 ∈ Ring)
433adant3 1079 . . . 4 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 𝐶 ∈ Ring)
5 eqid 2621 . . . . 5 (Base‘𝐶) = (Base‘𝐶)
6 decpmatid.i . . . . 5 𝐼 = (1r𝐶)
75, 6ringidcl 18489 . . . 4 (𝐶 ∈ Ring → 𝐼 ∈ (Base‘𝐶))
84, 7syl 17 . . 3 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 𝐼 ∈ (Base‘𝐶))
9 simp3 1061 . . 3 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 𝐾 ∈ ℕ0)
102, 5decpmatval 20489 . . 3 ((𝐼 ∈ (Base‘𝐶) ∧ 𝐾 ∈ ℕ0) → (𝐼 decompPMat 𝐾) = (𝑖𝑁, 𝑗𝑁 ↦ ((coe1‘(𝑖𝐼𝑗))‘𝐾)))
118, 9, 10syl2anc 692 . 2 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (𝐼 decompPMat 𝐾) = (𝑖𝑁, 𝑗𝑁 ↦ ((coe1‘(𝑖𝐼𝑗))‘𝐾)))
12 eqid 2621 . . . . . . 7 (0g𝑃) = (0g𝑃)
13 eqid 2621 . . . . . . 7 (1r𝑃) = (1r𝑃)
14 simp11 1089 . . . . . . 7 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → 𝑁 ∈ Fin)
15 simp12 1090 . . . . . . 7 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → 𝑅 ∈ Ring)
16 simp2 1060 . . . . . . 7 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → 𝑖𝑁)
17 simp3 1061 . . . . . . 7 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → 𝑗𝑁)
181, 2, 12, 13, 14, 15, 16, 17, 6pmat1ovd 20421 . . . . . 6 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → (𝑖𝐼𝑗) = if(𝑖 = 𝑗, (1r𝑃), (0g𝑃)))
1918fveq2d 6152 . . . . 5 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → (coe1‘(𝑖𝐼𝑗)) = (coe1‘if(𝑖 = 𝑗, (1r𝑃), (0g𝑃))))
2019fveq1d 6150 . . . 4 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → ((coe1‘(𝑖𝐼𝑗))‘𝐾) = ((coe1‘if(𝑖 = 𝑗, (1r𝑃), (0g𝑃)))‘𝐾))
21 fvif 6161 . . . . . . 7 (coe1‘if(𝑖 = 𝑗, (1r𝑃), (0g𝑃))) = if(𝑖 = 𝑗, (coe1‘(1r𝑃)), (coe1‘(0g𝑃)))
2221fveq1i 6149 . . . . . 6 ((coe1‘if(𝑖 = 𝑗, (1r𝑃), (0g𝑃)))‘𝐾) = (if(𝑖 = 𝑗, (coe1‘(1r𝑃)), (coe1‘(0g𝑃)))‘𝐾)
23 iffv 6162 . . . . . 6 (if(𝑖 = 𝑗, (coe1‘(1r𝑃)), (coe1‘(0g𝑃)))‘𝐾) = if(𝑖 = 𝑗, ((coe1‘(1r𝑃))‘𝐾), ((coe1‘(0g𝑃))‘𝐾))
2422, 23eqtri 2643 . . . . 5 ((coe1‘if(𝑖 = 𝑗, (1r𝑃), (0g𝑃)))‘𝐾) = if(𝑖 = 𝑗, ((coe1‘(1r𝑃))‘𝐾), ((coe1‘(0g𝑃))‘𝐾))
25 eqid 2621 . . . . . . . . . . . . 13 (var1𝑅) = (var1𝑅)
26 eqid 2621 . . . . . . . . . . . . 13 (mulGrp‘𝑃) = (mulGrp‘𝑃)
27 eqid 2621 . . . . . . . . . . . . 13 (.g‘(mulGrp‘𝑃)) = (.g‘(mulGrp‘𝑃))
281, 25, 26, 27ply1idvr1 19582 . . . . . . . . . . . 12 (𝑅 ∈ Ring → (0(.g‘(mulGrp‘𝑃))(var1𝑅)) = (1r𝑃))
29283ad2ant2 1081 . . . . . . . . . . 11 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (0(.g‘(mulGrp‘𝑃))(var1𝑅)) = (1r𝑃))
3029eqcomd 2627 . . . . . . . . . 10 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (1r𝑃) = (0(.g‘(mulGrp‘𝑃))(var1𝑅)))
3130fveq2d 6152 . . . . . . . . 9 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (coe1‘(1r𝑃)) = (coe1‘(0(.g‘(mulGrp‘𝑃))(var1𝑅))))
3231fveq1d 6150 . . . . . . . 8 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((coe1‘(1r𝑃))‘𝐾) = ((coe1‘(0(.g‘(mulGrp‘𝑃))(var1𝑅)))‘𝐾))
331ply1lmod 19541 . . . . . . . . . . . . 13 (𝑅 ∈ Ring → 𝑃 ∈ LMod)
34333ad2ant2 1081 . . . . . . . . . . . 12 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 𝑃 ∈ LMod)
35 0nn0 11251 . . . . . . . . . . . . . 14 0 ∈ ℕ0
36 eqid 2621 . . . . . . . . . . . . . . 15 (Base‘𝑃) = (Base‘𝑃)
371, 25, 26, 27, 36ply1moncl 19560 . . . . . . . . . . . . . 14 ((𝑅 ∈ Ring ∧ 0 ∈ ℕ0) → (0(.g‘(mulGrp‘𝑃))(var1𝑅)) ∈ (Base‘𝑃))
3835, 37mpan2 706 . . . . . . . . . . . . 13 (𝑅 ∈ Ring → (0(.g‘(mulGrp‘𝑃))(var1𝑅)) ∈ (Base‘𝑃))
39383ad2ant2 1081 . . . . . . . . . . . 12 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (0(.g‘(mulGrp‘𝑃))(var1𝑅)) ∈ (Base‘𝑃))
40 eqid 2621 . . . . . . . . . . . . 13 (Scalar‘𝑃) = (Scalar‘𝑃)
41 eqid 2621 . . . . . . . . . . . . 13 ( ·𝑠𝑃) = ( ·𝑠𝑃)
42 eqid 2621 . . . . . . . . . . . . 13 (1r‘(Scalar‘𝑃)) = (1r‘(Scalar‘𝑃))
4336, 40, 41, 42lmodvs1 18812 . . . . . . . . . . . 12 ((𝑃 ∈ LMod ∧ (0(.g‘(mulGrp‘𝑃))(var1𝑅)) ∈ (Base‘𝑃)) → ((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅))) = (0(.g‘(mulGrp‘𝑃))(var1𝑅)))
4434, 39, 43syl2anc 692 . . . . . . . . . . 11 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅))) = (0(.g‘(mulGrp‘𝑃))(var1𝑅)))
4544eqcomd 2627 . . . . . . . . . 10 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (0(.g‘(mulGrp‘𝑃))(var1𝑅)) = ((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅))))
4645fveq2d 6152 . . . . . . . . 9 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (coe1‘(0(.g‘(mulGrp‘𝑃))(var1𝑅))) = (coe1‘((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅)))))
4746fveq1d 6150 . . . . . . . 8 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((coe1‘(0(.g‘(mulGrp‘𝑃))(var1𝑅)))‘𝐾) = ((coe1‘((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅))))‘𝐾))
48 simp2 1060 . . . . . . . . . 10 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 𝑅 ∈ Ring)
491ply1sca 19542 . . . . . . . . . . . . . 14 (𝑅 ∈ Ring → 𝑅 = (Scalar‘𝑃))
50493ad2ant2 1081 . . . . . . . . . . . . 13 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 𝑅 = (Scalar‘𝑃))
5150eqcomd 2627 . . . . . . . . . . . 12 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (Scalar‘𝑃) = 𝑅)
5251fveq2d 6152 . . . . . . . . . . 11 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (1r‘(Scalar‘𝑃)) = (1r𝑅))
53 eqid 2621 . . . . . . . . . . . . 13 (Base‘𝑅) = (Base‘𝑅)
54 eqid 2621 . . . . . . . . . . . . 13 (1r𝑅) = (1r𝑅)
5553, 54ringidcl 18489 . . . . . . . . . . . 12 (𝑅 ∈ Ring → (1r𝑅) ∈ (Base‘𝑅))
56553ad2ant2 1081 . . . . . . . . . . 11 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (1r𝑅) ∈ (Base‘𝑅))
5752, 56eqeltrd 2698 . . . . . . . . . 10 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (1r‘(Scalar‘𝑃)) ∈ (Base‘𝑅))
5835a1i 11 . . . . . . . . . 10 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 0 ∈ ℕ0)
59 eqid 2621 . . . . . . . . . . 11 (0g𝑅) = (0g𝑅)
6059, 53, 1, 25, 41, 26, 27coe1tm 19562 . . . . . . . . . 10 ((𝑅 ∈ Ring ∧ (1r‘(Scalar‘𝑃)) ∈ (Base‘𝑅) ∧ 0 ∈ ℕ0) → (coe1‘((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅)))) = (𝑘 ∈ ℕ0 ↦ if(𝑘 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅))))
6148, 57, 58, 60syl3anc 1323 . . . . . . . . 9 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (coe1‘((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅)))) = (𝑘 ∈ ℕ0 ↦ if(𝑘 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅))))
62 eqeq1 2625 . . . . . . . . . . 11 (𝑘 = 𝐾 → (𝑘 = 0 ↔ 𝐾 = 0))
6362ifbid 4080 . . . . . . . . . 10 (𝑘 = 𝐾 → if(𝑘 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) = if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)))
6463adantl 482 . . . . . . . . 9 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑘 = 𝐾) → if(𝑘 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) = if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)))
65 fvex 6158 . . . . . . . . . . 11 (1r‘(Scalar‘𝑃)) ∈ V
66 fvex 6158 . . . . . . . . . . 11 (0g𝑅) ∈ V
6765, 66ifex 4128 . . . . . . . . . 10 if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) ∈ V
6867a1i 11 . . . . . . . . 9 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) ∈ V)
6961, 64, 9, 68fvmptd 6245 . . . . . . . 8 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((coe1‘((1r‘(Scalar‘𝑃))( ·𝑠𝑃)(0(.g‘(mulGrp‘𝑃))(var1𝑅))))‘𝐾) = if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)))
7032, 47, 693eqtrd 2659 . . . . . . 7 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((coe1‘(1r𝑃))‘𝐾) = if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)))
711, 12, 59coe1z 19552 . . . . . . . . . 10 (𝑅 ∈ Ring → (coe1‘(0g𝑃)) = (ℕ0 × {(0g𝑅)}))
72713ad2ant2 1081 . . . . . . . . 9 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (coe1‘(0g𝑃)) = (ℕ0 × {(0g𝑅)}))
7372fveq1d 6150 . . . . . . . 8 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((coe1‘(0g𝑃))‘𝐾) = ((ℕ0 × {(0g𝑅)})‘𝐾))
7466a1i 11 . . . . . . . . 9 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (0g𝑅) ∈ V)
75 fvconst2g 6421 . . . . . . . . 9 (((0g𝑅) ∈ V ∧ 𝐾 ∈ ℕ0) → ((ℕ0 × {(0g𝑅)})‘𝐾) = (0g𝑅))
7674, 9, 75syl2anc 692 . . . . . . . 8 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((ℕ0 × {(0g𝑅)})‘𝐾) = (0g𝑅))
7773, 76eqtrd 2655 . . . . . . 7 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → ((coe1‘(0g𝑃))‘𝐾) = (0g𝑅))
7870, 77ifeq12d 4078 . . . . . 6 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → if(𝑖 = 𝑗, ((coe1‘(1r𝑃))‘𝐾), ((coe1‘(0g𝑃))‘𝐾)) = if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)))
79783ad2ant1 1080 . . . . 5 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → if(𝑖 = 𝑗, ((coe1‘(1r𝑃))‘𝐾), ((coe1‘(0g𝑃))‘𝐾)) = if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)))
8024, 79syl5eq 2667 . . . 4 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → ((coe1‘if(𝑖 = 𝑗, (1r𝑃), (0g𝑃)))‘𝐾) = if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)))
8120, 80eqtrd 2655 . . 3 (((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) ∧ 𝑖𝑁𝑗𝑁) → ((coe1‘(𝑖𝐼𝑗))‘𝐾) = if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)))
8281mpt2eq3dva 6672 . 2 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (𝑖𝑁, 𝑗𝑁 ↦ ((coe1‘(𝑖𝐼𝑗))‘𝐾)) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))))
8350adantl 482 . . . . . . . . 9 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → 𝑅 = (Scalar‘𝑃))
8483eqcomd 2627 . . . . . . . 8 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (Scalar‘𝑃) = 𝑅)
8584fveq2d 6152 . . . . . . 7 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (1r‘(Scalar‘𝑃)) = (1r𝑅))
8685ifeq1d 4076 . . . . . 6 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → if(𝑖 = 𝑗, (1r‘(Scalar‘𝑃)), (0g𝑅)) = if(𝑖 = 𝑗, (1r𝑅), (0g𝑅)))
8786mpt2eq3dv 6674 . . . . 5 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r‘(Scalar‘𝑃)), (0g𝑅))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r𝑅), (0g𝑅))))
88 iftrue 4064 . . . . . . . 8 (𝐾 = 0 → if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) = (1r‘(Scalar‘𝑃)))
8988ifeq1d 4076 . . . . . . 7 (𝐾 = 0 → if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)) = if(𝑖 = 𝑗, (1r‘(Scalar‘𝑃)), (0g𝑅)))
9089adantr 481 . . . . . 6 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)) = if(𝑖 = 𝑗, (1r‘(Scalar‘𝑃)), (0g𝑅)))
9190mpt2eq3dv 6674 . . . . 5 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r‘(Scalar‘𝑃)), (0g𝑅))))
92 decpmatid.1 . . . . . . . 8 1 = (1r𝐴)
93 decpmatid.a . . . . . . . . 9 𝐴 = (𝑁 Mat 𝑅)
9493, 54, 59mat1 20172 . . . . . . . 8 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring) → (1r𝐴) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r𝑅), (0g𝑅))))
9592, 94syl5eq 2667 . . . . . . 7 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring) → 1 = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r𝑅), (0g𝑅))))
96953adant3 1079 . . . . . 6 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → 1 = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r𝑅), (0g𝑅))))
9796adantl 482 . . . . 5 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → 1 = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (1r𝑅), (0g𝑅))))
9887, 91, 973eqtr4d 2665 . . . 4 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = 1 )
99 iftrue 4064 . . . . . 6 (𝐾 = 0 → if(𝐾 = 0, 1 , 0 ) = 1 )
10099eqcomd 2627 . . . . 5 (𝐾 = 0 → 1 = if(𝐾 = 0, 1 , 0 ))
101100adantr 481 . . . 4 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → 1 = if(𝐾 = 0, 1 , 0 ))
10298, 101eqtrd 2655 . . 3 ((𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = if(𝐾 = 0, 1 , 0 ))
103 ifid 4097 . . . . . . 7 if(𝑖 = 𝑗, (0g𝑅), (0g𝑅)) = (0g𝑅)
104103a1i 11 . . . . . 6 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → if(𝑖 = 𝑗, (0g𝑅), (0g𝑅)) = (0g𝑅))
105104mpt2eq3dv 6674 . . . . 5 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (0g𝑅), (0g𝑅))) = (𝑖𝑁, 𝑗𝑁 ↦ (0g𝑅)))
106 iffalse 4067 . . . . . . . 8 𝐾 = 0 → if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) = (0g𝑅))
107106adantr 481 . . . . . . 7 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)) = (0g𝑅))
108107ifeq1d 4076 . . . . . 6 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅)) = if(𝑖 = 𝑗, (0g𝑅), (0g𝑅)))
109108mpt2eq3dv 6674 . . . . 5 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, (0g𝑅), (0g𝑅))))
110 3simpa 1056 . . . . . . 7 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring))
111110adantl 482 . . . . . 6 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring))
112 decpmatid.0 . . . . . . 7 0 = (0g𝐴)
11393, 59mat0op 20144 . . . . . . 7 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring) → (0g𝐴) = (𝑖𝑁, 𝑗𝑁 ↦ (0g𝑅)))
114112, 113syl5eq 2667 . . . . . 6 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring) → 0 = (𝑖𝑁, 𝑗𝑁 ↦ (0g𝑅)))
115111, 114syl 17 . . . . 5 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → 0 = (𝑖𝑁, 𝑗𝑁 ↦ (0g𝑅)))
116105, 109, 1153eqtr4d 2665 . . . 4 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = 0 )
117 iffalse 4067 . . . . . 6 𝐾 = 0 → if(𝐾 = 0, 1 , 0 ) = 0 )
118117eqcomd 2627 . . . . 5 𝐾 = 0 → 0 = if(𝐾 = 0, 1 , 0 ))
119118adantr 481 . . . 4 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → 0 = if(𝐾 = 0, 1 , 0 ))
120116, 119eqtrd 2655 . . 3 ((¬ 𝐾 = 0 ∧ (𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0)) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = if(𝐾 = 0, 1 , 0 ))
121102, 120pm2.61ian 830 . 2 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (𝑖𝑁, 𝑗𝑁 ↦ if(𝑖 = 𝑗, if(𝐾 = 0, (1r‘(Scalar‘𝑃)), (0g𝑅)), (0g𝑅))) = if(𝐾 = 0, 1 , 0 ))
12211, 82, 1213eqtrd 2659 1 ((𝑁 ∈ Fin ∧ 𝑅 ∈ Ring ∧ 𝐾 ∈ ℕ0) → (𝐼 decompPMat 𝐾) = if(𝐾 = 0, 1 , 0 ))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 384  w3a 1036   = wceq 1480  wcel 1987  Vcvv 3186  ifcif 4058  {csn 4148  cmpt 4673   × cxp 5072  cfv 5847  (class class class)co 6604  cmpt2 6606  Fincfn 7899  0cc0 9880  0cn0 11236  Basecbs 15781  Scalarcsca 15865   ·𝑠 cvsca 15866  0gc0g 16021  .gcmg 17461  mulGrpcmgp 18410  1rcur 18422  Ringcrg 18468  LModclmod 18784  var1cv1 19465  Poly1cpl1 19466  coe1cco1 19467   Mat cmat 20132   decompPMat cdecpmat 20486
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  ax-inf2 8482  ax-cnex 9936  ax-resscn 9937  ax-1cn 9938  ax-icn 9939  ax-addcl 9940  ax-addrcl 9941  ax-mulcl 9942  ax-mulrcl 9943  ax-mulcom 9944  ax-addass 9945  ax-mulass 9946  ax-distr 9947  ax-i2m1 9948  ax-1ne0 9949  ax-1rid 9950  ax-rnegex 9951  ax-rrecex 9952  ax-cnre 9953  ax-pre-lttri 9954  ax-pre-lttrn 9955  ax-pre-ltadd 9956  ax-pre-mulgt0 9957
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  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-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  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-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-ot 4157  df-uni 4403  df-int 4441  df-iun 4487  df-iin 4488  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-se 5034  df-we 5035  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-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  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-isom 5856  df-riota 6565  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-of 6850  df-ofr 6851  df-om 7013  df-1st 7113  df-2nd 7114  df-supp 7241  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-1o 7505  df-2o 7506  df-oadd 7509  df-er 7687  df-map 7804  df-pm 7805  df-ixp 7853  df-en 7900  df-dom 7901  df-sdom 7902  df-fin 7903  df-fsupp 8220  df-sup 8292  df-oi 8359  df-card 8709  df-pnf 10020  df-mnf 10021  df-xr 10022  df-ltxr 10023  df-le 10024  df-sub 10212  df-neg 10213  df-nn 10965  df-2 11023  df-3 11024  df-4 11025  df-5 11026  df-6 11027  df-7 11028  df-8 11029  df-9 11030  df-n0 11237  df-z 11322  df-dec 11438  df-uz 11632  df-fz 12269  df-fzo 12407  df-seq 12742  df-hash 13058  df-struct 15783  df-ndx 15784  df-slot 15785  df-base 15786  df-sets 15787  df-ress 15788  df-plusg 15875  df-mulr 15876  df-sca 15878  df-vsca 15879  df-ip 15880  df-tset 15881  df-ple 15882  df-ds 15885  df-hom 15887  df-cco 15888  df-0g 16023  df-gsum 16024  df-prds 16029  df-pws 16031  df-mre 16167  df-mrc 16168  df-acs 16170  df-mgm 17163  df-sgrp 17205  df-mnd 17216  df-mhm 17256  df-submnd 17257  df-grp 17346  df-minusg 17347  df-sbg 17348  df-mulg 17462  df-subg 17512  df-ghm 17579  df-cntz 17671  df-cmn 18116  df-abl 18117  df-mgp 18411  df-ur 18423  df-ring 18470  df-subrg 18699  df-lmod 18786  df-lss 18852  df-sra 19091  df-rgmod 19092  df-ascl 19233  df-psr 19275  df-mvr 19276  df-mpl 19277  df-opsr 19279  df-psr1 19469  df-vr1 19470  df-ply1 19471  df-coe1 19472  df-dsmm 19995  df-frlm 20010  df-mamu 20109  df-mat 20133  df-decpmat 20487
This theorem is referenced by:  idpm2idmp  20525
  Copyright terms: Public domain W3C validator