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

obtain without any deconstruction using a tactic block doesn't name hypotheses appropriately #15741

Closed
ericrbg opened this issue Jul 28, 2022 · 1 comment

Comments

@ericrbg
Copy link
Collaborator

ericrbg commented Jul 28, 2022

import tactic.rcases

example : true :=
begin
  obtain h : true,
  { trivial },
  success_if_fail { exact h },
  assumption,
end

Note that this behaviour does not happen if the term is created using :=:

example : true :=
begin
  obtain h : true := trivial,
  exact h
end

Found whilst making #15735.

@ericrbg
Copy link
Collaborator Author

ericrbg commented Jul 28, 2022

The bug goes a bit higher; to rcases; rcases h with t will just let the hypothesis remain named h instead of renaming it to t.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant