Interpret an executable fixed-field polynomial after a field embedding.
Equations
- Hex.PolyQuot.Roots.toPolynomialMap embedding f = Polynomial.map embedding (HexPolyMathlib.toPolynomial f)
Instances For
Unfolding rule for the polynomial interpretation used by the Yun proofs.
The executable fixed-field derivative agrees with the Mathlib derivative after dense-polynomial transport.
The multiplicity of a root of a polynomial gcd is the minimum of its multiplicities in the two nonzero inputs.
Root multiplicity subtracts across an exact polynomial quotient.
A root's multiplicity is bounded by the degree of a nonzero polynomial.
Executable field division subtracts root multiplicities when the divisor is known to divide the nonzero dividend.
Monic normalization changes a nonzero polynomial only by a nonzero constant factor, so it preserves every root multiplicity.
Monic normalization is associated to its nonzero input.
Associated polynomials have the same root multiplicity.
The executable monic gcd realizes the pointwise minimum of root multiplicities.
The executable monic gcd divides each nonzero input.
An exact quotient of a nonzero executable polynomial is nonzero.
Monic normalization of a nonzero executable polynomial remains nonzero.
A monic exact quotient subtracts the divisor's root multiplicity.
Monic normalization remains associated after any field embedding.
Monic normalization preserves root multiplicity after any field embedding.
The executable monic gcd realizes the pointwise minimum of root multiplicities after any field embedding.
The monic gcd of two polynomials that remain nonzero after a field embedding also remains nonzero.
The executable derivative commutes with every field embedding.
Exact executable division remains an exact factorization after a field embedding.
An exact quotient of a polynomial that stays nonzero after embedding also stays nonzero.
Exact executable division subtracts root multiplicities after a field embedding.
A monic exact quotient subtracts root multiplicities after a field embedding.
A monic exact quotient remains nonzero after a field embedding.
Pointwise semantic invariant of the Yun loop at multiplicity index k.
The first polynomial contains the root once exactly while k ≤ r; the
repeated part contains the remaining r - k copies.
The current squarefree-product accumulator is nonzero.
The current repeated part is nonzero.
- w_multiplicity : Polynomial.rootMultiplicity z (toPolynomialMap embedding w) = if k ≤ r then 1 else 0
The accumulator contains
zexactly once while copies remain. The repeated part contains the remaining
r - kcopies ofz.
Instances For
One executable Yun step advances the pointwise loop invariant.
The component produced at a Yun step contains the root exactly when the current index is its original multiplicity.
The normalized derivative/gcd prelude establishes the Yun invariant at multiplicity index one.
A nonzero embedded polynomial with a root has positive executable degree.
Every root of an emitted Yun component is a root of the input with the component's stored multiplicity.
Every root of a positive-degree input occurs in an emitted Yun component at its exact multiplicity.