The polynomial functions at Poly.lean are used for constructing proofs-by-reflection,
but they do not provide mechanisms for aborting expensive computations.
Converts the given ring expression into a multivariate polynomial. If the ring has a nonzero characteristic, it is used during normalization.
Instances For
Instances For
Instances For
Instances For
Instances For
Returns some (val, x) if m contains a variable x whose the denotation is val⁻¹.
Instances For
Returns some (val, x) if p contains a variable x whose the denotation is val⁻¹.
Instances For
Result of simplifying a polynomial p₁ using a polynomial p₂.
The simplification rewrites the first monomial of p₁ that can be divided
by the leading monomial of p₂.
- p : Poly
The resulting simplified polynomial after rewriting.
- k₁ : Int
The integer coefficient multiplied with polynomial
p₁in the rewriting step. - k₂ : Int
The integer coefficient multiplied with polynomial
p₂during rewriting. - m₂ : Mon
The monomial factor applied to polynomial
p₂.
Instances For
Simplifies polynomial p₁ using polynomial p₂ by rewriting.
This function attempts to rewrite p₁ by eliminating the first occurrence of
the leading monomial of p₂.