The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Polynomial.Core
12 declarations. Mathlib docs · Source
Setup for the polynomial tactic
This file initializes the environment extensions and simp sets used by the polynomial tactic.
These extensions let downstream users use their own polynomial-like types (such as PowerSeries)
with the polynomial tactic suite.
theorem Mathlib.Tactic.Polynomial.PolynomialExt.mk.injEq E0 #
∀ (infer infer_1 : Lean.Expr → Lean.MetaM Lean.Expr), ({ infer := infer } = { infer := infer_1 }) = (infer = infer_1)
theorem Mathlib.Tactic.Polynomial.PolynomialExt.mk.inj E1 #
∀ {infer infer_1 : Lean.Expr → Lean.MetaM Lean.Expr}, { infer := infer } = { infer := infer_1 } → infer = infer_1
def Mathlib.Tactic.Polynomial.PolynomialExt.ctorIdx E1 #
Mathlib.Tactic.Polynomial.PolynomialExt → ℕ
opaque Mathlib.Tactic.Polynomial.polynomialPreExt E1 #
Lean.Meta.SimpExtension
polynomial_pre marks a theorem to be used by the polynomial tactic as a preprocessing lemma.
These serve the purpose of removing any definitions specific to polynomials that algebra can't
handle. e.g. Polynomial.C and Polynomial.map
opaque Mathlib.Tactic.Polynomial.polynomialPostExt E1 #
Lean.Meta.SimpExtension
polynomial_post marks a theorem to be used by the polynomial_nf tactic as a postprocessing
lemma. Used only by polynomial_nf. These serve the purpose of rewriting expressions in algebra
normal form into a more readable form. e.g. a • X -> algebraMap _ _ a * X -> C a * X.
def Mathlib.Tactic.Polynomial.PolyInferBaseAttr E1 #
Lean.ParserDescr
polynomial_infer_base marks a procedure used by the polynomial tactic to infer
the base ring of polynomial-like types.
structure Mathlib.Tactic.Polynomial.PolynomialExt E1 #
Type
An extension for polynomial.
ctor Mathlib.Tactic.Polynomial.PolynomialExt.mk E0 #
(Lean.Expr → Lean.MetaM Lean.Expr) → Mathlib.Tactic.Polynomial.PolynomialExt
abbrev Mathlib.Tactic.Polynomial.PolynomialExt.infer E1 #
Mathlib.Tactic.Polynomial.PolynomialExt → Lean.Expr → Lean.MetaM Lean.Expr
Attempts to infer the base R of an Algebra R A based only on A. e.g. returns R given
Polynomial R.
def Mathlib.Tactic.Polynomial.mkPolynomialExt E1 #
Lean.Name → Lean.ImportM Mathlib.Tactic.Polynomial.PolynomialExt
Read a polynomial extension from a declaration of the right type.
opaque Mathlib.Tactic.Polynomial.polynomialExt E1 #
Lean.PersistentEnvExtension Lean.Name (Lean.Name × Mathlib.Tactic.Polynomial.PolynomialExt)
(List Lean.Name × List (Lean.Name × Mathlib.Tactic.Polynomial.PolynomialExt))
Environment extensions for polynomial declarations
def Mathlib.Tactic.Polynomial.inferBase E1 #
Lean.Expr → Lean.MetaM Lean.Expr
Infer the base ring of Polynomial-like types that are registered using the polynomial
environment extensions. Includes e.g. Polynomial and MvPolynomial.