An integer polynomial for the values at algebraic roots #
The resultant of p(X) and Y - g(X) eliminates the source variable X. It has
a root at g(a) for each root a of p. Factoring over a splitting field accounts
for multiplicities and gives the exact degree in Y. The coefficient norm bound
uses the Sylvester determinant.
Adapted from PolynomialValueResultant and PolynomialValueResultantBounds in
lean-canny at commit 970f28a5ecefc1327402ade16c068aa4b1b2c183.
The resultant eliminating the source variable from p(X) and Y - g(X).
If the source polynomial is nonzero, its value resultant is nonzero and has the same natural degree, including for repeated roots and constant test polynomials.
Evaluating the test polynomial at any root of the source gives a root of the value resultant, after casting coefficients to the ambient field.
The value resultant has a Sylvester determinant norm bound in the source and test degrees and the larger of their coefficient norms.