Metamath Proof Explorer


Theorem ply1assa

Description: The ring of univariate polynomials is an associative algebra. (Contributed by Mario Carneiro, 9-Feb-2015) Revise df-ply1 . (Revised by Thierry Arnoux, 15-Nov-2026)

Ref Expression
Hypothesis ply1lmod.p ⊢ P = Poly 1 ⁡ R
Assertion ply1assa ⊢ R ∈ CRing → P ∈ AssAlg

Proof

Step Hyp Ref Expression
1 ply1lmod.p ⊢ P = Poly 1 ⁡ R
2 crngring ⊢ R ∈ CRing → R ∈ Ring
3 eqid ⊢ PwSer 1 ⁡ R = PwSer 1 ⁡ R
4 eqid ⊢ Base P = Base P
5 1 3 4 ply1subrg ⊢ R ∈ Ring → Base P ∈ SubRing ⁡ PwSer 1 ⁡ R
6 2 5 syl ⊢ R ∈ CRing → Base P ∈ SubRing ⁡ PwSer 1 ⁡ R
7 1 3 4 ply1lss ⊢ R ∈ Ring → Base P ∈ LSubSp ⁡ PwSer 1 ⁡ R
8 2 7 syl ⊢ R ∈ CRing → Base P ∈ LSubSp ⁡ PwSer 1 ⁡ R
9 3 psr1assa ⊢ R ∈ CRing → PwSer 1 ⁡ R ∈ AssAlg
10 eqid ⊢ 1 PwSer 1 ⁡ R = 1 PwSer 1 ⁡ R
11 10 subrg1cl ⊢ Base P ∈ SubRing ⁡ PwSer 1 ⁡ R → 1 PwSer 1 ⁡ R ∈ Base P
12 6 11 syl ⊢ R ∈ CRing → 1 PwSer 1 ⁡ R ∈ Base P
13 eqid ⊢ Base PwSer 1 ⁡ R = Base PwSer 1 ⁡ R
14 13 subrgss ⊢ Base P ∈ SubRing ⁡ PwSer 1 ⁡ R → Base P ⊆ Base PwSer 1 ⁡ R
15 6 14 syl ⊢ R ∈ CRing → Base P ⊆ Base PwSer 1 ⁡ R
16 eqid ⊢ PwSer 1 ⁡ R ↾ 𝑠 Base P = PwSer 1 ⁡ R ↾ 𝑠 Base P
17 eqid ⊢ LSubSp ⁡ PwSer 1 ⁡ R = LSubSp ⁡ PwSer 1 ⁡ R
18 16 17 13 10 issubassa ⊢ PwSer 1 ⁡ R ∈ AssAlg ∧ 1 PwSer 1 ⁡ R ∈ Base P ∧ Base P ⊆ Base PwSer 1 ⁡ R → PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ AssAlg ↔ Base P ∈ SubRing ⁡ PwSer 1 ⁡ R ∧ Base P ∈ LSubSp ⁡ PwSer 1 ⁡ R
19 9 12 15 18 syl3anc ⊢ R ∈ CRing → PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ AssAlg ↔ Base P ∈ SubRing ⁡ PwSer 1 ⁡ R ∧ Base P ∈ LSubSp ⁡ PwSer 1 ⁡ R
20 6 8 19 mpbir2and ⊢ R ∈ CRing → PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ AssAlg
21 eqidd ⊢ R ∈ CRing → Base P = Base P
22 16 13 ressbas2 ⊢ Base P ⊆ Base PwSer 1 ⁡ R → Base P = Base PwSer 1 ⁡ R ↾ 𝑠 Base P
23 15 22 syl ⊢ R ∈ CRing → Base P = Base PwSer 1 ⁡ R ↾ 𝑠 Base P
24 1 3 ply1val ⊢ R ∈ CRing → P = PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R sSet EuclF ⁡ ndx deg 1 ⁡ R
25 1 4 ply1bas ⊢ Base P = Base 1 𝑜 mPoly R
26 25 21 eqtr3id ⊢ R ∈ CRing → Base 1 𝑜 mPoly R = Base P
27 26 oveq2d ⊢ R ∈ CRing → PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R = PwSer 1 ⁡ R ↾ 𝑠 Base P
28 27 oveq1d ⊢ R ∈ CRing → PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R sSet EuclF ⁡ ndx deg 1 ⁡ R = PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
29 24 28 eqtrd ⊢ R ∈ CRing → P = PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
30 29 fveq2d ⊢ R ∈ CRing → + P = + PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
31 plusgid ⊢ + 𝑔 = Slot + ndx
32 plusgndxneufndx ⊢ + ndx ≠ EuclF ⁡ ndx
33 31 32 setsnid ⊢ + PwSer 1 ⁡ R ↾ 𝑠 Base P = + PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
34 30 33 eqtr4di ⊢ R ∈ CRing → + P = + PwSer 1 ⁡ R ↾ 𝑠 Base P
35 34 oveqdr ⊢ R ∈ CRing ∧ x ∈ Base P ∧ y ∈ Base P → x + P y = x + PwSer 1 ⁡ R ↾ 𝑠 Base P y
36 29 fveq2d ⊢ R ∈ CRing → ⋅ P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
37 mulridx ⊢ ⋅ 𝑟 = Slot ⋅ ndx
38 mulrndxneufndx ⊢ ⋅ ndx ≠ EuclF ⁡ ndx
39 37 38 setsnid ⊢ ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
40 36 39 eqtr4di ⊢ R ∈ CRing → ⋅ P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P
41 40 oveqdr ⊢ R ∈ CRing ∧ x ∈ Base P ∧ y ∈ Base P → x ⋅ P y = x ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P y
42 eqidd ⊢ R ∈ CRing → Scalar ⁡ P = Scalar ⁡ P
43 3 psr1sca ⊢ R ∈ CRing → R = Scalar ⁡ PwSer 1 ⁡ R
44 1 ply1sca ⊢ R ∈ CRing → R = Scalar ⁡ P
45 fvex ⊢ Base P ∈ V
46 eqid ⊢ Scalar ⁡ PwSer 1 ⁡ R = Scalar ⁡ PwSer 1 ⁡ R
47 16 46 resssca ⊢ Base P ∈ V → Scalar ⁡ PwSer 1 ⁡ R = Scalar ⁡ PwSer 1 ⁡ R ↾ 𝑠 Base P
48 45 47 mp1i ⊢ R ∈ CRing → Scalar ⁡ PwSer 1 ⁡ R = Scalar ⁡ PwSer 1 ⁡ R ↾ 𝑠 Base P
49 43 44 48 3eqtr3d ⊢ R ∈ CRing → Scalar ⁡ P = Scalar ⁡ PwSer 1 ⁡ R ↾ 𝑠 Base P
50 eqid ⊢ Base Scalar ⁡ P = Base Scalar ⁡ P
51 29 fveq2d ⊢ R ∈ CRing → ⋅ P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
52 vscaid ⊢ ⋅ 𝑠 = Slot ⋅ ndx
53 vscandxneufndx ⊢ ⋅ ndx ≠ EuclF ⁡ ndx
54 52 53 setsnid ⊢ ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
55 51 54 eqtr4di ⊢ R ∈ CRing → ⋅ P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P
56 55 oveqdr ⊢ R ∈ CRing ∧ x ∈ Base Scalar ⁡ P ∧ y ∈ Base P → x ⋅ P y = x ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P y
57 21 23 35 41 42 49 50 56 assapropd ⊢ R ∈ CRing → P ∈ AssAlg ↔ PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ AssAlg
58 20 57 mpbird ⊢ R ∈ CRing → P ∈ AssAlg