Commit 2023-03-18 04:16 e085d1df
View on Github →feat(algebra/quadratic_discriminant): generalize, use ne_zero
(#18606)
- Add
discrim_neg
. - Add
discrim_eq_sq_of_quadratic_eq_zero
, an implication fromquadratic_eq_zero_iff_discrim_eq_sq
that doesn't need extra assumptions. - Assume
[ne_zero (2 : _)]
instead of2 ≠ 0
or[invertible (2 : _)]
. - Drop unneeded assumptions in
quadratic_ne_zero_of_discrim_ne_sq
, uses ^ 2
instead ofs * s
. - Add
discrim_le_zero_of_nonpos
anddiscrim_lt_zero_of_neg
.