Helpers to invoke functions involving algebra at tactic time #
This file provides instances on x y : Q($α)
such that x + y = q($x + $y)
.
Produce a One
instance for Q($α)
such that 1 : Q($α)
is q(1 : $α)
.
Equations
- Expr.instOne α x✝ = { one := q(1) }
Instances For
Produce a Zero
instance for Q($α)
such that 0 : Q($α)
is q(0 : $α)
.
Equations
- Expr.instZero α x✝ = { zero := q(0) }
Instances For
Produce a Mul
instance for Q($α)
such that x * y : Q($α)
is q($x * $y)
.
Equations
- Expr.instMul α x✝ = { mul := fun (x y : Q(«$α»)) => q(«$x» * «$y») }
Instances For
Produce an Add
instance for Q($α)
such that x + y : Q($α)
is q($x + $y)
.
Equations
- Expr.instAdd α x✝ = { add := fun (x y : Q(«$α»)) => q(«$x» + «$y») }