Documentation

CompPoly.Univariate.ToPoly.Equiv

toPoly Equivalence #

Ring equivalences between computable univariate polynomials and Polynomial.

theorem CompPoly.CPolynomial.toPoly_add {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (p q : CPolynomial R) :
(p + q).toPoly = p.toPoly + q.toPoly
theorem CompPoly.CPolynomial.toPoly_sub {R : Type u_2} [Ring R] [BEq R] [LawfulBEq R] (p q : CPolynomial R) :
(p - q).toPoly = p.toPoly - q.toPoly
theorem CompPoly.CPolynomial.Raw.toPoly_mul_coeff {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (p q : Raw R) (i : ) :
(p * q).toPoly.coeff i = (p.toPoly * q.toPoly).coeff i
theorem CompPoly.CPolynomial.toPoly_mul_coeffC {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (p q : CPolynomial R) (i : ) :
(p * q).toPoly.coeff i = ((↑p).toPoly * (↑q).toPoly).coeff i
theorem CompPoly.CPolynomial.toPoly_mul {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (p q : CPolynomial R) :
(p * q).toPoly = p.toPoly * q.toPoly
@[simp]
theorem CompPoly.CPolynomial.eval₂_C {R : Type u_2} [Semiring R] {S : Type u_3} [Semiring S] (f : R →+* S) (x : S) (r : R) :
Raw.eval₂ f x (Raw.C r) = f r
@[simp]
theorem CompPoly.CPolynomial.toPoly_pow {R : Type u_1} [Semiring R] [BEq R] [Nontrivial R] [LawfulBEq R] (p : CPolynomial R) (n : ) :
(p ^ n).toPoly = p.toPoly ^ n
theorem CompPoly.CPolynomial.toPoly_sum {R : Type u_2} [Semiring R] [BEq R] [LawfulBEq R] {ι : Type u} [DecidableEq ι] {s : Finset ι} {f : ιCPolynomial R} :
(∑ js, f j).toPoly = js, (f j).toPoly
theorem CompPoly.CPolynomial.toPoly_prod {R : Type u_2} [CommSemiring R] [BEq R] [LawfulBEq R] [Nontrivial R] {ι : Type u} [DecidableEq ι] {s : Finset ι} {f : ιCPolynomial R} :
(∏ js, f j).toPoly = js, (f j).toPoly
Instances For