Metamath Proof Explorer


Theorem mplcoe2

Description: Decompose a monomial into a finite product of powers of variables. (The assumption that R is a commutative ring is not strictly necessary, because the submonoid of monomials is in the center of the multiplicative monoid of polynomials, but it simplifies the proof.) (Contributed by Mario Carneiro, 10-Jan-2015) (Proof shortened by AV, 18-Oct-2019)

Ref Expression
Hypotheses mplcoe1.p 𝑃 = ( 𝐼 mPoly 𝑅 )
mplcoe1.d 𝐷 = { 𝑓 ∈ ( ℕ0m 𝐼 ) ∣ ( 𝑓 “ ℕ ) ∈ Fin }
mplcoe1.z 0 = ( 0g𝑅 )
mplcoe1.o 1 = ( 1r𝑅 )
mplcoe1.i ( 𝜑𝐼𝑊 )
mplcoe2.g 𝐺 = ( mulGrp ‘ 𝑃 )
mplcoe2.m = ( .g𝐺 )
mplcoe2.v 𝑉 = ( 𝐼 mVar 𝑅 )
mplcoe2.r ( 𝜑𝑅 ∈ CRing )
mplcoe2.y ( 𝜑𝑌𝐷 )
Assertion mplcoe2 ( 𝜑 → ( 𝑦𝐷 ↦ if ( 𝑦 = 𝑌 , 1 , 0 ) ) = ( 𝐺 Σg ( 𝑘𝐼 ↦ ( ( 𝑌𝑘 ) ( 𝑉𝑘 ) ) ) ) )

Proof

Step Hyp Ref Expression
1 mplcoe1.p 𝑃 = ( 𝐼 mPoly 𝑅 )
2 mplcoe1.d 𝐷 = { 𝑓 ∈ ( ℕ0m 𝐼 ) ∣ ( 𝑓 “ ℕ ) ∈ Fin }
3 mplcoe1.z 0 = ( 0g𝑅 )
4 mplcoe1.o 1 = ( 1r𝑅 )
5 mplcoe1.i ( 𝜑𝐼𝑊 )
6 mplcoe2.g 𝐺 = ( mulGrp ‘ 𝑃 )
7 mplcoe2.m = ( .g𝐺 )
8 mplcoe2.v 𝑉 = ( 𝐼 mVar 𝑅 )
9 mplcoe2.r ( 𝜑𝑅 ∈ CRing )
10 mplcoe2.y ( 𝜑𝑌𝐷 )
11 crngring ( 𝑅 ∈ CRing → 𝑅 ∈ Ring )
12 9 11 syl ( 𝜑𝑅 ∈ Ring )
13 1 mplcrng ( ( 𝐼𝑊𝑅 ∈ CRing ) → 𝑃 ∈ CRing )
14 5 9 13 syl2anc ( 𝜑𝑃 ∈ CRing )
15 14 adantr ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → 𝑃 ∈ CRing )
16 eqid ( Base ‘ 𝑃 ) = ( Base ‘ 𝑃 )
17 5 adantr ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → 𝐼𝑊 )
18 12 adantr ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → 𝑅 ∈ Ring )
19 simprr ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → 𝑦𝐼 )
20 1 8 16 17 18 19 mvrcl ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → ( 𝑉𝑦 ) ∈ ( Base ‘ 𝑃 ) )
21 simprl ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → 𝑥𝐼 )
22 1 8 16 17 18 21 mvrcl ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → ( 𝑉𝑥 ) ∈ ( Base ‘ 𝑃 ) )
23 eqid ( .r𝑃 ) = ( .r𝑃 )
24 6 23 mgpplusg ( .r𝑃 ) = ( +g𝐺 )
25 24 eqcomi ( +g𝐺 ) = ( .r𝑃 )
26 16 25 crngcom ( ( 𝑃 ∈ CRing ∧ ( 𝑉𝑦 ) ∈ ( Base ‘ 𝑃 ) ∧ ( 𝑉𝑥 ) ∈ ( Base ‘ 𝑃 ) ) → ( ( 𝑉𝑦 ) ( +g𝐺 ) ( 𝑉𝑥 ) ) = ( ( 𝑉𝑥 ) ( +g𝐺 ) ( 𝑉𝑦 ) ) )
27 15 20 22 26 syl3anc ( ( 𝜑 ∧ ( 𝑥𝐼𝑦𝐼 ) ) → ( ( 𝑉𝑦 ) ( +g𝐺 ) ( 𝑉𝑥 ) ) = ( ( 𝑉𝑥 ) ( +g𝐺 ) ( 𝑉𝑦 ) ) )
28 27 ralrimivva ( 𝜑 → ∀ 𝑥𝐼𝑦𝐼 ( ( 𝑉𝑦 ) ( +g𝐺 ) ( 𝑉𝑥 ) ) = ( ( 𝑉𝑥 ) ( +g𝐺 ) ( 𝑉𝑦 ) ) )
29 1 2 3 4 5 6 7 8 12 10 28 mplcoe5 ( 𝜑 → ( 𝑦𝐷 ↦ if ( 𝑦 = 𝑌 , 1 , 0 ) ) = ( 𝐺 Σg ( 𝑘𝐼 ↦ ( ( 𝑌𝑘 ) ( 𝑉𝑘 ) ) ) ) )