Proof-local Mathlib CommRing view of ZPoly, assembled from the
executable library's verified Lean.Grind.CommRing instance.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Proof-local domain structure on ZPoly, transported from
Polynomial Int.
Semantic membership in a root set. Every complex number belongs to the root set of the zero polynomial.
Equations
Instances For
The recorded multiplicity of a complex value, or zero when it is absent.
The .all case also returns zero, matching Mathlib's convention for
Polynomial.rootMultiplicity of the zero polynomial.
Equations
- One or more equations did not get rendered due to their size.
- Hex.RootSet.all.multiplicityOf z = 0
Instances For
Sum of the multiplicities in a finite root set.
Equations
- Hex.RootSet.all.totalMultiplicity = 0
- (Hex.RootSet.finite entries).totalMultiplicity = Array.foldl (fun (total : ℕ) (entry : Hex.RootCount) => total + entry.multiplicity) 0 entries
Instances For
Every stored entry has positive multiplicity.
Equations
- Hex.RootSet.all.Positive = True
- (Hex.RootSet.finite entries).Positive = ∀ entry ∈ entries.toList, 0 < entry.multiplicity
Instances For
A finite root set contains no two entries with the same semantic value.
Equations
- Hex.RootSet.all.NoDuplicates = True
- (Hex.RootSet.finite entries).NoDuplicates = List.Pairwise (fun (a b : Hex.RootCount) => a.root.toComplex ≠ b.root.toComplex) entries.toList
Instances For
Finite root entries occur in the executable canonical order.
Equations
- Hex.RootSet.all.Ordered = True
- (Hex.RootSet.finite entries).Ordered = List.Pairwise (fun (a b : Hex.RootCount) => Hex.PolyQuot.Roots.rootLe a b = true) entries.toList
Instances For
A successful lazy-root comparison decides equality of represented complex values.
Lazy-root comparison always succeeds, exactifying only when distinct enclosing polynomials have a nonconstant gcd.
Certified ball Horner evaluation always reaches its requested precision.
Once the norm eliminant passes its normalization checks, component root isolation, refinement, exact evaluation, and bounded disambiguation are total.
A nonzero norm eliminant with positive-degree square-free core supplies all normalization witnesses required by the component driver.
Folding semantic root merging over a finite candidate array cannot fail.
Every component emitted by the executable Yun loop has positive degree and positive multiplicity.
The executable common denominator is positive.
The rectangular coefficient array used for the bivariate lift stores the cleared coordinate at the corresponding outer and polynomial indices.
Interpret a fixed-field dense polynomial at the selected embedding.
Equations
- Hex.PolyQuot.toPolynomialAt f rep h = Array.foldr (fun (a : Hex.PolyQuot p x) (value : Polynomial ℂ) => Polynomial.C (a.toComplex rep h) + Polynomial.X * value) 0 f.toArray
Instances For
Semantic coefficients agree with fixed-coordinate evaluation.
Fixed-field Horner interpretation is polynomial coefficient mapping by the selected complex embedding.
Fixed-field executable zero detection agrees with semantic polynomial zero.
A nonzero fixed-field polynomial has the expected semantic degree.
The integer bivariate lift specializes at the selected generator to the fixed-field polynomial, scaled by its positive common denominator.
Every root at the selected fixed-field embedding is a root of the integer norm eliminant.
The integer norm eliminant of a nonzero fixed-field polynomial is nonzero.
The evaluation eliminant vanishes at the evaluation of the fixed-field polynomial at any root of the candidate eliminant and the selected embedding.
The evaluation eliminant of a nonzero fixed-field polynomial and a positive-degree candidate eliminant is nonzero.
A positive-degree square-free norm-eliminant core forces the component itself to be nonzero.
Every positive-degree fixed-field component satisfies the normalization conditions needed by the component root driver.
Certified ball Horner evaluation encloses exact evaluation at the selected embedding and candidate root.
Bounded disambiguation against the shared double-resultant evaluation eliminant retains precisely the candidates at which the fixed-field polynomial vanishes.
The fixed-field root driver always produces a checked root set.
The total fixed-field root API is exactly the output of its now-proved total checked driver.
The fixed-field driver returns .all exactly for the zero polynomial.