The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.Polynomial.Eval.Coeff

32 declarations. Mathlib docs · Source

theorem Polynomial.eval₂_at_zero E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] (f : R →+* S),
  Polynomial.eval₂ f 0 p = f (p.coeff 0)

theorem Polynomial.eval₂_C_X E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, Polynomial.eval₂ Polynomial.C Polynomial.X p = p

theorem Polynomial.coeff_zero_eq_eval_zero E1 #

∀ {R : Type u} [inst : Semiring R] (p : Polynomial R), p.coeff 0 = Polynomial.eval 0 p

theorem Polynomial.zero_isRoot_iff_coeff_zero_eq_zero E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.IsRoot 0 ↔ p.coeff 0 = 0

theorem Polynomial.zero_isRoot_of_coeff_zero_eq_zero E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.coeff 0 = 0 → p.IsRoot 0

Alias of the reverse direction of Polynomial.zero_isRoot_iff_coeff_zero_eq_zero.

theorem Polynomial.coeff_zero_eq_zero_of_zero_isRoot E1 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, p.IsRoot 0 → p.coeff 0 = 0

Alias of the forward direction of Polynomial.zero_isRoot_iff_coeff_zero_eq_zero.

theorem Polynomial.coeff_map E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] (f : R →+* S) (n : ℕ),
  (Polynomial.map f p).coeff n = f (p.coeff n)

theorem Polynomial.coeff_map_eq_comp E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (p : Polynomial R) (f : R →+* S),
  ⇑(Polynomial.map f p).coeff = ⇑f ∘ ⇑p.coeff

theorem Polynomial.map_map E0 #

∀ {R : Type u} {S : Type v} {T : Type w} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) [inst_2 : Semiring T]
  (g : S →+* T) (p : Polynomial R), Polynomial.map g (Polynomial.map f p) = Polynomial.map (g.comp f) p

theorem Polynomial.map_id E0 #

∀ {R : Type u} [inst : Semiring R] {p : Polynomial R}, Polynomial.map (RingHom.id R) p = p

def Polynomial.piEquiv E1 #

{ι : Type u_2} →
  [Finite ι] →
    (R : ι → Type u_1) → [inst : (i : ι) → Semiring (R i)] → Polynomial ((i : ι) → R i) ≃+* ((i : ι) → Polynomial (R i))

The polynomial ring over a finite product of rings is isomorphic to the product of polynomial rings over individual rings.

theorem Polynomial.map_injective E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S),
  Function.Injective ⇑f → Function.Injective (Polynomial.map f)

theorem Polynomial.map_injective_iff E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S),
  Function.Injective (Polynomial.map f) ↔ Function.Injective ⇑f

theorem Polynomial.map_surjective E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S),
  Function.Surjective ⇑f → Function.Surjective (Polynomial.map f)

theorem Polynomial.map_surjective_iff E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S),
  Function.Surjective (Polynomial.map f) ↔ Function.Surjective ⇑f

theorem Polynomial.map_eq_zero_iff E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] {f : R →+* S},
  Function.Injective ⇑f → (Polynomial.map f p = 0 ↔ p = 0)

theorem Polynomial.map_ne_zero_iff E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] {f : R →+* S},
  Function.Injective ⇑f → (Polynomial.map f p ≠ 0 ↔ p ≠ 0)

theorem Polynomial.mapRingHom_id E0 #

∀ {R : Type u} [inst : Semiring R], Polynomial.mapRingHom (RingHom.id R) = RingHom.id (Polynomial R)

theorem Polynomial.mapRingHom_comp E0 #

∀ {R : Type u} {S : Type v} {T : Type w} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Semiring T] (f : S →+* T)
  (g : R →+* S), (Polynomial.mapRingHom f).comp (Polynomial.mapRingHom g) = Polynomial.mapRingHom (f.comp g)

theorem Polynomial.eval₂_map E1 #

∀ {R : Type u} {S : Type v} {T : Type w} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] (f : R →+* S)
  [inst_2 : Semiring T] (g : S →+* T) (x : T),
  Polynomial.eval₂ g x (Polynomial.map f p) = Polynomial.eval₂ (g.comp f) x p

theorem Polynomial.eval_zero_map E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (p : Polynomial R),
  Polynomial.eval 0 (Polynomial.map f p) = f (Polynomial.eval 0 p)

theorem Polynomial.eval_one_map E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (p : Polynomial R),
  Polynomial.eval 1 (Polynomial.map f p) = f (Polynomial.eval 1 p)

theorem Polynomial.eval_natCast_map E0 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (p : Polynomial R) (n : ℕ),
  Polynomial.eval (↑n) (Polynomial.map f p) = f (Polynomial.eval (↑n) p)

theorem Polynomial.eval_intCast_map E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (p : Polynomial R) (i : ℤ),
  Polynomial.eval (↑i) (Polynomial.map f p) = f (Polynomial.eval (↑i) p)

theorem Polynomial.hom_eval₂ E1 #

∀ {R : Type u} {S : Type v} {T : Type w} [inst : Semiring R] (p : Polynomial R) [inst_1 : Semiring S]
  [inst_2 : Semiring T] (f : R →+* S) (g : S →+* T) (x : S),
  g (Polynomial.eval₂ f x p) = Polynomial.eval₂ (g.comp f) (g x) p

theorem Polynomial.eval₂_hom E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] {p : Polynomial R} [inst_1 : Semiring S] (f : R →+* S) (x : R),
  Polynomial.eval₂ f (f x) p = f (Polynomial.eval x p)

theorem Polynomial.evalRingHom_zero E1 #

Polynomial.evalRingHom 0 = Polynomial.constantCoeff

theorem Polynomial.support_map_subset E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (p : Polynomial R),
  (Polynomial.map f p).support ⊆ p.support

theorem Polynomial.support_map_of_injective E1 #

∀ {R : Type u} {S : Type v} [inst : Semiring R] [inst_1 : Semiring S] (p : Polynomial R) {f : R →+* S},
  Function.Injective ⇑f → (Polynomial.map f p).support = p.support

theorem Polynomial.IsRoot.map E1 #

∀ {R : Type u} {S : Type v} [inst : CommSemiring R] [inst_1 : CommSemiring S] (f : R →+* S) {x : R} {p : Polynomial R},
  p.IsRoot x → (Polynomial.map f p).IsRoot (f x)

theorem Polynomial.IsRoot.of_map E1 #

∀ {S : Type v} [inst : CommSemiring S] {R : Type u_1} [inst_1 : Ring R] {f : R →+* S} {x : R} {p : Polynomial R},
  (Polynomial.map f p).IsRoot (f x) → Function.Injective ⇑f → p.IsRoot x

theorem Polynomial.isRoot_map_iff E0 #

∀ {S : Type v} [inst : CommSemiring S] {R : Type u_1} [inst_1 : CommRing R] {f : R →+* S} {x : R} {p : Polynomial R},
  Function.Injective ⇑f → ((Polynomial.map f p).IsRoot (f x) ↔ p.IsRoot x)