Mathlib-Facing Bivariate Degree Helpers #
This file collects degree- and evaluation-oriented helpers for Mathlib's bivariate
polynomial surface R[X][Y] that are useful as a bridge layer between CompPoly and
downstream developments such as ArkLib.
The intended split is:
CompPoly/Bivariate/*for the native computableCBivariaterepresentation;CompPoly/ToMathlib/*for Mathlib-facing transport and helper lemmas.
(i, j)-coefficient of a polynomial, i.e. the coefficient of X^i Y^j.
Instances For
The polynomial coefficient of the highest power of Y. This is the leading coefficient in the
classical sense if the bivariate polynomial is interpreted as a univariate polynomial over F[X].
Instances For
The polynomial coefficient of the highest power of Y is 0 if and only if the bivariate
polynomial is the zero polynomial.
The polynomial coefficient of the highest power of Y is not 0 if and only if the
bivariate polynomial is non-zero.
The Y-degree of a bivariate polynomial, as a natural number.
Instances For
The X-degree of a bivariate polynomial.
Instances For
The total degree of a bivariate polynomial.
Instances For
(u, v)-weighted degree of a polynomial.
The maximal u * i + v * j such that the polynomial p
contains a monomial x^i * y^j.
Instances For
The natural-number-valued (u, v)-weighted degree.
Instances For
The weighted degree is always defined (never none).
The total degree of a bivariate polynomial is equal to the (1, 1)-weighted degree.
The X-degree of a bivariate polynomial is equal to the (1, 0)-weighted degree.
The Y-degree of a bivariate polynomial is equal to the (0, 1)-weighted degree.
Over an integral domain, the product of two non-zero bivariate polynomials is non-zero.
Over an integral domain, the Y-degree of the product of two non-zero bivariate polynomials is
equal to the sum of their degrees.
The evaluation at a point of a bivariate polynomial in the first variable X.
Instances For
The evaluation at a point of a bivariate polynomial in the second variable Y.
Instances For
The computable X-degree agrees with the Mathlib-facing degreeX after toPoly.
The computable total degree agrees with the Mathlib-facing total degree after toPoly.