Documentation

CompPoly.Univariate.ToPoly.Impl

Proofs of Correctness for CPolynomial Operations, wrt Mathlib Specs #

Proofs that operations defined on CPolynomial and CPolynomial.Raw are correct wrt the mathlib specs, using the ring equivalence

CPolynomial.monomial is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.C_toPoly {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (r : R) :

CPolynomial.C is correct wrt the Mathlib spec.

CPolynomial.X is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.eval_toPoly {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (x : R) (p : CPolynomial R) :

CPolynomial.eval is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.Raw.eval₂_toPoly {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (f : R →+* S) (x : S) (p : Raw R) :

Raw.eval₂ is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.eval₂_toPoly {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (f : R →+* S) (x : S) (p : CPolynomial R) :

CPolynomial.eval₂ is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.coeff_toPoly {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (p : CPolynomial R) (i : ) :

CPolynomial.coeff is correct wrt the Mathlib spec.

CPolynomial.divX is correct wrt the Mathlib spec.

CPolynomial.support is correct wrt the Mathlib spec.

CPolynomial.degree is correct wrt the Mathlib spec.

CPolynomial.natDegree is correct wrt the Mathlib spec.

CPolynomial.leadingCoeff is correct wrt the Mathlib spec.

CPolynomial.erase is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.C_mul_X_pow_toPoly {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] [DecidableEq R] [Nontrivial R] (r : R) (n : ) :

CPolynomial.C r mul CPolynomial.X ^ n is correct wrt the Mathlib spec.

theorem CompPoly.CPolynomial.lcoeff_toPoly {R : Type u_1} [Semiring R] [BEq R] [LawfulBEq R] (n : ) (p : CPolynomial R) :

CPolynomial.lcoeff is correct wrt the Mathlib spec.

CPolynomial.degreeLE is correct wrt the Mathlib spec.

CPolynomial.degreeLT is correct wrt the Mathlib spec.