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

nth_rewrite incorrectly unifies universe variables #14994

Open
fpvandoorn opened this issue Jun 27, 2022 · 0 comments
Open

nth_rewrite incorrectly unifies universe variables #14994

fpvandoorn opened this issue Jun 27, 2022 · 0 comments
Labels
bug t-meta Tactics, attributes or user commands

Comments

@fpvandoorn
Copy link
Member

In the following example, nth_rewrite incorrectly instantiates the universe metavariable of h with 0, but still rewrites with the hypothesis. Note that rw does this correctly.

def foo (h : ∀ {α : Type*} (x : α), id x = x) : id tt = tt :=
begin
  nth_rewrite 0 [h], -- error in resulting proof term
  -- rw [h], -- works
end
@fpvandoorn fpvandoorn added bug t-meta Tactics, attributes or user commands labels Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug t-meta Tactics, attributes or user commands
Projects
None yet
Development

No branches or pull requests

1 participant