Translation Invariance, Sign Between Roots, Squarefree Lemmas #
This file proves that rPoly commutes with translation, establishes sign patterns between ordered roots, and proves squarefree criteria for polynomials with distinct real roots.
Main theorems #
rPoly_comp_X_sub_C: rPoly commutes with translationcriticalValue_comp_X_sub_C_at_root: Critical values are translation-invarianteval_sign_between_ordered_roots: Sign of monic polynomial between rootscriticalValue_pos_with_interlacing: Critical values are positive under interlacingrPoly_squarefree_of_distinct_real_roots: rPoly is squarefree for distinct rootsextract_ordered_real_roots: Ordered root extraction from separable polynomialsquarefree_comp_X_sub_C: Squarefree is preserved under translation
Sign evaluation and squarefree properties #
rPoly commutes with translation: rPoly n (p.comp(X - C a)) = (rPoly n p).comp(X - C a). This follows from the chain rule for polynomial derivatives: (p.comp g)' = p'.comp(g) * g', and (X - C a)' = 1.
criticalValue is translation-invariant at roots: criticalValue(f.comp(X - C c), n, μ + c) = criticalValue(f, n, μ) when μ is a root of rPoly n f.
Proof: At a root μ of rPoly n f, the RPoly n evaluations agree: (RPoly n (f.comp(X-Cc))).eval(μ+c) = f.eval(μ) = (RPoly n f).eval(μ) And the rPoly derivatives agree by the chain rule: (rPoly n (f.comp(X-Cc)))'.eval(μ+c) = (rPoly n f)'.eval(μ)
Sign of a monic polynomial between consecutive ordered roots. If f is monic of degree n with strictly ordered roots λ₀ < ... < λ_{n-1}, and x is strictly between λⱼ and λⱼ₊₁, then 0 < (-1)^{n-1-j} * f.eval x.
Proof sketch (product representation): f(x) = ∏ₖ(x - λₖ) since f is monic with n roots and degree n.
- For k = 0,...,j: x > αⱼ >= αₖ, so (x - αₖ) > 0 (j+1 positive factors)
- For k = j+1,...,n-1: x < αⱼ₊₁ <= αₖ, so (x - αₖ) < 0 (n-1-j negative factors) Product sign = (-1)^{n-1-j}, hence (-1)^{n-1-j} * f(x) > 0.
Critical values are positive when polynomial roots interlace with derivative roots.
Given: f monic of degree n with ordered roots λ₀ < ... < λ_{n-1}, ν₀ < ... < ν_{n-2} are roots of rPoly n f with interlacing (λⱼ < νⱼ < λⱼ₊₁). Then: criticalValue f n (νⱼ) > 0.
Proof: At νⱼ (root of rPoly n f), criticalValue = -f(ν)/r'(ν). • sign(f(νⱼ)) = (-1)^{n-1-j} — from eval_sign_between_ordered_roots • sign(r'(νⱼ)) = (-1)^{n-2-j} — from derivative_sign_at_ordered_root Since n-1-j = (n-2-j)+1, f and r' have opposite signs, so -f/r' > 0.
rPoly n p is squarefree when p is monic of degree n and has n distinct real roots. Proof: By Rolle's theorem, rPoly n p = p'/n has a zero between each consecutive pair of roots of p, giving n-1 zeros in disjoint intervals (hence distinct). Since rPoly n p has degree n-1, these account for all roots, so rPoly is separable, hence squarefree.
A product of distinct linear factors is squarefree. If roots is injective
(all roots are distinct), then ∏ᵢ (X - C(roots i)) has no repeated factors.
A monic real-rooted polynomial with exactly deg(f) distinct roots is squarefree. Proof: f splits over ℝ (from real-rootedness), has n distinct roots → Nodup → separable.
If a monic polynomial of degree n ≥ 2 has alternating signs at n-1 strictly
ordered points and all complex roots are real, then it is squarefree.
The alternating signs produce n distinct real roots via IVT (same construction
as monic_alternating_has_real_roots), and squarefree_of_card_roots_eq_deg
gives squarefree from n distinct roots.
Extraction of ordered real roots: If a monic separable polynomial of degree m has all complex roots with zero imaginary part, then it has m distinct ordered real roots. Proof: separability gives card(roots) = m, all roots are real, sorting gives strict order.
Squarefree is preserved under composition with (X - C a). If p is squarefree, then p.comp(X - C a) is squarefree. Proof: if d² ∣ p.comp(X-Ca), compose with (X+Ca) to get (d.comp(X+Ca))² ∣ p, hence d.comp(X+Ca) is a unit, hence d is a unit.