Documentation

Lean.Meta.Tactic.Grind.Arith.CommRing.SafePoly

The polynomial functions at Poly.lean are used for constructing proofs-by-reflection, but they do not provide mechanisms for aborting expensive computations.

@[inline]

Converts the given ring expression into a multivariate polynomial. If the ring has a nonzero characteristic, it is used during normalization.

Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    • p₁.spolM p₂ = pure { }
    Instances For

      Returns some (val, x) if m contains a variable x whose the denotation is val⁻¹.

      Equations
      Instances For

        Returns some (val, x) if p contains a variable x whose the denotation is val⁻¹.

        Equations
        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₂.

            Equations
            Instances For