mathlib documentation

tactic.with_local_reducibility

with_local_reducibility #

Run a tactic in an environment with a temporarily modified reducibility attribute for a specified declaration.

Possible reducibility attributes for a declaration: reducible, semireducible (the default), irreducible.

Instances for tactic.decl_reducibility

Get the reducibility attribute of a declaration. Fails if the name does not refer to an existing declaration.

Set the reducibility attribute of a declaration. If persistent := ff, this is scoped to the enclosing section, like local attribute.

meta def tactic.with_local_reducibility {α : Type} (n : name) (r : tactic.decl_reducibility) (body : tactic α) :

Execute a tactic with a temporarily modified reducibility attribute for a declaration.