The areas / V34. The tactics of Mathlib
Mathlib.Algebra.Expr
4 declarations. Mathlib docs · Source
Helpers to invoke functions involving algebra at tactic time
This file provides instances on x y : Q($α) such that x + y = q($x + $y).
def Expr.instOne E1 #
{u : Lean.Level} → (α : Q(Type u)) → Q(One «$α») → One Q(«$α»)
Produce a One instance for Q($α) such that 1 : Q($α) is q(1 : $α).
def Expr.instZero E1 #
{u : Lean.Level} → (α : Q(Type u)) → Q(Zero «$α») → Zero Q(«$α»)
Produce a Zero instance for Q($α) such that 0 : Q($α) is q(0 : $α).
def Expr.instMul E1 #
{u : Lean.Level} → (α : Q(Type u)) → Q(Mul «$α») → Mul Q(«$α»)
Produce a Mul instance for Q($α) such that x * y : Q($α) is q($x * $y).
def Expr.instAdd E1 #
{u : Lean.Level} → (α : Q(Type u)) → Q(Add «$α») → Add Q(«$α»)
Produce an Add instance for Q($α) such that x + y : Q($α) is q($x + $y).