Gap parity for split polynomials
ProvedCollapsibleCubics.even_card_roots_betweenLet be a split rational polynomial, with and a finite multiset of rational roots. Let be real numbers, neither of them a root of , at which takes the same nonzero value:
Then the number of roots of lying strictly between and , counted with multiplicity, is even.
The mechanism is the sign of : since splits over , it changes sign exactly at its roots, counted with multiplicity, so equal values at the two endpoints force an even number of sign changes in between.
The application is to the totally real case. If , the cubic has three real conjugates , and a collapsing takes the same nonzero rational value at all three. The theorem then says that each of the two gaps and contains an even number of roots of . This is the only archimedean constraint known when — the degree bound available for has no analogue there — and it halves the effective search space.
Formalization Note Roots are counted with multiplicity, as elements of the multiset . The hypotheses are satisfiable but not always: for an that is injective on the relevant range, no such pair exists and the statement is vacuous for that .
import Definitions.Def_CollapsibleCubics_basic
import Definitions.Def_CollapsibleCubics_basic
namespace CollapsibleCubics
open Polynomial
theorem even_card_roots_between {f : ℚ[X]} {a : ℚ} {rs : Multiset ℚ} (ha : a ≠ 0)
(hf : f = C a * (rs.map fun r => X - C r).prod)
{x y : ℝ} (hxy : x < y) (hr : ∀ r ∈ rs, (r : ℝ) ≠ x ∧ (r : ℝ) ≠ y)
(hval : (aeval x f : ℝ) = aeval y f) (hne : (aeval x f : ℝ) ≠ 0) :
Even (rs.filter fun r : ℚ => x < (r : ℝ) ∧ (r : ℝ) < y).card := by sorry
end CollapsibleCubicsRead-back
What the Lean code literally says, in plain math · claude-opus-5
Fix a nonzero rational number (that is, ) and a finite multiset of rational numbers, and let be the polynomial with rational coefficients given by
where the product runs over the elements of with multiplicity (so a rational appearing times in contributes the factor ); in particular, if is empty the product is and is the constant polynomial . Note that is assumed to be equal to this product — it is not merely assumed to have this shape up to some further factor, and every root of is therefore accounted for by .
Now let and be real numbers with , and evaluate at real arguments via the inclusion , writing . Assume:
- (no root at the endpoints) for every belonging to , the real number satisfies and ;
- (equal values) as real numbers;
- (nonvanishing) (hence also , by the previous assumption).
The conclusion is that the number
is even, where the count is again taken with multiplicity: it is the cardinality of the sub-multiset of obtained by keeping exactly those entries whose image in lies strictly between and (both inequalities strict, so entries equal to or to would be excluded — though the endpoint hypothesis already rules those out). "Even" here means the cardinality is divisible by , which includes the value ; so the statement is satisfied in particular when no element of lies strictly inside the interval, e.g. when is empty.
Every quantity is a bound variable of the statement: , , , , are all universally quantified, with , , , , implicit and the five hypotheses above explicit. Note that the hypotheses can be simultaneously satisfiable and can also be jointly impossible for particular choices — for instance, for a fixed that is strictly monotone on the relevant range no pair with exists, and the statement is then vacuous for that .
Confirmed by the mission captain (proposal self-audit).