The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Algebra.AlgebraNF
3 declarations. Mathlib docs · Source
The algebra_nf tactic
This file contains helper functions for the (currently unimplemented) algebra_nf tactic.
The definitions in this file are currently only used by polynomial_nf.
def Mathlib.Tactic.Algebra.cleanupSMul E1 #
Mathlib.Tactic.RingNF.Config → Lean.Meta.Simp.Result → Lean.MetaM Lean.Meta.Simp.Result
Clean up the normal form into a more human-friendly format. This does everything
RingNF.cleanup does and also pulls the scalar multiplication from the end of each term to
the start. i.e. x * y * (r • 1) → r • (x * y)
Used by cleanup.
def Mathlib.Tactic.Algebra.cleanupConsts E1 #
Mathlib.Tactic.RingNF.Config → Lean.Meta.Simp.Result → Lean.MetaM Lean.Meta.Simp.Result
Turn scalar multiplication by an explicit constant in R into multiplication in A.
e.g. (4 : ℚ) • x becomes 4 * x but ↑n • x stays ↑n • x.
def Mathlib.Tactic.Algebra.evalExpr E1 #
{u : Lean.Level} → Q(Type u) → Lean.Expr → Mathlib.Tactic.AtomM Lean.Meta.Simp.Result
The core of algebra_nf with R - normalize the expression e over the base ring R
Also used internally in polynomial_nf.