The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.Algebra.Polynomial.AlgebraMap
130 declarations and 10 deprecated aliases. Mathlib docs · Source
Theory of univariate polynomials
We show that A[X] is an R-algebra when A is an R-algebra.
We promote eval₂ to an algebra hom in aeval.
Main definitions
-
Polynomial.aeval: given a valuationxof the variable in anR-algebraA,aeval R A xis the uniqueR-algebra homomorphism fromR[X]toAsendingXtox. -
Polynomial.mapAlgHom: givenφ : S →ₐ[R] S',mapAlgHom φappliesφon the coefficients of a polynomial inS[X].
theorem Polynomial.algEquivOfCompEqX.congr_simp E1 #
∀ {R : Type u} [inst : CommSemiring R] (p p_1 : Polynomial R) (e_p : p = p_1) (q q_1 : Polynomial R) (e_q : q = q_1)
(hpq : p.comp q = Polynomial.X) (hqp : q.comp p = Polynomial.X),
p.algEquivOfCompEqX q hpq hqp = p_1.algEquivOfCompEqX q_1 ⋯ ⋯
theorem Polynomial.algebraMap_apply E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (r : R),
(algebraMap R (Polynomial A)) r = Polynomial.C ((algebraMap R A) r)
theorem Polynomial.C_eq_algebraMap E1 #
∀ {R : Type u} [inst : CommSemiring R] (r : R), Polynomial.C r = (algebraMap R (Polynomial R)) r
When we have [CommSemiring R], the function C is the same as algebraMap R R[X].
(But note that C is defined when R is not necessarily commutative, in which case
algebraMap is not available.)
theorem Polynomial.algebraMap_eq E0 #
∀ {R : Type u} [inst : CommSemiring R], algebraMap R (Polynomial R) = Polynomial.C
def Polynomial.CAlgHom E1 #
{R : Type u} →
{A : Type z} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → A →ₐ[R] Polynomial A
Polynomial.C as an AlgHom.
theorem Polynomial.CAlgHom_apply E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A),
Polynomial.CAlgHom a = Polynomial.C a
theorem Polynomial.algHom_ext' E2 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] {f g : Polynomial A →ₐ[R] B},
f.comp Polynomial.CAlgHom = g.comp Polynomial.CAlgHom → f Polynomial.X = g Polynomial.X → f = g
Extensionality lemma for algebra maps out of A'[X] over a smaller base ring than A'
theorem Polynomial.algHom_ext'_iff E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] {f g : Polynomial A →ₐ[R] B},
f = g ↔ f.comp Polynomial.CAlgHom = g.comp Polynomial.CAlgHom ∧ f Polynomial.X = g Polynomial.X
instance Polynomial.subalgebraNontrivial E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] [Nontrivial A],
Nontrivial (Subalgebra R (Polynomial A))
theorem Polynomial.algHom_eval₂_algebraMap E0 #
∀ {R : Type u_3} {A : Type u_4} {B : Type u_5} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (p : Polynomial R) (f : A →ₐ[R] B) (a : A),
f (Polynomial.eval₂ (algebraMap R A) a p) = Polynomial.eval₂ (algebraMap R B) (f a) p
theorem Polynomial.eval₂_algebraMap_X E0 #
∀ {R : Type u_3} {A : Type u_4} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (p : Polynomial R)
(f : Polynomial R →ₐ[R] A), Polynomial.eval₂ (algebraMap R A) (f Polynomial.X) p = f p
theorem Polynomial.ringHom_eval₂_intCastRingHom E0 #
∀ {R : Type u_3} {S : Type u_4} [inst : Ring R] [inst_1 : Ring S] (p : Polynomial ℤ) (f : R →+* S) (r : R),
f (Polynomial.eval₂ (Int.castRingHom R) r p) = Polynomial.eval₂ (Int.castRingHom S) (f r) p
theorem Polynomial.eval₂_intCastRingHom_X E0 #
∀ {R : Type u_3} [inst : Ring R] (p : Polynomial ℤ) (f : Polynomial ℤ →+* R),
Polynomial.eval₂ (Int.castRingHom R) (f Polynomial.X) p = f p
def Polynomial.eval₂AlgHom E1 #
{R : Type u} →
{A : Type z} →
{B : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : Semiring A] →
[inst_2 : Semiring B] →
[inst_3 : Algebra R A] →
[inst_4 : Algebra R B] → (f : A →ₐ[R] B) → (b : B) → (∀ (a : A), Commute (f a) b) → Polynomial A →ₐ[R] B
Polynomial.eval₂ as an AlgHom for noncommutative algebras.
This is Polynomial.eval₂RingHom' for AlgHoms.
theorem Polynomial.eval₂AlgHom_apply E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (b : B) (hf : ∀ (a : A), Commute (f a) b)
(p : Polynomial A), (Polynomial.eval₂AlgHom f b hf) p = Polynomial.eval₂ (↑f) b p
def Polynomial.mapAlgHom E3 #
{R : Type u} →
{A : Type z} →
{B : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : Semiring A] →
[inst_2 : Semiring B] →
[inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → Polynomial A →ₐ[R] Polynomial B
Polynomial.map as an AlgHom for noncommutative algebras.
This is the algebra version of Polynomial.mapRingHom.
theorem Polynomial.coe_mapAlgHom E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), ⇑(Polynomial.mapAlgHom f) = Polynomial.map ↑f
theorem Polynomial.mapAlgHom_id E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
Polynomial.mapAlgHom (AlgHom.id R A) = AlgHom.id R (Polynomial A)
theorem Polynomial.toRingHom_mapAlgHom E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B), ↑(Polynomial.mapAlgHom f) = Polynomial.mapRingHom ↑f
theorem Polynomial.mapAlgHom_comp E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (C : Type u_3) [inst_5 : Semiring C] [inst_6 : Algebra R C]
(f : B →ₐ[R] C) (g : A →ₐ[R] B),
(Polynomial.mapAlgHom f).comp (Polynomial.mapAlgHom g) = Polynomial.mapAlgHom (f.comp g)
theorem Polynomial.mapAlgHom_eq_eval₂AlgHom_CAlgHom E1 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B),
Polynomial.mapAlgHom f = Polynomial.eval₂AlgHom (Polynomial.CAlgHom.comp f) Polynomial.X ⋯
theorem Polynomial.coeff_mapAlgHom_apply E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (p : Polynomial A) (n : ℕ),
((Polynomial.mapAlgHom f) p).coeff n = f (p.coeff n)
theorem Polynomial.lcoeff_comp_mapAlgHom_eq E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (n : ℕ),
↑R (Polynomial.lcoeff B n) ∘ₗ (Polynomial.mapAlgHom f).toLinearMap = f.toLinearMap ∘ₗ ↑R (Polynomial.lcoeff A n)
theorem Polynomial.mapAlgHom_monomial E1 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (n : ℕ) (a : A),
(Polynomial.mapAlgHom f) ((Polynomial.monomial n) a) = (Polynomial.monomial n) (f a)
def Polynomial.mapAlgEquiv E1 #
{R : Type u} →
{A : Type z} →
{B : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : Semiring A] →
[inst_2 : Semiring B] →
[inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A ≃ₐ[R] B) → Polynomial A ≃ₐ[R] Polynomial B
If A and B are isomorphic as R-algebras, then so are their polynomial rings
theorem Polynomial.coe_mapAlgEquiv E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A ≃ₐ[R] B), ⇑(Polynomial.mapAlgEquiv f) = Polynomial.map ↑f
theorem Polynomial.mapAlgEquiv_id E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A],
Polynomial.mapAlgEquiv AlgEquiv.refl = AlgEquiv.refl
theorem Polynomial.toRingHom_mapAlgEquiv E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A ≃ₐ[R] B), ↑(Polynomial.mapAlgEquiv f) = Polynomial.mapRingHom ↑f
theorem Polynomial.mapAlgEquiv_toAlgHom E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A ≃ₐ[R] B), ↑(Polynomial.mapAlgEquiv f) = Polynomial.mapAlgHom ↑f
theorem Polynomial.mapAlgEquiv_comp E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (C : Type u_3) [inst_5 : Semiring C] [inst_6 : Algebra R C]
(f : A ≃ₐ[R] B) (g : B ≃ₐ[R] C),
(Polynomial.mapAlgEquiv f).trans (Polynomial.mapAlgEquiv g) = Polynomial.mapAlgEquiv (f.trans g)
def Polynomial.aevalEquiv E1 #
(R : Type u) →
(A : Type z) → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → A ≃ (Polynomial R →ₐ[R] A)
Given a valuation x of the variable in an R-algebra A, the bijection induced by the unique
R-algebra homomorphism from R[X] to A sending X to x.
theorem Polynomial.aevalEquiv_symm_apply E0 #
∀ (R : Type u) (A : Type z) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
(f : Polynomial R →ₐ[R] A), (Polynomial.aevalEquiv R A).symm f = f Polynomial.X
def Polynomial.aeval E3 #
{R : Type u} →
{A : Type z} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → A → Polynomial R →ₐ[R] A
Given a valuation x of the variable in an R-algebra A, aeval R A x is
the unique R-algebra homomorphism from R[X] to A sending X to x.
This is a stronger variant of the linear map Polynomial.leval.
theorem Polynomial.aevalEquiv_apply E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A),
(Polynomial.aevalEquiv R A) x = Polynomial.aeval x
def Polynomial.mapAlg E1 #
(R : Type u) →
[inst : CommSemiring R] →
(S : Type v) → [inst_1 : Semiring S] → [inst_2 : Algebra R S] → Polynomial R →ₐ[R] Polynomial S
The map R[X] → S[X] as an algebra homomorphism.
theorem Polynomial.algHom_ext E1 #
∀ {R : Type u} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring B] [inst_2 : Algebra R B]
{f g : Polynomial R →ₐ[R] B}, f Polynomial.X = g Polynomial.X → f = g
theorem Polynomial.algHom_ext_iff E0 #
∀ {R : Type u} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring B] [inst_2 : Algebra R B]
{f g : Polynomial R →ₐ[R] B}, f = g ↔ f Polynomial.X = g Polynomial.X
theorem Polynomial.aeval_def E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A)
(p : Polynomial R), (Polynomial.aeval x) p = Polynomial.eval₂ (algebraMap R A) x p
theorem Polynomial.eval_map_algebraMap E0 #
∀ {R : Type u} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring B] [inst_2 : Algebra R B] (P : Polynomial R)
(b : B), Polynomial.eval b (Polynomial.map (algebraMap R B) P) = (Polynomial.aeval b) P
theorem Polynomial.mapAlg_eq_map E1 #
∀ {R : Type u} [inst : CommSemiring R] (S : Type v) [inst_1 : Semiring S] [inst_2 : Algebra R S] (p : Polynomial R),
(Polynomial.mapAlg R S) p = Polynomial.map (algebraMap R S) p
mapAlg is the morphism induced by R → S.
theorem Polynomial.aeval_zero E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A),
(Polynomial.aeval x) 0 = 0
theorem Polynomial.aeval_X E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A),
(Polynomial.aeval x) Polynomial.X = x
theorem Polynomial.aeval_C E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A) (r : R),
(Polynomial.aeval x) (Polynomial.C r) = (algebraMap R A) r
theorem Polynomial.aeval_monomial E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A) {n : ℕ}
{r : R}, (Polynomial.aeval x) ((Polynomial.monomial n) r) = (algebraMap R A) r * x ^ n
theorem Polynomial.aeval_X_pow E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A) {n : ℕ},
(Polynomial.aeval x) (Polynomial.X ^ n) = x ^ n
theorem Polynomial.aeval_add E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {p q : Polynomial R}
(x : A), (Polynomial.aeval x) (p + q) = (Polynomial.aeval x) p + (Polynomial.aeval x) q
theorem Polynomial.aeval_one E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A),
(Polynomial.aeval x) 1 = 1
theorem Polynomial.aeval_natCast E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A) (n : ℕ),
(Polynomial.aeval x) ↑n = ↑n
theorem Polynomial.aeval_mul E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {p q : Polynomial R}
(x : A), (Polynomial.aeval x) (p * q) = (Polynomial.aeval x) p * (Polynomial.aeval x) q
theorem Polynomial.comp_eq_aeval E1 #
∀ {R : Type u} [inst : CommSemiring R] {p q : Polynomial R}, p.comp q = (Polynomial.aeval q) p
theorem Polynomial.aeval_comp E1 #
∀ {R : Type u} [inst : CommSemiring R] {p q : Polynomial R} {A : Type u_3} [inst_1 : Semiring A] [inst_2 : Algebra R A]
(x : A), (Polynomial.aeval x) (p.comp q) = (Polynomial.aeval ((Polynomial.aeval x) q)) p
theorem Polynomial.aeval_dvd E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {p q : Polynomial R}
(x : A), p ∣ q → (Polynomial.aeval x) p ∣ (Polynomial.aeval x) q
theorem Polynomial.mapAlg_comp E1 #
∀ {A : Type u_3} (B : Type u_4) (C : Type u_5) [inst : CommSemiring A] [inst_1 : CommSemiring B] [inst_2 : Semiring C]
[inst_3 : Algebra A B] [inst_4 : Algebra A C] [inst_5 : Algebra B C] [IsScalarTower A B C] (p : Polynomial A),
(Polynomial.mapAlg A C) p = (Polynomial.mapAlg B C) ((Polynomial.mapAlg A B) p)
theorem Polynomial.coeff_zero_of_isScalarTower E1 #
∀ {A : Type u_3} (B : Type u_4) (C : Type u_5) [inst : CommSemiring A] [inst_1 : CommSemiring B] [inst_2 : Semiring C]
[inst_3 : Algebra A B] [inst_4 : Algebra A C] [inst_5 : Algebra B C] [IsScalarTower A B C] (p : Polynomial A),
(algebraMap B C) ((algebraMap A B) (p.coeff 0)) = ((Polynomial.mapAlg A C) p).coeff 0
def Polynomial.algEquivOfCompEqX E1 #
{R : Type u} →
[inst : CommSemiring R] →
(p q : Polynomial R) → p.comp q = Polynomial.X → q.comp p = Polynomial.X → Polynomial R ≃ₐ[R] Polynomial R
Two polynomials p and q such that p(q(X))=X and q(p(X))=X
induces an automorphism of the polynomial algebra.
theorem Polynomial.algEquivOfCompEqX_apply E0 #
∀ {R : Type u} [inst : CommSemiring R] (p q : Polynomial R) (hpq : p.comp q = Polynomial.X)
(hqp : q.comp p = Polynomial.X) (a : Polynomial R), (p.algEquivOfCompEqX q hpq hqp) a = (Polynomial.aeval p) a
theorem Polynomial.algEquivOfCompEqX_eq_iff E0 #
∀ {R : Type u} [inst : CommSemiring R] (p q p' q' : Polynomial R) (hpq : p.comp q = Polynomial.X)
(hqp : q.comp p = Polynomial.X) (hpq' : p'.comp q' = Polynomial.X) (hqp' : q'.comp p' = Polynomial.X),
p.algEquivOfCompEqX q hpq hqp = p'.algEquivOfCompEqX q' hpq' hqp' ↔ p = p'
theorem Polynomial.algEquivOfCompEqX_symm E0 #
∀ {R : Type u} [inst : CommSemiring R] (p q : Polynomial R) (hpq : p.comp q = Polynomial.X)
(hqp : q.comp p = Polynomial.X), (p.algEquivOfCompEqX q hpq hqp).symm = q.algEquivOfCompEqX p hqp hpq
def Polynomial.algEquivCMulXAddC E1 #
{R : Type u_3} → [inst : CommRing R] → (a : R) → R → [Invertible a] → Polynomial R ≃ₐ[R] Polynomial R
The automorphism of the polynomial algebra given by p(X) ↦ p(a * X + b),
with inverse p(X) ↦ p(a⁻¹ * (X - b)).
theorem Polynomial.algEquivCMulXAddC_apply E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : R) [inst_1 : Invertible a] (a_1 : Polynomial R),
(Polynomial.algEquivCMulXAddC a b) a_1 = (Polynomial.aeval (Polynomial.C a * Polynomial.X + Polynomial.C b)) a_1
theorem Polynomial.algEquivCMulXAddC_symm_apply E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : R) [inst_1 : Invertible a] (a_1 : Polynomial R),
(Polynomial.algEquivCMulXAddC a b).symm a_1 =
(Polynomial.aeval (Polynomial.C ⅟a * (Polynomial.X - Polynomial.C b))) a_1
theorem Polynomial.algEquivCMulXAddC_symm_eq E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : R) [inst_1 : Invertible a],
(Polynomial.algEquivCMulXAddC a b).symm = Polynomial.algEquivCMulXAddC (⅟a) (-⅟a * b)
def Polynomial.algEquivAevalXAddC E1 #
{R : Type u_3} → [inst : CommRing R] → R → Polynomial R ≃ₐ[R] Polynomial R
The automorphism of the polynomial algebra given by p(X) ↦ p(X+t),
with inverse p(X) ↦ p(X-t).
theorem Polynomial.algEquivAevalXAddC_apply E0 #
∀ {R : Type u_3} [inst : CommRing R] (t : R) (a : Polynomial R),
(Polynomial.algEquivAevalXAddC t) a = (Polynomial.aeval (Polynomial.X + Polynomial.C t)) a
theorem Polynomial.algEquivAevalXAddC_eq_iff E0 #
∀ {R : Type u_3} [inst : CommRing R] (t t' : R),
Polynomial.algEquivAevalXAddC t = Polynomial.algEquivAevalXAddC t' ↔ t = t'
theorem Polynomial.algEquivAevalXAddC_symm E0 #
∀ {R : Type u_3} [inst : CommRing R] (t : R),
(Polynomial.algEquivAevalXAddC t).symm = Polynomial.algEquivAevalXAddC (-t)
def Polynomial.algEquivAevalNegX E1 #
{R : Type u_3} → [inst : CommRing R] → Polynomial R ≃ₐ[R] Polynomial R
The involutive automorphism of the polynomial algebra given by p(X) ↦ p(-X).
theorem Polynomial.algEquivAevalNegX_symm_apply E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Polynomial R),
Polynomial.algEquivAevalNegX.symm a = (Polynomial.aeval (-Polynomial.X)) a
theorem Polynomial.algEquivAevalNegX_apply E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Polynomial R),
Polynomial.algEquivAevalNegX a = (Polynomial.aeval (-Polynomial.X)) a
theorem Polynomial.comp_neg_X_comp_neg_X E1 #
∀ {R : Type u_3} [inst : CommRing R] (p : Polynomial R), (p.comp (-Polynomial.X)).comp (-Polynomial.X) = p
theorem Polynomial.aeval_algHom E1 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A →ₐ[R] B) (x : A),
Polynomial.aeval (f x) = f.comp (Polynomial.aeval x)
theorem Polynomial.aeval_X_left E0 #
∀ {R : Type u} [inst : CommSemiring R], Polynomial.aeval Polynomial.X = AlgHom.id R (Polynomial R)
theorem Polynomial.aeval_X_left_apply E0 #
∀ {R : Type u} [inst : CommSemiring R] (p : Polynomial R), (Polynomial.aeval Polynomial.X) p = p
theorem Polynomial.aeval_X_left_eq_map E1 #
∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] (p : Polynomial R),
(Polynomial.aeval Polynomial.X) p = Polynomial.map (algebraMap R S) p
theorem Polynomial.eval_unique E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
(φ : Polynomial R →ₐ[R] A) (p : Polynomial R), φ p = Polynomial.eval₂ (algebraMap R A) (φ Polynomial.X) p
theorem Polynomial.aeval_algHom_apply E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] {F : Type u_3} [inst_5 : FunLike F A B] [AlgHomClass F R A B] (f : F)
(x : A) (p : Polynomial R), (Polynomial.aeval (f x)) p = f ((Polynomial.aeval x) p)
theorem Polynomial.aeval_op_apply E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : A)
(p : Polynomial R), (Polynomial.aeval (MulOpposite.op x)) p = MulOpposite.op ((Polynomial.aeval x) p)
theorem Polynomial.aeval_smul E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (f : Polynomial R)
{G : Type u_3} [inst_3 : Monoid G] [inst_4 : MulSemiringAction G A] [SMulCommClass G R A] (g : G) (x : A),
(Polynomial.aeval (g • x)) f = g • (Polynomial.aeval x) f
theorem Polynomial.coe_aeval_mk_apply E0 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] {p : Polynomial R}
(x : A) {S : Subalgebra R A} (h : x ∈ S), ↑((Polynomial.aeval ⟨x, h⟩) p) = (Polynomial.aeval x) p
theorem Polynomial.aeval_algEquiv E1 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (f : A ≃ₐ[R] B) (x : A),
Polynomial.aeval (f x) = (↑f).comp (Polynomial.aeval x)
theorem Polynomial.aeval_algebraMap_apply_eq_algebraMap_eval E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (x : R)
(p : Polynomial R), (Polynomial.aeval ((algebraMap R A) x)) p = (algebraMap R A) (Polynomial.eval x p)
theorem Polynomial.aeval_prod E1 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (x : A × B),
Polynomial.aeval x = (Polynomial.aeval x.1).prod (Polynomial.aeval x.2)
Polynomial evaluation on a pair is a product of the evaluations on the components.
theorem Polynomial.aeval_prod_apply E0 #
∀ {R : Type u} {A : Type z} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] (x : A × B) (p : Polynomial R),
(Polynomial.aeval x) p = ((Polynomial.aeval x.1) p, (Polynomial.aeval x.2) p)
Polynomial evaluation on a pair is a pair of evaluations.
theorem Polynomial.aeval_pi E1 #
∀ {R : Type u} [inst : CommSemiring R] {I : Type u_3} {A : I → Type u_4} [inst_1 : (i : I) → Semiring (A i)]
[inst_2 : (i : I) → Algebra R (A i)] (x : (i : I) → A i),
Polynomial.aeval x = AlgHom.pi fun i ↦ Polynomial.aeval (x i)
Polynomial evaluation on an indexed tuple is the indexed product of the evaluations
on the components.
Generalizes Polynomial.aeval_prod to indexed products.
theorem Polynomial.aeval_pi_apply₂ E1 #
∀ {R : Type u} [inst : CommSemiring R] {I : Type u_3} {A : I → Type u_4} [inst_1 : (i : I) → Semiring (A i)]
[inst_2 : (i : I) → Algebra R (A i)] (x : (i : I) → A i) (p : Polynomial R) (j : I),
(Polynomial.aeval x) p j = (Polynomial.aeval (x j)) p
theorem Polynomial.aeval_pi_apply E0 #
∀ {R : Type u} [inst : CommSemiring R] {I : Type u_3} {A : I → Type u_4} [inst_1 : (i : I) → Semiring (A i)]
[inst_2 : (i : I) → Algebra R (A i)] (x : (i : I) → A i) (p : Polynomial R),
(Polynomial.aeval x) p = fun j ↦ (Polynomial.aeval (x j)) p
Polynomial evaluation on an indexed tuple is the indexed tuple of the evaluations
on the components.
Generalizes Polynomial.aeval_prod_apply to indexed products.
theorem Polynomial.coe_aeval_eq_eval E0 #
∀ {R : Type u} [inst : CommSemiring R] (r : R), ⇑(Polynomial.aeval r) = Polynomial.eval r
theorem Polynomial.coe_aeval_eq_evalRingHom E0 #
∀ {R : Type u} [inst : CommSemiring R] (x : R), ↑(Polynomial.aeval x) = Polynomial.evalRingHom x
theorem Polynomial.aeval_fn_apply E0 #
∀ {R : Type u} [inst : CommSemiring R] {X : Type u_3} (g : Polynomial R) (f : X → R) (x : X),
(Polynomial.aeval f) g x = (Polynomial.aeval (f x)) g
theorem Polynomial.aeval_subalgebra_coe E0 #
∀ {R : Type u} [inst : CommSemiring R] (g : Polynomial R) {A : Type u_3} [inst_1 : Semiring A] [inst_2 : Algebra R A]
(s : Subalgebra R A) (f : ↥s), ↑((Polynomial.aeval f) g) = (Polynomial.aeval ↑f) g
theorem Polynomial.coeff_zero_eq_aeval_zero E1 #
∀ {R : Type u} [inst : CommSemiring R] (p : Polynomial R), p.coeff 0 = (Polynomial.aeval 0) p
theorem Polynomial.coeff_zero_eq_aeval_zero' E1 #
∀ {R : Type u} {A : Type z} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (p : Polynomial R),
(algebraMap R A) (p.coeff 0) = (Polynomial.aeval 0) p
theorem Polynomial.map_aeval_eq_aeval_map E0 #
∀ {R : Type u} [inst : CommSemiring R] {S : Type u_3} {T : Type u_4} {U : Type u_5} [inst_1 : Semiring S]
[inst_2 : CommSemiring T] [inst_3 : Semiring U] [inst_4 : Algebra R S] [inst_5 : Algebra T U] {φ : R →+* T}
{ψ : S →+* U},
(algebraMap T U).comp φ = ψ.comp (algebraMap R S) →
∀ (p : Polynomial R) (a : S), ψ ((Polynomial.aeval a) p) = (Polynomial.aeval (ψ a)) (Polynomial.map φ p)
theorem Polynomial.aeval_eq_aeval_map E1 #
∀ {R : Type u} {S : Type v} {T : Type w} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : CommSemiring T]
[inst_3 : Algebra R S] [inst_4 : Algebra T S] {φ : R →+* T},
(algebraMap T S).comp φ = algebraMap R S →
∀ (p : Polynomial R) (a : S), (Polynomial.aeval a) p = (Polynomial.aeval a) (Polynomial.map φ p)
theorem Polynomial.aeval_eq_zero_of_dvd_aeval_eq_zero E1 #
∀ {R : Type u} {B : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring B] [inst_2 : Algebra R B] {p q : Polynomial R}
{x : B}, p ∣ q → (Polynomial.aeval x) p = 0 → (Polynomial.aeval x) q = 0
theorem Polynomial.comp_X_add_C_eq_zero_iff E0 #
∀ {S : Type v} [inst : Semiring S] {p : Polynomial S} {t : S}, p.comp (Polynomial.X + Polynomial.C t) = 0 ↔ p = 0
theorem Polynomial.comp_X_add_C_ne_zero_iff E0 #
∀ {S : Type v} [inst : Semiring S] {p : Polynomial S} {t : S}, p.comp (Polynomial.X + Polynomial.C t) ≠ 0 ↔ p ≠ 0
theorem Polynomial.aeval_eq_sum_range E1 #
∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {p : Polynomial R}
(x : S), (Polynomial.aeval x) p = ∑ i ∈ Finset.range (p.natDegree + 1), p.coeff i • x ^ i
theorem Polynomial.aeval_eq_sum_range' E1 #
∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] {p : Polynomial R}
{n : ℕ}, p.natDegree < n → ∀ (x : S), (Polynomial.aeval x) p = ∑ i ∈ Finset.range n, p.coeff i • x ^ i
theorem Polynomial.isRoot_of_eval₂_map_eq_zero E1 #
∀ {R : Type u} {S : Type v} [inst : CommSemiring R] {p : Polynomial R} [inst_1 : Semiring S] {f : R →+* S},
Function.Injective ⇑f → ∀ {r : R}, Polynomial.eval₂ f (f r) p = 0 → p.IsRoot r
theorem Polynomial.isRoot_of_aeval_algebraMap_eq_zero E1 #
∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S] [FaithfulSMul R S]
{p : Polynomial R} {r : R}, (Polynomial.aeval ((algebraMap R S) r)) p = 0 → p.IsRoot r
def Polynomial.aevalTower E1 #
{R : Type u} →
{S : Type v} →
{A' : Type u_1} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring A'] →
[inst_2 : CommSemiring S] →
[inst_3 : Algebra S R] → [inst_4 : Algebra S A'] → (R →ₐ[S] A') → A' → Polynomial R →ₐ[S] A'
Version of aeval for defining algebra homs out of R[X] over a smaller base ring
than R.
theorem Polynomial.aevalTower_X E0 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A'), (Polynomial.aevalTower g y) Polynomial.X = y
theorem Polynomial.aevalTower_C E0 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A') (x : R),
(Polynomial.aevalTower g y) (Polynomial.C x) = g x
theorem Polynomial.aevalTower_comp_C E0 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A'),
(↑(Polynomial.aevalTower g y)).comp Polynomial.C = ↑g
theorem Polynomial.aevalTower_algebraMap E1 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A') (x : R),
(Polynomial.aevalTower g y) ((algebraMap R (Polynomial R)) x) = g x
theorem Polynomial.aevalTower_comp_algebraMap E1 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A'),
(↑(Polynomial.aevalTower g y)).comp (algebraMap R (Polynomial R)) = ↑g
theorem Polynomial.aevalTower_toAlgHom E1 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A') (x : R),
(Polynomial.aevalTower g y) ((IsScalarTower.toAlgHom S R (Polynomial R)) x) = g x
theorem Polynomial.aevalTower_comp_toAlgHom E0 #
∀ {R : Type u} {S : Type v} {A' : Type u_1} [inst : CommSemiring R] [inst_1 : CommSemiring A'] [inst_2 : CommSemiring S]
[inst_3 : Algebra S R] [inst_4 : Algebra S A'] (g : R →ₐ[S] A') (y : A'),
(Polynomial.aevalTower g y).comp (IsScalarTower.toAlgHom S R (Polynomial R)) = g
theorem Polynomial.aevalTower_id E0 #
∀ {S : Type v} [inst : CommSemiring S], Polynomial.aevalTower (AlgHom.id S S) = Polynomial.aeval
theorem Polynomial.aevalTower_ofId E0 #
∀ {S : Type v} {A' : Type u_1} [inst : CommSemiring A'] [inst_1 : CommSemiring S] [inst_2 : Algebra S A'],
Polynomial.aevalTower (Algebra.ofId S A') = Polynomial.aeval
theorem Polynomial.X_pow_smul_rTensor_monomial E1 #
∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] [inst_2 : Algebra R S] {N : Type u_3}
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (k : ℕ) (sn : TensorProduct R S N),
Polynomial.X ^ k • (LinearMap.rTensor N (↑R (Polynomial.monomial 0))) sn =
(LinearMap.rTensor N (↑R (Polynomial.monomial k))) sn
theorem Polynomial.dvd_term_of_dvd_eval_of_dvd_terms E1 #
∀ {S : Type v} [inst : CommRing S] {z p : S} {f : Polynomial S} (i : ℕ),
p ∣ Polynomial.eval z f → (∀ (j : ℕ), j ≠ i → p ∣ f.coeff j * z ^ j) → p ∣ f.coeff i * z ^ i
theorem Polynomial.dvd_term_of_isRoot_of_dvd_terms E1 #
∀ {S : Type v} [inst : CommRing S] {r p : S} {f : Polynomial S} (i : ℕ),
f.IsRoot r → (∀ (j : ℕ), j ≠ i → p ∣ f.coeff j * r ^ j) → p ∣ f.coeff i * r ^ i
theorem Polynomial.eval_mul_X_sub_C E2 #
∀ {R : Type u} [inst : Ring R] {p : Polynomial R} (r : R), Polynomial.eval r (p * (Polynomial.X - Polynomial.C r)) = 0
The evaluation map is not generally multiplicative when the coefficient ring is noncommutative,
but nevertheless any polynomial of the form p * (X - C r) is sent to zero when evaluated at r.
This is the key step in our proof of the Cayley-Hamilton theorem.
theorem Polynomial.not_isUnit_X_sub_C E1 #
∀ {R : Type u} [inst : Ring R] [Nontrivial R] (r : R), ¬IsUnit (Polynomial.X - Polynomial.C r)
theorem Polynomial.aeval_neg E0 #
∀ {R : Type u} {A : Type z} [inst : CommRing R] {p : Polynomial R} [inst_1 : Ring A] [inst_2 : Algebra R A] (x : A),
(Polynomial.aeval x) (-p) = -(Polynomial.aeval x) p
theorem Polynomial.aeval_sub E0 #
∀ {R : Type u} {A : Type z} [inst : CommRing R] {p q : Polynomial R} [inst_1 : Ring A] [inst_2 : Algebra R A] (x : A),
(Polynomial.aeval x) (p - q) = (Polynomial.aeval x) p - (Polynomial.aeval x) q
theorem Polynomial.aeval_endomorphism E1 #
∀ {R : Type u} [inst : CommRing R] {M : Type u_3} [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M →ₗ[R] M)
(v : M) (p : Polynomial R), ((Polynomial.aeval f) p) v = p.sum fun n b ↦ b • (f ^ n) v
theorem Polynomial.X_sub_C_pow_dvd_iff E0 #
∀ {R : Type u} [inst : CommRing R] {p : Polynomial R} {t : R} {n : ℕ},
(Polynomial.X - Polynomial.C t) ^ n ∣ p ↔ Polynomial.X ^ n ∣ p.comp (Polynomial.X + Polynomial.C t)
theorem Polynomial.dvd_comp_C_mul_X_add_C_iff E0 #
∀ {R : Type u} [inst : CommRing R] (p q : Polynomial R) (a b : R) [inst_1 : Invertible a],
p ∣ q.comp (Polynomial.C a * Polynomial.X + Polynomial.C b) ↔
p.comp (Polynomial.C ⅟a * (Polynomial.X - Polynomial.C b)) ∣ q
theorem Polynomial.dvd_comp_X_sub_C_iff E0 #
∀ {R : Type u} [inst : CommRing R] (p q : Polynomial R) (a : R),
p ∣ q.comp (Polynomial.X - Polynomial.C a) ↔ p.comp (Polynomial.X + Polynomial.C a) ∣ q
theorem Polynomial.dvd_comp_X_add_C_iff E0 #
∀ {R : Type u} [inst : CommRing R] (p q : Polynomial R) (a : R),
p ∣ q.comp (Polynomial.X + Polynomial.C a) ↔ p.comp (Polynomial.X - Polynomial.C a) ∣ q
theorem Polynomial.dvd_comp_neg_X_iff E0 #
∀ {R : Type u} [inst : CommRing R] (p q : Polynomial R), p ∣ q.comp (-Polynomial.X) ↔ p.comp (-Polynomial.X) ∣ q
theorem Polynomial.units_coeff_zero_smul E1 #
∀ {R : Type u} [inst : CommRing R] [IsDomain R] (c : (Polynomial R)ˣ) (p : Polynomial R), (↑c).coeff 0 • p = ↑c * p
theorem Polynomial.aeval_apply_smul_mem_of_le_comap' E1 #
∀ {R : Type u} {A : Type z} {M : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{q : Submodule R M} {m : M} [inst_3 : Semiring A] [inst_4 : Algebra R A] [inst_5 : Module A M]
[inst_6 : IsScalarTower R A M],
m ∈ q → ∀ (p : Polynomial R) (a : A), q ≤ Submodule.comap ((Algebra.lsmul R R M) a) q → (Polynomial.aeval a) p • m ∈ q
theorem Polynomial.aeval_apply_smul_mem_of_le_comap E1 #
∀ {R : Type u} {M : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{q : Submodule R M} {m : M},
m ∈ q → ∀ (p : Polynomial R) (f : Module.End R M), q ≤ Submodule.comap f q → ((Polynomial.aeval f) p) m ∈ q
theorem Polynomial.notMem_nonZeroDivisors_iff E0 #
∀ {R : Type u} [inst : CommSemiring R] {P : Polynomial R}, P ∉ nonZeroDivisors (Polynomial R) ↔ ∃ a, a ≠ 0 ∧ a • P = 0
McCoy theorem: a polynomial P : R[X] is a zerodivisor if and only if there is a : R
such that a ≠ 0 and a • P = 0.
theorem Polynomial.mem_nonZeroDivisors_iff E0 #
∀ {R : Type u} [inst : CommSemiring R] {P : Polynomial R},
P ∈ nonZeroDivisors (Polynomial R) ↔ ∀ (a : R), a • P = 0 → a = 0
theorem Polynomial.mem_nonZeroDivisors_of_coeff_mem E0 #
∀ {R : Type u} [inst : CommSemiring R] {p : Polynomial R} (n : ℕ),
p.coeff n ∈ nonZeroDivisors R → p ∈ nonZeroDivisors (Polynomial R)
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Polynomial.X_mem_nonzeroDivisors | Polynomial.X_mem_nonZeroDivisors | 2026-09-28 |
Polynomial.mapAlgEquiv_coe_ringHom | Polynomial.toRingHom_mapAlgEquiv | 2026-05-05 |
Polynomial.mapAlgHom_coe_ringHom | Polynomial.toRingHom_mapAlgHom | 2026-05-05 |
Polynomial.mem_nonzeroDivisors_of_coeff_mem | Polynomial.mem_nonZeroDivisors_of_coeff_mem | 2026-09-28 |
Polynomial.ofFinsupp_algebraMap | 2026-07-18 | |
Polynomial.toFinsuppIsoAlg | 2026-07-18 | |
Polynomial.toFinsuppIsoAlg_apply | 2026-07-18 | |
Polynomial.toFinsuppIsoAlg_symm_apply | 2026-07-18 | |
Polynomial.toFinsuppIsoAlg_symm_apply_toFinsupp | 2026-10-25 | |
Polynomial.toFinsupp_algebraMap | 2026-07-18 |