mathlib3 documentation

algebra.expr

Helpers to invoke functions involving algebra at tactic time #

THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.

It's not clear whether using instance_cache is a sensible choice here. In particular, we need to use these tactics below when the algebraic instances are local variables that aren't in the "real" instance cache (the one used by tactic.reset_instance_cache).

Produce a has_one instance for the type cached by t, such that 1 : expr is the one of that type.

Produce a has_zero instance for the type cached by t, such that 0 : expr is the zero of that type.

Produce a has_mul instance for the type cached by t, such that (*) : exprexprexpr is the multiplication of that type.

Produce a has_add instance for the type cached by t, such that (+) : exprexprexpr is the addition of that type.