Polynomials over subrings #
Given a ring K with a subring R, we construct a map from polynomials in K[X] with coefficients
in R to R[X]. We provide several lemmas to deal with coefficients, degree, and evaluation of
Polynomial.toSubring.
Main Definitions #
Polynomial.toSubring: given a polynomialPinK[X]whose coefficients all belong to a subringRof the ringK,P.toSubring Ris the corresponding polynomial inR[X].
noncomputable def
Polynomial.toSubring
{R : Type u_1}
[Ring R]
(p : Polynomial R)
(T : Subring R)
(hp : ↑p.coeffs ⊆ ↑T)
:
Polynomial ↥T
Given a polynomial p and a subring T that contains the coefficients of p,
return the corresponding polynomial whose coefficients are in T.
Instances For
noncomputable def
Polynomial.ofSubring
{R : Type u_1}
[Ring R]
(T : Subring R)
(p : Polynomial ↥T)
:
Given a polynomial whose coefficients are in some subring, return the corresponding polynomial whose coefficients are in the ambient ring.
Equations
- Polynomial.ofSubring T p = ∑ i ∈ p.support, (Polynomial.monomial i) ↑(p.coeff i)
Instances For
@[simp]