For example, consider this trivial definition:
Ltac suppose := intros.
suppose
will not accept any arguments, even though intros
does. How can I generalize suppose
to behave exactly like intros
?
I don’t think you could write anything close to intros
in Ltac1. You can sort-of write “variadic tactics”, but painfully — decide the maximum number of arguments n
you want to support (say, 5, 10, ….), and write n
Tactic Notations.
if you care, examples include …/ltac_tactics.v
in iris. Let me know if I should hunt down a link.
I see.
Thanks.
Ignat Insarov has marked this topic as resolved.
Last updated: Oct 13 2024 at 01:02 UTC