The Cauchy index of a quotient of polynomials #
Polynomial.cauchyJump p q a is the jump of the rational function q / p at a. It is zero
unless a is a pole of q / p of odd order. At such a pole it is +1 for a jump from -∞ to
+∞ and -1 for a jump from +∞ to -∞. The sign of q / p immediately to the right of a
is the right-hand sign of p * q, so the jump is defined algebraically from root multiplicities
and Polynomial.signRight. It needs no topology and makes sense over any ordered field.
Polynomial.cauchyIndex p q s sums these jumps over a set s. Only roots of p contribute, so
the sum is finite. As for Polynomial.tarskiQuery p q, the first argument supplies the
denominator, and hence the roots. With this convention the index of p' / p counts distinct
roots, and the index of p' * q / p on the whole line is the Tarski query TaQ(q, p).
The index depends only on the rational function q / p: cancelling a common factor does not
change it, and neither does reducing q modulo p. Over a real closed field, if a < b and
neither a nor b is a root of p * q, the indices of q / p and p / q on (a, b) sum to
half the change of sign of p * q from a to b. With the reduction modulo p this gives the
Euclidean recurrence for the index, under the same endpoint hypotheses.
Main declarations #
Polynomial.cauchyJump: the jump ofq / pat a point.Polynomial.cauchyIndex: the sum of the jumps ofq / pover a set.Polynomial.cauchyIndex_mul_right: cancellation of a common factor.Polynomial.cauchyIndex_mod: reduction of the numerator modulo the denominator.Polynomial.cauchyIndex_derivative: the index ofp' / pcounts distinct roots.Polynomial.cauchyIndex_derivative_mul_univ: the whole-line index ofp' * q / pistarskiQuery p q.Polynomial.two_mul_cauchyIndex_add_cauchyIndex_Ioo: the inversion formula on an interval(a, b)witha < bwhose endpoints are not roots ofp * q.Polynomial.two_mul_cauchyIndex_Ioo: the Euclidean recurrence, under the same hypotheses.
References #
S. Basu, R. Pollack, and M.-F. Roy, Algorithms in Real Algebraic Geometry, second edition, §2.2.2 (the Cauchy index and its properties).
The jump of q / p at a. It is the right-hand sign of p * q at a when a is a pole
of q / p of odd order, and zero otherwise.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The jump vanishes where q / p has no pole.
The jump vanishes away from the roots of p.
A constant denominator has no poles.
The Cauchy index of q / p on s: the sum of the jumps of q / p at the points of s.
Equations
- p.cauchyIndex q s = ∑ᶠ (x : R) (_ : x ∈ s), p.cauchyJump q x
Instances For
Only roots of p carry a jump of q / p.
Only finitely many points carry a jump of q / p.
Negating the numerator reverses every Cauchy jump.
Negating the numerator reverses the Cauchy index on any set.
The Cauchy index as a finite sum over the distinct roots of p in s.
The Cauchy index is additive over disjoint sets.
Splitting an open interval at an interior point adds the jump at that point.
Cancelling a common nonzero factor of p and q does not change the jumps of q / p.
Cancelling a common nonzero factor of p and q does not change the index of q / p.
Adding a multiple of p to q does not change the jumps of q / p.
Adding a multiple of p to q does not change the index of q / p.
The jumps of q / p and of p / q at a point add up to half the jump of the one-sided
signs of p * q there.
At a root of a nonzero p, the jump of p' * q / p is the sign of q.
The index of p' * q / p on s is the sum of the signs of q at the distinct roots of
p in s.
The whole-line index of p' * q / p is the Tarski query of q at the roots of p.
The index of p' / p on s is the number of distinct roots of p in s.
Reducing q modulo p does not change the jumps of q / p.
Reducing q modulo p does not change the index of q / p.
The inversion formula. On an interval whose endpoints are not roots of p * q, the
indices of q / p and p / q add up to half the change of sign of p * q.
The Euclidean recurrence for the Cauchy index. On an interval whose endpoints are not
roots of p * q, the index of q / p is determined by the change of sign of p * q and the
index of (p % q) / q.