Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant