Skip to content
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

Info should *never* fail when the underlying tactic succeeds ("Cannot reinterpret "fun x : True => H x" in the current environment. ") #12842

Open
JasonGross opened this issue Aug 16, 2020 · 0 comments
Labels
part: ltac Issues and PRs related to the Ltac tactic language. part: tactics

Comments

@JasonGross
Copy link
Member

JasonGross commented Aug 16, 2020

Description of the problem

Ltac t := let H := lazymatch goal with H : _ |- _ => H end in
          let H' := constr:(fun x => H x) in specialize H'.
Goal (True -> True) -> True.
  intro H.
  t. (* success *)
  Info 1 t. (* Error: Cannot reinterpret "fun x : True => H x" in the current environment. *)

I suspect specialize or Info is recording its backtrace with the wrong environment?

Coq Version

8.11

@JasonGross JasonGross added part: tactics part: ltac Issues and PRs related to the Ltac tactic language. labels Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part: ltac Issues and PRs related to the Ltac tactic language. part: tactics
Projects
None yet
Development

No branches or pull requests

1 participant