use Std.pattern not the pattern notation
something like
Import Ltac2.Std.
Ltac2 hident () := @H.
Ltac2 Notation "tac" arg(list1(constr, ",")) := Std.pattern (List.map (fun x => (x, Std.AllOccurrences)) arg) { on_hyps := Some [(hident (), AllOccurrences, InHyp)] ; on_concl := NoOccurrences }.
(the auxiliary hident
is needed because Ltac2 Notation doesn't like @H
, but in practice it should probably not be statically H)
This is exactly what I was looking for, thank you!
Remy Seassau has marked this topic as resolved.
Last updated: Oct 12 2024 at 12:01 UTC