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.RingTheory.Polynomial.SmallDegreeVieta

4 declarations. Mathlib docs · Source

theorem Polynomial.roots_quadratic_eq_pair_iff_of_ne_zero E2 #

∀ {R : Type u_1} [inst : CommRing R] [inst_1 : IsDomain R] {a b c x1 x2 : R},
  a ≠ 0 →
    ((Polynomial.C a * Polynomial.X ^ 2 + Polynomial.C b * Polynomial.X + Polynomial.C c).roots = {x1, x2} ↔
      b = -a * (x1 + x2) ∧ c = a * x1 * x2)

Vieta's formula for quadratics as an iff.

theorem Polynomial.aroots_quadratic_eq_pair_iff_of_ne_zero E2 #

∀ {T : Type u_2} {S : Type u_3} [inst : CommRing T] [inst_1 : CommRing S] [inst_2 : IsDomain S] [inst_3 : Algebra T S]
  {a b c : T} {x1 x2 : S},
  (algebraMap T S) a ≠ 0 →
    ((Polynomial.C a * Polynomial.X ^ 2 + Polynomial.C b * Polynomial.X + Polynomial.C c).aroots S = {x1, x2} ↔
      (algebraMap T S) b = -(algebraMap T S) a * (x1 + x2) ∧ (algebraMap T S) c = (algebraMap T S) a * x1 * x2)

Vieta's formula for quadratics as an iff (aroots version).

theorem Polynomial.roots_quadratic_eq_pair_iff_of_ne_zero' E2 #

∀ {R : Type u_1} [inst : Field R] {a b c x1 x2 : R},
  a ≠ 0 →
    ((Polynomial.C a * Polynomial.X ^ 2 + Polynomial.C b * Polynomial.X + Polynomial.C c).roots = {x1, x2} ↔
      x1 + x2 = -b / a ∧ x1 * x2 = c / a)

Vieta's formula for quadratics as an iff (Field version).

theorem Polynomial.aroots_quadratic_eq_pair_iff_of_ne_zero' E2 #

∀ {T : Type u_2} {S : Type u_3} [inst : CommRing T] [inst_1 : Field S] [inst_2 : Algebra T S] {a b c : T} {x1 x2 : S},
  (algebraMap T S) a ≠ 0 →
    ((Polynomial.C a * Polynomial.X ^ 2 + Polynomial.C b * Polynomial.X + Polynomial.C c).aroots S = {x1, x2} ↔
      x1 + x2 = -(algebraMap T S) b / (algebraMap T S) a ∧ x1 * x2 = (algebraMap T S) c / (algebraMap T S) a)

Vieta's formula for quadratics as an iff (aroots, Field version).