A ref
performs the role of a mutable variable within a tactic.
constant
tactic.using_new_ref
{α : Type u}
{β : Type v}
(a : α)
(t : tactic.ref α → tactic β) :
tactic β
Create a new reference r
with initial value a
, execute t r
, and then delete r
.
Read the value stored in the given reference.
Update the value stored in the given reference.