Metamath Proof Explorer


Theorem ply1ring

Description: Univariate polynomials form a ring. (Contributed by Stefan O'Rear, 22-Mar-2015) Revise df-ply1 . (Revised by Thierry Arnoux, 15-Nov-2026)

Ref Expression
Hypothesis ply1ring.p ⊢ P = Poly 1 ⁡ R
Assertion ply1ring ⊢ R ∈ Ring → P ∈ Ring

Proof

Step Hyp Ref Expression
1 ply1ring.p ⊢ P = Poly 1 ⁡ R
2 eqid ⊢ Base P = Base P
3 1 2 ply1bas ⊢ Base P = Base 1 𝑜 mPoly R
4 eqid ⊢ PwSer 1 ⁡ R = PwSer 1 ⁡ R
5 1 4 2 ply1subrg ⊢ R ∈ Ring → Base P ∈ SubRing ⁡ PwSer 1 ⁡ R
6 3 5 eqeltrrid ⊢ R ∈ Ring → Base 1 𝑜 mPoly R ∈ SubRing ⁡ PwSer 1 ⁡ R
7 3 oveq2i ⊢ PwSer 1 ⁡ R ↾ 𝑠 Base P = PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R
8 7 subrgring ⊢ Base 1 𝑜 mPoly R ∈ SubRing ⁡ PwSer 1 ⁡ R → PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ Ring
9 6 8 syl ⊢ R ∈ Ring → PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ Ring
10 eqidd ⊢ R ∈ Ring → Base P = Base P
11 eqid ⊢ Base PwSer 1 ⁡ R = Base PwSer 1 ⁡ R
12 11 subrgss ⊢ Base P ∈ SubRing ⁡ PwSer 1 ⁡ R → Base P ⊆ Base PwSer 1 ⁡ R
13 eqid ⊢ PwSer 1 ⁡ R ↾ 𝑠 Base P = PwSer 1 ⁡ R ↾ 𝑠 Base P
14 13 11 ressbas2 ⊢ Base P ⊆ Base PwSer 1 ⁡ R → Base P = Base PwSer 1 ⁡ R ↾ 𝑠 Base P
15 5 12 14 3syl ⊢ R ∈ Ring → Base P = Base PwSer 1 ⁡ R ↾ 𝑠 Base P
16 1 4 ply1val ⊢ R ∈ Ring → P = PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R sSet EuclF ⁡ ndx deg 1 ⁡ R
17 3 10 eqtr3id ⊢ R ∈ Ring → Base 1 𝑜 mPoly R = Base P
18 17 oveq2d ⊢ R ∈ Ring → PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R = PwSer 1 ⁡ R ↾ 𝑠 Base P
19 18 oveq1d ⊢ R ∈ Ring → PwSer 1 ⁡ R ↾ 𝑠 Base 1 𝑜 mPoly R sSet EuclF ⁡ ndx deg 1 ⁡ R = PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
20 16 19 eqtrd ⊢ R ∈ Ring → P = PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
21 20 fveq2d ⊢ R ∈ Ring → + P = + PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
22 plusgid ⊢ + 𝑔 = Slot + ndx
23 plusgndxneufndx ⊢ + ndx ≠ EuclF ⁡ ndx
24 22 23 setsnid ⊢ + PwSer 1 ⁡ R ↾ 𝑠 Base P = + PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
25 21 24 eqtr4di ⊢ R ∈ Ring → + P = + PwSer 1 ⁡ R ↾ 𝑠 Base P
26 25 oveqdr ⊢ R ∈ Ring ∧ x ∈ Base P ∧ y ∈ Base P → x + P y = x + PwSer 1 ⁡ R ↾ 𝑠 Base P y
27 20 fveq2d ⊢ R ∈ Ring → ⋅ P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
28 mulridx ⊢ ⋅ 𝑟 = Slot ⋅ ndx
29 mulrndxneufndx ⊢ ⋅ ndx ≠ EuclF ⁡ ndx
30 28 29 setsnid ⊢ ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P sSet EuclF ⁡ ndx deg 1 ⁡ R
31 27 30 eqtr4di ⊢ R ∈ Ring → ⋅ P = ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P
32 31 oveqdr ⊢ R ∈ Ring ∧ x ∈ Base P ∧ y ∈ Base P → x ⋅ P y = x ⋅ PwSer 1 ⁡ R ↾ 𝑠 Base P y
33 10 15 26 32 ringpropd ⊢ R ∈ Ring → P ∈ Ring ↔ PwSer 1 ⁡ R ↾ 𝑠 Base P ∈ Ring
34 9 33 mpbird ⊢ R ∈ Ring → P ∈ Ring