I want to create a Coq tactic that looks something like the following. I assert a proposition named H, I prove that proposition, and then I use simpl
within that proposition. The tactic would look something like this:
Tactic Notation "foo" :=
assert (True) as H; try apply I;
simpl in H.
However, instead of using the name H
for this hypothesis, I want Coq to generate a new name for me. The problem is, how can I then use simpl
in this hypothesis?
Tactic Notation "foo" :=
assert (True) as ?; try apply I;
simpl in (* what? *).
Is there a way that I can generate a hypothesis name, and then refer back to it within the same tactic?