New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
negative integers not accepted in ltac integer_list -- same bug on coq 8.11.1 #12228
Labels
part: ltac
Issues and PRs related to the Ltac tactic language.
Milestone
Comments
moninje
changed the title
negative integers not accepted in ltac integer_list
negative integers not accepted in ltac integer_list -- same bug on coq 8.11.1
May 6, 2020
The first example was unnecessarily long, here is a minimal version in 3 lines. Tactic Notation "mark" constr(P) "at" integer_list(L) := pattern P at L. |
proux01
added a commit
to proux01/coq
that referenced
this issue
Jun 18, 2020
2 tasks
ppedrot
added a commit
that referenced
this issue
Jun 29, 2020
Zimmi48
pushed a commit
to Zimmi48/coq
that referenced
this issue
Jun 29, 2020
(cherry picked from commit d958feb)
Thanks @moninje for reporting and sorry for the late answer. This is fixed in master. The fix should land in 8.12. |
fajb
pushed a commit
to fajb/coq
that referenced
this issue
Jul 9, 2020
fajb
pushed a commit
to fajb/coq
that referenced
this issue
Aug 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
pattern n at -2 works, but not when called within a yser-defined tactic.
Definition MARQ {A: Type} (x:A) := x.
Tactic Notation "mark" constr(P) "at" integer_list(L) :=
pattern P at L;
match goal with |- ?f ?x => change (f (MARQ x)) end;
cbv beta.
Goal forall n, n + n = n + n.
intro n.
mark n at 2 3.
Undo 1.
pattern n at -2.
Undo 1.
mark n at -2.
(* Error:
Anomaly
"Uncaught exception File "pretyping/find_subterm.ml", line 57, characters 4-10: Assertion failed."
Please report at http://coq.inria.fr/bugs/.
*)
Coq Version
8.9.0
The text was updated successfully, but these errors were encountered: