ℕ → SignProgram (ℕ × SignType)
A sign program reading off, from the top coefficient down, the first index ≤ n whose coefficient of the universal polynomial is nonzero, with its sign; (0, s) with the sign of the constant coefficient if none is.
Part of the SVI polynomial-sign certificate (#174).
A sign program that finds the degree and leading sign of the numerator polynomial from the signs of its coefficients, as polynomials in the parameters (degreeProgram_eval).
degreeProgram: a sign program that scans the coefficients of universalPolynomial from index n down and returns the first nonzero index with its sign.universalCoefficient_eval: evaluating the r-th coefficient of universalPolynomial at the parameters p gives (polynomial p).coeff r.degreeProgram_eval: if (polynomial p).natDegree ≤ n, then degreeProgram n evaluates at p to the degree and the sign of the leading coefficient of polynomial p.sign program, polynomial degree, leading coefficient sign, SVI, MSC 91G20, JEL G13
Above: what it imports. Below: what imports it.
ℕ → SignProgram (ℕ × SignType)
A sign program reading off, from the top coefficient down, the first index ≤ n whose coefficient of the universal polynomial is nonzero, with its sign; (0, s) with the sign of the constant coefficient if none is.
∀ (p : Params) (r : ℕ), (parameterEval p) (universalPolynomial.coeff r) = (polynomial p).coeff r∀ (p : Params) (n : ℕ), (polynomial p).natDegree ≤ n → SignProgram.eval p (degreeProgram n) = ((polynomial p).natDegree, SignType.sign (polynomial p).leadingCoeff)