Say I want to have a tactic to clear multiple hypothesis at once, to do something like clear_multiple H1, H2, H3.
. I tried to do that using pairs, like the following:
Ltac clear_multiple arg :=
match arg with
| (?f, ?s) => clear s; clear_multiple f
| ?f => clear f
end.
But then, the problem is that I have to place parenthesis to have a Prod
:
Variable A: Prop.
Goal A -> A -> A -> True.
intros.
clear_multiple (H, H0, H1).
My question is, how to do that without using Prod
s ?
I checked this question, but it is not exactly what I want, since the number of arguments I want is not known.