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 / V11. Fields and Galois theory

Mathlib.Algebra.CubicDiscriminant

108 declarations. Mathlib docs · Source

Cubics and discriminants

This file defines cubic polynomials over a semiring and their discriminants over a splitting field.

Main definitions

  • Cubic: the structure representing a cubic polynomial.
  • Cubic.discr: the discriminant of a cubic polynomial.

Main statements

  • Cubic.discr_ne_zero_iff_roots_nodup: the cubic discriminant is not equal to zero if and only if the cubic has no duplicate roots.

References

  • https://en.wikipedia.org/wiki/Cubic_equation
  • https://en.wikipedia.org/wiki/Discriminant

Tags

cubic, discriminant, polynomial, root

Coefficients

Degrees

Map across a homomorphism

Roots over an extension

Roots over a splitting field

Discriminant over a splitting field

def Cubic.ctorIdx E1 #

{R : Type u_1} → Cubic R → ℕ

theorem Cubic.mk.injEq E0 #

∀ {R : Type u_1} (a b c d a_1 b_1 c_1 d_1 : R),
  ({ a := a, b := b, c := c, d := d } = { a := a_1, b := b_1, c := c_1, d := d_1 }) =
    (a = a_1 ∧ b = b_1 ∧ c = c_1 ∧ d = d_1)

theorem Cubic.mk.inj E1 #

∀ {R : Type u_1} {a b c d a_1 b_1 c_1 d_1 : R},
  { a := a, b := b, c := c, d := d } = { a := a_1, b := b_1, c := c_1, d := d_1 } →
    a = a_1 ∧ b = b_1 ∧ c = c_1 ∧ d = d_1

structure Cubic E3 #

Type u_1 → Type u_1

The structure representing a cubic polynomial.

theorem Cubic.ext_iff E0 #

∀ {R : Type u_1} {x y : Cubic R}, x = y ↔ x.a = y.a ∧ x.b = y.b ∧ x.c = y.c ∧ x.d = y.d

theorem Cubic.ext E1 #

∀ {R : Type u_1} {x y : Cubic R}, x.a = y.a → x.b = y.b → x.c = y.c → x.d = y.d → x = y

ctor Cubic.mk E0 #

{R : Type u_1} → R → R → R → R → Cubic R

abbrev Cubic.a E1 #

{R : Type u_1} → Cubic R → R

The degree-3 coefficient

abbrev Cubic.b E1 #

{R : Type u_1} → Cubic R → R

The degree-2 coefficient

abbrev Cubic.c E1 #

{R : Type u_1} → Cubic R → R

The degree-1 coefficient

abbrev Cubic.d E1 #

{R : Type u_1} → Cubic R → R

The degree-0 coefficient

instance Cubic.instInhabited E0 #

{R : Type u_1} → [Inhabited R] → Inhabited (Cubic R)

instance Cubic.instZero E0 #

{R : Type u_1} → [Zero R] → Zero (Cubic R)

def Cubic.toPoly E1 #

{R : Type u_1} → [inst : Semiring R] → Cubic R → Polynomial R

Convert a cubic polynomial to a polynomial.

theorem Cubic.C_mul_prod_X_sub_C_eq E0 #

∀ {S : Type u_2} [inst : CommRing S] {w x y z : S},
  Polynomial.C w * (Polynomial.X - Polynomial.C x) * (Polynomial.X - Polynomial.C y) * (Polynomial.X - Polynomial.C z) =
    { a := w, b := w * -(x + y + z), c := w * (x * y + x * z + y * z), d := w * -(x * y * z) }.toPoly

theorem Cubic.prod_X_sub_C_eq E0 #

∀ {S : Type u_2} [inst : CommRing S] {x y z : S},
  (Polynomial.X - Polynomial.C x) * (Polynomial.X - Polynomial.C y) * (Polynomial.X - Polynomial.C z) =
    { a := 1, b := -(x + y + z), c := x * y + x * z + y * z, d := -(x * y * z) }.toPoly

theorem Cubic.coeff_eq_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R] {n : ℕ}, 3 < n → P.toPoly.coeff n = 0

theorem Cubic.coeff_eq_a E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.toPoly.coeff 3 = P.a

theorem Cubic.coeff_eq_b E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.toPoly.coeff 2 = P.b

theorem Cubic.coeff_eq_c E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.toPoly.coeff 1 = P.c

theorem Cubic.coeff_eq_d E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.toPoly.coeff 0 = P.d

theorem Cubic.a_of_eq E0 #

∀ {R : Type u_1} {P Q : Cubic R} [inst : Semiring R], P.toPoly = Q.toPoly → P.a = Q.a

theorem Cubic.b_of_eq E0 #

∀ {R : Type u_1} {P Q : Cubic R} [inst : Semiring R], P.toPoly = Q.toPoly → P.b = Q.b

theorem Cubic.c_of_eq E0 #

∀ {R : Type u_1} {P Q : Cubic R} [inst : Semiring R], P.toPoly = Q.toPoly → P.c = Q.c

theorem Cubic.d_of_eq E0 #

∀ {R : Type u_1} {P Q : Cubic R} [inst : Semiring R], P.toPoly = Q.toPoly → P.d = Q.d

theorem Cubic.toPoly_injective E1 #

∀ {R : Type u_1} [inst : Semiring R] (P Q : Cubic R), P.toPoly = Q.toPoly ↔ P = Q

theorem Cubic.of_a_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R],
  P.a = 0 → P.toPoly = Polynomial.C P.b * Polynomial.X ^ 2 + Polynomial.C P.c * Polynomial.X + Polynomial.C P.d

theorem Cubic.of_a_eq_zero' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R],
  { a := 0, b := b, c := c, d := d }.toPoly =
    Polynomial.C b * Polynomial.X ^ 2 + Polynomial.C c * Polynomial.X + Polynomial.C d

theorem Cubic.of_b_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R],
  P.a = 0 → P.b = 0 → P.toPoly = Polynomial.C P.c * Polynomial.X + Polynomial.C P.d

theorem Cubic.of_b_eq_zero' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R],
  { a := 0, b := 0, c := c, d := d }.toPoly = Polynomial.C c * Polynomial.X + Polynomial.C d

theorem Cubic.of_c_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.toPoly = Polynomial.C P.d

theorem Cubic.of_c_eq_zero' E1 #

∀ {R : Type u_1} {d : R} [inst : Semiring R], { a := 0, b := 0, c := 0, d := d }.toPoly = Polynomial.C d

theorem Cubic.of_d_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.d = 0 → P.toPoly = 0

theorem Cubic.of_d_eq_zero' E1 #

∀ {R : Type u_1} [inst : Semiring R], { a := 0, b := 0, c := 0, d := 0 }.toPoly = 0

theorem Cubic.zero E1 #

∀ {R : Type u_1} [inst : Semiring R], Cubic.toPoly 0 = 0

theorem Cubic.toPoly_eq_zero_iff E0 #

∀ {R : Type u_1} [inst : Semiring R] (P : Cubic R), P.toPoly = 0 ↔ P = 0

theorem Cubic.ne_zero_of_a_ne_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a ≠ 0 → P.toPoly ≠ 0

theorem Cubic.ne_zero_of_b_ne_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.b ≠ 0 → P.toPoly ≠ 0

theorem Cubic.ne_zero_of_c_ne_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.c ≠ 0 → P.toPoly ≠ 0

theorem Cubic.ne_zero_of_d_ne_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.d ≠ 0 → P.toPoly ≠ 0

theorem Cubic.leadingCoeff_of_a_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a ≠ 0 → P.toPoly.leadingCoeff = P.a

theorem Cubic.leadingCoeff_of_a_ne_zero' E1 #

∀ {R : Type u_1} {a b c d : R} [inst : Semiring R], a ≠ 0 → { a := a, b := b, c := c, d := d }.toPoly.leadingCoeff = a

theorem Cubic.leadingCoeff_of_b_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b ≠ 0 → P.toPoly.leadingCoeff = P.b

theorem Cubic.leadingCoeff_of_b_ne_zero' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R], b ≠ 0 → { a := 0, b := b, c := c, d := d }.toPoly.leadingCoeff = b

theorem Cubic.leadingCoeff_of_c_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c ≠ 0 → P.toPoly.leadingCoeff = P.c

theorem Cubic.leadingCoeff_of_c_ne_zero' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R], c ≠ 0 → { a := 0, b := 0, c := c, d := d }.toPoly.leadingCoeff = c

theorem Cubic.leadingCoeff_of_c_eq_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.toPoly.leadingCoeff = P.d

theorem Cubic.leadingCoeff_of_c_eq_zero' E1 #

∀ {R : Type u_1} {d : R} [inst : Semiring R], { a := 0, b := 0, c := 0, d := d }.toPoly.leadingCoeff = d

theorem Cubic.monic_of_a_eq_one E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 1 → P.toPoly.Monic

theorem Cubic.monic_of_a_eq_one' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R], { a := 1, b := b, c := c, d := d }.toPoly.Monic

theorem Cubic.monic_of_b_eq_one E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 1 → P.toPoly.Monic

theorem Cubic.monic_of_b_eq_one' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R], { a := 0, b := 1, c := c, d := d }.toPoly.Monic

theorem Cubic.monic_of_c_eq_one E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 1 → P.toPoly.Monic

theorem Cubic.monic_of_c_eq_one' E1 #

∀ {R : Type u_1} {d : R} [inst : Semiring R], { a := 0, b := 0, c := 1, d := d }.toPoly.Monic

theorem Cubic.monic_of_d_eq_one E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.d = 1 → P.toPoly.Monic

theorem Cubic.monic_of_d_eq_one' E1 #

{ a := 0, b := 0, c := 0, d := 1 }.toPoly.Monic

def Cubic.equiv E1 #

{R : Type u_1} → [inst : Semiring R] → Cubic R ≃ { p // p.degree ≤ 3 }

The equivalence between cubic polynomials and polynomials of degree at most three.

theorem Cubic.equiv_symm_apply_b E0 #

∀ {R : Type u_1} [inst : Semiring R] (f : { p // p.degree ≤ 3 }), (Cubic.equiv.symm f).b = (↑f).coeff 2

theorem Cubic.equiv_symm_apply_c E0 #

∀ {R : Type u_1} [inst : Semiring R] (f : { p // p.degree ≤ 3 }), (Cubic.equiv.symm f).c = (↑f).coeff 1

theorem Cubic.equiv_apply_coe E0 #

∀ {R : Type u_1} [inst : Semiring R] (P : Cubic R), ↑(Cubic.equiv P) = P.toPoly

theorem Cubic.equiv_symm_apply_d E0 #

∀ {R : Type u_1} [inst : Semiring R] (f : { p // p.degree ≤ 3 }), (Cubic.equiv.symm f).d = (↑f).coeff 0

theorem Cubic.equiv_symm_apply_a E0 #

∀ {R : Type u_1} [inst : Semiring R] (f : { p // p.degree ≤ 3 }), (Cubic.equiv.symm f).a = (↑f).coeff 3

theorem Cubic.degree_of_a_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a ≠ 0 → P.toPoly.degree = 3

theorem Cubic.degree_of_a_ne_zero' E1 #

∀ {R : Type u_1} {a b c d : R} [inst : Semiring R], a ≠ 0 → { a := a, b := b, c := c, d := d }.toPoly.degree = 3

theorem Cubic.degree_of_a_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.toPoly.degree ≤ 2

theorem Cubic.degree_of_a_eq_zero' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R], { a := 0, b := b, c := c, d := d }.toPoly.degree ≤ 2

theorem Cubic.degree_of_b_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b ≠ 0 → P.toPoly.degree = 2

theorem Cubic.degree_of_b_ne_zero' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R], b ≠ 0 → { a := 0, b := b, c := c, d := d }.toPoly.degree = 2

theorem Cubic.degree_of_b_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.toPoly.degree ≤ 1

theorem Cubic.degree_of_b_eq_zero' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R], { a := 0, b := 0, c := c, d := d }.toPoly.degree ≤ 1

theorem Cubic.degree_of_c_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c ≠ 0 → P.toPoly.degree = 1

theorem Cubic.degree_of_c_ne_zero' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R], c ≠ 0 → { a := 0, b := 0, c := c, d := d }.toPoly.degree = 1

theorem Cubic.degree_of_c_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.toPoly.degree ≤ 0

theorem Cubic.degree_of_c_eq_zero' E1 #

∀ {R : Type u_1} {d : R} [inst : Semiring R], { a := 0, b := 0, c := 0, d := d }.toPoly.degree ≤ 0

theorem Cubic.degree_of_d_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.d ≠ 0 → P.toPoly.degree = 0

theorem Cubic.degree_of_d_ne_zero' E1 #

∀ {R : Type u_1} {d : R} [inst : Semiring R], d ≠ 0 → { a := 0, b := 0, c := 0, d := d }.toPoly.degree = 0

theorem Cubic.degree_of_d_eq_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.d = 0 → P.toPoly.degree = ⊥

theorem Cubic.degree_of_d_eq_zero' E1 #

∀ {R : Type u_1} [inst : Semiring R], { a := 0, b := 0, c := 0, d := 0 }.toPoly.degree = ⊥

theorem Cubic.degree_of_zero E0 #

∀ {R : Type u_1} [inst : Semiring R], (Cubic.toPoly 0).degree = ⊥

theorem Cubic.natDegree_of_a_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a ≠ 0 → P.toPoly.natDegree = 3

theorem Cubic.natDegree_of_a_ne_zero' E1 #

∀ {R : Type u_1} {a b c d : R} [inst : Semiring R], a ≠ 0 → { a := a, b := b, c := c, d := d }.toPoly.natDegree = 3

theorem Cubic.natDegree_of_a_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.toPoly.natDegree ≤ 2

theorem Cubic.natDegree_of_a_eq_zero' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R], { a := 0, b := b, c := c, d := d }.toPoly.natDegree ≤ 2

theorem Cubic.natDegree_of_b_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b ≠ 0 → P.toPoly.natDegree = 2

theorem Cubic.natDegree_of_b_ne_zero' E1 #

∀ {R : Type u_1} {b c d : R} [inst : Semiring R], b ≠ 0 → { a := 0, b := b, c := c, d := d }.toPoly.natDegree = 2

theorem Cubic.natDegree_of_b_eq_zero E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.toPoly.natDegree ≤ 1

theorem Cubic.natDegree_of_b_eq_zero' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R], { a := 0, b := 0, c := c, d := d }.toPoly.natDegree ≤ 1

theorem Cubic.natDegree_of_c_ne_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c ≠ 0 → P.toPoly.natDegree = 1

theorem Cubic.natDegree_of_c_ne_zero' E1 #

∀ {R : Type u_1} {c d : R} [inst : Semiring R], c ≠ 0 → { a := 0, b := 0, c := c, d := d }.toPoly.natDegree = 1

theorem Cubic.natDegree_of_c_eq_zero E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : Semiring R], P.a = 0 → P.b = 0 → P.c = 0 → P.toPoly.natDegree = 0

theorem Cubic.natDegree_of_c_eq_zero' E1 #

∀ {R : Type u_1} {d : R} [inst : Semiring R], { a := 0, b := 0, c := 0, d := d }.toPoly.natDegree = 0

theorem Cubic.natDegree_of_zero E0 #

∀ {R : Type u_1} [inst : Semiring R], (Cubic.toPoly 0).natDegree = 0

def Cubic.map E1 #

{R : Type u_1} → {S : Type u_2} → [inst : Semiring R] → [inst_1 : Semiring S] → (R →+* S) → Cubic R → Cubic S

Map a cubic polynomial across a semiring homomorphism.

theorem Cubic.map_toPoly E0 #

∀ {R : Type u_1} {S : Type u_2} {P : Cubic R} [inst : Semiring R] [inst_1 : Semiring S] {φ : R →+* S},
  (Cubic.map φ P).toPoly = Polynomial.map φ P.toPoly

def Cubic.roots E1 #

{R : Type u_1} → [inst : CommRing R] → [IsDomain R] → Cubic R → Multiset R

The roots of a cubic polynomial.

theorem Cubic.map_roots E0 #

∀ {R : Type u_1} {S : Type u_2} {P : Cubic R} [inst : CommRing R] [inst_1 : CommRing S] {φ : R →+* S}
  [inst_2 : IsDomain S], (Cubic.map φ P).roots = (Polynomial.map φ P.toPoly).roots

theorem Cubic.mem_roots_iff E0 #

∀ {R : Type u_1} {P : Cubic R} [inst : CommRing R] [inst_1 : IsDomain R],
  P.toPoly ≠ 0 → ∀ (x : R), x ∈ P.roots ↔ P.a * x ^ 3 + P.b * x ^ 2 + P.c * x + P.d = 0

theorem Cubic.card_roots_le E1 #

∀ {R : Type u_1} {P : Cubic R} [inst : CommRing R] [inst_1 : IsDomain R] [inst_2 : DecidableEq R],
  P.roots.toFinset.card ≤ 3

theorem Cubic.splits_iff_card_roots E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K},
  P.a ≠ 0 → ((Polynomial.map φ P.toPoly).Splits ↔ (Cubic.map φ P).roots.card = 3)

theorem Cubic.splits_iff_roots_eq_three E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K},
  P.a ≠ 0 → ((Polynomial.map φ P.toPoly).Splits ↔ ∃ x y z, (Cubic.map φ P).roots = {x, y, z})

theorem Cubic.b_eq_three_roots E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K} {x y z : K},
  P.a ≠ 0 → (Cubic.map φ P).roots = {x, y, z} → φ P.b = φ P.a * -(x + y + z)

theorem Cubic.c_eq_three_roots E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K} {x y z : K},
  P.a ≠ 0 → (Cubic.map φ P).roots = {x, y, z} → φ P.c = φ P.a * (x * y + x * z + y * z)

theorem Cubic.d_eq_three_roots E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K} {x y z : K},
  P.a ≠ 0 → (Cubic.map φ P).roots = {x, y, z} → φ P.d = φ P.a * -(x * y * z)

def Cubic.discr E3 #

{R : Type u_5} → [Ring R] → Cubic R → R

The discriminant of a cubic polynomial.

theorem Cubic.discr_eq_prod_three_roots E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K} {x y z : K},
  P.a ≠ 0 → (Cubic.map φ P).roots = {x, y, z} → φ P.discr = (φ P.a * φ P.a * (x - y) * (x - z) * (y - z)) ^ 2

theorem Cubic.discr_ne_zero_iff_roots_ne E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K} {x y z : K},
  P.a ≠ 0 → (Cubic.map φ P).roots = {x, y, z} → (P.discr ≠ 0 ↔ x ≠ y ∧ x ≠ z ∧ y ≠ z)

theorem Cubic.discr_ne_zero_iff_roots_nodup E3 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K},
  P.a ≠ 0 → (Polynomial.map φ P.toPoly).Splits → (P.discr ≠ 0 ↔ (Cubic.map φ P).roots.Nodup)

theorem Cubic.card_roots_of_discr_ne_zero E1 #

∀ {F : Type u_3} {K : Type u_4} {P : Cubic F} [inst : Field F] [inst_1 : Field K] {φ : F →+* K}
  [inst_2 : DecidableEq K],
  P.a ≠ 0 → (Polynomial.map φ P.toPoly).Splits → P.discr ≠ 0 → (Cubic.map φ P).roots.toFinset.card = 3