Univariate monomials #
Preparatory lemmas for degree_basic.
theorem
Polynomial.monomial_one_eq_iff
{R : Type u}
[Semiring R]
[Nontrivial R]
{i j : ℕ}
:
(Polynomial.monomial i) 1 = (Polynomial.monomial j) 1 ↔ i = j
theorem
Polynomial.card_support_le_one_iff_monomial
{R : Type u}
[Semiring R]
{f : Polynomial R}
:
f.support.card ≤ 1 ↔ ∃ (n : ℕ) (a : R), f = (Polynomial.monomial n) a