Linear Algebra API for Computable Univariate Polynomials #
This file contains linear maps and instance-stable bounded-degree predicates for CPolynomial.
The set of CPolynomial R consisting of polynomials of degree ≤ n.
Instances For
The set of CPolynomial R consisting of polynomials of degree < n.
Instances For
theorem
CompPoly.CPolynomial.mem_degreeLT_iff_size_le
{R : Type u_1}
[Zero R]
{n : ℕ}
{p : CPolynomial R}
:
degreeLT n is exactly the bounded-size carrier storing at most n coefficients.
@[instance_reducible]
instance
CompPoly.CPolynomial.instAddCommMonoidElemDegreeLT
{R : Type u_1}
[Semiring R]
[BEq R]
[LawfulBEq R]
(n : ℕ)
:
AddCommMonoid ↑(degreeLT n)
@[simp]
theorem
CompPoly.CPolynomial.degreeLTCoeffs_apply
{R : Type u_1}
[Semiring R]
[BEq R]
[LawfulBEq R]
(n : ℕ)
(p : ↑(degreeLT n))
(i : Fin n)
:
Applying degreeLTCoeffs returns the corresponding bounded coefficient.